From sunpoet@sunpoet.net  Sat Sep 29 15:40:56 2012
Return-Path: <sunpoet@sunpoet.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 698C2106564A;
	Sat, 29 Sep 2012 15:40:56 +0000 (UTC)
	(envelope-from sunpoet@sunpoet.net)
Received: from sunpoet.net (sunpoet.net [220.133.12.240])
	by mx1.freebsd.org (Postfix) with ESMTP id EED7E8FC15;
	Sat, 29 Sep 2012 15:40:55 +0000 (UTC)
Received: by sunpoet.net (Postfix, from userid 1000)
	id 3XTYjZ50J1z6Tl; Sat, 29 Sep 2012 23:35:14 +0800 (CST)
Message-Id: <3XTYjZ50J1z6Tl@sunpoet.net>
Date: Sat, 29 Sep 2012 23:35:14 +0800 (CST)
From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: gecko@FreeBSD.org
Subject: [PATCH] security/nss: fix 'make install' when built with clang
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         172164
>Category:       ports
>Synopsis:       [PATCH] security/nss: fix 'make install' when built with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gecko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 29 15:50:06 UTC 2012
>Closed-Date:    Wed Oct 10 21:18:32 UTC 2012
>Last-Modified:  Wed Oct 10 21:18:32 UTC 2012
>Originator:     Sunpoet Po-Chuan Hsieh
>Release:        FreeBSD 9.1-PRERELEASE amd64
>Organization:
The FreeBSD Project
>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 (gecko@FreeBSD.org) 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 ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gecko 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Sep 29 15:50:18 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172164 
State-Changed-From-To: open->closed 
State-Changed-By: flo 
State-Changed-When: Wed Oct 10 21:18:32 UTC 2012 
State-Changed-Why:  
Should be fixed in r305684 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172164 
>Unformatted:
