Bug#839186: libsoup2.4: dpkg-buildpackage builds everything as root

Santiago Vila sanvila at unex.es
Thu Oct 12 08:19:39 UTC 2017


On Wed, Oct 11, 2017 at 09:16:47PM -0400, Jeremy Bicha wrote:

> Please provide more detail about the issue you reported.

The bug was reported more than a year ago against version 2.56.0-x
which was the current version in stretch.

I believe it does not happen anymore in unstable, because there
is not a build directory in the unstable version anymore.

However:

You can still reproduce the bug I reported by applying the attached
patch to the stretch version.

Please try the following patch and see it for yourself.

If you do "dpkg-buildpackage" (without -A or -B) then
most of the build happens as the root user.
(See below the lines saying "I AM root")

Thanks.
-------------- next part --------------
diff --git a/debian/rules b/debian/rules
index 5a91c9f..e5d26ae 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,-O1 -Wl,--as-needed
 
 %:
+	echo I AM $(shell whoami)
 	dh $@ --with gir,gnome
 
 override_dh_autoreconf:


More information about the pkg-gnome-maintainers mailing list