From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Mar 8 20:20:02 2009 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 B84091065678 for ; Sun, 8 Mar 2009 20:20:02 +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 944398FC22 for ; Sun, 8 Mar 2009 20:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n28KK2Vx068855 for ; Sun, 8 Mar 2009 20:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n28KK20o068854; Sun, 8 Mar 2009 20:20:02 GMT (envelope-from gnats) Resent-Date: Sun, 8 Mar 2009 20:20:02 GMT Resent-Message-Id: <200903082020.n28KK20o068854@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, Anonymous Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFB14106564A for ; Sun, 8 Mar 2009 20:18:38 +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 DDD8A8FC1F for ; Sun, 8 Mar 2009 20:18:38 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n28KIcKu021968 for ; Sun, 8 Mar 2009 20:18:38 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n28KIcIa021967; Sun, 8 Mar 2009 20:18:38 GMT (envelope-from nobody) Message-Id: <200903082018.n28KIcIa021967@www.freebsd.org> Date: Sun, 8 Mar 2009 20:18:38 GMT From: Anonymous To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/132432: [patch] devel/apr: add CC and CFLAGS to CONFIGURE_ENV 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: Sun, 08 Mar 2009 20:20:03 -0000 >Number: 132432 >Category: ports >Synopsis: [patch] devel/apr: add CC and CFLAGS to CONFIGURE_ENV >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 08 20:20:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Anonymous >Release: FreeBSD 8.0-CURRENT amd64 >Organization: >Environment: >Description: The port *silently* overrides CC and CFLAGS unless set from environment or cmdline. >How-To-Repeat: Add CC=gcc44 and CFLAGS=-O0 to make.conf and build the port. %%% $ printf 'CC=gcc44\nCFLAGS=-O0\n' >/etc/make.conf $ cd devel/apr; make .. /bin/sh /usr/ports/devel/apr/work/apr-1.3.3/libtool --silent --mode=compile gcc -g -O2 -DHAVE_CONFIG_H -I./include -I/usr/ports/devel/apr/work/apr-1.3.3/include/arch/unix -I./include/arch/unix -I/usr/ports/devel/apr/work/apr-1.3.3/include/arch/unix -I/usr/ports/devel/apr/work/apr-1.3.3/include -o passwd/apr_getpass.lo -c passwd/apr_getpass.c && touch passwd/apr_getpass.lo ^C $ make -V CC -V CFLAGS gcc44 -O0 %%% Same with default CC=cc and CFLAGS='-O2 -pipe -fno-strict-aliasing'. These are known to work: $ env CC=gcc44 CFLAGS=-O0 make $ make CC=gcc44 CFLAGS=-O0 >Fix: Patch attached with submission follows: Index: devel/apr/Makefile =================================================================== RCS file: /home/csup/ports/devel/apr/Makefile,v retrieving revision 1.77 diff -u -p -r1.77 Makefile --- devel/apr/Makefile 18 Jan 2009 19:43:53 -0000 1.77 +++ devel/apr/Makefile 8 Mar 2009 19:46:54 -0000 @@ -43,6 +43,7 @@ APU_WRKDIR= ${WRKDIR}/apr-util-${APU_VER PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}" SHLIB_MAJOR= 3 +CONFIGURE_ENV= CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" APR_CONF_ARGS= APU_CONF_ARGS= --with-apr=${APR_WRKDIR} \ --with-expat=${LOCALBASE} \ >Release-Note: >Audit-Trail: >Unformatted: