ports/75852: [patch] Make java/linux-sun-jdk14 install on amd64

Francois Tigeot ftigeot at wolfpond.org
Wed Jan 5 15:10:23 UTC 2005


>Number:         75852
>Category:       ports
>Synopsis:       [patch] Make java/linux-sun-jdk14 install on amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 05 15:10:22 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Francois Tigeot <ftigeot at wolfpond.org>
>Release:        FreeBSD 5.3-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD aoi.wolfpond.org 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #0: Thu Dec 23 23:16:35 CET 2004 ftigeot at aoi.wolfpond.org:/usr/obj/usr/src/sys/AOI amd64


	
>Description:

With the recent upgrade to linux_base-8 as the default linux base
java/linux-sun-jdk14 fail to install on amd64 systems.

	
>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.


>Fix:

Apply the attached patch in /usr/ports

--- patch-linux32 begins here ---
--- x11-toolkits/linux-gtk/Makefile.orig	Sat Jan  1 11:50:54 2005
+++ x11-toolkits/linux-gtk/Makefile	Sun Jan  2 09:45:16 2005
@@ -24,7 +24,7 @@
 USE_LINUX_PREFIX=	yes
 USE_LINUX=	yes
 
-ONLY_FOR_ARCHS?=	i386 alpha
+ONLY_FOR_ARCHS?=	i386 alpha amd64
 DIST_SUBDIR?=	rpm
 EXTRACT_ONLY=
 NO_BUILD=	yes
@@ -67,3 +67,9 @@
 		>> ${PLIST}.new
 
 .include <bsd.port.mk>
+
+.if (${ARCH} == "amd64")
+ARCH=	i386
+MACHINE_ARCH=	i386
+RPMFLAGS+= --ignorearch
+.endif
--- textproc/linux-expat/Makefile.orig	Sat Jan  1 11:50:21 2005
+++ textproc/linux-expat/Makefile	Sun Jan  2 09:46:41 2005
@@ -16,7 +16,7 @@
 RUN_DEPENDS=
 
 BASEVERSION=	9
-ONLY_FOR_ARCHS=	i386
+ONLY_FOR_ARCHS=	i386 amd64
 PLIST=		${WRKDIR}/plist
 RPM_SET=	expat-1.95.5-2.i386.rpm
 
--- x11-fonts/linux-fontconfig/Makefile.orig	Fri Dec 31 19:24:09 2004
+++ x11-fonts/linux-fontconfig/Makefile	Sun Jan  2 13:06:43 2005
@@ -19,7 +19,7 @@
 
 USE_REINPLACE=	yes
 BASEVERSION=	9
-ONLY_FOR_ARCHS=	i386
+ONLY_FOR_ARCHS=	i386 amd64
 PLIST=		${WRKDIR}/plist
 RPM_SET=	fontconfig-2.1-9.i386.rpm
 
--- patch-linux32 ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list