misc/171573: UnZip is in FreeBSD Base but many Ports use
archivers/unzip
nemysis
nemysis at gmx.ch
Wed Sep 12 14:00:14 UTC 2012
>Number: 171573
>Category: misc
>Synopsis: UnZip is in FreeBSD Base but many Ports use archivers/unzip
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Sep 12 14:00:13 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: nemysis
>Release: FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
FreeBSD FreeBSD_Ports 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
UnZip is in FreeBSD Base
http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/unzip/
But many Ports use as dependency archivers/unzip
There are, which tried too make a Solution
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/166608
For older FreeBSD Versions must be a dependency in Ports
.if (${OSVERSION} >= 900000 && ${OSVERSION} < 900012) || ${OSVERSION} < 800505)
EXTRACT_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
.endif
Have tried this with RedPorts
https://redports.org/buildarchive/20120912123031-57191/
>How-To-Repeat:
grep -r /bin/unzip /usr/ports
/usr/ports/Mk/bsd.commands.mk:UNZIP_CMD?= ${LOCALBASE}/bin/unzip
/usr/ports/Mk/bsd.port.mk:PATCH_DEPENDS+= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip
/usr/ports/Mk/bsd.port.mk:EXTRACT_DEPENDS+= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip
/usr/ports/archivers/file-roller/Makefile: ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip
/usr/ports/archivers/file-roller/files/patch-src_fr-command-zip.c:+ fr_process_begin_command (comm->process, "%%LOCALBASE%%/bin/unzip");
/usr/ports/archivers/file-roller/files/patch-src_fr-command-zip.c:+ fr_process_begin_command (comm->process, "%%LOCALBASE%%/bin/unzip");
/usr/ports/archivers/file-roller/files/patch-src_fr-command-zip.c:+ fr_process_begin_command (comm->process, "%%LOCALBASE%%/bin/unzip");
/usr/ports/archivers/file-roller/files/patch-src_fr-command-zip.c:+ fr_process_begin_command (comm->process, "%%LOCALBASE%%/bin/unzip");
/usr/ports/audio/csound/Makefile:EXTRACT_DEPENDS+=${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip
/usr/ports/audio/xmp/Makefile:RUN_DEPENDS+= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip
..
>Fix:
Please add to
/usr/ports/Mk/bsd.port.mk
.if defined(USE_ZIP) && ( (${OSVERSION} >= 900000 && ${OSVERSION} < 900012) || ${OSVERSION} < 800505 )
You find a diff.
Patch attached with submission follows:
--- bsd.port.mk.orig 2012-09-07 02:05:58.000000000 +0200
+++ bsd.port.mk 2012-09-12 15:36:11.000000000 +0200
@@ -1643,7 +1643,7 @@
.endif
.endif
-.if defined(USE_ZIP)
+.if defined(USE_ZIP) && ( (${OSVERSION} >= 900000 && ${OSVERSION} < 900012) || ${OSVERSION} < 800505 )
EXTRACT_DEPENDS+= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip
.endif
.if defined(USE_XZ) && ( (${OSVERSION} >= 900000 && ${OSVERSION} < 900012) || ${OSVERSION} < 800505 )
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list