ports/162492: [patch] mail/qmail: respect CC/STRIP

Jan Beich jbeich at tormail.net
Fri Nov 11 20:40:07 UTC 2011


>Number:         162492
>Category:       ports
>Synopsis:       [patch] mail/qmail: respect CC/STRIP
>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:   Fri Nov 11 20:40:07 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:
Makefile.in at 1.154 wasn't tested with similar environment ports/159117's
-exp run was done with. The build still uses `cc' during linking and
the next -exp run will likely reveal this.
>How-To-Repeat:
$ make install WITH_DEBUG=
$ file -b /usr/local/bin/* | fgrep strip | uniq
ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 10.0 (1000001), stripped
$ gdb -q qmail-pop3d
(no debugging symbols found)...(gdb)

$ make CC=clang
[...]
./load auto-str substdio.a error.a str.a
*** Error code 1
>Fix:
--- cc.diff begins here ---
Index: mail/qmail/Makefile
===================================================================
RCS file: /a/.csup/ports/mail/qmail/Makefile,v
retrieving revision 1.155
diff -u -p -r1.155 Makefile
--- mail/qmail/Makefile	9 Sep 2011 17:28:30 -0000	1.155
+++ mail/qmail/Makefile	11 Nov 2011 20:02:11 -0000
@@ -756,6 +756,7 @@ post-patch:
 
 do-configure:
 	@${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
+	@${ECHO_CMD} "${CC} ${LDFLAGS}" > ${WRKSRC}/conf-ld
 	@${ECHO_CMD} ${PREFIX} > ${WRKSRC}/conf-qmail
 .if defined(WITH_BIG_CONCURRENCY_PATCH) \
 	&& !defined(BARRIER_BIG_CONCURRENCY_PATCH) \
--- cc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list