summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Vendor/Debian.pm
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-11-01 06:21:18 +0100
committerGuillem Jover <guillem@debian.org>2016-11-03 06:03:35 +0100
commitee8975322f93e41ccd5787ebb6cadaecc81cadf3 (patch)
tree9f54df5e375e2c177c00b681717d5de44a56807a /scripts/Dpkg/Vendor/Debian.pm
parentf89e053f3e3a6f0f73a9ce2c8dd2c72db93d44bb (diff)
downloaddpkg-ee8975322f93e41ccd5787ebb6cadaecc81cadf3.tar.gz
scripts: Add support for .buildinfo files
The .buildinfo files are a new type of control files, similar to the .changes files, meant to describe the environment of a build and its artifacts. They are meant to be added to the Debian archive to allow independent parties to reproduce a build and verify the result. Specifications for .buildinfo are available at: <https://wiki.debian.org/ReproducibleBuilds/BuildinfoSpecification> This patch adds support for .buildinfo files in Dpkg::Control, adds new .buildinfo fields to Dpkg::Control::Fields, a new builtin-system-build-paths Dpkg::Vendor hook, and adds a new script named dpkg-genbuildinfo, that will now be called by dpkg-buildpackage before generating the .changes file. [ntyni@debian.org: small changes. ] Closes: #138409 Based-on-patch-by: Jérémy Bobbio <lunar@debian.org> Signed-off-by: Guillem Jover <guillem@debian.org>
Diffstat (limited to 'scripts/Dpkg/Vendor/Debian.pm')
-rw-r--r--scripts/Dpkg/Vendor/Debian.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/Dpkg/Vendor/Debian.pm b/scripts/Dpkg/Vendor/Debian.pm
index 560db2de8..bbba00d52 100644
--- a/scripts/Dpkg/Vendor/Debian.pm
+++ b/scripts/Dpkg/Vendor/Debian.pm
@@ -83,6 +83,8 @@ sub run_hook {
$self->_add_reproducible_flags(@params);
$self->_add_sanitize_flags(@params);
$self->_add_hardening_flags(@params);
+ } elsif ($hook eq 'builtin-system-build-paths') {
+ return qw(/build/);
} else {
return $self->SUPER::run_hook($hook, @params);
}