Package: dpkg-dev Version: 1.19.6 Hello Guillem et al.
I don't fully understand how Rules-Requires-Root is supposed to work when not using dh or debhelper. To be precise, if I apply the patch below to hello-traditional_2.10-5 and do "dpkg-buildpackage -uc -us -b" in a sid chroot, I get a .deb package with all files owned by "sanvila/sanvila". What am I missing? (Yes, I know that everybody should be using dh, but as you will know, this package is the exception which serves as a reminder of why dh is useful, by deliberately not using it). Thanks. diff --git a/debian/control b/debian/control index 01f8dea..6fffe36 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional 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 --git a/debian/rules b/debian/rules index 8142477..c47635b 100755 --- a/debian/rules +++ b/debian/rules @@ -68,7 +68,6 @@ binary-arch: build 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)'