Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29210 - sys-libs/glibc: --enable-static-nss
Summary: sys-libs/glibc: --enable-static-nss
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-20 11:50 UTC by Sascha Silbe
Modified: 2003-10-02 12:03 UTC (History)
0 users

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


Attachments
sys-libs/glibc-2.3.2-r1: use --enable-static-nss (glibc-2.3.2-r1-static-nss.patch,288 bytes, patch)
2003-09-20 11:52 UTC, Sascha Silbe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Silbe 2003-09-20 11:50:33 UTC
The attached patch lets glibc build static versions of libnss_{files,dns}, too.
This enables statically linked binaries to use /etc/hosts and the like.


Reproducible: Always
Steps to Reproduce:
Comment 1 Sascha Silbe 2003-09-20 11:52:44 UTC
Created attachment 18043 [details, diff]
sys-libs/glibc-2.3.2-r1: use --enable-static-nss
Comment 2 Sascha Silbe 2003-09-20 14:23:28 UTC
Forget this patch for now. --enable-static-nss is broken and likely not to be fixed by the glibc maintainers:
http://www.geocrawler.com/archives/3/360/1998/12/0/1999096/
http://lists.nas.nasa.gov/archives/ext/linux-security-audit/2001/02/msg00062.html
http://www.gnu.org/software/libc/FAQ.html#s-2.22

Even the linker call given in the FAQ does not work...

I'll have to swallow the bitter pill and include the libnss_{files,dns}.so* files in initrds and chroots. :(

Comment 3 Sascha Silbe 2003-10-02 12:03:52 UTC
Closing since it's a glibc problem Gentoo can't fix (easily).