diff options
author | Paul Wise <pabs@debian.org> | 2014-09-27 05:04:05 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-10-06 00:40:43 +0200 |
commit | 24ce14e24fd53887efcff43b66eaaf7ad1de7be4 (patch) | |
tree | be695f99355431b05ab3c3948aae6e22b5ce8ab3 /scripts | |
parent | 3885b21c26616dc79976f640769cf25be029ccf3 (diff) | |
download | dpkg-24ce14e24fd53887efcff43b66eaaf7ad1de7be4.tar.gz |
Dpkg::Vendor::Debian: Add support for a reproducible feature area
Signed-off-by: Guillem Jover <guillem@debian.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Dpkg/Vendor/Debian.pm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/Dpkg/Vendor/Debian.pm b/scripts/Dpkg/Vendor/Debian.pm index c7c3bf5a0..0dbc19eb8 100644 --- a/scripts/Dpkg/Vendor/Debian.pm +++ b/scripts/Dpkg/Vendor/Debian.pm @@ -68,6 +68,7 @@ sub run_hook { } } elsif ($hook eq 'update-buildflags') { $self->_add_qa_flags(@params); + $self->_add_reproducible_flags(@params); $self->_add_hardening_flags(@params); } else { return $self->SUPER::run_hook($hook, @params); @@ -145,6 +146,22 @@ sub _add_qa_flags { } } +sub _add_reproducible_flags { + my ($self, $flags) = @_; + + # Default feature states. + my %use_feature = ( + ); + + # Adjust features based on user or maintainer's desires. + $self->_parse_feature_area('reproducible', \%use_feature); + + # Store the feature usage. + while (my ($feature, $enabled) = each %use_feature) { + $flags->set_feature('reproducible', $feature, $enabled); + } +} + sub _add_hardening_flags { my ($self, $flags) = @_; my $arch = get_host_arch(); |