From owner-freebsd-ports Fri Jul 14 11:50: 7 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id BECF837B949 for ; Fri, 14 Jul 2000 11:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA10997; Fri, 14 Jul 2000 11:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from smtprch1.nortel.com (smtprch1.nortelnetworks.com [192.135.215.14]) by hub.freebsd.org (Postfix) with ESMTP id 99A1F37B51D for ; Fri, 14 Jul 2000 11:40:58 -0700 (PDT) (envelope-from malachai@iname.com) Received: from zrchb213.us.nortel.com (actually zrchb213) by smtprch1.nortel.com; Fri, 14 Jul 2000 13:37:18 -0500 Received: from nhmbd14.us.nortel.com ([47.120.192.112]) by zrchb213.us.nortel.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 37KR29SL; Fri, 14 Jul 2000 13:39:58 -0500 Received: from cs163.humb.nt.com (nhmbn472.us.nortel.com [47.100.194.163]) by nhmbd14.us.nortel.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 3Y6LPSS7; Fri, 14 Jul 2000 14:40:05 -0400 Message-Id: <20000714143845.A25776@cs163.humb.nt.com> Date: Fri, 14 Jul 2000 14:38:45 -0400 From: Shawn Halpenny To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/19934: [PATCH] Missing 3.x libc dependency in jdk-1.1.8 port Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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