From d920305d9deb52fa7c1fb8b0f01bfc31cf517e41 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sun, 10 Sep 2017 16:18:15 +0200 Subject: 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 --- scripts/Dpkg/Control/FieldsCore.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts/Dpkg/Control') 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 -- cgit v1.2.3