Your message dated Sun, 20 Oct 2024 18:00:51 +0000
with message-id <e1t2aev-00hx4g...@fasolo.debian.org>
and subject line Bug#1070012: fixed in keyutils 1.6.3-3.1
has caused the Debian Bug report #1070012,
regarding keyutils: testsuite wrongly assumes that user 0 always exists
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.)
--
1070012: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1070012
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: keyutils
Version: 1.6.3-3
Severity: important
Tags: patch upstream ftbfs
X-Debbugs-Cc: debian-wb-t...@lists.debian.org
Usertags: unshare
Dear maintainer,
keyutils fails to build from source when built inside a container:
| === /<<PKGBUILDDIR>>/tests/keyctl/newring/bad-args/test.out ===
| ./runtest.sh: line 13: [: 4096: unary operator expected
| +++ CHECK MAXLEN DESC FAILS WITH EDQUOT
| FAILED
| FAILED
| +++ CHECK OVERLONG DESC
| +++ CHECK EMPTY KEYRING NAME
| +++ CHECK BAD KEY ID
| make[3]: *** [Makefile:41: run] Error 1
| make[3]: Leaving directory '/<<PKGBUILDDIR>>/tests'
| make[2]: *** [Makefile:253: test] Error 2
| make[2]: Leaving directory '/<<PKGBUILDDIR>>'
| dh_auto_test: error: make -j4 test
PATH=/<<PKGBUILDDIR>>:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
LD_LIBRARY_PATH=/<<PKGBUILDDIR>> SKIPROOTREQ=yes SKIPINSTALLREQ=yes returned
exit code 2
| make[1]: *** [debian/rules:25: override_dh_auto_test] Error 25
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| make: *** [debian/rules:10: binary] Error 2
| dpkg-buildpackage: error: debian/rules binary subprocess returned exit status
2
The "unary operator expected" issue is because maxsquota is undefined.
Indeed it is defined by looking at /proc/key-users for user 0 (root),
however this user does necessary not exists in a container. In addition
as the testsuite is run as non-root (contrary to what upstream
recommends), I believe the returned values are incorrect. At least on my
system they are quite different between root and normal users.
This simple one-liner fixes the issue, and should still work fine with
the testsuite run as root:
--- keyutils-1.6.3.orig/tests/toolbox.inc.sh
+++ keyutils-1.6.3/tests/toolbox.inc.sh
@@ -45,7 +45,7 @@ fi
maxcall=$fullpage
-maxsquota=`grep '^ *0': /proc/key-users | sed s@.*/@@`
+maxsquota=`grep "^ *$UID": /proc/key-users | sed s@.*/@@`
key_gc_delay_file="/proc/sys/kernel/keys/gc_delay"
if [ -f $key_gc_delay_file ]; then
Regards
Aurelien
--- End Message ---
--- Begin Message ---
Source: keyutils
Source-Version: 1.6.3-3.1
Done: Chris Hofstaedtler <z...@debian.org>
We believe that the bug you reported is fixed in the latest version of
keyutils, 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 1070...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Chris Hofstaedtler <z...@debian.org> (supplier of updated keyutils 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: SHA256
Format: 1.8
Date: Sun, 20 Oct 2024 19:10:45 +0200
Source: keyutils
Architecture: source
Version: 1.6.3-3.1
Distribution: unstable
Urgency: medium
Maintainer: Christian Kastner <c...@debian.org>
Changed-By: Chris Hofstaedtler <z...@debian.org>
Closes: 1070012
Changes:
keyutils (1.6.3-3.1) unstable; urgency=medium
.
* Non-maintainer upload.
* Apply patch from Aurelien Jarno to fix build in
unshare (Closes: #1070012)
Checksums-Sha1:
ecd7cae9f6020bf3f33a7df7df173162fa8b4e3a 2087 keyutils_1.6.3-3.1.dsc
a3ce23825220692c1194aa61f8ec75ea310702c2 13592 keyutils_1.6.3-3.1.debian.tar.xz
db9b7fa8d4ecfe7fed4ffbd1d742fce0ed33679c 6517
keyutils_1.6.3-3.1_arm64.buildinfo
Checksums-Sha256:
606551bb01164aa9937430a0cbf7ba76f3b0c9dedc61e4bcbfb683b72f3fa135 2087
keyutils_1.6.3-3.1.dsc
a16c87678a6abc662edd0bd1910020819fbe9d3b776244131110d3c8c36a398b 13592
keyutils_1.6.3-3.1.debian.tar.xz
37cf875a4cfd1c617eb3b648a7f57c6c4885efa4a1bd5ad29590cd4a8bdbf4bd 6517
keyutils_1.6.3-3.1_arm64.buildinfo
Files:
0cfe122b8e669d91652e1fe9ba2d2912 2087 admin optional keyutils_1.6.3-3.1.dsc
c2e163fd1e57ed9bef97fa6eef1c2732 13592 admin optional
keyutils_1.6.3-3.1.debian.tar.xz
11fbd238bb75bfcf84dd06344c095773 6517 admin optional
keyutils_1.6.3-3.1_arm64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEfRrP+tnggGycTNOSXBPW25MFLgMFAmcVOnkACgkQXBPW25MF
LgMmcg//WJidmxEyGAjVNQPFmHM+n5mNIqoC+27Ka1m1SM8GyTtAhSEqlOZeJp8z
mKVe/ovghQUfaWvQW9i7iA96X6EZXnZWBvgoz1dHGhFuxeX+oe57S38N2NhyvQlk
9ugIwEonwCfiPQ7wCnnwAH4+n6BvJ9D4vaug5Gm0mrICz4HrFD/Ro8y6UqNJLL0B
z71eOmxc2funl6y/ODE9ujTfJnrkSFaH3ggrBS0GFiFUya40YRGfpsjGB8mK5ZXc
z2q230YhWd9tQw7SuvgT/jZQhHrWW9he9SIe+CRYUc8mKpF7a3+r0tKI2QmFCPLJ
UpXCtUEybh0S5ZlE26xhVs39NDRQH9LJICJUCc1AeucinzIeFZZ94q5EALfdgpE4
MjDp5jsvsfQI3ywtGauI0yf3w6n6UDvgIWxs/R1qFCwH4hQV4+a7jckRUQQbcR5Z
O3/45gM8jfb2CNhO2sGuHt4xlDWAT7dOZnrsf6fo6jCL3Calvs50O6FSFYP5k6dd
YVSecXRqrD9HTSlb+jJBICFYMdhLxbW+MmmNZKtiSTKHnDUZSCW6MQ8zK/bd4rrH
qzBY1kF8LDK9ioQlWJ0lbR9HbFg+Lb2Ed44dNRRxWYipMlqxDL9hv0binjvxHjJO
OHbjN/1Nhin+6MWSlWAjobc3WwJqKJuZR0WsWil7pIInH25mfOI=
=D8Sq
-----END PGP SIGNATURE-----
pgp07ZZT4uI79.pgp
Description: PGP signature
--- End Message ---