According to the current code of ldconfig and ld, there's subtle difference in parsing of /etc/ld.so.conf by these two tools: * ldconfig interprets relative paths in includes relatively to the current directory it run in, and absolute path relatively to the current "chroot" directory, if set * ld interprets relative paths in includes relatively to the directory the parsed file is in, and apparently ignores the --sysroot setting for absolute paths and does not relativise them to this sysroot. dpkg-shlibdeps follows ldconfig, but always takes absolute paths relatively to the absolute root. Also, ldconfig's manpage doesn't mention include directive at all
Given you reported the bug only to the glibc side, does it mean you would like the glibc behaviour to be changed, and the binutils one to be kept unchanged? We definitely want ldconfig to interpret paths relative to the "chroot" directory (-r option), this is important to initialize a cache without having to first chroot into the directory. The manpage is provided by the manpages package and not by glibc. Aurelien
Hi, Actually, I want both sides to change: * ldconfig to interpret relative paths relatively to the directory the including file is in * ld to respect --sysroot when including (bugs with patches reported in Debian and upstream). Thanks, good to know, apparently, I need to file a bug against that package.