media-libs/libsdl2 fails to build with USE="haptic -joystick": SDL_syshaptic.c:(.text+0x3f): undefined reference to `test_bit' /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: SDL_syshaptic.c:(.text+0x55): undefined reference to `test_bit' /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: SDL_syshaptic.c:(.text+0x72): undefined reference to `test_bit' /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: SDL_syshaptic.c:(.text+0x8f): undefined reference to `test_bit' /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: SDL_syshaptic.c:(.text+0xac): undefined reference to `test_bit' /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: build/.libs/SDL_syshaptic.o:SDL_syshaptic.c:(.text+0xc9): more undefined references to `test_bit' follow collect2: error: ld returned 1 exit status make: *** [Makefile:154: build/libSDL2.la] Error 1 I think "haptic? ( joystick )" needs to be added to REQUIRE_USE.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a46c7be2c13af94a54ec6018b5995732b0e779a commit 3a46c7be2c13af94a54ec6018b5995732b0e779a Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2021-09-23 22:07:00 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2021-09-23 22:07:00 +0000 media-libs/libsdl2: Require USE=joystick when USE=haptic Otherwise you get an undefined reference. Bug: https://bugs.gentoo.org/814332 Signed-off-by: James Le Cuirot <chewi@gentoo.org> media-libs/libsdl2/libsdl2-2.0.16.ebuild | 1 + 1 file changed, 1 insertion(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d0a1b310fa79c52a6e70d2657fcc8608bfdb3f9 commit 4d0a1b310fa79c52a6e70d2657fcc8608bfdb3f9 Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2021-10-02 19:46:27 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2021-10-02 19:46:27 +0000 media-libs/libsdl2: Drop old 2.0.14-r1 Closes: https://bugs.gentoo.org/814332 Signed-off-by: James Le Cuirot <chewi@gentoo.org> media-libs/libsdl2/Manifest | 1 - .../libsdl2/files/libsdl2-2.0.14-static-libs.patch | 34 ---- .../libsdl2/files/libsdl2-2.0.14-vulkan.patch | 13 -- media-libs/libsdl2/libsdl2-2.0.14-r1.ebuild | 210 --------------------- 4 files changed, 258 deletions(-)