Hi,

our dpkg patch [0] to add buildinfo files to dpkg has a small bug. The
problem is that Dpkg::Dist::Files.parse_filename [1] doesn't handle
buildinfo files correctly and sets the buildinfo identifier as arch.
Therefore the generates .changes contains something like:

  Architecture: amd64 all 20160613T013823z-ff7bd155

The attached patch fixes this and should be stashed into the buildinfo
patch.

HW42

[0]: 
https://anonscm.debian.org/git/reproducible/dpkg.git/commit/?id=0774d0244c94733d1480f7c246085ef02196f71a
[1]: 
https://anonscm.debian.org/git/reproducible/dpkg.git/tree/scripts/Dpkg/Dist/Files.pm#n55
diff -urN a/scripts/Dpkg/Dist/Files.pm b/scripts/Dpkg/Dist/Files.pm
--- a/scripts/Dpkg/Dist/Files.pm	2015-12-25 16:27:06.000000000 +0100
+++ b/scripts/Dpkg/Dist/Files.pm	2016-06-13 02:43:12.463939088 +0200
@@ -58,6 +58,10 @@
         $file->{version} = $3;
         $file->{arch} = $4;
         $file->{package_type} = $5;
+
+        if ($file->{package_type} eq 'buildinfo') {
+            $file->{arch} = undef;
+        }
     } elsif ($fn =~ m/^([-+:.,_0-9a-zA-Z~]+)$/) {
         $file->{filename} = $1;
     } else {

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to