Date: Sun, 11 Dec 2011 02:24:13 +0500 From: Jan Beich <jbeich@tormail.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/163173: [patch] mail/alpine: respect CC/CFLAGS Message-ID: <1RZUV4-0000vE-Hl@internal.tormail.net> Resent-Message-ID: <201112102140.pBALe9IU083009@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 163173 >Category: ports >Synopsis: [patch] mail/alpine: respect CC/CFLAGS >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: Sat Dec 10 21:40:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: # slightly different from pointyhat $ export PATH=~/.bin:$PATH $ for cc in CC cc c++ gcc g++ cpp; do ln -s /usr/bin/false ~/.bin/${cc}; done >Description: CC/CXX are already exported before CONFIGURE_ENV in bsd.port.mk, so Makefile@1.14 commit was a no-op. The port lacks CC/CFLAGS override for a non-automake makefile, e.g. imap/src/osdep/unix/Makefile: GCCOPTLEVEL= -O2 ... GCCCFLAGS= -g $(GCCOPTLEVEL) -pipe -fno-omit-frame-pointer GCC4CFLAGS= $(GCCCFLAGS) -Wno-pointer-sign ... CC=cc >How-To-Repeat: http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/pico-alpine-2.00_1.log >Fix: --- cc.diff begins here --- Index: mail/alpine/Makefile =================================================================== RCS file: /a/.csup/ports/mail/alpine/Makefile,v retrieving revision 1.14 diff -u -p -r1.14 Makefile --- mail/alpine/Makefile 26 Jun 2011 07:12:53 -0000 1.14 +++ mail/alpine/Makefile 10 Dec 2011 20:45:31 -0000 @@ -48,7 +48,7 @@ CONFIGURE_ARGS+=--with-system-pinerc=${P .endif CONFIGURE_ARGS+=--with-debug-level=2 -CONFIGURE_ENV+= CC=${CC} CXX=${CXX} +MAKE_ARGS+= CC="${CC}" CXX="${CXX}" GCCCFLAGS="${CFLAGS}" USE_OPENSSL= yes --- cc.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1RZUV4-0000vE-Hl>