Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1223181

Bug#1089372: libspf2: Supporting rootless builds by default

From Andreas Metzler <ametzler@bebt.de>
Newsgroups linux.debian.bugs.dist
Subject Bug#1089372: libspf2: Supporting rootless builds by default
Date 2024-12-08 07:40 +0100
Message-ID <JRj7r-eC3a-1@gated-at.bofh.it> (permalink)
References <JRj7r-eC3a-3@gated-at.bofh.it> <JRj7r-eC3a-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Control: tags -1 patch

On 2024-12-07 Niels Thykier <niels@thykier.net> wrote:
> Source: libspf2
> Version: 1.2.10-8.2
[...]
> During a test rebuild for building packages with
> `Rules-Requires-Root: no` as the default in `dpkg`,
> libspf2 failed to rebuild.

[...]
> dh_strip -a --dbgsym-migration="libspf2-2t64-dbg (<< 1.2.10-8)"
> strip: unable to copy file 'debian/libmail-spf-xs-perl/usr/lib/aarch64-linux-gnu/perl5/5.40/auto/Mail/SPF_XS/SPF_XS.so';
> reason: Permission denied
[...]

Good morning,

The respective file is installed without write permissions. Invoking
dh_fixperms before dh_strip (like dh does automatically) lets the build
succeed.


--- v1/libspf2-1.2.10/debian/rules	2024-03-25 11:11:10.000000000 +0100
+++ libspf2-1.2.10/debian/rules	2024-12-08 07:05:05.355831898 +0100
@@ -69,10 +69,10 @@ binary-arch: install
 	dh_installdocs -a --link-doc=$(LIB_PACKAGE)
 	dh_installchangelogs -a
 	dh_installman -a
+	dh_fixperms -a
 	dh_strip -a --dbgsym-migration="$(LIB_PACKAGE)-dbg (<< 1.2.10-8)"
 	dh_perl -a
 	dh_compress -a
-	dh_fixperms -a
 	dh_makeshlibs -V '$(LIB_PACKAGE) (>= 1.2.8~)'
 	dh_installdeb -a
 	dh_shlibdeps -a

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#1089372: libspf2: Supporting rootless builds by default Andreas Metzler <ametzler@bebt.de> - 2024-12-08 07:40 +0100

csiph-web