We've run into something similar here. We needed Sun Java 1.4.2 to run on
amd64 machines, but Sun didn't provide amd64 builds before Java 5.
We hacked /usr/share/java-package/sun-j2re.sh to "detect" 32-bit Java builds
as usable for amd64, and installed the 32-bit compatibility libraries that
Java needed (so that dh_shlibdeps worked).
For the record, that's these ones:
$ aptitude install lib32gcc1 lib32asound2 and ia32libs
The attached patch adds a "Suggests:" line for those pacakges (probably not
the best way to handle it) and allows 32-bit Java builds to be built on
amd64.
--
Rob Hunter
Ninja for Hire
diff -Nair --unified=1 java-package-0.28/debian/control java-package-0.28-mine/debian/control
--- java-package-0.28/debian/control 2006-06-26 16:17:08.000000000 +0100
+++ java-package-0.28-mine/debian/control 2007-10-10 13:39:01.000000000 +0100
@@ -11,2 +11,3 @@
Depends: debhelper, fakeroot, unzip
+Suggests: ia32libs, lib32gcc1, lib32asound2
Description: utility for building Java(TM) 2 related Debian packages
diff -Nair --unified=1 java-package-0.28/lib/sun-j2re.sh java-package-0.28-mine/lib/sun-j2re.sh
--- java-package-0.28/lib/sun-j2re.sh 2006-06-20 16:36:14.000000000 +0100
+++ java-package-0.28-mine/lib/sun-j2re.sh 2007-10-10 13:37:18.000000000 +0100
@@ -5,3 +5,3 @@
case "${DEB_BUILD_ARCH:-$DEB_BUILD_GNU_TYPE}" in
- i386|i486-linux-gnu)
+ i386|i486-linux-gnu|amd64)
case "$archive_name" in
_______________________________________________
pkg-java-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers