ports/122389: archivers/unzip does not respect CC

Frank Fenor frank at fenor.de
Wed Apr 2 22:50:01 UTC 2008


>Number:         122389
>Category:       ports
>Synopsis:       archivers/unzip does not respect CC
>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:   Wed Apr 02 22:50:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Frank Fenor
>Release:        FreeBSD 7.0-PRERELEASE
>Organization:
>Environment:
FreeBSD konzentrisch.de 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #5: Tue Feb  5 00:33:58 CET 2008
>Description:
The archivers/unzip port does not respect $CC, but does respect $CFLAGS. This is problematic in a situation, where the custom CFLAGS do not work with the default CC.
With my patch applied, the correct $CC is used to build the port.
>How-To-Repeat:
cd /usr/ports/archivers/unzip
make clean && CC=gcc43 CFLAGS+=-march=core make
>Fix:
cd /usr/ports/archivers/unzip && patch -p1 < patch.txt

Patch attached with submission follows:

diff -Nru unzip.vanilla/Makefile unzip/Makefile
--- unzip.vanilla/Makefile	2008-04-02 17:08:01.000000000 +0200
+++ unzip/Makefile	2008-04-03 00:24:26.000000000 +0200
@@ -18,7 +18,7 @@
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 MAKEFILE=	unix/Makefile
-MAKE_ENV=	LOCAL_UNZIP="${CFLAGS} -DUSE_UNSHRINK"
+MAKE_ENV=	CC=${CC} LOCAL_UNZIP="${CFLAGS} -DUSE_UNSHRINK"
 PLIST_FILES=	bin/unzip bin/funzip bin/unzipsfx bin/zipgrep bin/zipinfo
 PORTDOCS=	README WHERE
 MAN1=		funzip.1 unzip.1 unzipsfx.1 zipgrep.1 zipinfo.1
@@ -27,7 +27,7 @@
 .if defined(WITH_UNZIP_UNREDUCE)
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX} unreduce_full.zip
 EXTRACT_ONLY=	${PORTNAME}552.tar.gz
-MAKE_ENV=	LOCAL_UNZIP="${CFLAGS} \
+MAKE_ENV=	CC=${CC} LOCAL_UNZIP="${CFLAGS} \
 	-DUSE_SMITH_CODE -DACORN_FTYPE_NFS -DWILD_STOP_AT_DIR"
 .endif
 


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



More information about the freebsd-ports-bugs mailing list