From fluffy@FreeBSD.org  Mon Oct  5 12:42:02 2009
Return-Path: <fluffy@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id BAA0E106568F
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon,  5 Oct 2009 12:42:02 +0000 (UTC)
	(envelope-from fluffy@FreeBSD.org)
Received: from ns.ael.RU (ns.ael.ru [62.76.207.226])
	by mx1.freebsd.org (Postfix) with ESMTP id E75DE8FC14
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon,  5 Oct 2009 12:42:00 +0000 (UTC)
Received: from Fluffy.Khv.RU ([80.83.238.210])
	by ns.ael.RU (8.14.3/8.14.3/Fluffy/5.3) with ESMTP id n95Cfer5056527
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon, 5 Oct 2009 23:41:47 +1100 (VLAST)
	(envelope-from fluffy@FreeBSD.org)
Received: from Fluffy.Khv.RU (localhost [127.0.0.1])
	by Fluffy.Khv.RU (8.14.3/8.14.3/Fluffy/5.4.1) with ESMTP id n95Cf9rb059617
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 5 Oct 2009 23:41:13 +1100 (VLAST)
	(envelope-from fluffy@FreeBSD.org)
Message-Id: <1254746473.59551@Fluffy.Khv.RU>
Date: Mon, 5 Oct 2009 23:41:13 +1100
From: "Dima Panov" <fluffy@FreeBSD.org>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject: security/xmlsec1: use -fPIC on 64-bit platforms
X-Send-Pr-Version: gtk-send-pr 0.4.9 
X-GNATS-Notify: johans@stack.nl

>Number:         139367
>Category:       ports
>Synopsis:       security/xmlsec1: use -fPIC on 64-bit platforms
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    johans
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 05 12:50:02 UTC 2009
>Closed-Date:    Mon Oct 05 17:37:51 UTC 2009
>Last-Modified:  Mon Oct 05 17:37:51 UTC 2009
>Originator:     Dima Panov
>Release:        FreeBSD 9.0-900002-CURRENT amd64
>Organization:
Fluffy.Khv.RU 
>Environment:


System: FreeBSD 9.0-900002-CURRENT #0: Mon Sep 28 20:21:14 VLAST 2009
    fluffy@Fluffy.Khv.RU:/usr/obj/usr/src/sys/Spot



>Description:


security/xmlsec1: use -fPIC on 64-bit platforms


>How-To-Repeat:


on amd64 or ia64:

make -DWITH_NSS -DWITH_GNUTLS all install





>Fix:


--- xmlsec1.diff begins here ---
Index: security/xmlsec1/Makefile
===================================================================
RCS file: /home/ncvs/ports/security/xmlsec1/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- security/xmlsec1/Makefile	1 Oct 2009 20:10:54 -0000	1.25
+++ security/xmlsec1/Makefile	5 Oct 2009 12:38:50 -0000
@@ -55,6 +55,10 @@
 
 .include <bsd.port.pre.mk>
 
+.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
+CFLAGS+=	-fPIC
+.endif
+
 .if defined(WITH_GNUTLS)
 CONFIGURE_ARGS+=	--with-gnutls="${LOCALBASE}"
 LIB_DEPENDS+=		gnutls:${PORTSDIR}/security/gnutls
--- xmlsec1.diff ends here ---



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->johans 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Oct 5 12:50:11 UTC 2009 
Responsible-Changed-Why:  
johans@stack.nl => johans@ (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=139367 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Mon Oct 5 12:50:16 UTC 2009 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=139367 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: johans@stack.nl
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/139367: security/xmlsec1: use -fPIC on 64-bit platforms
Date: Mon, 5 Oct 2009 12:50:14 UT

 Maintainer of security/xmlsec1,
 
 Please note that PR ports/139367 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/139367
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org
State-Changed-From-To: feedback->closed 
State-Changed-By: johans 
State-Changed-When: Mon Oct 5 17:34:23 UTC 2009 
State-Changed-Why:  
I believe a better solution was already applied yesterday. 
Please update your ports tree and try again. 

Note that your patch only addressed a symptom and didn't fix the real issue 
(causing more subtle breakage elsewhere) 

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