#1105444 libsdl2: FTBFS with make --shuffle=reverse: ld: cannot find -lSDL2_test: No such file or directory

Package:
src:libsdl2
Source:
src:libsdl2
Submitter:
Lucas Nussbaum
Date:
2025-08-10 14:11:02 UTC
Severity:
normal
Tags:
#1105444#5
Date:
2025-05-13 19:06:15 UTC
From:
To:
Hi,

GNU Make now has a --shuffle option that simulates non-deterministic ordering
of target prerequisites. See
https://trofi.github.io/posts/238-new-make-shuffle-mode.html and also previous
work in Debian by Santiago Vila:
https://people.debian.org/~sanvila/make-shuffle/

This package fails to build with make --shuffle=reverse.
This is likely to be caused by a missing dependency in
debian/rules or an upstream Makefile.

More information about this mass bug filing is available at
https://wiki.debian.org/qa.debian.org/FTBFS/Shuffle

Relevant part (hopefully):
The full build log is available from:
http://qa-logs.debian.net/2025/05/05/shuffle/reverse/libsdl2_2.32.4+dfsg-1_unstable_reverse.log

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

#1105444#10
Date:
2025-05-13 19:57:30 UTC
From:
To:
I'm not intending to resolve this in trixie given the current stage in
the release cycle: if our official buildds and "most" developers can
successfully build libsdl2 in the obvious order, then that's good
enough.

For forky, it is probably not worthwhile to put a large amount of effort
into fixing this, because I'm hoping to replace libsdl2 with sdl2-compat
during the forky cycle anyway, similar to how we replaced libsdl1.2 with
sdl12-compat in trixie. sdl2-compat has a CMake-based build system,
similar to libsdl3, without the artificial separation between the main
build and the tests.

This might be as simple as a missing dependency of build-library on
build-tests in debian/rules, in which case it should be a
straightforward fix. But there might also be missing dependencies in the
upstream build system (which is an artisanal hand-crafted Makefile.in -
they use Autoconf but not Automake) which would be less straightforward!

     smcv

