Date: Fri, 14 Jul 2000 14:38:45 -0400 From: Shawn Halpenny <malachai@iname.com> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/19934: [PATCH] Missing 3.x libc dependency in jdk-1.1.8 port Message-ID: <20000714143845.A25776@cs163.humb.nt.com>
next in thread | raw e-mail | index | archive | help
>Number: 19934 >Category: ports >Synopsis: [PATCH] Missing 3.x libc dependency in jdk-1.1.8 port >Confidential: yes >Severity: serious >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 14 11:50:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Shawn Halpenny >Release: FreeBSD 4.0-STABLE i386 >Organization: >Environment: 4.0-STABLE >Description: When installing jdk-1.1.8 from /usr/ports/java/jdk, there is no indication that the 3.x compat distribution is required. Running 'ldd /usr/local/jdk1.1.8/bin/i386/green_threads/java' shows a dependency on libc.so.3 that I discovered cannot be met by simply symlinking /usr/libc.so.3->/usr/libc/so.4. >How-To-Repeat: Install jdk-1.1.8 from ports and 1) don't install the 3.x compat distribution or 2) ln -s /usr/lib/libc.so /usr/lib/libc.so.3 and try to compile some java. >Fix: Specify a dependency on /usr/lib/compat/libc.so.3. It looks like the LIB_DEPENDS make var doesn't let you specify the preferred path to the shared lib (according to line 2367 in /usr/ports/Mk/bsd.port.mk) and the DEPENDS make var only applies to directories. So here's a possible solution: --- /usr/ports/java/jdk/Makefile~ Fri Jul 14 11:44:21 2000 +++ /usr/ports/java/jdk/Makefile Fri Jul 14 14:25:01 2000 @@ -32,6 +32,10 @@ DISTFILES= jdk${JDK_VERSION}_ELF.V1999-11-9.tar.gz .endif +.if ${JDK_VERSION} == 1.1.8 && ${OSVERSION} >= 400000 && !exists(/usr/lib/compat/libc.so.3) +IGNORE ="depends on 3.x compat shared library: libc.3 - not found. Install the 3.x compatibility distribution and then run make again" +.endif + do-install: ${MKDIR} ${PREFIX}/jdk${JDK_VERSION} (cd ${WRKSRC} && ${TAR} -c -f - .) \ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000714143845.A25776>