Lintian's warnings : ldconfig call is useless and unsafe...
Hi,
To finish my work on fw4spl, I have to fix the 3 last lintian's issues.
W: fw4spl: postinst-has-useless-call-to-ldconfig
W: fw4spl: postrm-has-useless-call-to-ldconfig
W: fw4spl: postrm-unsafe-ldconfig
I don't understand why I get these errors. ldconfig is used to register the shared
libraries. For this warning, I think I'll override the lintian issue as it was done
for a lot of other packages [1]
Here is my postinst script :
if [ "$1" = "configure" ]; then
... && ldconfig
fi
But about the unsafe call to ldconfig, I thought fix it by adding this in postrm :
if [ "$1" = "remove" ]; then
... && ldconfig
fi
I've also try to do :
test "$1" = "remove" || exit 0
... && ldconfig
But it doesn't fix the issue, as expected... Is it not safe ? And why is it
useless ?
Thank you for your help,
Best regards,
Corentin
[1] https://lintian.debian.org/tags/postinst-has-useless-call-to-ldconfig.html
Reply to: