Package: dpkg
Version: 1.15.3.1
Severity: wishlist

Hi,

on irc the issue was raised that a package didn't call ldconfig in
postinst and I thought to myself: Every library package has a call to
ldconfig? That is so stupid. Don't we have dpkg triggers for that sort
of thing now?

As it turns out dpkg triggers are inadequate for the job because:

- file triggers are executed before the file changes, ldconfig must
run after

- file triggers on directories include subdirs, no need to run
ldconfig is /lib/modules/* changes

- file triggers can't have wildcards (at least the docs don't mention
it) so /usr/lib/*.so.* wont work either.

- an explicit trigger would mean every package needs to call
dpkg-trigger saving nothing for maintainer scripts, would only reduce
the number of ldconfig runs


So what we would need here would be a non-recursive directory trigger
on /lib and /usr/lib that runs at the end of a dpkg run or possibly
before every postinst.

[The other (not dpkg related) change to allow a single ldconfig run at
the end would be in policy requiring libraries to include the link
ldconfig would create. That is currently only a should directive.]

MfG
        Goswin

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable-i386
  APT policy: (1001, 'unstable-i386'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29.4-frosties-2 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages dpkg depends on:
ii  coreutils                     7.4-2      The GNU core utilities
ii  libc6                         2.10.1-2   GNU C Library: Shared libraries
ii  lzma                          4.43-14    Compression method of 7z format in

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt                           0.7.22.2   Advanced front-end for dpkg

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to