Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jan 2012 22:15:03 GMT
From:      "A.J. Kehoe IV (Nanoman)" <cT2CTdJ6@nanoman.ca>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/163790: FreeBSD Port java/diablo-jdk16 Patch
Message-ID:  <201201022215.q02MF3RW034393@red.freebsd.org>
Resent-Message-ID: <201201022220.q02MKADl028910@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         163790
>Category:       ports
>Synopsis:       FreeBSD Port java/diablo-jdk16 Patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 02 22:20:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     A.J. Kehoe IV (Nanoman)
>Release:        8.2
>Organization:
Nanoman's Company
>Environment:
FreeBSD localhost 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:07:27 UTC 2011     root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
I discovered that the FreeBSD port java/diablo-jdk16 doesn't reinstall as intended.

-----BEGIN QUOTE-----
# make deinstall
===>  Deinstalling for java/diablo-jdk16
===>   Deinstalling diablo-jdk-1.6.0.07.02_18
# make reinstall
===>  Installing for diablo-jdk-1.6.0.07.02_18
===>   diablo-jdk-1.6.0.07.02_18 depends on executable: javavm - found
===>   diablo-jdk-1.6.0.07.02_18 depends on file: /usr/local/libdata/pkgconfig/xi.pc - found
===>   diablo-jdk-1.6.0.07.02_18 depends on file: /usr/local/libdata/pkgconfig/xp.pc - found
===>   diablo-jdk-1.6.0.07.02_18 depends on file: /usr/local/libdata/pkgconfig/xt.pc - found
===>   diablo-jdk-1.6.0.07.02_18 depends on file: /usr/local/libdata/pkgconfig/xtst.pc - found
===>   diablo-jdk-1.6.0.07.02_18 depends on shared library: z.4 - found
Updating time zones...mv: rename /usr/ports/java/diablo-jdk16/work/tzupdater-1.3.45-2011n/zi to /usr/ports/java/diablo-jdk16/work/diablo-jdk1.6.0_07/jre/lib/zi: No such file or directory
*** Error code 1

Stop in /usr/ports/java/diablo-jdk16.
*** Error code 1

Stop in /usr/ports/java/diablo-jdk16.
*** Error code 1

Stop in /usr/ports/java/diablo-jdk16.
-----END QUOTE-----
>How-To-Repeat:
cd /usr/ports/java/diablo-jdk16
make install
make deinstall
make reinstall
>Fix:
In the "pre-install" part of the Makefile, the required directory is moved from the work directory instead of copied.  To fix this, I replaced "MV" with "CP" and added the "-R" option.

I've attached a patch for the Makefile.

Patch attached with submission follows:

--- ports/java/diablo-jdk16/Makefile.old	2011-12-24 14:24:35.000000000 -0500
+++ ports/java/diablo-jdk16/Makefile	2012-01-02 17:12:09.628237000 -0500
@@ -134,7 +134,7 @@
 pre-install:
 	@${ECHO_CMD} -n "Updating time zones..."
 	@${RM} -rf ${WRKSRC}/jre/lib/zi
-	@${MV} -f ${WRKDIR}/tzupdater-${TZUPDATE_VERSION:S/_/./g}-${TZUPDATE_TZVERSION}/zi ${WRKSRC}/jre/lib/
+	@${CP} -R -f ${WRKDIR}/tzupdater-${TZUPDATE_VERSION:S/_/./g}-${TZUPDATE_TZVERSION}/zi ${WRKSRC}/jre/lib/
 	@${ECHO_CMD} "done"
 	@-${RM} -rf ${WRKSRC}/jre/lib/zi.tzdata*
 .endif


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201022215.q02MF3RW034393>