Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 535978 - games-emulation/dolphin with media-libs/libsdl2 USE=-haptic - no joystick, no error messages, SDL_Init error
Summary: games-emulation/dolphin with media-libs/libsdl2 USE=-haptic - no joystick, no...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Devan Franchini (RETIRED)
URL: https://github.com/koi8-r/Patches/tre...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-01-07 23:22 UTC by Валентин
Modified: 2015-01-17 01:45 UTC (History)
0 users

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


Attachments
games-emulation/dolphin-4.0.2-r1 build log (dolphin-4.0.2-r1:20150114-191008.log.gz,55.59 KB, application/gzip)
2015-01-16 08:10 UTC, Fab
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Валентин 2015-01-07 23:22:59 UTC
Need to check haptic use flag on libsdl2, if dolphin found libsdl2, then it add haptic to sdl init flags. If libsdl2 build without this flag dolphin silently don't show djoystick to you because SDL_Init raise error. This is DIRTY patch: https://github.com/koi8-r/Patches/blob/master/Gentoo/games-emulation/dolphin/dolphin-9999.ebuild-SDL2-missing-haptic-use.patch

Reproducible: Always

Steps to Reproduce:
1. USE='haptic' emerge -1av media-libs/libsdl2

Actual Results:  
Can use my joystick.
Comment 2 Devan Franchini (RETIRED) gentoo-dev 2015-01-12 22:10:05 UTC
This should be in the portage tree soon. Please recompile it and let me know how if you run into any issues. Thank you for the bug report and for the patch as well.
Comment 3 Fab 2015-01-15 11:05:51 UTC
Confirming the same problem with 4.0.2-r1 ebuild.
Without haptic useflag on libsdl2, my joystick is not recognized.
Comment 4 Devan Franchini (RETIRED) gentoo-dev 2015-01-15 21:06:58 UTC
(In reply to Fab from comment #3)
> Confirming the same problem with 4.0.2-r1 ebuild.
> Without haptic useflag on libsdl2, my joystick is not recognized.

Can you test the 9999 ebuild and let me know if it works for you then?
If so, I'll move the change over to the 4.0.2 ebuild as well.
Comment 5 Fab 2015-01-16 08:10:51 UTC
Created attachment 394072 [details]
games-emulation/dolphin-4.0.2-r1 build log

I can't test 9999 version because it pulls in others dependencies than 4.0.2-r1.

I already had libsdl2 installed on my system (dependency for other packages).

Please have a look at the attached build log, games-emulation/dolphin-4.0.2-r1 is already using libsdl2 :
> -- Found SDL2: /usr/lib64/libSDL2main.a;/usr/lib64/libSDL2.so;-lpthread
> Using shared SDL2

I just rebuilt libsdl2 with haptic useflag on, and it worked.
Comment 6 Валентин 2015-01-16 17:57:34 UTC
(In reply to Devan Franchini from comment #2)
> This should be in the portage tree soon. Please recompile it and let me know
> how if you run into any issues. Thank you for the bug report and for the
> patch as well.

Test 9999, joystick work.
Comment 7 Devan Franchini (RETIRED) gentoo-dev 2015-01-16 19:00:04 UTC
Alright, I modified the 4.0.2 ebuild to bring in libsdl2 with USE="haptic joystick" for the package. It should be on the portage tree shortly. Once it is I'll give it a few hours for someone to confirm in this bug report that everything works out correctly and close it after. Thank you guys for your assistance in squashing this bug :)
Comment 8 Devan Franchini (RETIRED) gentoo-dev 2015-01-16 19:02:48 UTC
(In reply to Fab from comment #5)
> Created attachment 394072 [details]
> games-emulation/dolphin-4.0.2-r1 build log
> 
> I can't test 9999 version because it pulls in others dependencies than
> 4.0.2-r1.
> 
> I already had libsdl2 installed on my system (dependency for other packages).
> 
> Please have a look at the attached build log,
> games-emulation/dolphin-4.0.2-r1 is already using libsdl2 :
> > -- Found SDL2: /usr/lib64/libSDL2main.a;/usr/lib64/libSDL2.so;-lpthread
> > Using shared SDL2
> 
> I just rebuilt libsdl2 with haptic useflag on, and it worked.

Also, just to clarify on this regard, it's very possible another package brought in libsdl2 as a dependency and dolphin's build environment picked up on that. I find that sometimes that can be both a benefit and a drawback because dolphin can have automagic behaviour on build.