On 12/3/20 10:18 PM, Bruce Dubbs via blfs-dev wrote:
In some cases PAM may use Berkeley DB libraries. We should probably
change the bdb build to move the libraries to /lib:
...
../dist/configure --prefix=/usr \
--libdir=/lib \ <-- added
--enable-compat185 \
--enable-dbm \
--disable-static \
--enable-cxx &&
...
ln -sv ../../lib/$(readlink /lib/libdb.so) /usr/lib/libdb.so
ln -sv ../../lib/$(readlink /lib/libdb.so) /usr/lib/libdb-5.so
ln -sv ../../lib/$(readlink /lib/libdb_cxx.so) /usr/lib/libdb_cxx.so
ln -sv ../../lib/$(readlink /lib/libdb_cxx.so) /usr/lib/libdb_cxx-5.so
rm -fv /lib/{libdb*.la,libdb{,-5}.so,libdb_cxx{,-5}.so}
This also deletes the .la files which are not needed and would be wrong
anyway.
What do you think?
As PAM does not use the c++ libraries libdb_cxx, these two lines may
well be skipped.
In general, I suppose that pam_userdb.so is used be very few people, if
at all, so maybe the people using it and at the same time having /lib on
a separate partition than /usr actually amounts to zero uses.
I a using nss-pam-ldapd on some boxes to do ldap authentication with
PAM, and there, I also do not have the ldap libraries in /lib.
Bye
Tim
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page