Date: Tue, 7 Feb 2012 12:39:57 GMT From: Kukushkin Konstantin <dark@rambler-co.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/164847: java/diablo-jdk16 does not build on clean FreeBSD 9 Message-ID: <201202071239.q17CdvI2060467@red.freebsd.org> Resent-Message-ID: <201202071240.q17CeDVg070211@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 164847 >Category: ports >Synopsis: java/diablo-jdk16 does not build on clean FreeBSD 9 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 07 12:40:13 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Kukushkin Konstantin >Release: stable/9 >Organization: Rambler Internet Holdings, LLC >Environment: FreeBSD statlab09.rambler.ru 9.0-STABLE FreeBSD 9.0-STABLE #0: Wed Jan 25 17:57:37 UTC 2012 glebius@builder.rambler.ru:/usr/obj/usr/src/sys/DEVEL amd64 >Description: Port java/diablo-jdk16 can't extract on clean FreeBSD 9. This is because of /usr/bin/unzip || ${LOCALBASE}/bin/unzip conflict (port depends of unzip but using ${UNZIP_CMD}. This can be fixed in port depends (see diablo.patch), so port will install ${LOCALBASE}/bin/unzip always. This can be fixed in mk (see unzip.patch). This way working too and more clean for this port but I don't know how other ports will work with /usr/bin/unzip. >How-To-Repeat: Install FreeBSD 9 statlab09# make -C /usr/ports/java/diablo-jdk16 extract BATCH=1 ===> Vulnerability check disabled, database not found ===> License check disabled, port has not defined LICENSE ===> Extracting for diablo-jdk-1.6.0.07.02_18 => SHA256 Checksum OK for diablo-caffe-freebsd7-amd64-1.6.0_07-b02.tar.bz2. => SHA256 Checksum OK for tzupdater-1_3_45-2011n.zip. ===> diablo-jdk-1.6.0.07.02_18 depends on executable: unzip - found /usr/local/bin/unzip: No such file or directory *** Error code 1 Stop in /usr/ports/java/diablo-jdk16. >Fix: Use diablo.patch or use unzip.patch or something like this. Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # diablo.patch.txt # unzip.patch.txt # echo x - diablo.patch.txt sed 's/^X//' >diablo.patch.txt << '4213a63692e5c4cfd8b498217e856ea8' X--- java/diablo-jdk16/Makefile.orig 2012-01-03 06:43:38.000000000 +0400 X+++ java/diablo-jdk16/Makefile 2012-02-07 16:09:11.000000000 +0400 X@@ -69,7 +69,9 @@ PLIST_SUB+= CLIENTVM="@comment " X .endif X X .if defined(WITH_POLICY) || !defined(WITHOUT_TZUPDATE) X-EXTRACT_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip X+.if !exists($UNZIP_CMD) X+EXTRACT_DEPENDS+= $UNZIP_CMD:${PORTSDIR}/archivers/unzip X+.endif X .endif X X POLICYFILE= jce_policy-6.zip 4213a63692e5c4cfd8b498217e856ea8 echo x - unzip.patch.txt sed 's/^X//' >unzip.patch.txt << 'e29434339a312ddc20076b427eba545e' X--- Mk/bsd.port.mk.orig 2012-02-07 15:41:34.000000000 +0400 X+++ Mk/bsd.port.mk 2012-02-07 15:47:32.000000000 +0400 X@@ -1629,7 +1629,7 @@ MANCOMPRESSED?= no X .endif X X .if defined(PATCHFILES) X-.if ${PATCHFILES:M*.zip}x != x X+.if ${PATCHFILES:M*.zip}x != x && !exists(/usr/bin/unzip) X PATCH_DEPENDS+= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip X .endif X .endif X@@ -1668,7 +1668,7 @@ PKG_DEPENDS+= ${LOCALBASE}/sbin/pkg:${P X .endif X .endif X X-.if defined(USE_ZIP) X+.if defined(USE_ZIP) && !exists(/usr/bin/unzip) X EXTRACT_DEPENDS+= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip X .endif X .if defined(USE_XZ) && ( (${OSVERSION} >= 900000 && ${OSVERSION} < 900012) || ${OSVERSION} < 800505 ) X--- Mk/bsd.commands.mk.orig 2012-02-07 15:39:55.000000000 +0400 X+++ Mk/bsd.commands.mk 2012-02-07 15:46:16.000000000 +0400 X@@ -89,7 +89,11 @@ TRUE?= true # Shell builtin X UMOUNT?= /sbin/umount X UNAME?= /usr/bin/uname X UNMAKESELF_CMD?= ${LOCALBASE}/bin/unmakeself X+.if exists(/usr/bin/unzip) X+UNZIP_CMD?= /usr/bin/unzip X+.else X UNZIP_CMD?= ${LOCALBASE}/bin/unzip X+.endif X WHICH?= /usr/bin/which X XARGS?= /usr/bin/xargs X XMKMF?= ${LOCALBASE}/bin/xmkmf -a e29434339a312ddc20076b427eba545e exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202071239.q17CdvI2060467>