Date: Wed, 2 Apr 2008 22:45:17 GMT From: Frank Fenor <frank@fenor.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/122389: archivers/unzip does not respect CC Message-ID: <200804022245.m32MjH4j098355@www.freebsd.org> Resent-Message-ID: <200804022250.m32Mo1Jw007556@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804022245.m32MjH4j098355>