Another problem found with PySDL2 test suite. The reproducer: ``` #include <SDL.h> int main() { SDL_Init(SDL_INIT_VIDEO|SDL_INIT_GAMECONTROLLER); int idx = SDL_JoystickAttachVirtual(SDL_JOYSTICK_TYPE_GAMECONTROLLER, 2, 4, 1); SDL_GameControllerOpen(idx); printf("%s\n", SDL_GetError()); return 0; } ``` $ gcc repro.c $(pkg-config --cflags --libs sdl2) $ ./a.out Unexpected controller element crc
Per upstream this is working as intended, and pysdl2 was wrong. FWICS pysdl2 was already fixed in git, so nothing to do here.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3825b89edbaf421648a3aacc290951fd030d7a07 commit 3825b89edbaf421648a3aacc290951fd030d7a07 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-10-22 18:06:17 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-10-22 18:06:17 +0000 dev-python/PySDL2: update test skip comment Bug: https://bugs.gentoo.org/916118 Bug: https://bugs.gentoo.org/916120 Signed-off-by: Sam James <sam@gentoo.org> dev-python/PySDL2/PySDL2-0.9.16.ebuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)