[Reproducible-commits] [debhelper] 12/24: dh_strip: Skip ddebs if noddebs is set in DEB_BUILD_OPTIONS
Mattia Rizzolo
mattia at mapreri.org
Wed May 20 00:50:03 UTC 2015
This is an automated email from the git hooks/post-receive script.
mapreri-guest pushed a commit to branch pu/reproducible_builds
in repository debhelper.
commit 541af4248e146b01457cfa96eb3c7cb63ecc1a11
Author: Niels Thykier <niels at thykier.net>
Date: Fri May 15 16:37:50 2015 +0200
dh_strip: Skip ddebs if noddebs is set in DEB_BUILD_OPTIONS
Signed-off-by: Niels Thykier <niels at thykier.net>
---
dh_strip | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/dh_strip b/dh_strip
index 8149a86..5463dad 100755
--- a/dh_strip
+++ b/dh_strip
@@ -71,6 +71,9 @@ If the B<DEB_BUILD_OPTIONS> environment variable contains B<nostrip>, nothing
will be stripped, in accordance with Debian policy (section 10.1
"Binaries"). This will also inhibit the creation of automatic "ddebs".
+The creation of automatic "ddebs" can also be prevented by adding
+B<noddebs> to the B<DEB_BUILD_OPTIONS> environment variable.
+
=head1 CONFORMS TO
Debian policy, version 3.0.1
@@ -86,8 +89,10 @@ if (get_buildoption('nostrip')) {
exit;
}
+my $enable_ddebs = 1;
my $objcopy = cross_command("objcopy");
my $strip = cross_command("strip");
+$enable_ddebs = 0 if get_buildoption('noddebs');
# I could just use `file $_[0]`, but this is safer
sub get_file_type {
@@ -220,7 +225,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
$debugtmp=tmpdir($package."-dbg");
}
}
- if ($ENV{'DH_BUILD_DDEBS'} and not $keep_debug and package_arch($package) ne 'all') {
+ if ($ENV{'DH_BUILD_DDEBS'} and $enable_ddebs and not $keep_debug and package_arch($package) ne 'all') {
# Avoid creating a ddeb that would clash with a registered package
if (!$all_packages{"${package}-dbgsym"}) {
$debugtmp = "debian/.debhelper/${package}/ddeb-root";
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debhelper.git
More information about the Reproducible-commits
mailing list