Debian Bug report logs -
#845418
mklibs-copy: add support for RUNPATH (for newer binutils)
Reported by: Cyril Brulebois <kibi@debian.org>
Date: Wed, 23 Nov 2016 06:57:01 UTC
Severity: important
Tags: patch
Found in version mklibs/0.1.42
Fixed in version mklibs/0.1.43
Done: Cyril Brulebois <kibi@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, kibi@debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#845414; Package src:cdebconf.
(Wed, 23 Nov 2016 06:57:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Cyril Brulebois <kibi@debian.org>:
New Bug report received and forwarded. Copy sent to kibi@debian.org, Debian Install System Team <debian-boot@lists.debian.org>.
(Wed, 23 Nov 2016 06:57:03 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Source: cdebconf
Version: 0.219
Severity: grave
Justification: renders package unusable
This update has to stay away from testing since it generates the following
issue during the build:
| # HACK ALERT: X.Org modules are excluded from the scan as mklibs
| # is unable to find symbols provided by the /usr/bin/Xorg binary
| mklibs-copy -L ./tmp/netboot/tree/usr/lib -L ./tmp/netboot/tree/usr/lib/x86_64-linux-gnu \
| -L ./tmp/netboot/udeblibs -v -d ./tmp/netboot/tree/lib --root=./tmp/netboot/tree \
| -L ./tmp/netboot/tree/usr/lib/cdebconf/frontend \
| -ltext.so -lnewt.so \
| `find ./tmp/netboot -type f -a \( -perm /0111 -o -name '*.so' -o -name '*.so.*' \) | \
| grep -v udeblibs | grep -v 'usr/lib/xorg/modules/.*\.so'`
| INFO: Using /lib64/ld-linux-x86-64.so.2 as dynamic linker
| INFO: library reduction pass 1
| File not found:libdebconf.so
| Makefile:485: recipe for target 'stamps/tree-netboot-stamp' failed
This happened for daily builds, and is reproducible on sid devel chroots,
on various architectures.
Based on a hunch, I investigated a few things around binutils: downgrading
it to try a debian-installer build, with or without cdebconf udebs rebuilt
against the said binutils. Results:
cdebconf 0.219 (rebuilt with 2.27.51.20161108-1) => debian-installer builds fine, with old & new binutils.
cdebconf 0.219 (rebuilt with 2.27.51.20161118-2) => debian-installer FTBFS, with old & new binutils.
I'll try and investigate a bit more, maybe some other packages are going
to be affected by this, but cdebconf is special considering it has
plugins; also, binutils had commits touching the linker…
On not entirely unrelated notes:
- cdebconf will FTBFS on buildds due to this x11-common bug: #845405
(seen with jenkins jobs going red as noticed on IRC)
- d-i will FTBFS for a while on x86 due to the X11 transition.
KiBi.
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#845414; Package src:cdebconf.
(Wed, 23 Nov 2016 07:18:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Cyril Brulebois <kibi@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Wed, 23 Nov 2016 07:18:02 GMT) (full text, mbox, link).
Message #10 received at 845414@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Cyril Brulebois <kibi@debian.org> (2016-11-23):
> | mklibs-copy -L ./tmp/netboot/tree/usr/lib -L ./tmp/netboot/tree/usr/lib/x86_64-linux-gnu \
> | -L ./tmp/netboot/udeblibs -v -d ./tmp/netboot/tree/lib --root=./tmp/netboot/tree \
> | -L ./tmp/netboot/tree/usr/lib/cdebconf/frontend \
> | -ltext.so -lnewt.so \
> | `find ./tmp/netboot -type f -a \( -perm /0111 -o -name '*.so' -o -name '*.so.*' \) | \
> | grep -v udeblibs | grep -v 'usr/lib/xorg/modules/.*\.so'`
> | INFO: Using /lib64/ld-linux-x86-64.so.2 as dynamic linker
> | INFO: library reduction pass 1
> | File not found:libdebconf.so
> | Makefile:485: recipe for target 'stamps/tree-netboot-stamp' failed
>
> This happened for daily builds, and is reproducible on sid devel chroots,
> on various architectures.
>
> Based on a hunch, I investigated a few things around binutils: downgrading
> it to try a debian-installer build, with or without cdebconf udebs rebuilt
> against the said binutils. Results:
>
> cdebconf 0.219 (rebuilt with 2.27.51.20161108-1) => debian-installer builds fine, with old & new binutils.
> cdebconf 0.219 (rebuilt with 2.27.51.20161118-2) => debian-installer FTBFS, with old & new binutils.
>
> I'll try and investigate a bit more, maybe some other packages are going
> to be affected by this, but cdebconf is special considering it has
> plugins; also, binutils had commits touching the linker…
As expected, libdebconf.so didn't change too much: nm -D and objdump -x
don't show any differences before/after. But binaries depending on it do
change; let's look at /usr/lib/cdebconf/debconf for example (still from the
cdebconf package):
| (sid-amd64-devel)kibi@wodi:~/debian-installer/packages$ diff -u /tmp/debconf.objdump.{ok,ko}
| --- /tmp/debconf.objdump.ok 2016-11-23 08:09:37.715596978 +0100
| +++ /tmp/debconf.objdump.ko 2016-11-23 08:09:42.735672870 +0100
| @@ -29,7 +29,7 @@
| NEEDED libpthread.so.0
| NEEDED libdebconf.so
| NEEDED libc.so.6
| - RPATH /usr/lib/cdebconf
| + RUNPATH /usr/lib/cdebconf
| INIT 0x0000000000000f58
| FINI 0x0000000000001d94
| INIT_ARRAY 0x0000000000202da8
Let's see if I can do something with mklibs to account for this change.
KiBi.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#845414; Package src:cdebconf.
(Wed, 23 Nov 2016 07:57:07 GMT) (full text, mbox, link).
Acknowledgement sent
to Cyril Brulebois <kibi@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>.
(Wed, 23 Nov 2016 07:57:07 GMT) (full text, mbox, link).
Message #15 received at 845414@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Control: clone 845414 -1
Control: reassign -1 mklibs-copy 0.1.42
Control: retitle -1 mklibs-copy: add support for RUNPATH (for newer binutils)
Control: severity -1 important
Control: tags -1 patch pending
Control: block 845414 by -1
Cyril Brulebois <kibi@debian.org> (2016-11-23):
> As expected, libdebconf.so didn't change too much: nm -D and objdump -x
> don't show any differences before/after. But binaries depending on it do
> change; let's look at /usr/lib/cdebconf/debconf for example (still from the
> cdebconf package):
> | (sid-amd64-devel)kibi@wodi:~/debian-installer/packages$ diff -u /tmp/debconf.objdump.{ok,ko}
> | --- /tmp/debconf.objdump.ok 2016-11-23 08:09:37.715596978 +0100
> | +++ /tmp/debconf.objdump.ko 2016-11-23 08:09:42.735672870 +0100
> | @@ -29,7 +29,7 @@
> | NEEDED libpthread.so.0
> | NEEDED libdebconf.so
> | NEEDED libc.so.6
> | - RPATH /usr/lib/cdebconf
> | + RUNPATH /usr/lib/cdebconf
> | INIT 0x0000000000000f58
> | FINI 0x0000000000001d94
> | INIT_ARRAY 0x0000000000202da8
>
> Let's see if I can do something with mklibs to account for this change.
It seems it's sufficient to teach mklibs-copy that it can handle RPATH and
RUNPATH in the same way. I've successfully tested a patch that implements
this change, mixing both old and new binaries.
I've managed to build netboot and netboot-gtk images (fetching udebs from
testing to avoid the X11 transition, but pulling cdebconf udebs from sid),
and everything seems to work as intended: build time is OK, and run time
shows cdebconf starting properly (text or gtk).
I think I'll upload mklibs with that patch soon, and I'll probably close
the cdebconf bug report only when that mklibs update reaches testing. With
a little chance, the X11 transition won't last too long, and daily builds
might confirm things are looking good everywhere.
Patch attached for reference.
KiBi.
[0001-Add-support-for-DT_RUNPATH-in-addition-to-DT_RPATH.patch (text/x-diff, attachment)]
[signature.asc (application/pgp-signature, inline)]
Bug 845414 cloned as bug 845418
Request was from Cyril Brulebois <kibi@debian.org>
to 845414-submit@bugs.debian.org.
(Wed, 23 Nov 2016 07:57:07 GMT) (full text, mbox, link).
Bug reassigned from package 'src:cdebconf' to 'mklibs-copy'.
Request was from Cyril Brulebois <kibi@debian.org>
to 845414-submit@bugs.debian.org.
(Wed, 23 Nov 2016 07:57:08 GMT) (full text, mbox, link).
No longer marked as found in versions cdebconf/0.219.
Request was from Cyril Brulebois <kibi@debian.org>
to 845414-submit@bugs.debian.org.
(Wed, 23 Nov 2016 07:57:08 GMT) (full text, mbox, link).
Marked as found in versions mklibs/0.1.42.
Request was from Cyril Brulebois <kibi@debian.org>
to 845414-submit@bugs.debian.org.
(Wed, 23 Nov 2016 07:57:09 GMT) (full text, mbox, link).
Changed Bug title to 'mklibs-copy: add support for RUNPATH (for newer binutils)' from 'cdebconf: makes debian-installer FTBFS due to libdebconf.so issues (binutils)'.
Request was from Cyril Brulebois <kibi@debian.org>
to 845414-submit@bugs.debian.org.
(Wed, 23 Nov 2016 07:57:10 GMT) (full text, mbox, link).
Severity set to 'important' from 'grave'
Request was from Cyril Brulebois <kibi@debian.org>
to 845414-submit@bugs.debian.org.
(Wed, 23 Nov 2016 07:57:10 GMT) (full text, mbox, link).
Added tag(s) patch and pending.
Request was from Cyril Brulebois <kibi@debian.org>
to 845414-submit@bugs.debian.org.
(Wed, 23 Nov 2016 07:57:11 GMT) (full text, mbox, link).
Added indication that bug 845418 blocks 845414
Request was from Cyril Brulebois <kibi@debian.org>
to 845414-submit@bugs.debian.org.
(Wed, 23 Nov 2016 07:57:12 GMT) (full text, mbox, link).
Reply sent
to Cyril Brulebois <kibi@debian.org>:
You have taken responsibility.
(Wed, 23 Nov 2016 09:06:15 GMT) (full text, mbox, link).
Notification sent
to Cyril Brulebois <kibi@debian.org>:
Bug acknowledged by developer.
(Wed, 23 Nov 2016 09:06:15 GMT) (full text, mbox, link).
Message #36 received at 845418-close@bugs.debian.org (full text, mbox, reply):
Source: mklibs
Source-Version: 0.1.43
We believe that the bug you reported is fixed in the latest version of
mklibs, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 845418@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Cyril Brulebois <kibi@debian.org> (supplier of updated mklibs package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Wed, 23 Nov 2016 09:03:52 +0100
Source: mklibs
Binary: mklibs mklibs-copy
Architecture: source
Version: 0.1.43
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Cyril Brulebois <kibi@debian.org>
Description:
mklibs - Shared library reduction script
mklibs-copy - Shared library reduction script
Closes: 845418
Changes:
mklibs (0.1.43) unstable; urgency=medium
.
* Add support for DT_RUNPATH in addition to DT_RPATH (Closes: #845418).
Main reasons to do so include:
- according to the elf.h header, the latter is deprecated.
- new versions of binutils generate DT_RUNPATH entries instead of
DT_RPATH ones, as detailed in cdebconf's #845414.
Checksums-Sha1:
93800b57dba16c539e0439f4c202c89e29dc4d22 1725 mklibs_0.1.43.dsc
79c6af6e6dfa0f7d7c30a903b21d81a180b39a43 22572 mklibs_0.1.43.tar.xz
Checksums-Sha256:
a6c4d411b929e51a3d2fcef77b3feaa4d40955b37ef9d273f27e3fb226cfc4da 1725 mklibs_0.1.43.dsc
6f0cf24ade13fff76e943c003413d85c3e497c984c95c1ecea1c9731ca86f13c 22572 mklibs_0.1.43.tar.xz
Files:
bb23e26f9e494f40b430738e438cb8e0 1725 devel optional mklibs_0.1.43.dsc
39b08a173454e5210ab3f598e94179bf 22572 devel optional mklibs_0.1.43.tar.xz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBAgAGBQJYNU4XAAoJEP+RSvDCs1UgCpYP/A77gFoupaYRowF9b0DQsRt8
s2rlWyV4vk8UrEs3Wy1C+7KP9zLjVlZHT3bVMeDvxjF/Z1cTlJ8Baz2LbPhqwRYQ
3N6sG8/8HOH0Vi5ZWZf+BhBPZOs3FOKsO/TW7Hs7+gMQDl1WPiQaQl9msdjuAe5P
02DzMSFeNCakvoM2VWeOJZEOcyULnfT2u2PIydeWaqSX+8l1xC95P7Bmh4BvD6pi
eymgzYqWRhxp+Im7pLotXVzuoXyo+gNqserHyrCMA6xkJAxvVx58UfAenFt3yYBl
pTe+CnVDAM0N/qidmUvZX4/4pmfXDRusi0hAUc2SttW37P6G/lSvWa/bXExnSgX0
x6OhW9jn3xpOR6dWbYIH7sj+MtFGERw0XiuyBZ5XSw4eVHUmcqpIbEheb1Jsa5op
eyiFM8slpdVNvqqCV3AV/CtS1e5/vLY8oDE7Y8PYRjYWuHo/YDFfelzFU6cs/nxq
JMBSntBMFr0lT7LVhbiuB6xZGOkYW9McaDSFWtC33uoT7Jb40E9F9kH2iZF0cSNV
udLl9Gvkq2ANFpbTP00d5IP4f7LLNrWrxFESMPFMc2mVg2xLU6hY8xHrCc3aXutI
hwGTQitqm7R5Hmb5TS5G/9CBoGG0UGukbLavvPL/5UUu/mZ7ryHVkMnvIAOChTpl
CfEsN/GGPJuKCvt8rVKb
=fmo/
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Thu, 29 Dec 2016 07:52:29 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jun 4 06:50:26 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.