Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476574 - =dev-libs/nss-3.15 - Harcoded lib64 path on i686 is problematic.
Summary: =dev-libs/nss-3.15 - Harcoded lib64 path on i686 is problematic.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-11 20:30 UTC by Bertrand Jacquin
Modified: 2013-08-12 17:27 UTC (History)
1 user (show)

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


Attachments
nss-3.15.ebuild-BJA-multilib.diff (nss-3.15.ebuild-BJA-multilib.diff,488 bytes, patch)
2013-07-11 20:57 UTC, Bertrand Jacquin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2013-07-11 20:30:15 UTC
On a ~x86 arch gentoo,  /usr/lib/pkgconfig/nss.pc contain :

prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib64
includedir=${prefix}/include/nss

Which is obviously wrong on x86 system. Looking at the source code, lib64 is hardcoded in the following file:

./config/Makefile:          -e "s,@libdir@,\$${prefix}/lib64," \

This non regarding the arch destination.

This have impact on all package depending on nss, like icedtea

Reproducible: Always
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-11 20:43:18 UTC
Please don't CC developers manually; x86 is an arch team unrelated to this bug.
Comment 2 Bertrand Jacquin 2013-07-11 20:44:57 UTC
I don't known how is build config/Makefile in nss-3.15.tar.gz but it seems that it's builded from http://hg.mozilla.org/mozilla-central/file/8aca531ff163/config/Makefile.in by mozilla team before published.
Comment 3 Bertrand Jacquin 2013-07-11 20:45:49 UTC
(In reply to Tom Wijsman (TomWij) from comment #1)
> Please don't CC developers manually; x86 is an arch team unrelated to this
> bug.

Oh sorry, I mingled 'Hardware' field and arches.
Comment 4 Bertrand Jacquin 2013-07-11 20:57:44 UTC
Created attachment 353116 [details, diff]
nss-3.15.ebuild-BJA-multilib.diff

Here is a fix for ebuild by adapting sed expressions to the new Makefile format
Comment 5 Jory A. Pratt gentoo-dev 2013-08-11 21:35:59 UTC
The issue comes from that patch that was ported forward. I have include the updated sed expression in the overlay and will do a -r1 in a few days.
Comment 6 Jory A. Pratt gentoo-dev 2013-08-11 21:41:13 UTC
Pushed due to needing 3.15.1 for security bug on seamonkey.
Comment 7 Bertrand Jacquin 2013-08-12 17:27:36 UTC
(In reply to Jory A. Pratt from comment #5)
> The issue comes from that patch that was ported forward. I have include the
> updated sed expression in the overlay and will do a -r1 in a few days.

I can confirm this is OK. Thanks Jory