Skip to content
Snippets Groups Projects
Commit cafff52a authored by Aurelien Jarno's avatar Aurelien Jarno
Browse files

Remove ldconfig wrapper, new debhelper versions use the trigger directly

parent f1a4fcec
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,10 @@ glibc (2.22-0experimental2) UNRELEASED; urgency=medium
XC-Package-Type into Package-Type.
* debian/control.in/libc: drop conflicts on prelink (<= 0.0.20090311-1) as
we don't support Lenny to Stretch upgrades.
* debian/debhelper.in/libc-bin.{postinst,lintian-overrides},
debian/rules.d/debhelper.mk, debian/local/sbin/ldconfig: remove ldconfig
wrapper as new debhelper versions use the trigger instead of an explicit
call to ldconfig.
 
-- Aurelien Jarno <aurel32@debian.org> Thu, 10 Dec 2015 23:41:13 +0100
 
......
# ldconfig must be executable even when the libc is not configured, and
# thus must be linked statically
libc-bin: statically-linked-binary sbin/ldconfig.real
libc-bin: statically-linked-binary sbin/ldconfig
# pt_chown must be setuid root and in /usr/lib, otherwise non-root users
# won't be able to login
libc-bin: setuid-binary usr/lib/pt_chown 4755 root/root
libc-bin: sharedobject-in-library-directory-missing-soname usr/lib/pt_chown
# ldconfig.real doesn't have a manpage, since it's just ldconfig renamed
libc-bin: binary-without-manpage sbin/ldconfig.real
# these manpages have been moved to the manpages package
libc-bin: binary-without-manpage sbin/ldconfig
libc-bin: binary-without-manpage usr/bin/getent
......
......@@ -13,8 +13,6 @@ if [ "$1" = "configure" ] && [ "$2" = "" ] ; then
fi
if [ "$1" = "triggered" ]; then
LDCONFIG_NOTRIGGER=y
export LDCONFIG_NOTRIGGER
ldconfig || ldconfig --verbose
exit 0
fi
......
#!/bin/sh
if test $# = 0 \
&& test x"$LDCONFIG_NOTRIGGER" = x \
&& test x"$DPKG_MAINTSCRIPT_PACKAGE" != x \
&& dpkg-trigger --check-supported 2>/dev/null
then
if dpkg-trigger --no-await ldconfig; then
if test x"$LDCONFIG_TRIGGER_DEBUG" != x; then
echo "ldconfig: wrapper deferring update (trigger activated)"
fi
exit 0
fi
fi
exec /sbin/ldconfig.real "$@"
......@@ -31,13 +31,6 @@ $(patsubst %,$(stamp)binaryinst_%,$(DEB_ARCH_REGULAR_PACKAGES) $(DEB_INDEP_REGUL
dh_link -p$(curpass)
dh_bugfiles -p$(curpass)
if test "$(curpass)" = "libc-bin"; then \
mv debian/$(curpass)/sbin/ldconfig \
debian/$(curpass)/sbin/ldconfig.real; \
install -m755 -o0 -g0 debian/local/sbin/ldconfig \
debian/$(curpass)/sbin/ldconfig; \
fi
# when you want to install extra packages, use extra_pkg_install.
$(call xx,extra_pkg_install)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment