Am 21.03.22 um 10:47 schrieb Axel Braun:
With the prjconf settings and all dependencies I could finally buils python- tinydb and MyGNUHealth in Application:ERP:GNUHealth:Factory
Packages/versions (that still work with python 3.6) needed:
@Lubos - how do we now continue? SR from A:E:G:F into openSUSE:Backports:SLE-15-SP4? Do SLE maintainers care about this?
In case it is not obvious: The prjconf settings need to go into the projects as well. It is not enough to have them in A:E:G:F. They need to be accessible by the staging and at the final build of the GA. Since python-rpm-macros-20220106.80d3756 is in https://build.opensuse.org/package/show/SUSE:SLE-15-SP4:GA/python-rpm-macros, this one needs an update: https://build.opensuse.org/projects/SUSE:SLE-15-SP4:GA/prjconf Look at lines 121 through 132. They are outdated. The correct entry is: # PYTHON STUFF %define skip_python2 1 %define _without_python2 1 Macros: ## PYTHON MACROS BEGIN # adapted form of https://github.com/openSUSE/python-rpm-macros/blob/master/default-prjconf for SLE/Leap 15.4 # requires python-rpm-macros >= 20210204 %pythons %{?!skip_python3:python3} %add_python() %{expand:%%define pythons %1 %pythons} %_without_python2 1 # This method for generating python_modules gets too deep to expand for rpm at about 5 python flavors. # Hence, python_module_iter is replaced by python_module_lua in macros.lua. # However, OBS cannot expand lua, but has a much higher expansion depth, so this works fine for the server side resolver. %python_module_iter(a:) %{expand:%%define python %{-a*}} ( %python-%args ) %{expand:%%{?!python_module_iter_%1:%%{python_module_iter -a%*}}%%{?python_module_iter_%1}} # pseudo-undefine for obs: reset for the next expansion within the next call of python_module %python_module_iter_STOP %global python %%%%python %python_module() %{?!python_module_lua:%{expand:%%define args %{**}} %{expand:%%{python_module_iter -a %{pythons} STOP}}}%{?python_module_lua:%python_module_lua %{**}} ## PYTHON MACROS END :Macros # END PYTHON STUFF If you don't do it, you have to modify all the %{python_module .... if %python...} entries from specfiles submitted to openSUSE:Backports:SLE-15-SP4 such as https://build.opensuse.org/request/show/953761 And clean out https://build.opensuse.org/projects/openSUSE:Backports:SLE-15-SP4/prjconf ! - Ben