Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Nov 2005 21:57:12 +1100 (EST)
From:      Edwin Groothuis <edwin@mavetju.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/88996: [patch] remove /usr/bin/bzip2 from Mk/bsd.port.mk
Message-ID:  <20051114105712.744FA6449@k7.mavetju>
Resent-Message-ID: <200511141100.jAEB0vDI072348@freefall.freebsd.org>

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

>Number:         88996
>Category:       ports
>Synopsis:       [patch] remove /usr/bin/bzip2 from Mk/bsd.port.mk
>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 Nov 14 11:00:56 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Edwin Groothuis
>Release:        FreeBSD 5.2.1-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #8: Wed Dec 15 16:58:01 EST 2004 edwin@k7.mavetju:/usr/src-5.2.1/sys/i386/compile/k7 i386


>Description:

	/usr/bin/bzip2 has been part of the base system since 4.4,
	therefor it's not necessary to explicitely check for it.

>How-To-Repeat:
>Fix:

--- bsd.port.mk.orig	Mon Nov 14 16:51:37 2005
+++ bsd.port.mk	Mon Nov 14 16:52:17 2005
@@ -970,14 +970,8 @@
 AWK?=		/usr/bin/awk
 BASENAME?=	/usr/bin/basename
 BRANDELF?=	/usr/bin/brandelf
-.if exists(/usr/bin/bzip2)
 BZCAT?=		/usr/bin/bzcat
 BZIP2_CMD?=	/usr/bin/bzip2
-.else
-BZCAT?=		${LOCALBASE}/bin/bzcat
-BZIP2_CMD?=	${LOCALBASE}/bin/bzip2
-BZIP2DEPENDS=	yes
-.endif
 CAT?=		/bin/cat
 CHGRP?=		/usr/bin/chgrp
 CHMOD?=		/bin/chmod
@@ -1458,17 +1452,11 @@
 .endif
 
 .if defined(PATCHFILES)
-.if ${PATCHFILES:M*.bz2}x != x && defined(BZIP2DEPENDS)
-PATCH_DEPENDS+=		bzip2:${PORTSDIR}/archivers/bzip2
-.endif
 .if ${PATCHFILES:M*.zip}x != x && defined(ZIPDEPENDS)
 PATCH_DEPENDS+=		unzip:${PORTSDIR}/archivers/unzip
 .endif
 .endif
 
-.if defined(USE_BZIP2) && defined(BZIP2DEPENDS)
-EXTRACT_DEPENDS+=	bzip2:${PORTSDIR}/archivers/bzip2
-.endif
 .if defined(USE_ZIP) && defined(ZIPDEPENDS)
 EXTRACT_DEPENDS+=	unzip:${PORTSDIR}/archivers/unzip
 .endif
>Release-Note:
>Audit-Trail:
>Unformatted:



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