Created attachment 598942 [details] failing emerge with USE python and ebuild with python3 My try with python-3.7: --- [ebuild R ] dev-libs/libxslt-1.1.33-r1::pmaci [1.1.33-r1::gentoo] USE="crypt -debug examples* python* -static-libs" ABI_X86="32 (64) (-x32)" PYTHON_TARGETS="(-python2_7%) python3_7%*" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB Would you like to merge these packages? [Yes/No] y >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-libs/libxslt-1.1.33-r1::pmaci >>> Failed to emerge dev-libs/libxslt-1.1.33-r1, Log file: ... ... make[1]: Entering directory '/tmp/portage/dev-libs/libxslt-1.1.33-r1/work/libxslt-1.1.33-abi_x86_64.amd64-python3_7/python' SRCDIR=/tmp/portage/dev-libs/libxslt-1.1.33-r1/work/libxslt-1.1.33/python /usr/bin/python3.7 /tmp/portage/dev-libs/libxslt-1.1.33-r1/work/libxslt-1.1.33/python/generator.py File "/tmp/portage/dev-libs/libxslt-1.1.33-r1/work/libxslt-1.1.33/python/generator.py", line 42 print "close" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("close")? make[1]: *** [Makefile:993: gen_prog] Error 1 --- ends with a typical python3 error because the print is not enclosed in brackets. Down sides: Upstream is not keen to update python: A) I have nothing found on: https://mail.gnome.org/archives/xslt/ B) Upstream github shows python source code is 7y old: https://github.com/GNOME/libxslt/tree/mainline/python C) All that despite upstream is on the verge to release libxslt-1.1.34 Gentoo potential consumers who mention USE python: dev-python/sympy app-text/xiphos Gentoo consumers not mentioning any USE python: dev-python/pygtksourceview dev-python/lxml dev-lang/ghc
Why don't we: package.use.unstable.mask to test if someone hit with not USE python
There is a patch mentioned in (Add Python 3 support) https://gitlab.gnome.org/GNOME/libxslt/issues/25
As far as I can tell, `emerge -pv --depclean python:2.7` lists www-client/firefox and mail-client/thinderbird only because of libxslt dependency.
(In reply to Dmitry Grigoriev from comment #3) > As far as I can tell, `emerge -pv --depclean python:2.7` lists > www-client/firefox and mail-client/thinderbird only because of libxslt > dependency. I think both of them need Python 2 in the build system.
(In reply to Sam James from comment #4) > (In reply to Dmitry Grigoriev from comment #3) > > As far as I can tell, `emerge -pv --depclean python:2.7` lists > > www-client/firefox and mail-client/thinderbird only because of libxslt > > dependency. > > I think both of them need Python 2 in the build system. >=firefox-78.0 is believed to be free of python-2 build time deps
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bddd492d58c6e7af4937d79b8460a5da3a9f46de commit bddd492d58c6e7af4937d79b8460a5da3a9f46de Author: Sam James <sam@gentoo.org> AuthorDate: 2020-08-05 05:00:14 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2020-08-06 19:43:51 +0000 dev-libs/libxslt: drop Python (2.7 only) bindings Nothing requires libxslt's Python bindings, and they only exist for Python 2.7. Let's drop them instead, after discussion on IRC. Closes: https://bugs.gentoo.org/702346 Closes: https://bugs.gentoo.org/685638 Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/libxslt/libxslt-1.1.34-r1.ebuild | 63 +++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+)