Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 702346 - dev-libs/libxslt-1.1.33-r1 not is python3 compatible
Summary: dev-libs/libxslt-1.1.33-r1 not is python3 compatible
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://gitlab.gnome.org/GNOME/libxsl...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: py3-tracker, python-3-incompatible
  Show dependency tree
 
Reported: 2019-12-09 14:58 UTC by Ulenrich
Modified: 2021-02-07 13:25 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
failing emerge with USE python and ebuild with python3 (libxslt-1.1.33-r1:20191209-142443.log,133.92 KB, text/x-log)
2019-12-09 14:58 UTC, Ulenrich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulenrich 2019-12-09 14:58:37 UTC
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
Comment 1 Ulenrich 2019-12-09 15:48:03 UTC
Why don't we: package.use.unstable.mask
to test if someone hit with not USE python
Comment 2 charles17 2019-12-19 08:38:31 UTC
There is a patch mentioned in 
(Add Python 3 support) https://gitlab.gnome.org/GNOME/libxslt/issues/25
Comment 3 Dmitry Grigoriev 2020-03-11 20:24:57 UTC
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.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-06-27 12:43:44 UTC
(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.
Comment 5 tt_1 2020-07-15 09:04:27 UTC
(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
Comment 6 Larry the Git Cow gentoo-dev 2020-08-06 19:43:56 UTC
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(+)