Bug#932411: lintian: duplicate-files could suggest how to fix it
Package: lintian
Version: 2.16.0
Severity: wishlist
Control: tags -1 patch
Based on
https://wiki.debian.org/dedup.debian.net#Tips_for_reducing_duplication_in_packages
How: jdupes is simpler, but rdfind+symlinks is currently more popular (8
vs 42 according to codesearch). This may be because jdupes is newer,
but I don't know.
When: Needs to be after install, including of documentation if that is
what is affected (dh_installdocs and dh_installexamples are after
dh_install). I chose dh_link as the most appropriately named of the
steps after that.
Testing:
https://salsa.debian.org/science-team/statsmodels/commit/c8a95ff6f4abd7daba0441bfc003d7d49c3f2d38
seems to work, but that's all I've done. (In particular, I have _not_
built Lintian to check this is the right place/syntax for a tag message.)
--- a/checks/duplicate_files.desc
+++ b/checks/duplicate_files.desc
@@ -13,6 +13,11 @@ Info: The package ships the two (or more
contents.
.
Note: empty files are exempt from this check.
+ .
+ Duplicates can often be replaced with symlinks by running
+ jdupes -rl debian/binarypackagename/usr/
+ after they are installed, e.g. in override_dh_link. Consider
+ reporting this upstream.
Tag: duplicate-changelog-files
Severity: normal
Reply to: