[Pkg-utopia-maintainers] Bug#876037: Bug#874585: dpkg-shlibdeps: does not parse Version References

Dimitri John Ledkov xnox at ubuntu.com
Sun Sep 17 23:03:00 UTC 2017


Hi,

On 17 September 2017 at 19:36, Michael Biebl <biebl at debian.org> wrote:
> Am 17.09.2017 um 20:13 schrieb Guillem Jover:
>
>> Reassigning both to gcc-7 to get this fixed there (assuming this is
>> not a binutils problem?), and to network-manager to workaround the
>> issue for now.
>
> Please elaborate what I'm supposed to do with this bug report in
> network-manager.
>

network-manager source tree includes a check whether or not glibc has
explicit_bzero function (introduced in 2.25) which is then used by
./src/systemd/src/basic/string-util.c which is then optimized out as
network-manager never uses that bit of code. However, when the call to
GBLIC's explicit_bzero is optimized out, the toolchain doesn't drop
version reference to GLIBC 2.25 and still demands that 2.25 is used,
even though none of the functions from 2.25 are still in use.
And worse off dpkg-shlibdeps generates dependency on 2.17, yet at
runtime the binaries fail and linker demands that GLIBC 2.25 is
installed.

The symptoms are that: when network-manager is built against glibc
from experimental, it as dpkg-shlibdeps generated dependency libc6 (>=
2.17), yet at runtime it fails with glibc << 2.25 like so:
# ldd /usr/sbin/NetworkManager
/usr/sbin/NetworkManager: /lib/x86_64-linux-gnu/libc.so.6: version
`GLIBC_2.25' not found (required by /usr/sbin/NetworkManager)
Thus one cannot exec NetworkManager.

I have two workarounds for this -
(a) one-liner to configure.ac to force not to use explicit_bzero
(b) drop all code that uses explicit_bzero.

Either one of these will do. Neither should be necessary, if the
toolchain would at the same time as optimising out the call to that
function would also correctly drop the version reference as well.

(a) avoid-explicit-bzero.patch
(b) glibc-2.25-abi-drop.patch

-- 
Regards,

Dimitri.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avoid-explicit-bzero.patch
Type: text/x-patch
Size: 568 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20170918/dbf019ca/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-2.25-abi-drop.patch
Type: text/x-patch
Size: 2956 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20170918/dbf019ca/attachment-0001.bin>


More information about the Pkg-utopia-maintainers mailing list