Control: tags -1 patch

On Sat, 7 Dec 2024 21:56:07 +0100 Niels Thykier <[email protected]> wrote:
Source: tripwire
Version: 2.4.3.7-5
Severity: important
Tags: ftbfs
Justification: FTBFS
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: rrr-no-as-default-issue

Dear maintainer,

During a test rebuild for building packages with
`Rules-Requires-Root: no` as the default in `dpkg`,
tripwire failed to rebuild.

[...]

Hi,

Please see attached patch.

Best regards,
Niels

diff -Nru tripwire-2.4.3.7/debian/changelog tripwire-2.4.3.7/debian/changelog
--- tripwire-2.4.3.7/debian/changelog   2024-01-15 12:23:33.000000000 +0100
+++ tripwire-2.4.3.7/debian/changelog   2024-12-17 06:16:43.000000000 +0100
@@ -1,3 +1,10 @@
+tripwire (2.4.3.7-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Support building tripwire without root (Closes: #1089456)
+
+ -- Niels Thykier <[email protected]>  Tue, 17 Dec 2024 05:16:43 +0000
+
 tripwire (2.4.3.7-5) unstable; urgency=medium
 
   * Build dynamic binary again to avoid segfaults when
diff -Nru tripwire-2.4.3.7/debian/control tripwire-2.4.3.7/debian/control
--- tripwire-2.4.3.7/debian/control     2020-04-19 19:20:40.000000000 +0200
+++ tripwire-2.4.3.7/debian/control     2024-12-17 06:16:30.000000000 +0100
@@ -3,6 +3,7 @@
 Priority: optional
 Maintainer: Alberto Gonzalez Iniesta <[email protected]>
 Build-Depends: debhelper-compat (= 10)
+Rules-Requires-Root: no
 Standards-Version: 4.5.0
 Homepage: https://github.com/Tripwire/tripwire-open-source
 
diff -Nru tripwire-2.4.3.7/debian/rules tripwire-2.4.3.7/debian/rules
--- tripwire-2.4.3.7/debian/rules       2024-01-15 12:22:05.000000000 +0100
+++ tripwire-2.4.3.7/debian/rules       2024-12-17 06:16:12.000000000 +0100
@@ -46,7 +46,7 @@
 
        # Add here commands to clean up after the build process.
        [ ! -f Makefile ] || $(MAKE) distclean
-       
+
        dh_clean -Xsrc/buildnum.h~ -Xsrc/fco/fconame.h~ -Xsrc/fco/fcosetimpl.h~
 
 install: build
@@ -56,6 +56,7 @@
        dh_installdirs
 
        $(MAKE) install prefix=$(CURDIR)/debian/tripwire/usr
+       chmod -R u+rwX debian/tripwire
        rm -rf $(CURDIR)/debian/tripwire/etc/tripwire/twpol-Linux.txt
        rm -rf $(CURDIR)/debian/tripwire/usr/share/doc/tripwire/policyguide.txt
        rm -rf $(CURDIR)/debian/tripwire/usr/share/doc/tripwire/COPYING

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to