| Summary: | libudev fallback when failing to load library | ||
|---|---|---|---|
| Product: | SDL | Reporter: | tomwardio |
| Component: | joystick | Assignee: | tomwardio |
| Status: | WAITING --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus, sezeroz |
| Version: | HG 2.1 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
|
Description
tomwardio
2019-07-29 15:09:37 UTC
Yes, that sounds good. Thanks! (Sorry if you get several emails like this, we're marking a bunch of bugs.) We're hoping to ship SDL 2.0.11 on a much shorter timeframe than we have historically done releases, so I'm starting to tag bugs we hope to have closed in this release cycle. Note that this tag means we just intend to scrutinize this bug for the 2.0.11 release: we may fix it, reject it, or even push it back to a later release for now, but this helps give us both a goal and a wishlist for the next release. If this bug has been quiet for a few months and you have new information (such as, "this is definitely still broken" or "this got fixed at some point"), please feel free to retest and/or add more notes to the bug. --ryan. We're changing how we do SDL release versions; now releases will be even numbers (2.0.10, 2.0.12, etc), and as soon as we tag a release, we'll move the internal version number to an odd number (2.0.12 ships, we tag the latest in revision control as 2.0.13 immediately, which will become 2.0.14 on release, etc). As such, I'm moving the bugs tagged with target-2.0.11 to target 2.0.12. Sorry if you get a lot of email from this change! Thanks, --ryan. We're changing how we do SDL release versions; now releases will be even numbers (2.0.10, 2.0.12, etc), and as soon as we tag a release, we'll move the internal version number to an odd number (2.0.12 ships, we tag the latest in revision control as 2.0.13 immediately, which will become 2.0.14 on release, etc). As such, I'm moving the bugs tagged with target-2.0.11 to target 2.0.12. Sorry if you get a lot of email from this change! Thanks, --ryan.
It's worth noting that at least src/core/linux/SDL_evdev.c has this comment:
#else
/* TODO: Scan the devices manually, like a caveman */
#endif /* SDL_USE_LIBUDEV */
...which is to say, not everything has existing fallback code for non-UDEV systems.
(these fallbacks, if written, should _never_ deal with hotplugging, imho. They should just find what's available at startup and be done with it. If the device tree changes and they want SDL to notice: they should install UDEV. Also, if they want to deal with anything other than the most standard device layout with no surprises: they should install UDEV. But I can definitely see a value for low-complexity embedded systems here.)
--ryan.
I still think this is worth doing (whether Tom does it or I do it), but I'm going to remove the target-2.0.12 keyword for now, as this can wait for a later release. --ryan. |