[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1075755: leave: ftbfs due to 'don't have (pseudo-)root!'



Source: leave
Version: 1.12-5
Severity: serious
Tags: patch

leave has one ftbfs on all architectures:

```
...
Command: dpkg-buildpackage --sanitize-env -us -uc -mamd64 / i386 Build Daemon (x86-ubc-01) <buildd_amd64-x86-ubc-01@buildd.debian.org> -B -rfakeroot --changes-option=-O../leave_1.12-5_amd64-buildd.changes --buildinfo-option=-O../leave_1.12-5_amd64-buildd.buildinfo
dpkg-buildpackage: warning: passing -O via --changes-option is not supported; please use --changes-file instead
dpkg-buildpackage: warning: passing -O via --buildinfo-option is not supported; please use --buildinfo-file instead
dpkg-buildpackage: info: source package leave
dpkg-buildpackage: info: source version 1.12-5
dpkg-buildpackage: info: source distribution unstable
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
test -f leave.c || { echo not in the right dir\!; exit 1; }
test `id -u` -eq 0 || { echo "don't have (pseudo-)root!"; exit 1; }
don't have (pseudo-)root!
make: *** [debian/rules:22: clean] Error 1
```

See https://buildd.debian.org/status/package.php?p=leave

I think the issue was raised by adding `Rules-Requires-Root: no` in
previous upload but checking the root env during build. I am not sure
why to check it so please double check it.


-- 
Regards,
--
  Bo YU

diff -Nru leave-1.12/debian/changelog leave-1.12/debian/changelog
--- leave-1.12/debian/changelog	2024-06-24 20:35:33.000000000 +0800
+++ leave-1.12/debian/changelog	2024-07-04 18:02:43.000000000 +0800
@@ -1,3 +1,10 @@
+leave (1.12-6) UNRELEASED; urgency=medium
+
+  * QA upload.
+  * Drop to check root uid when building. (Closes: #-1)
+
+ -- Bo YU <tsu.yubo@gmail.com>  Thu, 04 Jul 2024 18:02:43 +0800
+
 leave (1.12-5) unstable; urgency=medium
 
   * QA upload.
diff -Nru leave-1.12/debian/rules leave-1.12/debian/rules
--- leave-1.12/debian/rules	2024-06-24 20:35:33.000000000 +0800
+++ leave-1.12/debian/rules	2024-07-04 18:02:43.000000000 +0800
@@ -19,12 +19,10 @@
 
 clean:
 	test -f leave.c || { echo not in the right dir\!; exit 1; }
-	test `id -u` -eq 0 || { echo "don't have (pseudo-)root!"; exit 1; }
 	rm -f build-stamp leave leave.o leave.cat1 debian/files debian/substvars
 	rm -rf $(tmp)
 
 binary-arch binary: build
-	test `id -u` -eq 0 || { echo "don't have (pseudo-)root!"; exit 1; }
 	rm -rf $(tmp)
 	install -d -m 755 $(tmp)/usr/bin $(tmp)/usr/share/man/man1 \
 		$(tmp)/DEBIAN $(tmp)/usr/share/doc/leave

Attachment: signature.asc
Description: PGP signature


Reply to: