Package: debhelper
Version: 9.20160403
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: toolchain username
Hi,
Some packages built with Ant capture the user name and aren't reproducible.
This could be fixed by specifying the -Duser.name parameter when debhelper
invokes Ant. Here is a patch implementing this.
Emmanuel Bourg
diff --git a/Debian/Debhelper/Buildsystem/ant.pm b/Debian/Debhelper/Buildsystem/ant.pm
index 53eb066..eca9770 100644
--- a/Debian/Debhelper/Buildsystem/ant.pm
+++ b/Debian/Debhelper/Buildsystem/ant.pm
@@ -32,6 +32,10 @@ sub build {
if ( -f $d_ant_prop ) {
push(@args, '-propertyfile', $d_ant_prop);
}
+
+ # Set the username to improve the reproducibility
+ push(@args, "-Duser.name", "debian");
+
$this->doit_in_sourcedir("ant", @args, @_);
}
_______________________________________________
Reproducible-builds mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds