diff options
author | Jérémy Bobbio <lunar@debian.org> | 2014-10-19 13:35:46 +0200 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-10-22 14:42:04 -0400 |
commit | 72f4458963f43ff9f2d6c9577147d87b20db3198 (patch) | |
tree | 47a7af8262e53bef4007dcf5b3998fe2937be65b | |
parent | 21b042d6a2921c183e7283b0cd75da47b5c1ce88 (diff) |
dh_installdeb: register conffiles in a stable order
conffiles were automatically registered by dh_installdeb depending on
the order they were found on the filesystem. For build reproducibility,
we now sort them in order to have a stable order accross multiple
builds.
-rwxr-xr-x | dh_installdeb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dh_installdeb b/dh_installdeb index 1f02edf4..3fc802c8 100755 --- a/dh_installdeb +++ b/dh_installdeb @@ -128,7 +128,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # Automatic conffiles registration: If it is in /etc, it is a # conffile. if (! compat(2) && -d "$tmp/etc") { - complex_doit("find $tmp/etc -type f -printf '/etc/%P\n' >> $tmp/DEBIAN/conffiles"); + complex_doit("find $tmp/etc -type f -printf '/etc/%P\n' | LC_ALL=C sort >> $tmp/DEBIAN/conffiles"); # Anything found? if (-z "$tmp/DEBIAN/conffiles") { doit("rm", "-f", "$tmp/DEBIAN/conffiles"); |