Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 438702

Summary: sys-auth/nss_ldap-265 encodes wrong libc version in library name if compiling for $ROOT
Product: Gentoo Linux Reporter: Dennis Schridde <devurandom>
Component: [OLD] Core systemAssignee: LDAP Herd <ldap-bugs>
Status: UNCONFIRMED ---    
Severity: normal CC: prometheanfire, robbat2
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dennis Schridde 2012-10-17 13:10:19 UTC
sys-auth/nss_ldap-265's toplevel Makefile.am contains:
LIBC_VERS = $(shell ls /lib/$(MULTI_OS_DIRECTORY)/libc-*.so | tail -n 1 | sed -e 's|.*libc-\(.*\)\.so|\1|')
NSS_LDAP_LIBC_VERSIONED = libnss_ldap-$(LIBC_VERS).so

This will get the wrong LIBC_VERS if the libc in $ROOT and / have a different version. Since it is $ROOT related, which is Gentoo specific, I did not file a complaint upstream. However, maybe this can be fixed by adding a $(PREFIX) at the appropriate position in the Makefile.am, which would be a fix that is upstreamable.

Reproducible: Always