#1105444#15
Date:
2025-05-14 13:04:29 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libsdl2, 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 1105444@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Simon McVittie <smcv@debian.org> (supplier of updated libsdl2 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: Wed, 14 May 2025 12:54:57 +0100
Source: libsdl2
Architecture: source
Version: 2.32.6+dfsg-1
Distribution: experimental
Urgency: medium
Maintainer: Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>
Changed-By: Simon McVittie <smcv@debian.org>
Closes: 1105444
Changes:
 libsdl2 (2.32.6+dfsg-1) experimental; urgency=medium
 .
   * New upstream stable release
     - Fix misleading SDL_BlitSurface() documentation
     - Retry reading calibration data a few times for Switch hidraw devices
     - Only include <immintrin.h> on x86, even if it somehow exists on other
       architectures
     - Avoid undefined behaviour (adding an offset to nullptr)
       in the GLES2 renderer
     - Avoid undefined behaviour (31-bit left shift) when disabling some
       event types
   * d/rules: Ensure that library is built before tests (Closes: #1105444)
   * Upload to experimental due to trixie freeze
Checksums-Sha1:
 a5e3fd236f214544143b63d2612ff22874583b6c 3238 libsdl2_2.32.6+dfsg-1.dsc
 719c00523174eb85f86b2d10e00bb3cea75c6a84 5230743 libsdl2_2.32.6+dfsg.orig.tar.gz
 62a4c535d9d74aaf65df64c19c175cbdea581abe 44312 libsdl2_2.32.6+dfsg-1.debian.tar.xz
 435dd8d3d1371e7a0b736c9e83c49c9ed1a06729 10928 libsdl2_2.32.6+dfsg-1_source.buildinfo
Checksums-Sha256:
 040af6ca9579bcf0383bdf557b344e4d870fe6931ced342a127e7b00eb6bd9c2 3238 libsdl2_2.32.6+dfsg-1.dsc
 0ed5d5a84aaf984b59e89ef8adc6dae44ed6c9309e671d4a703ffd4cd14366da 5230743 libsdl2_2.32.6+dfsg.orig.tar.gz
 1b13558826e9fbf4782d57abf4171f8bdba286028b0b68865ef670c801bbf83f 44312 libsdl2_2.32.6+dfsg-1.debian.tar.xz
 8cfe4b7febd235c28b4d18fbbebe371bc1af99bc639458e71a019c198cb35394 10928 libsdl2_2.32.6+dfsg-1_source.buildinfo
Files:
 a2349fabf20df2cc3fb38b39e688e70e 3238 libs optional libsdl2_2.32.6+dfsg-1.dsc
 43ffbbab78b2648b16b77aeb363cf761 5230743 libs optional libsdl2_2.32.6+dfsg.orig.tar.gz
 6c5b20f626e4b8079237390a93b372a8 44312 libs optional libsdl2_2.32.6+dfsg-1.debian.tar.xz
 c5c6e9da8db1147468fb45db700c8c94 10928 libs optional libsdl2_2.32.6+dfsg-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEegc60a5pT6Jb/2LlI1wJnT6zMHYFAmgklDgACgkQI1wJnT6z
MHY+VQ//Y+opDa4HfT+FXmJlHJsWxzAVrXr7KwL5wRoSklEB4nzzMQ/o0hiX/0I1
7PANRp6rxxl7CMza4CD9ry0NgG9OGFYiWQnMsAxnEMwvxuKZEuppLTpx7/fRCQc1
jf4h5aKuzw2fE3saNIwlQNuP9Vkjp5plajlmWIbB++UrSKBioHrZ+8Pgqc6Rg1c3
3wYTxPSj7CSZ09Jy6JrU+b/UxFVbg6N+E9E/qA8WEK5ipAXrO2P3INrLMPW3Sy1t
OtGr+UFCmIXIWV8VDXKfe4AlWkQaFVpE5kYan+MmDvTTlCiG+TVehfGBm9vDVHXD
NVdK7rYluW6jdEhIY6Fq6dFZ+KazDOfhpZQdHpnPhU/Nc23DLDYi42wrTlJSgF42
fJsLUC2w0mKdrbM6aHH769xYIx73vywTcUJLny+Lx+QWLDRMJQo4lp7CGzpbHYzy
WUTm1uTqCaqbBK9ifFNEYbpAWZmXhcbW0ClMBsgL/fvSPIMsRSo9lcdKp8I4SyKt
9HsCYx7s/f8zvzlhonxeIGtX24FwYmoEc+B9e+aXQioUOLStZbjIIMxLFnJQ7NIo
LYXwsmjxh7ferA43CF68HG7ZRNjKbQCNG8bNFntBgFK8t2IwXEES6OTe765SUK1/
RVYb1DSbI+252VkuNUlMNUQA227oCj8PbmTP/c4kO5hQxpuDKss=
=JyVB
-----END PGP SIGNATURE-----

#1105444#20
Date:
2025-08-10 14:09:21 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libsdl2, 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 1105444@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Simon McVittie <smcv@debian.org> (supplier of updated libsdl2 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, 10 Aug 2025 11:23:26 +0100
Source: libsdl2
Architecture: source
Version: 2.32.8+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>
Changed-By: Simon McVittie <smcv@debian.org>
Closes: 1105444
Changes:
 libsdl2 (2.32.8+dfsg-2) unstable; urgency=medium
 .
   * Rebuild for unstable
 .
 libsdl2 (2.32.8+dfsg-1) experimental; urgency=medium
 .
   * New upstream stable release
     - Use getauxval() to check for Altivec on PowerPC
     - Avoid unused function warnings in cpuinfo
     - Fix Gamecube controller adapter hotplug detection
     - Fix a rare crash while trying to interrupt SDL_WaitEvent()
     - Revert a problematic change to default texture formats in the GLES2
       renderer
     - Emscripten-, PS2- and Windows-specific changes not relevant in Debian
 .
 libsdl2 (2.32.6+dfsg-1) experimental; urgency=medium
 .
   * New upstream stable release
     - Fix misleading SDL_BlitSurface() documentation
     - Retry reading calibration data a few times for Switch hidraw devices
     - Only include <immintrin.h> on x86, even if it somehow exists on other
       architectures
     - Avoid undefined behaviour (adding an offset to nullptr)
       in the GLES2 renderer
     - Avoid undefined behaviour (31-bit left shift) when disabling some
       event types
   * d/rules: Ensure that library is built before tests (Closes: #1105444)
   * Upload to experimental due to trixie freeze
Checksums-Sha1:
 cf8e00c43224ec98776669132f0e923c36ebad70 3238 libsdl2_2.32.8+dfsg-2.dsc
 a47a4051a12bac670069ef0bf363aace3c6ab947 44448 libsdl2_2.32.8+dfsg-2.debian.tar.xz
 6a06f9758de0aa8bd286b0078c88a6dcd4e9b4cc 10942 libsdl2_2.32.8+dfsg-2_source.buildinfo
Checksums-Sha256:
 c3cd0566cc9926a2acbaef7f88012ae6d741b1711d4d604695992bc88e65642b 3238 libsdl2_2.32.8+dfsg-2.dsc
 10226d47ee6257b3b2eeaa5f958fe8c701fb85dece17e1a2e60bedbf336d0774 44448 libsdl2_2.32.8+dfsg-2.debian.tar.xz
 ff058bf64f129593c955d8a118a162d3fcc49ca3a20f3deb62affc22c185643d 10942 libsdl2_2.32.8+dfsg-2_source.buildinfo
Files:
 ae58e27c2a142a0004618f276e7ad537 3238 libs optional libsdl2_2.32.8+dfsg-2.dsc
 58f7b7f28f8e356869f2e128c3dc8c66 44448 libs optional libsdl2_2.32.8+dfsg-2.debian.tar.xz
 830697b0ca142bfc1ee8be3cec49f2e6 10942 libs optional libsdl2_2.32.8+dfsg-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIyBAEBCgAdFiEEegc60a5pT6Jb/2LlI1wJnT6zMHYFAmiYkn4ACgkQI1wJnT6z
MHaT2w/1GM4giO/qIRDWbSbnYmaiMxLgKyMeCI3qN3aJfJE7lto+27i1p/LlVQ4m
Ah4Gzcclq/Lg/Xg8wQGbVxZGB2cnScT6PKiqwH1TBAte1yHVHqIqr+6Kya8YYetv
8crao6X+1qV3/waUrfX0/hrmOANz7B07iSviHlnN3T21pJH83n8JLJt0GutNW0xO
1FKNyPCSEBOMPpHr7Nil462srZkgUBbn5vWgevkTlTjy7rdIZD1vJVVLRgHuMbF/
83jsUk6zE2C8H+eDWQsizDj3nWXO2odaf88pvFjSUXM26FWdHMzOSDjizEvpQCrE
2+YItF0dMl+YdhQ1kOU98/L5ptW8ahkgKvtWOcXoZ1a5dKrfV3anUzvS/mGzuqoP
UWIinva8HytlOsIJYCTLMLGka1raj8Szm/bd7cTaPqs4PEIHr4OH7A4qKLngH3n+
ZxS2KV3RRehvC5LX2zkPTuXD0l2ir3mytGv0yaaoWMWP5QqsYjS3ReHeNeBIVjUN
vluqYizCStIWHunWWSd1EzlBo+P/lwLveeIyCCy9MEguIz/dL/4+npxDSHeF8yZd
SMPEn6CaJE/INR9H5DQAKuygGa0wiXnbr0iHiJ5UtYe2zuSYU22pkqdEu9NeXY3/
9QoQ6tWSLPyiH4vaRh4Al7XbXD3381/pePtH2/SCcoGT477S+A==
=dMsT
-----END PGP SIGNATURE-----