-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dominik Stadler <[EMAIL PROTECTED]> writes:
> When running lintian, I always get the following warning: > > W: atleto: postrm-unsafe-ldconfig > N: > N: The postrm script calls ldconfig unsafely. The postrm must only call > N: ldconfig when given the argument "remove". > N: > N: Refer to Policy Manual, section 9.1.1 for details. > N: > > But I cannot find why the script should be wrong, Section 9.1.1. does not > really tell me why I should avoid this, but does not tell me why I am still > getting the warning. I am just calling ldconfig when "remove" is passed. I > also tested this on the commandline. > > case "$1" in > purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) > > ;; > > remove) > > /sbin/ldconfig This was (and maybe still is) a lintian bug. It can't cope with all the different ways of testing if $1 is "remove". FWIW, I changed the postrm in libgimpprint1 to do: if [ "$1" = "remove" ]; then ldconfig fi BTW, nowadays dephelper (dh_makeshlibs) adds the ldconfig call for you automatically, so you don't need to do it yourself (assuming you're packaging a shared library here). Regards, Roger - -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ GPG Public Key: 0x25BFB848. Please sign and encrypt your mail. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/> iD8DBQE/SPKyVcFcaSW/uEgRAv4MAJwKxCR2cS6tTuG86zASO1Xsa1rGUgCgjgnM BODisNO74YEyLHdjVFdoZ90= =rwpS -----END PGP SIGNATURE-----