Your message dated Fri, 03 Jan 2025 17:05:11 +0000
with message-id <e1ttl6l-004hqs...@fasolo.debian.org>
and subject line Bug#1087626: fixed in debian-policy 4.7.0.2
has caused the Debian Bug report #1087626,
regarding debian-policy: Please support building the binaries without requiring 
fakeroot
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1087626: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087626
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: debian-policy
Severity: wishlist
Tags: patch
X-Debbugs-Cc: ni...@thykier.net

Hi

Please see consider patch to remove the need for `fakeroot` (packaging-only change; that is, it is not a normative policy change).

Without this patch, `debian-policy` will require `fakeroot` (or real root) to assemble the debs even though modern `dpkg-deb` normalize the ownership to root:root without needing `fakeroot` anymore. Note that `debhelper` (dh_builddeb) does the heavily lifting in this case, which is why there are no changes to `debian/rules`.

Best regards,
Niels

PS: It is also possible to do a few more minor tweaks to d/rules such as:

 1) Replace `debian/compat` with a Build-Depends on
    `debhelper-compat (= 10)`

 2) Replace the `override_dh_auto_install` hook target with
    `execute_after_dh_auto_install` (while removing the
    "dh_auto_install" from the target).

I spotted those while reviewing the package anyway, but I left them out, since they were not directly related to the problem I was solving. For both, you would need debhelper/12.8 or later. Since oldstable has 13.3.4, you should be fine (only oldoldstable cannot satisfy the second bullet, but it can still satisfy the first).
From b359973952c989faa1b1781aae37b3643822a5fb Mon Sep 17 00:00:00 2001
From: Niels Thykier <ni...@thykier.net>
Date: Sat, 16 Nov 2024 12:59:09 +0000
Subject: [PATCH] Support assembling debian-policy's binary packages without
 (fake)root

---
 Makefile       | 4 ++--
 debian/control | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 0c8765d..b2d9746 100644
--- a/Makefile
+++ b/Makefile
@@ -35,8 +35,8 @@ docdir      = $(datadir)/doc/$(PACKAGE)
 infodir     = $(datarootdir)/info
 
 # Installation programs to use.
-INSTALL = install -p -o root -g root -m 644
-MKDIR   = install -d -o root -g root -m 755
+INSTALL = install -p -m 644
+MKDIR   = install -d -m 755
 
 # Files included by debconf_specification.xml.
 DEBCONF_INCLUDES := debconf/commands.xml debconf/priorities.xml	\
diff --git a/debian/control b/debian/control
index 09efe0c..93a3fe5 100644
--- a/debian/control
+++ b/debian/control
@@ -24,6 +24,7 @@ Build-Depends:
  texlive-xetex,
  xindy,
  xsltproc,
+Rules-Requires-Root: no
 Standards-Version: 4.7.0
 Vcs-Browser: https://salsa.debian.org/dbnpolicy/policy
 Vcs-Git: https://salsa.debian.org/dbnpolicy/policy.git
-- 
2.45.2

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: debian-policy
Source-Version: 4.7.0.2
Done: Sean Whitton <spwhit...@spwhitton.name>

We believe that the bug you reported is fixed in the latest version of
debian-policy, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1087...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sean Whitton <spwhit...@spwhitton.name> (supplier of updated debian-policy 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 03 Jan 2025 16:48:08 +0000
Source: debian-policy
Architecture: source
Version: 4.7.0.2
Distribution: unstable
Urgency: medium
Maintainer: Debian Policy Editors <debian-pol...@lists.debian.org>
Changed-By: Sean Whitton <spwhit...@spwhitton.name>
Closes: 1087626
Changes:
 debian-policy (4.7.0.2) unstable; urgency=medium
 .
   * Support building without (fake)root (Closes: #1087626).
     Thanks to Niels Thykier for the patch.
   * Add debian/debian-policy-*/ to .gitignore.
Checksums-Sha1:
 30e8d268c20d17bf7c03a28a118773c5bb8a7bdd 2136 debian-policy_4.7.0.2.dsc
 bedd8f2edf159d373571cea6c8dd07bba8d8f97f 560528 debian-policy_4.7.0.2.tar.xz
Checksums-Sha256:
 6a683c63127fd504dd40e208f3c25d1f7822b47033270ea5bbd9a5a836180b0c 2136 
debian-policy_4.7.0.2.dsc
 037bf0457eec42f1b197523e2261e4105d4b92e3725731b4220224101fdc8127 560528 
debian-policy_4.7.0.2.tar.xz
Files:
 ca4aa783f31ed902d39179d89ce66f58 2136 doc optional debian-policy_4.7.0.2.dsc
 2614f85129a002587c849de38461a61c 560528 doc optional 
debian-policy_4.7.0.2.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAmd4FN8ACgkQaVt65L8G
YkAuvRAAjvh0ruRhgHy9XorQ+dCNVf3l5vIeFf18Hmpu2S1nhbcJ+RyZUESQje87
9erJFytxGr8wiatxgPuNrmmd9pzvYTfrh7Zybq1xQkjXxzL20L33fjxgphYBZchm
SMDEAR2YRQFkMSyspCiJ2y2CdlaspquvwoOBlrbVIPFQ81N4xMAcFAI6RHuwCfwy
EkoMPj/zRXUsoeAs+vUsmyM2kqzO4Y2xsLv4m30E6C3BWf+k80uuZtE3zXY4XoW/
u9iC9nfYI1Jv4UP1nEdVPXJQgaeALvrsBOOZtbGBStT5QarZZRUjaVFYR2M3ocZm
o+jqLZQaJqvfFwXJjsqfpUtFnm7S/9XdHOZ9rYFaxGFRBPhprgmn+PmVTKcoF44e
zqZEKDTVolOaAQV0uPfDb391znert+o3qIe8ur91t+DcOjBIBMWHJle4nVhiypoh
XGugnhIhtB2ZitzcFqAHAp3OPLaD7x9sp4JIGgnTD/zX5IpIiokz+KW2fde5Oyai
UNPhcSjSw2B48uANp2jcKzURfp/HfUBjBJKtAPyOc7dNsnRVvSjy/wva6g4k6p9y
/rySJTm0g4YrQUWxCUICZ/g7GgkB++v0WJJrU23PhfiXTLNXtpmXyu2NswTduPL8
zftjNiypgQUXkecvFH9Hab/at5qRQyY0VF9nadgsdi2dfYCUOZE=
=bvs2
-----END PGP SIGNATURE-----

Attachment: pgpi_uNGYM54p.pgp
Description: PGP signature


--- End Message ---

Reply via email to