Bug 75852 - [patch] Make java/linux-sun-jdk14 install on amd64
Summary: [patch] Make java/linux-sun-jdk14 install on amd64
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alexey Zelkin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-05 15:10 UTC by ftigeot
Modified: 2005-06-16 21:30 UTC (History)
0 users

See Also:


Attachments
patch-linux32 (1.02 KB, text/plain)
2005-01-05 15:10 UTC, ftigeot
no flags Details
patch-linux-gtk (776 bytes, text/plain; charset=us-ascii)
2005-02-06 20:41 UTC, ftigeot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ftigeot 2005-01-05 15:10:22 UTC
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.
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2005-01-05 17:43:02 UTC
Responsible Changed
From-To: freebsd-ports-bugs->java


Assign to maintainers.
Comment 2 ftigeot 2005-01-07 12:03:24 UTC
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
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2005-01-10 16:56:34 UTC
Responsible Changed
From-To: java->freebsd-java

Canonicalize assignment.
Comment 4 ftigeot 2005-02-06 20:41:45 UTC
New patch for linux-gtk with the correct use of bsd.port.{pre,post}.mk

-- 
Francois Tigeot
Comment 5 Alexey Zelkin freebsd_committer freebsd_triage 2005-02-09 08:49:56 UTC
Responsible Changed
From-To: freebsd-java->phantom

I'll take a look
Comment 6 Greg Lewis freebsd_committer freebsd_triage 2005-06-16 21:29:52 UTC
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.