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!
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!
FS#70202 - [wesnoth] move python2 to optional dependencies
Attached to Project:
Community Packages
Opened by Stefan G (itaton) - Monday, 29 March 2021, 08:00 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Sunday, 13 June 2021, 02:12 GMT
Opened by Stefan G (itaton) - Monday, 29 March 2021, 08:00 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Sunday, 13 June 2021, 02:12 GMT
|
DetailsDescription:
Not sure if this is the correct place to report this - if not, feel free to close this. Wesnoth is currently my only installed package that still has a hard dependency on python2. According to https://bbs.archlinux.org/viewtopic.php?id=251481 (Thread from 2019) wesnoth should probably not depend on python2. At least the dependency should be optional. Additionally it seems (https://github.com/wesnoth/wesnoth/issues/1508) that upstream declared the port to python3 as finished. Additional info: * package version(s): current (1:1.14.16-1) |
This task depends upon
wesnoth-backports.txt is an attempt to backport python3 related commits. commits marked with * may not need to be cherry-picked as the tools they are updating seem more for upstream's internal use and some of them are commented out from my last test.
[1]: https://github.com/wesnoth/wesnoth/pull/5027/files
Do you have any objection to moving python2 to optdepends and adding python3 to optdepends as no version of python is used as part of the build process.
Edit:
Attached patch that backports python3 support. Its size is just way too big for a distribution patch.
Attached PKGBUILD.diff:
Move python2 from depends to optdepends.
Add python to optdepends.
Replace lua52 with lua53 [1].
Drop ENABLE_OMP=ON, ENABLE_TOOLS=ON and MANDIR=share/man that have been removed from CMakeLists.txt so cmake does not recognize them.
Change FIFO_DIR from /var/run/wesnothdto to /run/wesnothd.
Remove wesnothd.tmpfiles.conf let the service create and remove /run/wesnothd instead.
Change CMakeLists.txt to package HighContrast icon.
[1] https://raw.githubusercontent.com/wesnoth/wesnoth/1.14.16/src/wesnoth_lua_config.md
I also modernized the package and applied many of the other changes. Feel free to check it out, loqs.
I'll close this bug report though as the primary issue is solved.