diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2023-12-19 02:49:06 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2023-12-19 14:18:57 +0100 |
commit | 6729c27b67c99cdbdf5f78f4a557422fc716c085 (patch) | |
tree | c392de0d4bdf09d0fd1c2010f5a50e856960e732 /dilos/core/tdegraphics | |
parent | 6bc6d6e3f42e6a5d04aede27066aa168e8b7ebe9 (diff) | |
download | tde-packaging-6729c27b67c99cdbdf5f78f4a557422fc716c085.tar.gz tde-packaging-6729c27b67c99cdbdf5f78f4a557422fc716c085.zip |
DEB: Automatically add ldconfig trigger if the package contains plugins.
As a result, it is no longer necessary to enforce ldconfig in postinst
and postrm scripts and this solves the problem with packages where the
ldconfig was not called after installation, but it was needed.
This resolves issue TDE/tdemultimedia#29.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 34145f8176dbda8170684ae8fcdea0787a904f66)
Diffstat (limited to 'dilos/core/tdegraphics')
-rw-r--r-- | dilos/core/tdegraphics/debian/cdbs/debian-tde.mk | 5 | ||||
-rw-r--r-- | dilos/core/tdegraphics/debian/kfaxview-trinity.lintian | 2 | ||||
-rw-r--r-- | dilos/core/tdegraphics/debian/kuickshow-trinity.lintian | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/dilos/core/tdegraphics/debian/cdbs/debian-tde.mk b/dilos/core/tdegraphics/debian/cdbs/debian-tde.mk index e219264f1..82994a844 100644 --- a/dilos/core/tdegraphics/debian/cdbs/debian-tde.mk +++ b/dilos/core/tdegraphics/debian/cdbs/debian-tde.mk @@ -202,6 +202,11 @@ $(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%: install -p -D -m644 debian/$(cdbs_curpkg).presubj \ debian/$(cdbs_curpkg)/usr/share/bug/$(cdbs_curpkg)/presubj; \ fi + if test -d debian/$(cdbs_curpkg)/usr/lib && \ + test $$(find debian/$(cdbs_curpkg)/usr/lib -name "*.so" | wc -l) -gt 0; then \ + echo "# Triggers added by cdbs/debian-tde.mk" >> debian/.debhelper/generated/$(cdbs_curpkg)/triggers; \ + echo "activate-noawait ldconfig" >> debian/.debhelper/generated/$(cdbs_curpkg)/triggers; \ + fi binary-install/$(DEB_SOURCE_PACKAGE)-doc-html:: set -e; \ diff --git a/dilos/core/tdegraphics/debian/kfaxview-trinity.lintian b/dilos/core/tdegraphics/debian/kfaxview-trinity.lintian index 5bcc6c252..37dda0ca2 100644 --- a/dilos/core/tdegraphics/debian/kfaxview-trinity.lintian +++ b/dilos/core/tdegraphics/debian/kfaxview-trinity.lintian @@ -1,4 +1,2 @@ kfaxview-trinity: no-shlibs-control-file usr/lib/libkfaximage.so -kfaxview-trinity: postinst-must-call-ldconfig usr/lib/libkfaximage.so -kfaxview-trinity: postrm-should-call-ldconfig usr/lib/libkfaximage.so kfaxview-trinity: package-name-doesnt-match-sonames libkfaximage diff --git a/dilos/core/tdegraphics/debian/kuickshow-trinity.lintian b/dilos/core/tdegraphics/debian/kuickshow-trinity.lintian index 1d80f308d..a1f267411 100644 --- a/dilos/core/tdegraphics/debian/kuickshow-trinity.lintian +++ b/dilos/core/tdegraphics/debian/kuickshow-trinity.lintian @@ -1,4 +1,2 @@ kuickshow-trinity: no-shlibs-control-file usr/lib/libtdeinit_kuickshow.so -kuickshow-trinity: postinst-must-call-ldconfig usr/lib/libtdeinit_kuickshow.so -kuickshow-trinity: postrm-should-call-ldconfig usr/lib/libtdeinit_kuickshow.so kuickshow-trinity: package-name-doesnt-match-sonames libtdeinit-kuickshow |