Red Hat Bugzilla – Bug 177123
Follow glibc conventions for nss modules
Last modified: 2014-08-31 19:27:58 EDT
This is the spec file part of:
This should probably be applied to RHEL4 and rawhide as well.
It will fix libnss_<module>.so dangling symlinks when removing the samba-common RPM.
Created attachment 122879 [details]
I am puzzled by the patch. First it shows different patch names then the ones I
see in the samba-3.0.9-1.3E.5 specfile. Second it seems to add the samba version
to the sonames instead of the glibc version. Third I did expect the correct name
to be libnss_<module>.so.<glibc-version>.
Anyhow, my rpmbuild fails with
make: *** No rule to make target `nsswitch/libnss_wins-3.0.9.so'. Stop.
error: Bad exit status from /var/tmp/rpm-tmp.70885 (%build)
Either the patch is wrong, or I did apply it badly, or both.
Matthias, the patch was generated against RHEL4, and might need a bit more work
to get working on RHEL3.
I would like to see the non-spec part of the patch accepted upstream before I do
any more work on this though.
"Third I did expect the correct name to be libnss_<module>.so.<glibc-version>."
Look at your /lib/linss*, the glibc provided modules use
Using "libnss_<module>.so.<glibc-version>" would be confusing, as the soname is
what is supposed to be after the .so.
This issue is on Red Hat Engineering's list of planned work items
for the upcoming Red Hat Enterprise Linux 3.8 release. Engineering
resources have been assigned and barring unforeseen circumstances, Red
Hat intends to include this item in the 3.8 release.
After examining the issue, and talking with Nalin, I've decided that this
patch is basically cosmetic, and RHEL-3 is too close to historical status to
justify making a change like this at this late date. It will be included in
RHEL-5, and we're still debating whether to include this change in RHEL-4.