With the recent upgrade to linux_base-8 as the default linux base java/linux-sun-jdk14 fail to install on amd64 systems. Fix: Apply the attached patch in /usr/ports How-To-Repeat: Try to install java/linux-sun-jdk14: # cd /usr/ports/java/linux-sun-jdk14 # make install ====================================================================== Warning: This JDK may be unstable. You are advised to use the native FreeBSD JDK, in ports/java/jdk14. This Java VM will attempt to obtain some system information by accessing files in linux's procfs. You must install the Linux emulation procfs filesystem for this to work correctly. The JVM will exhibit various problems otherwise. This can be accomplished by adding the following line to your /etc/fstab file: linprocfs /compat/linux/proc linprocfs rw 0 0 and then, as root, executing the commands: kldload linprocfs mount /compat/linux/proc ====================================================================== ===> Extracting for linux-sun-jdk-1.4.2.06_1 => Checksum OK for j2sdk-1_4_2_06-linux-i586.bin. ===> linux-sun-jdk-1.4.2.06_1 depends on file: /compat/linux/lib/libc.so.6 - found ===> Patching for linux-sun-jdk-1.4.2.06_1 ===> Configuring for linux-sun-jdk-1.4.2.06_1 ===> Installing for linux-sun-jdk-1.4.2.06_1 ===> linux-sun-jdk-1.4.2.06_1 depends on executable: javavm - found ===> linux-sun-jdk-1.4.2.06_1 depends on file: /compat/linux/usr/X11R6/lib/libXrender.so.1 - not found ===> Verifying install for /compat/linux/usr/X11R6/lib/libXrender.so.1 in /usr/ports/x11/linux-XFree86-libs ===> Extracting for linux-XFree86-libs-4.3.99.902_1 => Checksum OK for rpm/i386/suse/XFree86-libs-4.3.99.902-43.35.3.i586.rpm. ===> Patching for linux-XFree86-libs-4.3.99.902_1 ===> linux-XFree86-libs-4.3.99.902_1 depends on executable: rpm - found ===> Configuring for linux-XFree86-libs-4.3.99.902_1 ===> Installing for linux-XFree86-libs-4.3.99.902_1 ===> linux-XFree86-libs-4.3.99.902_1 depends on file: /compat/linux/usr/lib/libfontconfig.so.1 - not found ===> Verifying install for /compat/linux/usr/lib/libfontconfig.so.1 in /usr/ports/x11-fonts/linux-fontconfig ===> linux-fontconfig-2.1_2 is only for i386, and you are running amd64. *** Error code 1 Stop in /usr/ports/x11-fonts/linux-fontconfig. *** Error code 1 Stop in /usr/ports/x11/linux-XFree86-libs. *** Error code 1 Stop in /usr/ports/java/linux-sun-jdk14.
Responsible Changed From-To: freebsd-ports-bugs->java Assign to maintainers.
This is really a ports issue, not a java one. The patch I included just modifies some ports Makefiles and does not even touch directly java/linux-sun-jdk14. The ports modified are: x11-toolkits/linux-gtk textproc/linux-expat x11-fonts/linux-fontconfig They are in the installation path since the linux_base-8 mega-commit; it is mainly a matter of adding amd64 in the ONLY_FOR_ARCHS= line of their Makefiles. print/acroread also suffers from the same installation problem. -- Francois Tigeot
Responsible Changed From-To: java->freebsd-java Canonicalize assignment.
New patch for linux-gtk with the correct use of bsd.port.{pre,post}.mk -- Francois Tigeot
Responsible Changed From-To: freebsd-java->phantom I'll take a look
State Changed From-To: open->closed Thanks for your submission, especially the patches! It looks like another committer has committed essentially these patches, so I am closing this PR.