Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 814332 - media-libs/libsdl2: haptic USE flag should require joystick USE flag
Summary: media-libs/libsdl2: haptic USE flag should require joystick USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: InVCS
Depends on: 814653
Blocks:
  Show dependency tree
 
Reported: 2021-09-22 10:06 UTC by Jesús P Rey (Chuso)
Modified: 2021-10-02 19:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesús P Rey (Chuso) 2021-09-22 10:06:07 UTC
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.
Comment 1 Larry the Git Cow gentoo-dev 2021-09-23 22:07:18 UTC
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(+)
Comment 2 Larry the Git Cow gentoo-dev 2021-10-02 19:46:52 UTC
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(-)