Package: hello-transitional
Version: 2.10-5
Severity: wishlist
Tags: patch
X-Debbugs-Cc: ni...@thykier.net

Hi,

Please apply the following patch to enable building hello-traditional without using (fake)root during build.

It leverages dpkg-deb's --root-owner-group feature that is available in dpkg from Debian oldstable (since dpkg/1.19.0 according to dpkg-deb's manpage).

Thanks,
~Niels
diff -Nru hello-traditional-2.10/debian/changelog 
hello-traditional-2.10/debian/changelog
--- hello-traditional-2.10/debian/changelog     2019-05-15 12:49:00.000000000 
+0200
+++ hello-traditional-2.10/debian/changelog     2022-12-14 12:06:18.000000000 
+0100
@@ -1,3 +1,10 @@
+hello-traditional (2.10-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Support building hello-traditional without using (fake)root.
+
+ -- Niels Thykier <ni...@thykier.net>  Wed, 14 Dec 2022 11:06:18 +0000
+
 hello-traditional (2.10-5) unstable; urgency=medium
 
   * Use "Rules-Requires-Root: binary-targets" instead.
diff -Nru hello-traditional-2.10/debian/control 
hello-traditional-2.10/debian/control
--- hello-traditional-2.10/debian/control       2019-05-15 12:00:00.000000000 
+0200
+++ hello-traditional-2.10/debian/control       2022-12-14 12:04:12.000000000 
+0100
@@ -4,7 +4,7 @@
 Maintainer: Santiago Vila <sanv...@debian.org>
 Standards-Version: 4.3.0
 Homepage: http://www.gnu.org/software/hello/
-Rules-Requires-Root: binary-targets
+Rules-Requires-Root: no
 
 Package: hello-traditional
 Architecture: any
diff -Nru hello-traditional-2.10/debian/rules 
hello-traditional-2.10/debian/rules
--- hello-traditional-2.10/debian/rules 2019-05-15 12:00:00.000000000 +0200
+++ hello-traditional-2.10/debian/rules 2022-12-14 12:04:32.000000000 +0100
@@ -68,11 +68,10 @@
        cd debian/tmp && \
                find * -type f ! -regex "DEBIAN/.*" -print0 |\
                LC_ALL=C sort -z | xargs -0r md5sum > DEBIAN/md5sums
-       chown -R 0:0 debian/tmp
        chmod -R u+w,go=rX debian/tmp
        find debian/tmp -newermt '$(BUILD_DATE)' -print0 |\
                 xargs -0r touch -h --date='$(BUILD_DATE)'
-       dpkg --build debian/tmp ..
+       dpkg-deb --root-owner-group --build debian/tmp ..
 
 binary: binary-indep binary-arch
 

Reply via email to