<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">Re-reading this bug – filed 12 years ago – I have to agree with Joey Hess (and I find my own tone from 12 years ago pretty bad, sorry about that!): it’s not a good idea to rely on the contents of /etc/ld.so.conf.</div><div class=""><br class=""></div><div class="">It’s less big a deal than it used to be because of /etc/ld.so.conf.d/* which is where other packages would change the search path, but it’s still an issue because an admin might have changed the local config and this will affect package builds.</div><div class=""><br class=""><blockquote type="cite" class="">Le 30 sept. 2016 à 02:42, Olly Betts <<a href="mailto:olly@survex.com" class="">olly@survex.com</a>> a écrit :<br class="">$ /sbin/ldconfig -N -X -v -f /dev/null 2>/dev/null|sed 's,^\(/.*\):\( (.*)\)\?$,\1,p;d’</blockquote><div class=""><br class=""></div><div class="">This approach looks very good to me; here’s perhaps a lighter sed:</div><div class="">sed -n '/^\//s#:$##p’</div><div class="">(match lines leading with slash, remove trailing colon and print them)</div><br class=""></div><div class="">However it might be worth bringing this discussion to Debian Policy as this currently said that /etc/ld.so.conf contents must be used.</div><div class=""><a href="https://www.debian.org/doc/debian-policy/ch-sharedlibs.html#s-ldconfig" class="">https://www.debian.org/doc/debian-policy/ch-sharedlibs.html#s-ldconfig</a></div><div class=""><br class=""></div><div class="">Another perhaps smarter approach would be to do away with postinst requirements entirely by installing a ldconfig file-based trigger in libc for *.so files under interesting directories. This would let libc define when to run libc’s ldconfig rather than having each shared library package carry a build-time and install time snippet…</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">- Loïc Minier</div></body></html>