oab-java6 icon indicating copy to clipboard operation
oab-java6 copied to clipboard

oab-java.sh fails to package java 6 on Ubuntu 14.04

Open shinji257 opened this issue 11 years ago • 5 comments

Java 6 fails to package on Ubuntu 14.04. Maybe issue started with 13.10 but I can't test at this time.

This is due to a dependency on packages that no longer exists. The best I can tell is that they were dropped on 13.10.

Packages in question are lib32asound2 and ia32-libs.

lib32asound2 is likely just libasound2:i386 however ia32-libs was pulling in a bunch of other stuff and I don't know what the additional needed is there.

Using a fork of the script I was able to install Java 7 and Java 8 successfully. Java 6 fails to package on Ubuntu 14.04. Maybe issue started with 13.10 but I can't test at this time.

This is due to a dependency on packages that no longer exists. The best I can tell is that they were dropped on 13.10.

Packages in question are lib32asound2 and ia32-libs.

lib32asound2 is likely just libasound2:i386 however ia32-libs was pulling in a bunch of other stuff and I don't know what the additional needed is there.

Using a fork of the script I was able to install Java 7 and Java 8 successfully.

Fork: https://github.com/ladios/oab-java6/blob/master/oab-java.sh

shinji257 avatar Apr 30 '14 00:04 shinji257

I tried taking out the deps and I get this in the log eventually resulting in an error...

dpkg-buildpackage: host architecture amd64 dpkg-checkbuilddeps: Unmet build dependencies: lib32asound2 ia32-libs dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting dpkg-buildpackage: warning: (Use -d flag to override.)

shinji257 avatar Apr 30 '14 01:04 shinji257

Confirmed. And Java 7 (ran the script with the -7 option) also fails on Ubuntu 14.04:

 [x] Installing Java build requirements success`
 [x] Making build directories success
 [x] Mirroring https://github.com/rraptorr/oracle-java7 success
 [x] Removing local clones of oracle-java7 success
 [x] Cloning oracle-java7 with v7.60-1 success
 [x] Getting releases download page success
 [x] Downloading jdk-7u60-linux-x64.tar.gz : 135.77 MB success
 [x] Symlinking jdk-7u60-linux-x64.tar.gz success
success
 [x] Downloading UnlimitedJCEPolicyJDK7.zip : 7.3 K success
 [x] Symlinking UnlimitedJCEPolicyJDK7.zip success
 [x] Updating the changelog success
 [x] Building the packages success
ERROR! Packages failed to build.

serrano@saibot:~/bin$ tail /home/serrano/bin/oab-java.sh.log
                usr/share/binfmts \
                usr/share/pixmaps \
                usr/share/mime-info \

cp -a x64/jre debian/oracle-java7-bin/usr/lib/jvm/java-7-oracle-1.7.0.60
cp: cannot stat 'x64/jre': No such file or directory
make: *** [binary-oracle-java7-bin] Error 1
dpkg-buildpackage: error: debian/rules binary gave error exit status 29935's retcode: 2
success

figure002 avatar May 29 '14 21:05 figure002

i guess the required new package name is : libasound2:i386, for ia32-libs, could be multiarch-support

tpruvot avatar Jul 03 '14 12:07 tpruvot

Anyone managed to work around this?

slovdahl avatar Feb 04 '15 14:02 slovdahl

Add these deps instead of lib32asound2 ia32-libs into sun-java6/debian/control(.in): libasound2:i386 libodbc1:i386 libx11-6:i386 libxext6:i386 libxi6:i386 libxt6:i386 libxtst6:i386

It also must be send to upstream: https://github.com/rraptorr/sun-java6 But this change must depend on distro version some how...

sergey-dryabzhinsky avatar Mar 23 '15 06:03 sergey-dryabzhinsky