Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407743 - dev-libs/{nss,nspr}: nss.pc should not have -rpath flags
Summary: dev-libs/{nss,nspr}: nss.pc should not have -rpath flags
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-11 01:27 UTC by SpanKY
Modified: 2012-03-11 23:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2012-03-11 01:27:44 UTC
`pkg-config nss --libs` outputs "-Wl,-R/usr/lib64".  not sure why this is there (we add it with our own patch), but .pc files should not be forcing RPATH's to the system library paths.  i can't think of any reason why it would need this.

so if there's no reason for this, the following patch should fix things:

--- files/nss-3.12.5-gentoo-fixups.diff
+++ files/nss-3.12.5-gentoo-fixups.diff
@@ -204,7 +204,7 @@
 +Description: Network Security Services
 +Version: @NSS_MAJOR_VERSION@.@NSS_MINOR_VERSION@.@NSS_PATCH_VERSION@
 +Requires: nspr >= 4.8
-+Libs: -L${libdir} -lssl3 -lsmime3 -lnssutil3 -lnss3 -Wl,-R${libdir}
++Libs: -L${libdir} -lssl3 -lsmime3 -lnssutil3 -lnss3
 +Cflags: -I${includedir}
 +

--- files/nspr-4.8-pkgconfig-gentoo-3.patch
+++ files/nspr-4.8-pkgconfig-gentoo-3.patch
@@ -53,7 +53,7 @@
 +Name: NSPR
 +Description: The Netscape Portable Runtime
 +Version: @MOD_MAJOR_VERSION@.@MOD_MINOR_VERSION@.@MOD_PATCH_VERSION@
-+Libs: -L${libdir} -lplds@MOD_MAJOR_VERSION@ -lplc@MOD_MAJOR_VERSION@ -lnspr@MOD_MAJOR_VERSION@ -lpthread -Wl,-R${libdir}
++Libs: -L${libdir} -lplds@MOD_MAJOR_VERSION@ -lplc@MOD_MAJOR_VERSION@ -lnspr@MOD_MAJOR_VERSION@ -lpthread
 +Cflags: -I${includedir}
 +
Comment 1 Jory A. Pratt gentoo-dev 2012-03-11 23:54:22 UTC
nspr-4.9 already contained the fix, I have just added nss-3.13.3 to the tree which drops the rpath flag out of the pkgconfig file thanks for your report.