Package: debhelper Version: 11.1.5 Severity: normal Tags: patch Hello.
The attached script shows the difference between the default order, based on readdir output, and sorted order. If you are lucky, it will be interesting on your system :-) The patch also contains an unrelated suggestion: call addsubstvars only once, instead of letting Dh_Lib parse the substvar file again and again, then dh_gencontrol remove the unversioned dependency if a versioned dependency also exists.
--- a/dh_installxfonts
+++ b/dh_installxfonts
@@ -68,7 +68,8 @@
my @cmds;
my @cmds_postinst;
my @cmds_postrm;
- foreach my $f (@fontdirs) {
+ # Sort items for reproducible binary package contents.
+ foreach my $f (sort @fontdirs) {
# This must come before update-fonts-dir.
push @cmds, "update-fonts-scale $f"
if -f "$tmp/etc/X11/fonts/$f/$package.scale";
@@ -76,7 +77,6 @@
if (-f "$tmp/etc/X11/fonts/$f/$package.alias") {
push @cmds_postinst, "update-fonts-alias --include /etc/X11/fonts/$f/$package.alias $f";
push @cmds_postrm, "update-fonts-alias --exclude /etc/X11/fonts/$f/$package.alias $f";
- addsubstvar($package, "misc:Depends", "xfonts-utils (>= 1:7.5+2)");
}
}
@@ -85,7 +85,11 @@
autoscript($package, "postrm", "postrm-xfonts",
{ 'CMDS' => join(";", @cmds, @cmds_postrm) });
- addsubstvar($package, "misc:Depends", "xfonts-utils");
+ if (@cmds_postrm) {
+ addsubstvar($package, "misc:Depends", "xfont-utils", ">= 1:7.5+2");
+ } else {
+ addsubstvar($package, "misc:Depends", "xfonts-utils");
+ }
}
}
dh_installxfonts-reproducible.sh
Description: Bourne shell script

