Browse Source

dpkg-gencontrol: Stop emitting Built-For-Profiles

The information is already provided in .buildinfo files, and including
it in the binary packages makes them unreproducible even when the
profile used would not alter its contents.

Closes: #831524
Guillem Jover 7 years ago
parent
commit
cd9f688ca4
3 changed files with 9 additions and 5 deletions
  1. 4 0
      debian/changelog
  2. 5 3
      man/deb-control.man
  3. 0 2
      scripts/dpkg-gencontrol.pl

+ 4 - 0
debian/changelog

@@ -1,6 +1,10 @@
 dpkg (1.18.19) UNRELEASED; urgency=medium
 
   [ Guillem Jover ]
+  * Stop emitting Built-For-Profiles from dpkg-gencontrol. The information
+    is already provided in .buildinfo files, and including it in the binary
+    packages makes them unreproducible even when the profile used would not
+    alter its contents. Closes: #831524
   * Portability:
     - On GNU/Hurd try to use the new process executable name attribute from
       libps, to properly match on start-stop-daemon --exec.

+ 5 - 3
man/deb-control.man

@@ -317,9 +317,11 @@ refuse to accept an upload which declares a
 relationship which cannot be satisfied within the archive.
 .
 .TP
-.BI Built\-For\-Profiles: " profile-list"
-This field specifies a whitespace separated list of build profiles that this
-binary packages was built with.
+.BI Built\-For\-Profiles: " profile-list (obsolete)"
+This field used to specify a whitespace separated list of build profiles that
+this binary packages was built with (since dpkg 1.17.2 until 1.18.18).
+The information previously found in this field can now be found in the
+\fB.buildinfo\fP file, which supersedes it.
 .
 .SH EXAMPLE
 .\" .RS

+ 0 - 2
scripts/dpkg-gencontrol.pl

@@ -299,8 +299,6 @@ foreach my $field (field_list_pkg_dep()) {
     }
 }
 
-$fields->{'Built-For-Profiles'} = join ' ', get_build_profiles();
-
 for my $f (qw(Package Version Architecture)) {
     error(g_('missing information for output field %s'), $f)
         unless defined $fields->{$f};