Package: dpkg
Version: 1.16.10
Severity: wishlist
Tags: patch

Hi!

We are currently a few folks interested in enabling byte for byte
reproducible builds of Debian packages [1].

In order to achieve this, we need a way to record the environment that
was used to do the initial build. We currently think that the right
place to do so is the `.changes` file.

We can currently easily add new fields there by using the `XC-`
construct in `debian/control`. Unfortunately, `dpkg-genchanges`
does currently not expand all substvars, limiting our abilities to
experiment.

Can you consider applying the following patch that make
`dpkg-genchanges` behave just like `dpkg-gencontrol`?

diff --git a/scripts/dpkg-genchanges.pl b/scripts/dpkg-genchanges.pl
index 0b004c7..13cedd6 100755
--- a/scripts/dpkg-genchanges.pl
+++ b/scripts/dpkg-genchanges.pl
@@ -516,4 +516,5 @@ for my $f (keys %remove) {
     delete $fields->{$f};
 }
 
-$fields->output(\*STDOUT); # Note: no substitution of variables
+$fields->apply_substvars($substvars);
+$fields->output(\*STDOUT);

Thanks!

[1] https://wiki.debian.org/ReproducibleBuilds

-- 
Jérémy Bobbio                        .''`. 
lu...@debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   

Attachment: signature.asc
Description: Digital signature

Reply via email to