>Submitter-Id:  current-users
>Originator:    Sunpoet Po-Chuan Hsieh
>Organization:  The FreeBSD Project
>Confidential:  no 
>Synopsis:      [PATCH] security/nss: fix 'make install' when built with clang
>Severity:      non-critical
>Priority:      low
>Category:      ports 
>Class:         change-request
>Release:       FreeBSD 9.1-PRERELEASE amd64
>Environment:
System: FreeBSD bonjour.sunpoet.net 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: 
Sat Sep  8 01:52:48 CST
>Description:
- Fix 'make install' when built with clang

To build port with clang, I have following lines in /etc/make.conf:
CC=     /usr/bin/clang
CPP=    /usr/bin/clang-cpp
CXX=    /usr/bin/clang++

The installation failed when it tries to copy *.so.1 from ${BINS}, which should
be either ${DIST}/${OPSYS}${OSREL}_OPT.OBJ or ${DIST}/${OPSYS}${OSREL}_DBG.OBJ.
However, it's actually ${DIST}/${OPSYS}${OSREL}_clang_OPT.OBJ if DEBUG option is
off. This patch simply sets COMPILER_TAG empty to avoid such condition.

Port maintainer ([email protected]) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: SVN)
>How-To-Repeat:
>Fix:

--- nss-3.13.6.patch begins here ---
Index: Makefile
===================================================================
--- Makefile    (revision 305013)
+++ Makefile    (working copy)
@@ -77,6 +77,8 @@
                ${FILESDIR}/nss-config.in >${WRKDIR}/nss-config
        @${SED} -e 's|@PREFIX@|${PREFIX}|; s|@PORTVERSION@|${PORTVERSION}|' \
                ${FILESDIR}/nss.pc.in >${WRKDIR}/nss.pc
+       @${REINPLACE_CMD} -e 's|\(COMPILER_TAG = \).*|\1|' \
+               ${WRKSRC}/../coreconf/ruleset.mk
 .for i in MAJOR MINOR PATCH
        @${SED} -i.${i} -e 's|@${i}@|${_${i}}|' ${WRKDIR}/nss-config
 .endfor
--- nss-3.13.6.patch ends here ---

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[email protected]"

Reply via email to