- Package:
- src:keyutils
- Source:
- src:keyutils
- Submitter:
- Aurelien Jarno
- Date:
- 2024-10-20 18:03:06 UTC
- Severity:
- normal
- Tags:
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
Dear maintainer, I've prepared an NMU for keyutils (versioned as 1.6.3-3.1). The diff is attached to this message. Regards.
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 1070012@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Chris Hofstaedtler <zeha@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 ftpmaster@ftp-master.debian.org)
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 <ckk@debian.org>
Changed-By: Chris Hofstaedtler <zeha@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-----