From 9cea01046c345e9e26803c0e924192bff892ea05 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Thu, 24 Nov 2022 20:29:08 +0000 Subject: Have libcommon-sense-perl build without (fake)root The only "reason" for using (fake)root appears to be trying to overwrite a read-only (0444) file in debian/rules. However, a simple chmod before that suffices to avoid this problem and makes it possible to use `Rules-Requires-Root: no` --- debian/control | 2 +- debian/rules | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 4cab49e..4250c00 100644 --- a/debian/control +++ b/debian/control @@ -14,7 +14,7 @@ Standards-Version: 4.6.0 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libcommon-sense-perl Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libcommon-sense-perl.git Homepage: https://metacpan.org/release/common-sense -Rules-Requires-Root: binary-targets +Rules-Requires-Root: no Package: libcommon-sense-perl Architecture: any diff --git a/debian/rules b/debian/rules index 9cd8bd0..9648572 100755 --- a/debian/rules +++ b/debian/rules @@ -17,6 +17,7 @@ ARCHLIB := $(shell perl -I/usr/lib/$(DEB_HOST_MULTIARCH)/perl/cross-config- override_dh_auto_install: dh_auto_install + chmod 0644 $(TMP)/usr/share/man/man3/common::sense.3pm pod2man --name "common::sense" --utf8 --section 3pm \ $(TMP)$(ARCHLIB)/common/sense.pod > \ $(TMP)/usr/share/man/man3/common::sense.3pm -- cgit v1.2.3