Source: reiserfsprogs
Version: 1:3.6.27-3
Severity: normal
Tags: patch

Hi,

reiserfsprogs (and mkreiserfs-udeb) ship the shared reiserfscore
library, and development files for it:
- libtool la file
- static library
- pkg-config file
Considering that the includes of the library were already not shipped,
it makes the rest of the files basically useless. Also, considering
that reiserfsprogs refers to an old Linux filesystem, it is very
unlikely that anyone will use the reiserfscore library at this point.

Hence, simply drop any development file, explicitly removing also the
includes (so it will play nicely with dh_missing in dh compat 12+).

Thanks,
-- 
Pino
--- a/debian/rules
+++ b/debian/rules
@@ -23,14 +23,20 @@ endif
 %:
        dh $@ 
 
+override_dh_auto_install:
+       dh_auto_install
+       # Do not ship development files
+       rm debian/tmp/usr/lib/*/*.a
+       rm debian/tmp/usr/lib/*/*.la
+       rm -r debian/tmp/usr/lib/*/pkgconfig/
+       rm -r debian/tmp/usr/include/
+
 override_dh_install:
        dh_install
        install -m 755 debian/fsck.reiserfs debian/$(DEB)/sbin
        install -m 755 debian/hooks/reiserfsprogs 
debian/$(DEB)/usr/share/initramfs-tools/hooks
        dh_link -p$(DEB) usr/share/man/man8/mkreiserfs.8.gz 
usr/share/man/man8/mkfs.reiserfs.8.gz
        dh_link -p$(DEB) usr/share/man/man8/reiserfsck.8.gz 
usr/share/man/man8/fsck.reiserfs.8.gz
-#      sed -i "/dependency_libs/ s/'.*'/''/" 
"$(CURDIR)/debian/reiserfsprogs/usr/lib/<la-file>"
-       sed -i "/dependency_libs/ s/'.*'/''/" `find . -name '*.la'`
 
 override_dh_makeshlibs:
        dh_makeshlibs --add-udeb=mkreiserfs-udeb

Reply via email to