diff options
author | Niels Thykier <niels@thykier.net> | 2022-11-20 14:40:14 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2022-11-20 15:54:34 +0000 |
commit | 9553c5ce7ea5cc5c9a70657c751d69b258ba16ce (patch) | |
tree | 0e0d32150065e5fa268961560bd37cba7e7c6d60 | |
parent | 0fd7c7104ef483e821698d1533e7c1b7d0311aed (diff) |
dh_builddeb: Always pass `--root-owner-group` to `dpkg-deb` for dbgsym packages
Static ownership is not really useful for them and we no longer need
to make the use `--root-owner-group` usage conditional since
`dpkg-deb` in oldstable supports the flag.
Signed-off-by: Niels Thykier <niels@thykier.net>
-rwxr-xr-x | dh_builddeb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dh_builddeb b/dh_builddeb index bcaacc0d..66308c65 100755 --- a/dh_builddeb +++ b/dh_builddeb @@ -107,6 +107,8 @@ sub build_and_rename_deb { my @items; my @dpkg_options; push(@dpkg_options, '--root-owner-group') if not should_use_root(); +my @dbgsym_dpkg_options = ('--root-owner-group'); + for my $package (@{$dh{DOPACKAGES}}) { push(@items, [$package, 0]); @@ -131,7 +133,7 @@ on_items_in_parallel(\@items, sub { if ($dbgsym) { my $dbgsym_tmpdir = dbgsym_tmpdir($package); - my @cmd = ("dpkg-deb", @dpkg_options, @{$dh{U_PARAMS}}, + my @cmd = ("dpkg-deb", @dbgsym_dpkg_options, @{$dh{U_PARAMS}}, "--build", $dbgsym_tmpdir); if (DBGSYM_PACKAGE_TYPE eq DEFAULT_PACKAGE_TYPE) { doit(@cmd, $dh{DESTDIR}); |