From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Apr 2 22:50:01 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 569601065672 for ; Wed, 2 Apr 2008 22:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 341AB8FC1A for ; Wed, 2 Apr 2008 22:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m32Mo1Pv007563 for ; Wed, 2 Apr 2008 22:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m32Mo1Jw007556; Wed, 2 Apr 2008 22:50:01 GMT (envelope-from gnats) Resent-Date: Wed, 2 Apr 2008 22:50:01 GMT Resent-Message-Id: <200804022250.m32Mo1Jw007556@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Frank Fenor Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8ECCF106566B for ; Wed, 2 Apr 2008 22:45:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 7DFBA8FC1C for ; Wed, 2 Apr 2008 22:45:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m32MjHQP098356 for ; Wed, 2 Apr 2008 22:45:17 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m32MjH4j098355; Wed, 2 Apr 2008 22:45:17 GMT (envelope-from nobody) Message-Id: <200804022245.m32MjH4j098355@www.freebsd.org> Date: Wed, 2 Apr 2008 22:45:17 GMT From: Frank Fenor To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/122389: archivers/unzip does not respect CC X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2008 22:50:01 -0000 >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: