[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#913806: libc-bin: parsing of ld.so.conf by ldconfig and ld differs



Package: libc-bin
Version: 2.27-8
Severity: normal

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

-- 
Cheers,
  Andrej


Reply to: