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

Bug#833728: ldconfig causes FTBFS by creating spurious symlink to symlink



Package: libc-bin
Version: 2.19-18+deb8u4
Severity: important
File: /sbin/ldconfig
Tags: upstream

Hi,

This bug is akin to 249122, but (in my opinion) sufficiently different that it
should be tracked as a separate bug.

A bug has recently been open against yorick which FTBFS (831406) and mpich
(831442) in which the following happens, due to the behaviour of ldconfig:

libmpich12 and libopenmpi10 provide /usr/lib/libmpi.so as an alternative that
may point to either
 /usr/lib/x86_64-linux-gnu/libmpich.so.12
or
 /usr/lib/openmpi/lib/libmpi.so

When mpich is installed first, ldconfig detects that the SONAME for
/usr/lib/libmpi.so is libmpich.so.12 and creates the symlink
/usr/lib/libmpich.so.12.

If one then installs libopenmpi10, the alternative is set automatically to
/usr/lib/openmpi/lib/libmpi.so. We then have /usr/lib/libmpich.so.12 that
points to /usr/lib/openmpi/lib/libmpi.so, which may lead to badly linked
binaries and

Since about one month, the autobuilders have started to always install mpich
before openmpi, which is what causes the FTBFS in yorick. There is no way this
can be fixed in the yorick package. There may be workarounds possible to
implement in mpich and openmpi, but I would argue that the bug really lies in
ldconfig.

ldconfig could detect that /usr/lib/libmpi.so is an alternative (subject to
changes), and not operate on such links.

ldconfig could also detect that /usr/lib/libmpi.so is points (indirectly) to a
correctly named file in a directory that is listed in ld.so.conf, and not
operate in this case.

Since this issue eventually causes an FTBFS, I set the severity to important.
If you decide that this is not appropriate, any guidance to work around the
issue would be appreciated.

Kind regards, Thibaut.



-- System Information:
Debian Release: 8.4
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-0.bpo.1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libc-bin depends on:
ii  libc6  2.19-18+deb8u4

libc-bin recommends no packages.

libc-bin suggests no packages.

-- no debconf information


Reply to: