- Package:
- src:util-linux
- Source:
- src:util-linux
- Submitter:
- Chris Hofstädtler
- Date:
- 2026-06-08 18:45:01 UTC
- Severity:
- normal
- Tags:
https://buildd.debian.org/status/fetch.php?pkg=util-linux&arch=loong64&ver=2.42.1-1&stamp=1780514831&file=log diff-{{{ --- /dev/null 2026-05-29 12:41:25.961759630 +0000 +++ /build/reproducible-path/util-linux-2.42.1/tests/output/mkswap/mkswap-file-existing 2026-06-03 19:26:30.186627085 +0000 @@ -0,0 +1,3 @@ +mkswap failed +mkswap: error: swap area needs to be at least 160 KiB +mkswap -F failed on existing file }}}-diff FAILED (mkswap/mkswap-file-existing) ========= script: /build/reproducible-path/util-linux-2.42.1/tests/ts/mkswap/mkswap ================= ================= OUTPUT ===================== 1 mkswap failed 2 mkswap: error: swap area needs to be at least 160 KiB 3 mkswap -F failed on existing file Looks like commit 775729884a3945a53df33e0d3ff2ba263b96b59e , mainline 6d87ff51568c017a6d08043d554bf0ea8dee5457
Hi Johannes, Karel, util-linux 2.42.1 apparently fails its mkswap tests on loong64. Given it fails in mkswap/mkswap-file-existing, I suspect this is "caused" by commit 775729884a3945a53df33e0d3ff2ba263b96b59e / 6d87ff51568c017a6d08043d554bf0ea8dee5457. Could you take a look please? Full build log at: https://buildd.debian.org/status/fetch.php?pkg=util-linux&arch=loong64&ver=2.42.1-1&stamp=1780514831&file=log Many thanks! Chris
Hello, Bug #1138789 in util-linux reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian/util-linux/-/commit/311977259b68a5be9b455c3a7bd0af14a95f5f2d ------------------------------------------------------------------------ Fix FTBFS on systems with non-4K pagesizes Closes: #1138789 ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/1138789
We believe that the bug you reported is fixed in the latest version of util-linux, 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 1138789@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 util-linux 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: Thu, 04 Jun 2026 13:31:17 +0200 Source: util-linux Architecture: source Version: 2.42.1-2 Distribution: unstable Urgency: medium Maintainer: Chris Hofstaedtler <zeha@debian.org> Changed-By: Chris Hofstaedtler <zeha@debian.org> Closes: 1138789 Changes: util-linux (2.42.1-2) unstable; urgency=medium . * Fix FTBFS on systems with non-4K pagesizes (Closes: #1138789) Checksums-Sha1: b9a376c156889922a96ed2377bc84890ca9a08c4 5331 util-linux_2.42.1-2.dsc 0aeed2c8f1e98ea43cd81bf7a1079eaab264726f 102496 util-linux_2.42.1-2.debian.tar.xz c74064c2aced4e3b1cd87aa79b33afce1308ca7c 22329 util-linux_2.42.1-2_arm64.buildinfo Checksums-Sha256: 20e919c8efd45116a045862818e3e8ca4acb056ee0b2d2424eb8ce1e4b5505bf 5331 util-linux_2.42.1-2.dsc b54766b595e7ba8c47f8a37437b3e3f88d093638e916393e6f1231dbd090fa2a 102496 util-linux_2.42.1-2.debian.tar.xz f47f6c25de8962a690132a39d89150647813d0d7b9e875342bedcaaf682e42d5 22329 util-linux_2.42.1-2_arm64.buildinfo Files: 12a03da19bad306b563697b9bef644c5 5331 utils required util-linux_2.42.1-2.dsc 6b7b3b6dad3b704ae434567ffdb26b83 102496 utils required util-linux_2.42.1-2.debian.tar.xz 97adab4a101f437789bf2acf46309170 22329 utils required util-linux_2.42.1-2_arm64.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfRrP+tnggGycTNOSXBPW25MFLgMFAmohZNUACgkQXBPW25MF LgOKVg//dsdpYkNsY5A+bYrUd3pi1JQ13TYSGB7wZI3vxXq6evE8P6sXf+z1R+/P qh2nLYcWEzFm62ccI7giW6vEpfEffyFCw6haPJeAraOUl+SDSDIJlQ8f2jhrj3Zj rhouYKMkgPK4yhEng1N91XdI+9HAzZizd/I8m95T7HnTXAuHAqbPPl7N8V96htbN yeXYwIeM1G04xdMNp+59xId5K0r28tbtcIjsbJhMJKer4C26Qg89nqK3lvMlbXLv ZCWAenPubdDS6Ujn4ETr2LWdHfV7gYlMJsqMAmzvECHe7goiF48Hjwvk2xpvVf3S BUxSTPkxmix5M9HJE1aYdo4VDNmpqb+9Z+aVkPpljpTaW9fCuiUlm9Tze+tFUvwv zgmZ+v5NDMLgWkMoHgj1wjgzK3e+Hsm51ErXHXRYiRi3SSDZreEHSGerFWHS4d85 g9cRxrTcxupBpNuMo32uD7mckZXS20P+uB/Vst95fZThlSyc6lrc5mxmeH4/Vbu+ SdiKjQ/qWeRfwbrMTpytY7D6nnUVyBHbzudgAAcJqWwuyNRIUfapFGyjDSPz9SOw 9MdmwCS9VcUTxYvcYtrRi+iwaxckDOy26L6/zbQL/nQWAPhGywdl5MqJWFhZX268 i3lw6iy7YW5aKKf/hh/nw2oDIJSca4zGA7uXGhfj5BIMx0qBVpU= =kXbe -----END PGP SIGNATURE-----
Some systems run with kernels using page sizes other than 4K. The
file-existing test used a file of 10 pages at 4K. This would fail on
kernels with higher page sizes (here 16K) like this:
mkswap: error: swap area needs to be at least 160 KiB
Use 10 * 64K pages, hopefully allowing all kernels with 4K, 16K, 64K
pages to pass the tests.
Noticed on Debian loong64 kernel 7.0.9+deb14-loong64, and on
sparc64 and alpha.
Bug: https://bugs.debian.org/1138789
Fixes: 775729884a3945a53df33e0d3ff2ba263b96b59e
Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
---
tests/ts/mkswap/mkswap | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/ts/mkswap/mkswap b/tests/ts/mkswap/mkswap
index 19111971c..fa7e6b462 100755
--- a/tests/ts/mkswap/mkswap
+++ b/tests/ts/mkswap/mkswap
@@ -105,11 +105,11 @@ ts_init_subtest file-existing
outimg="$TS_OUTDIR/existing.img"
rm -f "$outimg"
-"$TS_CMD_MKSWAP" -q -U "$UUID" -F -s $((4096 * 10)) "$outimg" \
+"$TS_CMD_MKSWAP" -q -U "$UUID" -F -s $((65536 * 10)) "$outimg" \
>> "$TS_OUTPUT" 2>/dev/null \
|| ts_log "mkswap failed"
-"$TS_CMD_MKSWAP" -q -U "$UUID" -F -s $((4096 * 10)) "$outimg" \
+"$TS_CMD_MKSWAP" -q -U "$UUID" -F -s $((65536 * 10)) "$outimg" \
>> "$TS_OUTPUT" 2>&1 \
|| ts_log "mkswap -F failed on existing file"
It was already fixed by commit c5da6dcfe, which explicitly forces the
page size to 4096 rather than extending the file size.
Karel
We believe that the bug you reported is fixed in the latest version of
util-linux, 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 1138789@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 util-linux 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: Mon, 08 Jun 2026 15:05:17 +0200
Source: util-linux
Architecture: source
Version: 2.42.1-3
Distribution: unstable
Urgency: medium
Maintainer: Chris Hofstaedtler <zeha@debian.org>
Changed-By: Chris Hofstaedtler <zeha@debian.org>
Closes: 1138789
Changes:
util-linux (2.42.1-3) unstable; urgency=medium
.
* Use upstream patch to fix FTBFS on systems with non-4K pagesizes
(Closes: #1138789)
Checksums-Sha1:
b9beeed0707b1cbe503b67977c7b5661df749ec3 5331 util-linux_2.42.1-3.dsc
6f59b46212a567a79d9298ff532d0e13e7ffd1aa 102424 util-linux_2.42.1-3.debian.tar.xz
a3fcd55715e0c38ee48c2ebab0c9fec2d3a10686 22818 util-linux_2.42.1-3_arm64.buildinfo
Checksums-Sha256:
c1ea12942b4268659f28f199534944c8bd6a9a5ba39a6641371c192bfda306e6 5331 util-linux_2.42.1-3.dsc
60a852195115677b3c16a25cf370e37174e10b99668aa8970c936bb70e3389cd 102424 util-linux_2.42.1-3.debian.tar.xz
9fc1526b98daa3a935d390f1d292d3231372d903ef7fc3296054ff67b7bdfc6d 22818 util-linux_2.42.1-3_arm64.buildinfo
Files:
050e16eccce7aae9813bc7c162291c5a 5331 utils required util-linux_2.42.1-3.dsc
919e3cdce035a0909d4ecae0f00f16b9 102424 utils required util-linux_2.42.1-3.debian.tar.xz
a040eda4de61d0de11999a5eef2c258f 22818 utils required util-linux_2.42.1-3_arm64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEfRrP+tnggGycTNOSXBPW25MFLgMFAmomwt4ACgkQXBPW25MF
LgOgZg//SdRWX88tvj7kuOk5tJnqWizXvZ/UC+cPOo21NeVL6MOzE8gUNBJl0L9N
2Bh0Y5xGydl8JNUg+73K3gfFcLDsd+3mZ1L/VHBO0b+ZJGpGA/0j4jnHh5CDWD+x
NFlUpLOnZzmOoAko1f7RasHybQGyMWgBETQSMpD1OYKN3EjVOYRiB/6jsKcvU2ni
9hKaNzFlYYt05j/Atl3djf6mv9/xYyKKDT/E4db7Osk5T0jJNdjozQ5PrJEmf34D
NYNpygMpXkJ88t56c4QIoTWcMcdhkoeKuXzIxT+2GTppF7Fz/wR2K9/NgV2qmG9J
LjZtbYdqYnhBuu3Ydc72bA4IYIJBijiIPzDmDHcsWycmBdFFn8BtW1znvyq+StDm
PB4FmS67gs+tlLdlp5lwOZADWPn/7rC3FNSdLj2VD49AS37LEIL2gjNAq9Ykb367
5YqvJ71luO+Wr4vy+7NS+r5MSP7SBYgAX75TPPFt3VXlGEzYXU3jQmfYnCAlS90v
J2mOeOSB92SMSophOBcON9ugVSLYadJ9/RgXSYUxkymuPIS23+H4Ef+fzM9S20Jo
8B3mM44WxWFy6BIbGgxpiEPDFKbnb5K4fJ4W/eOgQtMcbCM9Hq6KCAZB2LAzdW4H
jOaqnhfrDInGSYvFcl4zsL6s6D4dW1HjvM0eBFWoG/GmKHLB7cA=
=iy5t
-----END PGP SIGNATURE-----
Ah, thank you! I've pulled this commit into our build. Best, Chris