Bug#843809: check that executables don't link to libraries in /usr is broken wrt libsystemd-shared
Michael Biebl
biebl at debian.org
Wed Nov 9 20:57:35 GMT 2016
Am 09.11.2016 um 21:18 schrieb Michael Biebl:
> In a chroot, systemd and libsytemd-shared are not installed.
> We probably need to override LD_LIBRARY_PATH and point it to
> debian/systemd/lib/systemd/
This patch works to find libsystemd-shared:
> --- a/debian/rules
> +++ b/debian/rules
> @@ -326,7 +326,7 @@ ifeq (, $(filter nocheck, $(DEB_BUILD_OPTIONS)))
> debian/systemd/lib/systemd/system-generators/* \
> debian/udev/lib/systemd/systemd*; do \
> echo " $$e"; \
> - OUT=`env -u LD_PRELOAD ldd $$e` || continue; if echo "$$OUT" | grep -q /usr; then \
> + OUT=`env -u LD_PRELOAD LD_LIBRARY_PATH=debian/systemd/lib/systemd/ ldd $$e` || continue; if echo "$$OUT" | grep -q /usr; then \
> echo "ERROR: $$e links to /usr"; echo "$$OUT"; exit 1; \
> fi; \
> done
But now we have a different issue, ldd thinks, that liblz4 is in /lib.:
> + echo debian/systemd/lib/systemd/systemd
> debian/systemd/lib/systemd/systemd
> + env -u LD_PRELOAD LD_LIBRARY_PATH=debian/systemd/lib/systemd/ ldd debian/systemd/lib/systemd/systemd
> + OUT= linux-vdso.so.1 (0x00007ffeb3110000)
> libsystemd-shared-232.so => debian/systemd/lib/systemd/libsystemd-shared-232.so (0x00007f886a9a3000)
...
> liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f8868c82000)
This is because of merged-usr. This more or less renders the whole check
useless once we build in a chroot which has been created with
debootstrap --merged-usr
Dunno, maybe we should just drop the check again. Thoughts?
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20161109/03dc899f/attachment-0002.sig>
More information about the Pkg-systemd-maintainers
mailing list