Package: libjama
Severity: normal
Tags: patch
X-Debbugs-Cc: ni...@thykier.net

Hi

The libjama package currently misbuilds when build without root/fakeroot. Concretely, all the paths in the deb will be owned by the (non-root) user performing the build.

There are multiple ways to fix this problem. I have attached a patch that makes libjama build without needing fakeroot (or root) at all.

Best regards,
Niels
diff -Nru libjama-1.2.4/debian/changelog libjama-1.2.4/debian/changelog
--- libjama-1.2.4/debian/changelog      2023-08-12 08:44:23.000000000 +0200
+++ libjama-1.2.4/debian/changelog      2024-11-06 15:15:44.000000000 +0100
@@ -1,3 +1,10 @@
+libjama (1.2.4-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Make package build without `fakeroot`. (Closes: #-1)
+
+ -- Niels Thykier <ni...@thykier.net>  Wed, 06 Nov 2024 14:15:44 +0000
+
 libjama (1.2.4-4) unstable; urgency=medium
 
   * New maintainer.
diff -Nru libjama-1.2.4/debian/control libjama-1.2.4/debian/control
--- libjama-1.2.4/debian/control        2023-08-12 08:39:39.000000000 +0200
+++ libjama-1.2.4/debian/control        2024-11-06 15:10:57.000000000 +0100
@@ -2,7 +2,8 @@
 Section: math
 Priority: optional
 Maintainer: Anibal Monsalve Salazar <ani...@debian.org>
-Build-Depends: 
+Build-Depends:
+Rules-Requires-Root: no
 Standards-Version: 4.6.2
 Homepage: http://math.nist.gov/tnt/
 
diff -Nru libjama-1.2.4/debian/rules libjama-1.2.4/debian/rules
--- libjama-1.2.4/debian/rules  2023-08-11 12:57:04.000000000 +0200
+++ libjama-1.2.4/debian/rules  2024-11-06 15:15:02.000000000 +0100
@@ -25,7 +25,7 @@
        chmod 644 debian/tmp/usr/share/doc/libjama-dev/html-jama.tar.gz
 
        dpkg-gencontrol
-       dpkg --build debian/tmp ..
+       dpkg-deb --root-owner-group --build debian/tmp ..
 
 build:
        $(checkdir)
@@ -40,10 +40,6 @@
        test -f debian/rules
 endef
 
-checkroot:
-       $(checkdir)
-       test root = "`whoami`"
-
 build-arch: build
 build-indep: build
 

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to