rraptorr/sun-java6 — Issue #5: Build on Ubuntu Precise Fails
Author: tamersaadeh
Created: 2012-03-03 10:30:40+00:00
State: open

I have cloned the repository and downloaded Java binaries from Oracle (both 32-bit and 64-bit). Then, I tried to build with ```dpkg-buildpackage -b``` but it fails with exit error 2 and shows many warning. I'm not sure what I'm doing wrong to build this.

Here is the full log of the build.

```
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro
dpkg-buildpackage: source package sun-java6
dpkg-buildpackage: source version 6.31-1
dpkg-buildpackage: source changed by Janusz Dziemidowicz
dpkg-buildpackage: host architecture amd64
dpkg-source --before-build sun-java6
dpkg-source: info: using options from sun-java6/debian/source/options: --extend-diff-ignore=^README$
fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f *-stamp
rm -rf x64-jdk i586-jdk tmp-* jdk1.6.0_31
rm -f debian/*.debhelper debian/more debian/control.old
rm -f debian/sun-java6-bin.substvars.tmp
for f in debian/*.in; do \
f2=$(echo $f | sed 's/JB/sun-java6/;s/\.in$//'); \
case "$f2" in debian/control) continue; esac; \
rm -f $f2; \
done
rm -f debian/sun-java6*.templates
rm -f debian/sun-java6*.links
rm -f debian/copyright.1*
rm -f debian/ia32-sun-java6*.*
rm -f debian/*.debhelper.log
dh_clean
debian/rules build
Build information
==========================
TOP = usr/lib/jvm
VENDOR = sun
RELEASE = 6
PRODUCT = java6
basename = sun-java6
version = 6
releng_ver = 31
unpackdir = jdk1.6.0_31
srcdir = x64-jdk
all_archs = i586 x64
arch = x64
archdir = amd64
bin_pattern = jdk-6u31-linux-%.bin

rm -rf jdk1.6.0_31
binsize=$(wc -c jdk-6u31-linux-i586.bin | awk '{print $1}'); \
zipstart=$(unzip -ql jdk-6u31-linux-i586.bin 2>&1 >/dev/null | sed -n -e 's/.* \([0-9][0-9]*\) extra bytes.*/\1/p'); \
tail -c $(expr $binsize - $zipstart) jdk-6u31-linux-i586.bin > tmp-jdk.zip
unzip -q tmp-jdk.zip
mv jdk1.6.0_31 i586-jdk
i586
diff -u i586-jdk/LICENSE i586-jdk/jre/LICENSE
diff -u i586-jdk/THIRDPARTYLICENSEREADME.txt \
i586-jdk/jre/THIRDPARTYLICENSEREADME.txt
set -e; \
for i in $(find i586-jdk -name '*.pack'); do \
i586-jdk/bin/unpack200 $i \
$(dirname $i)/$(basename $i .pack).jar; \
rm -f $i; \
done
: # fix permissions
find i586-jdk -name '*.properties' -o -name '*.xml' | xargs chmod 644
touch unpack-i586-stamp
rm -rf jdk1.6.0_31
binsize=$(wc -c jdk-6u31-linux-x64.bin | awk '{print $1}'); \
zipstart=$(unzip -ql jdk-6u31-linux-x64.bin 2>&1 >/dev/null | sed -n -e 's/.* \([0-9][0-9]*\) extra bytes.*/\1/p'); \
tail -c $(expr $binsize - $zipstart) jdk-6u31-linux-x64.bin > tmp-jdk.zip
unzip -q tmp-jdk.zip
mv jdk1.6.0_31 x64-jdk
x64
diff -u x64-jdk/LICENSE x64-jdk/jre/LICENSE
diff -u x64-jdk/THIRDPARTYLICENSEREADME.txt \
x64-jdk/jre/THIRDPARTYLICENSEREADME.txt
set -e; \
for i in $(find x64-jdk -name '*.pack'); do \
i586-jdk/bin/unpack200 $i \
$(dirname $i)/$(basename $i .pack).jar; \
rm -f $i; \
done
: # fix permissions
find x64-jdk -name '*.properties' -o -name '*.xml' | xargs chmod 644
touch unpack-x64-stamp
: # check for identical files / trees
set -e; set -- i586 x64; a1=$1; shift; \
for a2; do \
echo "Comparing architecture $a1 with $a2"; \
for i in jre/lib/audio jre/lib/cmm jre/lib/fonts jre/lib/images/cursors jre/lib/oblique-fonts jre/lib/zi jre/lib/jsse.jar jre/lib/jce.jar jre/lib/ext/sunjce_provider.jar jre/lib/ext/sunpkcs11.jar jre/lib/security/local_policy.jar jre/lib/security/US_export_policy.jar jre/lib/locale jre/COPYRIGHT jre/LICENSE jre/THIRDPARTYLICENSEREADME.txt jre/README jre/Welcome.html ; do \
echo " Comparing $i ..."; \
if diff -ur $a1-jdk/$i $a2-jdk/$i; then \
echo " OK"; \
else \
echo " differ"; \
badthings="$badthings $i"; \
fi; \
done; \
done; \
if [ -n "$badthings" ]; then \
echo "Differing files/subtrees: $badthings"; \
exit 1; \
fi
Comparing architecture i586 with x64
Comparing jre/lib/audio ...
OK
Comparing jre/lib/cmm ...
OK
Comparing jre/lib/fonts ...
OK
Comparing jre/lib/images/cursors ...
OK
Comparing jre/lib/oblique-fonts ...
OK
Comparing jre/lib/zi ...
OK
Comparing jre/lib/jsse.jar ...
OK
Comparing jre/lib/jce.jar ...
OK
Comparing jre/lib/ext/sunjce_provider.jar ...
OK
Comparing jre/lib/ext/sunpkcs11.jar ...
OK
Comparing jre/lib/security/local_policy.jar ...
OK
Comparing jre/lib/security/US_export_policy.jar ...
OK
Comparing jre/lib/locale ...
OK
Comparing jre/COPYRIGHT ...
OK
Comparing jre/LICENSE ...
OK
Comparing jre/THIRDPARTYLICENSEREADME.txt ...
OK
Comparing jre/README ...
OK
Comparing jre/Welcome.html ...
OK
: # check for jars with the same content
set -e; \
for j in jre/lib/ext/dnsns.jar jre/lib/ext/localedata.jar jre/lib/im/indicim.jar jre/lib/im/thaiim.jar jre/lib/charsets.jar jre/lib/management-agent.jar jre/lib/plugin.jar jre/lib/resources.jar jre/lib/javaws.jar jre/lib/deploy.jar jre/lib/alt-rt.jar jre/lib/alt-string.jar ; do \
echo " Comparing $j ..."; \
d=${j%*.jar}; \
set -- i586 x64; a1=$1; shift; \
mkdir -p tmp-$a1/$d; \
unzip -q -d tmp-$a1/$d $a1-jdk/$j; \
for a2; do \
mkdir -p tmp-$a2/$d; \
unzip -q -d tmp-$a2/$d $a2-jdk/$j; \
if diff -ur tmp-$a1/$d tmp-$a2/$d; then \
echo " OK"; \
else \
echo " differ"; \
badjars="$badjars $j ($a1, $a2)"; \
fi; \
done; \
done; \
if [ -n "$badjars" ]; then \
echo "Differing jar files: $badjars"; \
exit 1; \
fi
Comparing jre/lib/ext/dnsns.jar ...
OK
Comparing jre/lib/ext/localedata.jar ...
OK
Comparing jre/lib/im/indicim.jar ...
OK
Comparing jre/lib/im/thaiim.jar ...
OK
Comparing jre/lib/charsets.jar ...
OK
Comparing jre/lib/management-agent.jar ...
OK
Comparing jre/lib/plugin.jar ...
OK
Comparing jre/lib/resources.jar ...
OK
Comparing jre/lib/javaws.jar ...
OK
Comparing jre/lib/deploy.jar ...
OK
Comparing jre/lib/alt-rt.jar ...
OK
Comparing jre/lib/alt-string.jar ...
OK
: # check if the sources are the "same"
set -e; set -- i586 x64; a1=$1; shift; \
unzip -q -d tmp-$a1/src $a1-jdk/src.zip; \
for a2; do \
unzip -q -d tmp-$a2/src $a2-jdk/src.zip; \
echo "Comparing sources: tmp-$a1/src tmp-$a2/src ..."; \
echo " diff -ur -I 'Friday, January 20' -I 'Fri Jan 20' -I '^ *// java GenerateCharacter'"; \
diff -ur -I 'Friday, January 20' -I 'Fri Jan 20' -I '^ *// java GenerateCharacter' tmp-$a1/src tmp-$a2/src; \
done
Comparing sources: tmp-i586/src tmp-x64/src ...
diff -ur -I 'Friday, January 20' -I 'Fri Jan 20' -I '^ *// java GenerateCharacter'
No relevant differences
touch unpack-stamp
/usr/bin/make -f debian/rules packaging-files \
ia32_prefix=ia32- \
packaging_files= \
priority=15 \
DEB_HOST_ARCH=i386
make[1]: Entering directory `/home/tamer/tmp/sun-java6'
for f in debian/JB-{archive,bin,control,java,policy,plugin,web}*.in; do \
case "$f" in debian/control.in) continue; esac; \
f2=$(echo $f | sed 's/JB/ia32-sun-java6/;s/\.in$//'); \
sed -e 's/@JRE@/ia32-sun-java6-jre/g' \
-e 's/@JDK@/ia32-sun-java6-jdk/g' \
-e 's/@vendor@/Sun/g' \
-e 's/@RELEASE@/6/g' \
-e 's/@basename@/ia32-sun-java6/g' \
-e 's,@TOP@,usr/lib/jvm,g' \
-e 's,@basedir@,usr/lib/jvm/ia32-java-6-sun-1.6.0.31,g' \
-e 's,@basediralias@,usr/lib/jvm/ia32-java-6-sun,g' \
-e 's,@jdiralias@,ia32-java-6-sun,g' \
-e 's,@jdirname@,ia32-java-6-sun-1.6.0.31,g' \
-e 's/@srcname@/sun-java6/g' \
-e 's/@arch@/i386/g' \
-e 's/@sarch@/i586/g' \
-e 's/@archdir@/i386/g' \
-e 's/@ia32txt@/ (32bit)/g' \
-e 's/@priority@/15/g' \
-e 's/@jre_tools@/ControlPanel java java_vm javaws jcontrol keytool pack200 policytool rmid rmiregistry unpack200 orbd servertool tnameserv/g' \
-e 's/@jdk_tools@/appletviewer apt extcheck HtmlConverter idlj jar jarsigner javac javadoc javah javap java-rmi.cgi jconsole jdb jhat jinfo jmap jps jrunscript jsadebugd jstack jstat jstatd native2ascii rmic schemagen serialver wsgen wsimport xjc/g' \
-e 's,@browser_dirs@,xulrunner-addons mozilla,g' \
-e 's,@java_launcher@,cautious-launcher %f /usr/lib/jvm/ia32-java-6-sun-1.6.0.31/bin/java,g' \
$f > $f2; \
done
cat debian/ia32-sun-java6-bin-i586.menu >> debian/ia32-sun-java6-bin.menu
rm -f debian/ia32-sun-java6-bin-i586.menu
make[1]: Leaving directory `/home/tamer/tmp/sun-java6'
for f in debian/*.in; do \
case "$f" in debian/control.in) continue; esac; \
f2=$(echo $f | sed 's/JB/sun-java6/;s/\.in$//'); \
sed -e 's/@JRE@/sun-java6-jre/g' \
-e 's/@JDK@/sun-java6-jdk/g' \
-e 's/@vendor@/Sun/g' \
-e 's/@RELEASE@/6/g' \
-e 's/@basename@/sun-java6/g' \
-e 's,@TOP@,usr/lib/jvm,g' \
-e 's,@basedir@,usr/lib/jvm/java-6-sun-1.6.0.31,g' \
-e 's,@basediralias@,usr/lib/jvm/java-6-sun,g' \
-e 's,@jdiralias@,java-6-sun,g' \
-e 's,@jdirname@,java-6-sun-1.6.0.31,g' \
-e 's/@srcname@/sun-java6/g' \
-e 's/@arch@/amd64/g' \
-e 's/@sarch@/x64/g' \
-e 's/@archdir@/amd64/g' \
-e 's/@ia32txt@//g' \
-e 's/@priority@/63/g' \
-e 's/@jre_tools@/ orbd servertool tnameserv/g' \
-e 's/@jdk_tools@/appletviewer apt ControlPanel extcheck HtmlConverter idlj jar jarsigner java javac javadoc javah javap javaws jconsole jcontrol jdb jhat jinfo jmap jps jrunscript jsadebugd jstack jstat jstatd keytool native2ascii orbd pack200 policytool rmic rmid rmiregistry schemagen serialver servertool tnameserv unpack200 wsgen wsimport xjc/g' \
-e 's,@browser_dirs@,xulrunner-addons mozilla,g' \
-e 's,@java_launcher@,cautious-launcher %f /usr/lib/jvm/java-6-sun-1.6.0.31/bin/java,g' \
$f > $f2; \
done
cat debian/sun-java6-bin-i586.menu >> debian/sun-java6-bin.menu
rm -f debian/sun-java6-bin-i586.menu
touch control-stamp
touch build-stamp
fakeroot debian/rules binary
Build information
==========================
TOP = usr/lib/jvm
VENDOR = sun
RELEASE = 6
PRODUCT = java6
basename = sun-java6
version = 6
releng_ver = 31
unpackdir = jdk1.6.0_31
srcdir = x64-jdk
all_archs = i586 x64
arch = x64
archdir = amd64
bin_pattern = jdk-6u31-linux-%.bin
ControlPanel java java_vm javaws jcontrol keytool pack200 policytool rmid rmiregistry unpack200
/usr/bin/make -f debian/rules packaging-files \
ia32_prefix=ia32- \
packaging_files= \
priority=15 \
DEB_HOST_ARCH=i386
make[1]: Entering directory `/home/tamer/tmp/sun-java6'
for f in debian/JB-{archive,bin,control,java,policy,plugin,web}*.in; do \
case "$f" in debian/control.in) continue; esac; \
f2=$(echo $f | sed 's/JB/ia32-sun-java6/;s/\.in$//'); \
sed -e 's/@JRE@/ia32-sun-java6-jre/g' \
-e 's/@JDK@/ia32-sun-java6-jdk/g' \
-e 's/@vendor@/Sun/g' \
-e 's/@RELEASE@/6/g' \
-e 's/@basename@/ia32-sun-java6/g' \
-e 's,@TOP@,usr/lib/jvm,g' \
-e 's,@basedir@,usr/lib/jvm/ia32-java-6-sun-1.6.0.31,g' \
-e 's,@basediralias@,usr/lib/jvm/ia32-java-6-sun,g' \
-e 's,@jdiralias@,ia32-java-6-sun,g' \
-e 's,@jdirname@,ia32-java-6-sun-1.6.0.31,g' \
-e 's/@srcname@/sun-java6/g' \
-e 's/@arch@/i386/g' \
-e 's/@sarch@/i586/g' \
-e 's/@archdir@/i386/g' \
-e 's/@ia32txt@/ (32bit)/g' \
-e 's/@priority@/15/g' \
-e 's/@jre_tools@/ControlPanel java java_vm javaws jcontrol keytool pack200 policytool rmid rmiregistry unpack200 orbd servertool tnameserv/g' \
-e 's/@jdk_tools@/appletviewer apt extcheck HtmlConverter idlj jar jarsigner javac javadoc javah javap java-rmi.cgi jconsole jdb jhat jinfo jmap jps jrunscript jsadebugd jstack jstat jstatd native2ascii rmic schemagen serialver wsgen wsimport xjc/g' \
-e 's,@browser_dirs@,xulrunner-addons mozilla,g' \
-e 's,@java_launcher@,cautious-launcher %f /usr/lib/jvm/ia32-java-6-sun-1.6.0.31/bin/java,g' \
$f > $f2; \
done
cat debian/ia32-sun-java6-bin-i586.menu >> debian/ia32-sun-java6-bin.menu
rm -f debian/ia32-sun-java6-bin-i586.menu
make[1]: Leaving directory `/home/tamer/tmp/sun-java6'
for f in debian/*.in; do \
case "$f" in debian/control.in) continue; esac; \
f2=$(echo $f | sed 's/JB/sun-java6/;s/\.in$//'); \
sed -e 's/@JRE@/sun-java6-jre/g' \
-e 's/@JDK@/sun-java6-jdk/g' \
-e 's/@vendor@/Sun/g' \
-e 's/@RELEASE@/6/g' \
-e 's/@basename@/sun-java6/g' \
-e 's,@TOP@,usr/lib/jvm,g' \
-e 's,@basedir@,usr/lib/jvm/java-6-sun-1.6.0.31,g' \
-e 's,@basediralias@,usr/lib/jvm/java-6-sun,g' \
-e 's,@jdiralias@,java-6-sun,g' \
-e 's,@jdirname@,java-6-sun-1.6.0.31,g' \
-e 's/@srcname@/sun-java6/g' \
-e 's/@arch@/amd64/g' \
-e 's/@sarch@/x64/g' \
-e 's/@archdir@/amd64/g' \
-e 's/@ia32txt@//g' \
-e 's/@priority@/63/g' \
-e 's/@jre_tools@/ControlPanel java java_vm javaws jcontrol keytool pack200 policytool rmid rmiregistry unpack200 orbd servertool tnameserv/g' \
-e 's/@jdk_tools@/appletviewer apt extcheck HtmlConverter idlj jar jarsigner javac javadoc javah javap jconsole jdb jhat jinfo jmap jps jrunscript jsadebugd jstack jstat jstatd native2ascii rmic schemagen serialver wsgen wsimport xjc/g' \
-e 's,@browser_dirs@,xulrunner-addons mozilla,g' \
-e 's,@java_launcher@,cautious-launcher %f /usr/lib/jvm/java-6-sun-1.6.0.31/bin/java,g' \
$f > $f2; \
done
cat debian/sun-java6-bin-i586.menu >> debian/sun-java6-bin.menu
rm -f debian/sun-java6-bin-i586.menu
touch control-stamp
touch build-stamp
dh_testdir
dh_testroot
dh_clean -d
dh_installdirs \
usr/share/doc \
etc/java-6-sun/security \
usr/lib/jvm/java-6-sun-1.6.0.31/ext \
usr/lib/jvm/java-6-sun-1.6.0.31/man/man1 \
usr/lib/jvm/java-6-sun-1.6.0.31/man/ja/man1 \
usr/lib/jvm/java-6-sun-1.6.0.31/jre/man/man1 \
usr/lib/jvm/java-6-sun-1.6.0.31/jre/man/ja/man1 \
usr/lib/jvm/java-6-sun-1.6.0.31/bin/amd64/native_threads \
usr/share/lintian/overrides \
usr/share/applications \
usr/share/application-registry \
usr/share/binfmts \
usr/share/pixmaps \
usr/share/mime-info \

cp -a x64-jdk/jre debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31
echo usr/lib/jvm/java-6-sun-1.6.0.31 usr/lib/jvm/java-6-sun > debian/sun-java6-bin.links
: remove arch indep files and directories
rm -rf debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/audio debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/cmm debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/fonts debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/images/cursors debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/oblique-fonts debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/zi debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/jsse.jar debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/jce.jar debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/ext/sunjce_provider.jar debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/ext/sunpkcs11.jar debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/security/local_policy.jar debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/security/US_export_policy.jar debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/locale debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/COPYRIGHT debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/LICENSE debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/THIRDPARTYLICENSEREADME.txt debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/README debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/Welcome.html debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/ext/dnsns.jar debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/ext/localedata.jar debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/im/indicim.jar debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/im/thaiim.jar debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/charsets.jar debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/management-agent.jar debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/plugin.jar debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/resources.jar debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/javaws.jar debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/deploy.jar debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/alt-rt.jar debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/alt-string.jar
: # icons, only in the i586 archive -> sun-java6-jre
rm -rf debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/images/icons
: # install a wrapper for javaws
mv debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/bin/javaws debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/bin/javaws.real
install -m 755 debian/javaws-wrapper.sh debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/bin/javaws
rm -f debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/{CHANGES,INSTALL}
: # install template files as real files (all commented out)
for i in debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/management/*.template; do \
mv $i ${i%*.template}; \
done
: # fix permissions
chmod 644 debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/deploy/splash.gif
: # move config files to etc/java-6-sun and symlink them.
mkdir -p debian/sun-java6-bin/etc/java-6-sun/management
for i in \
calendars.properties \
content-types.properties \
logging.properties \
sound.properties \
flavormap.properties \
net.properties \
management/jmxremote.access \
management/jmxremote.password \
management/management.properties \
management/snmp.acl; \
do \
mv debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/$i debian/sun-java6-bin/etc/java-6-sun/$i; \
done
cp debian/fontconfig.properties.src \
debian/sun-java6-bin/etc/java-6-sun/fontconfig.properties
mv debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/jvm.cfg \
debian/sun-java6-bin/etc/java-6-sun/
mv debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/security/{java.*,cacerts} \
debian/sun-java6-bin/etc/java-6-sun/security
: # create links for the conffiles
find debian/sun-java6-bin/etc/java-6-sun -type f ! -name jvm.cfg \
-printf "etc/java-6-sun/%P usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/%P\n" >> debian/sun-java6-bin.links
echo "etc/java-6-sun/jvm.cfg usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/jvm.cfg" \
>> debian/sun-java6-bin.links
set -e; \
for i in $(find x64-jdk/bin ! -type d); do \
n=$(basename $i); \
case " ControlPanel java java_vm javaws jcontrol keytool pack200 policytool rmid rmiregistry unpack200 orbd servertool tnameserv " in *\ $n\ *) ;; *) continue; esac; \
echo usr/lib/jvm/java-6-sun-1.6.0.31/jre/bin/$n usr/lib/jvm/java-6-sun-1.6.0.31/bin/$n; \
done >> debian/sun-java6-bin.links
: # give all permissions to cross-VM extension directory
mv debian/sun-java6-bin/etc/java-6-sun/security/java.policy \
debian/sun-java6-bin/etc/java-6-sun/security/java.policy.orig
sed -e '/permission java\.security\.AllPermission;/,/};/c\' \
-e ' permission java.security.AllPermission;\' \
-e '};\' \
-e '\' \
-e 'grant codeBase "file:/usr/lib/jvm/java-6-sun-1.6.0.31/ext/*" {\' \
-e ' permission java.security.AllPermission;\' \
-e '};\' \
-e '\' \
-e '// Comment this out if you want to give all permissions to the\' \
-e '// Debian Java repository too:\' \
-e '//grant codeBase "file:/usr/share/java/repository/-" {\' \
-e '// permission java.security.AllPermission;\' \
-e '//};\' \
-e '' \
debian/sun-java6-bin/etc/java-6-sun/security/java.policy.orig \
> debian/sun-java6-bin/etc/java-6-sun/security/java.policy
rm -f debian/sun-java6-bin/etc/java-6-sun/security/java.policy.orig
: # add lintian overrides
cp -p debian/sun-java6-bin.overrides \
debian/sun-java6-bin/usr/share/lintian/overrides/sun-java6-bin
: # add GNOME stuff
cp -p debian/sun-java6-java.desktop \
debian/sun-java6-bin/usr/share/applications/
cp -p debian/sun-java6-policytool.desktop \
debian/sun-java6-bin/usr/share/applications/
cp -p debian/sun-java6-{java,javaws}.desktop \
debian/sun-java6-bin/usr/share/applications/
cp -p debian/sun-java6-{controlpanel,policytool}.desktop \
debian/sun-java6-bin/usr/share/applications/
for i in archive web-start; do \
cp debian/sun-java6-$i.applications \
debian/sun-java6-bin/usr/share/application-registry/; \
cp debian/sun-java6-$i.keys debian/sun-java6-bin/usr/share/mime-info/; \
cp debian/sun-java6-$i.mime debian/sun-java6-bin/usr/share/mime-info/; \
done
: # XXX hack, the icon is not available in the amd64 package
cp -p i586-jdk/jre/plugin/desktop/sun_java.png \
debian/sun-java6-bin/usr/share/pixmaps/sun-java6.png
cp -p debian/sun_java.xpm \
debian/sun-java6-bin/usr/share/pixmaps/sun-java6.xpm
: # install manpages
set -e; \
for m in $(find x64-jdk/man/man1 -type f); do \
n=$(basename $m .1); \
case " ControlPanel java java_vm javaws jcontrol keytool pack200 policytool rmid rmiregistry unpack200 orbd servertool tnameserv " in *\ $n\ *) ;; *) continue; esac; \
cp -p $m debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/man/man1/$n.1; \
ln -s ../../jre/man/man1/$n.1 debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/man/man1/$n.1; \
[ -f x64-jdk/man/ja/man1/$n.1 ] || continue; \
cp -p x64-jdk/man/ja/man1/$n.1 \
debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/man/ja/man1/$n.1; \
ln -s ../../../jre/man/ja/man1/$n.1 \
debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/man/ja/man1/$n.1; \
done
find debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/man -name '*.[1-9]' | xargs gzip
ln -sf /usr/lib/libodbcinst.so.1 \
debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libodbcinst.so
ln -sf /usr/lib/libodbc.so.1 \
debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libodbc.so
: # fix permissions
find debian/sun-java6-bin -name '*.xml' | xargs -r chmod 644
rm -f debian/sun-java6-bin.substvars
ld_path=debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64 \
dh_shlibdeps \
-l$ld_path:$ld_path/client:$ld_path/native_threads \
-Xlibjavaplugin_oji.so -Xlibnpjp2.so
dpkg-shlibdeps: warning: couldn't find library libmawt.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libjawt.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libjawt.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libawt.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libawt.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/motif21/libmawt.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/motif21:/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/motif21/..').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libawt.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libawt.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libinstrument.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/jli').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libfontmanager.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libawt.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libawt.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libmlib_image.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/librmi.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libnet.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libhprof.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libjava.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libverify.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libverify.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libjpeg.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libdcpr.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libjdwp.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/headless/libmawt.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/headless:/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/headless/..').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libawt.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libawt.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libverify.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libzip.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libawt.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libcmm.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/xawt/libmawt.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/xawt:/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/xawt/..').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libawt.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libawt.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libjsound.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libioser12.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libmanagement.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libjsoundalsa.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libj2gss.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libnet.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libnet.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libodbcinst.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libJdbcOdbc.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: couldn't find library libodbc.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libJdbcOdbc.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libJdbcOdbc.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libunpack.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libjaas_unix.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libattach.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libj2pcsc.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libj2pkcs11.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: dependency on libnsl.so.1 could be avoided if "debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/bin/javaws.real debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libnet.so debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libhprof.so debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libjava.so debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libdt_socket.so debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/native_threads/libhpi.so" were not uselessly linked against it (they use none of its symbols).
sed -i -e 's/libc6[^,]*, *//g' -e 's/libc6[^,]*$//g' -e 's/ *([^,]*) *//g' \
debian/sun-java6-bin.substvars
cp -p debian/sun-java6-bin.substvars debian/sun-java6-plugin.substvars
sed -e 's/Depends/Recommends/' \
debian/sun-java6-bin.substvars > debian/sun-java6-bin.substvars.tmp
rm -f debian/sun-java6-bin.substvars
ld_path=debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64 \
dh_shlibdeps \
-l$ld_path:$ld_path/client:$ld_path/native_threads:$ld_path/headless \
-Xjavaws -Xpolicytool \
-Xlibjavaplugin -Xlibawt -Xlibjawt -Xlibmawt -Xlibdcpr \
-Xlibfontmanager -Xlibjsoundalsa -X_g.so \
-Xlibsplashscreen -Xlibmlib -Xlibdeploy
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libinstrument.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/jli').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/librmi.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libnet.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libhprof.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libjava.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libverify.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libverify.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libjpeg.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libjdwp.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libverify.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libzip.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libcmm.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libjsound.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libioser12.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libmanagement.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libj2gss.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libnet.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libnet.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libodbcinst.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libJdbcOdbc.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: couldn't find library libodbc.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libJdbcOdbc.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libJdbcOdbc.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libunpack.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libjaas_unix.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libattach.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjli.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libj2pcsc.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: couldn't find library libjvm.so needed by debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libj2pkcs11.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64').
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: Can't extract name and version from library name `libjava.so'
dpkg-shlibdeps: warning: dependency on libnsl.so.1 could be avoided if "debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libnet.so debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libhprof.so debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libjava.so debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/libdt_socket.so debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64/native_threads/libhpi.so" were not uselessly linked against it (they use none of its symbols).
sed -i -e 's/ *([^,]*) *//g' debian/sun-java6-bin.substvars
cat debian/sun-java6-bin.substvars.tmp >> debian/sun-java6-bin.substvars
echo 'odbc:Depends=unixodbc' >> debian/sun-java6-bin.substvars
( \
echo 'package sun-java6'; \
echo 'interpreter /usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/jexec'; \
echo 'magic PK\x03\x04'; \
) > debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/jar.binfmt
ln -sf sun-java6-jre debian/sun-java6-bin/usr/share/doc/sun-java6-bin
rm -f debian/sun-java6-bin.substvars.tmp
( \
echo 'name=java-6-sun-1.6.0.31'; \
echo 'alias=java-6-sun'; \
echo 'priority=63'; \
echo 'section=non-free'; \
echo ''; \
for i in ControlPanel java java_vm javaws jcontrol keytool pack200 policytool rmid rmiregistry unpack200 orbd servertool tnameserv; do \
echo "jre $i /usr/lib/jvm/java-6-sun/jre/bin/$i"; \
done; \
echo "jre jexec /usr/lib/jvm/java-6-sun/jre/lib/jexec"; \
for i in appletviewer apt extcheck HtmlConverter idlj jar jarsigner javac javadoc javah javap jconsole jdb jhat jinfo jmap jps jrunscript jsadebugd jstack jstat jstatd native2ascii rmic schemagen serialver wsgen wsimport xjc; do \
echo "jdk $i /usr/lib/jvm/java-6-sun/bin/$i"; \
done; \
for d in xulrunner-addons mozilla; do \
case "$d" in \
xulrunner-addons) b=xulrunner-1.9;; \
*) b=$d;; \
esac; \
echo "plugin $b-javaplugin.so /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so"; \
done; \
) > debian/sun-java6-bin/usr/lib/jvm/.java-6-sun.jinfo
dh_testdir
dh_testroot
dh_clean -d
dh_installdirs \
usr/share/doc/sun-java6-jdk \
usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64 \
usr/lib/jvm/java-6-sun-1.6.0.31/man/man1 \
usr/lib/jvm/java-6-sun-1.6.0.31/man/ja/man1 \
usr/share/applications \
usr/share/lintian/overrides
cp -a x64-jdk/{bin,include,lib,README.html} \
debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31
for i in COPYRIGHT LICENSE THIRDPARTYLICENSEREADME.txt; do \
ln -sf jre/$i debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/$i; \
done
: # remove any runtime files from the jdk package
find debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/bin \! -type d \
-printf "debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/%P\0" | xargs -r0 rm -f
: # fix java-rmi.cgi PATH
perl -pi -e 's:/usr/local/java/bin:/usr/lib/jvm/java-6-sun-1.6.0.31/bin:' \
debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/java-rmi.cgi
Can't open debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/java-rmi.cgi: No such file or directory.
: # add menu stuff
cp -p debian/sun-java6-jvisualvm.desktop \
debian/sun-java6-jdk/usr/share/applications/
: # add lintian overrides
cp -p debian/sun-java6-jdk.overrides \
debian/sun-java6-jdk/usr/share/lintian/overrides/sun-java6-jdk
: # fix permissions
chmod 755 debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/lib/visualvm/platform/lib/nbexec
for m in $(find x64-jdk/man/man1 -type f); do \
n=$(basename $m .1); \
case " ControlPanel java java_vm javaws jcontrol keytool pack200 policytool rmid rmiregistry unpack200 orbd servertool tnameserv " in *\ $n\ *) continue; esac; \
cp -p $m debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/man/man1/$n.1; \
[ -f x64-jdk/man/ja/man1/$n.1 ] || continue; \
cp -p x64-jdk/man/ja/man1/$n.1 \
debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/man/ja/man1/$n.1; \
done
find debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/man -name '*.[1-9]' | xargs gzip
ld_path=debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64 \
dh_shlibdeps \
-l$ld_path:$ld_path/client:$ld_path/native_threads:$ld_path/headless \
-Xlibjavaplugin_oji.so Xlibnpjp2.so -X_g.so
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/extcheck (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/jstack (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/javah (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/jstat (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/javadoc (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/javap (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/jarsigner (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/schemagen (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/xjc (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/jdb (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/wsgen (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/javac (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/jstatd (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/idlj (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/appletviewer (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/jrunscript (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/native2ascii (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/jar (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/rmic (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/apt (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/jps (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/wsimport (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/jhat (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/jsadebugd (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/jinfo (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/serialver (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/jmap (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: couldn't find library libjli.so needed by debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/jconsole (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../lib/amd64/jli:/usr/lib/jvm/java-6-sun-1.6.0.31/bin/../jre/lib/amd64/jli').
dpkg-shlibdeps: warning: dependency on libX11.so.6 could be avoided if "debian/sun-java6-jdk/usr/lib/jvm/java-6-sun-1.6.0.31/bin/appletviewer" were not uselessly linked against it (they use none of its symbols).
sed -i -e 's/ *([^,]*) *//g' debian/sun-java6-jdk.substvars
dh_installdocs \
x64-jdk/README.html debian/README.alternatives
dh_installchangelogs
dh_testdir
dh_testroot
dh_clean -d
dh_installdirs \
usr/share/doc/sun-java6-jdk \
usr/share/pixmaps \
usr/lib/jvm/java-6-sun-1.6.0.31/demo \
usr/share/lintian/overrides
cp -a x64-jdk/demo debian/sun-java6-demo/usr/share/doc/sun-java6-jdk/
cp -a x64-jdk/sample debian/sun-java6-demo/usr/share/doc/sun-java6-jdk/examples
mv debian/sun-java6-demo/usr/share/doc/sun-java6-jdk/demo/jvmti \
debian/sun-java6-demo/usr/lib/jvm/java-6-sun-1.6.0.31/demo/
echo usr/share/doc/sun-java6-jdk/examples usr/lib/jvm/java-6-sun-1.6.0.31/sample > debian/sun-java6-demo.links
for i in x64-jdk/demo/*; do \
i=$(basename $i); \
case "$i" in jvmti) continue; esac; \
echo usr/share/doc/sun-java6-jdk/demo/$i usr/lib/jvm/java-6-sun-1.6.0.31/demo/$i >> debian/sun-java6-demo.links; \
done
echo usr/lib/jvm/java-6-sun-1.6.0.31/demo/jvmti usr/share/doc/sun-java6-jdk/demo/jvmti >> debian/sun-java6-demo.links
: # add lintian overrides
cp -p debian/sun-java6-demo.overrides \
debian/sun-java6-demo/usr/share/lintian/overrides/sun-java6-demo
ld_path=debian/sun-java6-bin/usr/lib/jvm/java-6-sun-1.6.0.31/jre/lib/amd64 \
dh_shlibdeps \

dpkg-shlibdeps: warning: couldn't find library libjava_crw_demo.so needed by debian/sun-java6-demo/usr/lib/jvm/java-6-sun-1.6.0.31/demo/jvmti/minst/lib/libminst.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/demo/jvmti/minst/lib:/usr/lib/jvm/java-6-sun-1.6.0.31/demo/jvmti/minst/lib/../../../../lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.31/demo/jvmti/minst/lib/../../../../jre/lib/amd64').
dpkg-shlibdeps: warning: couldn't find library libjava_crw_demo.so needed by debian/sun-java6-demo/usr/lib/jvm/java-6-sun-1.6.0.31/demo/jvmti/mtrace/lib/libmtrace.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/demo/jvmti/mtrace/lib:/usr/lib/jvm/java-6-sun-1.6.0.31/demo/jvmti/mtrace/lib/../../../../lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.31/demo/jvmti/mtrace/lib/../../../../jre/lib/amd64').
dpkg-shlibdeps: warning: couldn't find library libjava_crw_demo.so needed by debian/sun-java6-demo/usr/lib/jvm/java-6-sun-1.6.0.31/demo/jvmti/heapTracker/lib/libheapTracker.so (ELF format: 'elf64-x86-64'; RPATH: '/usr/lib/jvm/java-6-sun-1.6.0.31/demo/jvmti/heapTracker/lib:/usr/lib/jvm/java-6-sun-1.6.0.31/demo/jvmti/heapTracker/lib/../../../../lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.31/demo/jvmti/heapTracker/lib/../../../../jre/lib/amd64').
echo usr/share/doc/sun-java6-jdk usr/share/doc/sun-java6-demo >> debian/sun-java6-demo.links
dh_testdir
dh_testroot
dh_clean -d
dh_installdirs \
usr/share/doc \
usr/share/lintian/overrides \
usr/lib/xulrunner-addons/plugins usr/lib/mozilla/plugins
ln -s sun-java6-bin debian/sun-java6-plugin/usr/share/doc/sun-java6-plugin
dh_testdir
dh_testroot
/usr/bin/make -f debian/rules binary-ia32-sun-java6-bin \
ia32_prefix=ia32- \
pack