summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Control
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2017-09-10 16:18:15 +0200
committerGuillem Jover <guillem@debian.org>2017-10-12 00:49:47 +0200
commitd920305d9deb52fa7c1fb8b0f01bfc31cf517e41 (patch)
tree6aba0205a24cc69e0c4151ee1c32b90bf71402b4 /scripts/Dpkg/Control
parentb964b3d6270a6205b74c4910e6d2783123850982 (diff)
downloaddpkg-d920305d9deb52fa7c1fb8b0f01bfc31cf517e41.tar.gz
dpkg-genbuildinfo: Add support for new Build-Kernel-Version field
Packages intended to be built in a generic way must never rely on the currently running kernel on the build system (an exception could be an optimization rebuild using the current system as the reference baseline). But to be able to detect when a package might not be reproducible due to varying kernel information it is still useful to be able to record this information. Although that information can be very sensitive. When the builder has explicitly enabled the Build-Kernel-Version field with the new dpkg-genbuildinfo --always-include-kernel option, it will get included in the generated .buildinfo file. Closes: #873937
Diffstat (limited to 'scripts/Dpkg/Control')
-rw-r--r--scripts/Dpkg/Control/FieldsCore.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/Dpkg/Control/FieldsCore.pm b/scripts/Dpkg/Control/FieldsCore.pm
index 8f5d7f34a..74c54e686 100644
--- a/scripts/Dpkg/Control/FieldsCore.pm
+++ b/scripts/Dpkg/Control/FieldsCore.pm
@@ -159,6 +159,10 @@ our %FIELDS = (
name => 'Build-Essential',
allowed => ALL_PKG,
},
+ 'build-kernel-version' => {
+ name => 'Build-Kernel-Version',
+ allowed => CTRL_FILE_BUILDINFO,
+ },
'build-origin' => {
name => 'Build-Origin',
allowed => CTRL_FILE_BUILDINFO,
@@ -629,8 +633,8 @@ our %FIELD_ORDER = (
CTRL_FILE_BUILDINFO() => [
qw(format source binary architecture version binary-only-changes),
@src_checksums_fields,
- qw(build-origin build-architecture build-date build-path
- installed-build-depends environment),
+ qw(build-origin build-architecture build-kernel-version build-date
+ build-path installed-build-depends environment),
],
CTRL_FILE_CHANGES() => [
qw(format date source binary binary-only built-for-profiles architecture