Hello, Am Sonntag, 5. Juni 2016, 11:07:12 CEST schrieb Axel Braun:
Am Sonntag, 5. Juni 2016, 10:52:57 schrieb Axel Braun:
It seems that I did not get rid of this problem for all packages. Another quite simple package https://build.opensuse.org/package/show/Application:ERP:Tryton:4.0/t rytond_c urrency is still struggeling the python < PYTHON-NOT-FOUND dependency issue, although it uses only python 3 packages. Is there a way to override the dependency?
Every now and then you find the reason by chance... it is not sufficient to uncomment the line #%py_requires It has to be removed completely to get rid of python < PYTHON-NOT-FOUND
That's not too surprising - rpm macros still gets expanded even if they are commented out, and this will explode if they expand to more than one line. # rpm --eval '%{py_requires}' BuildRequires: /usr/bin/python PreReq: python = 2.7 So you basically end up with # BuildRequires: /usr/bin/python PreReq: python = 2.7 (s/2.7/PYTHON_NOT_FOUND/ in your case) When commenting out a macro, you should remove the % sign to avoid this. BTW: to explain where PYTHON_NOT_FOUND comes from: # grep -r -A2 py_requires /etc/rpm/ /etc/rpm/macros.python:%py_requires(d) \ /etc/rpm/macros.python-BuildRequires: /usr/bin/python %{-d:python-devel} \ /etc/rpm/macros.python-PreReq: python = %{py_ver} # grep -r py_ver /etc/rpm/ | head -n1 /etc/rpm/macros.python:%py_ver %(python -c "import sys; v=sys.version_info[:2]; print '%%d.%%d'%%v" 2>/dev/null || echo PYTHON-NOT-FOUND) So for some reason python isn't installed, and %py_ver gets set to PYTHON_NOT_FOUND instead of the python version. Regards, Christian Boltz -- Und wenn du denkst dich mag niemand mehr, dann kommt der Christopher und siggt dich sehr. [Christopher Splinter in dag°] -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org