Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#76733 - [python-pygame] Package needs a rebuild with new SDL version

Attached to Project: Community Packages
Opened by Joaquín Ignacio Aramendía (Samsagax) - Saturday, 03 December 2022, 16:09 GMT
Last edited by Toolybird (Toolybird) - Sunday, 21 May 2023, 05:15 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Morten Linderud (Foxboron)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

The package python-pygame errors out on init() since SDL version hit 2.26 with this stacktrace:

```
pygame 2.1.2 (SDL 2.26.0, Python 3.10.8)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
...
pygame.init()
RuntimeError: SDL compiled with version 2.24.0, linked to 2.26.0
```

Steps to reproduce:

Do a simple python file:

```python
import pygame

pygame.init()
```
This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 21 May 2023, 05:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-pygame 2.1.2-3
Comment by Emil Vatai (vatai) - Tuesday, 13 December 2022, 13:33 GMT Comment by Joaquín Ignacio Aramendía (Samsagax) - Tuesday, 13 December 2022, 13:38 GMT
But the thing is v2.1.3 is not yet released as stable. Current pygame in community is v2.1.2 that still needs a rebuild each time sdl2 is updated.
Comment by Denilson Sá Maia (denilsonsa) - Wednesday, 14 December 2022, 20:49 GMT
All that is needed is to always rebuild the pygame package any time there is a new SDL version. This makes sure both packages are always in sync.

An alternative (while 2.1.3 isn't yet released) is to backport this commit as a patch to be applied to the package:
https://github.com/pygame/pygame/commit/0372ddc38304b95c4bb01175e59fddb4c18d9325
It relaxes the version check, so pygame won't abort that easily on minor SDL version changes.
Comment by Morten Linderud (Foxboron) - Thursday, 15 December 2022, 09:46 GMT
The linked patch doesn't apply cleanly on-top of 2.1.2.

I'll rebuild it in the meantime.

Loading...