Summary: | dev-python/python-poppler-qt5-0.75.0 - error: command /usr/bin/sip failed with exit code 1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dilfridge, gentoo, gmwhitehead, grozin, himself, qt |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 820464 | ||
Attachments: |
emerge-info.txt
dev-python:python-poppler-qt5-0.75.0:20210916-005844.log emerge-history.txt environment etc.portage.tar.bz2 temp.tar.bz2 half-baked ebuild that at least gets it buildling... Ebuild for latest release Patch for release 21.1.0 |
Description
Toralf Förster
2021-09-16 07:16:31 UTC
Created attachment 739515 [details]
emerge-info.txt
Created attachment 739518 [details]
dev-python:python-poppler-qt5-0.75.0:20210916-005844.log
Created attachment 739521 [details]
emerge-history.txt
Created attachment 739524 [details]
environment
Created attachment 739527 [details]
etc.portage.tar.bz2
Created attachment 739530 [details]
temp.tar.bz2
Confirmed in a (mostly) stable installation (on gcc-11 global rebuild) (In reply to Andreas K. Hüttel from comment #7) > Confirmed in a (mostly) stable installation (on gcc-11 global rebuild) Does that mean sip-4.19.25-r1 and PyQt5-5.15.4-r1? Is sip-5.x or 6.x also installed? (In reply to Davide Pesavento from comment #8) > (In reply to Andreas K. Hüttel from comment #7) > > Confirmed in a (mostly) stable installation (on gcc-11 global rebuild) > Does that mean sip-4.19.25-r1 and PyQt5-5.15.4-r1? Is sip-5.x or 6.x also > installed? dev-python/sip-4.19.25-r1 and dev-python/sip-6.2.0 dev-python/PyQt5-5.15.5_pre2107091435 OK, that's not stable, sorry :) Same here sip-6.4.0 PyQt5-5.15.6 (In reply to Andrey Grozin from comment #10) > Same here > sip-6.4.0 > PyQt5-5.15.6 same here. python-targets 3.9 and 3.10 Me too: dev-python/sip-6.4.0:5::gentoo dev-python/PyQt5-5.15.6::gentoo Python-3.9 I found that /usr/bin/sip on my system belongs to sip v4 (which is also pulled in when trying to emerge python-poppler-qt5. However, trying to reinstall PyQt5 pulls in sip v6. Also, manually sym-linking /usr/lib/python3.9/site-packages/PyQt5/bindings to /usr/share/sip/PyQt5/ results in a syntax error. So it seems that we have here an incompatibility in the usage of sip v4 vs v6. The sip v6 package also does not provide /usr/bin/sip. And well, yes: dev-python/PyQt5-5.15.6 is only ~amd64, so ... There is also a new python-poppler-qt5 v21.1.0 upstream release. Perhaps that one just builds out of the box. Created attachment 761120 [details]
half-baked ebuild that at least gets it buildling...
Looks like upstream python-poppler-qt5 amended their build systems to support >=sip-5 a while ago and have been recommending away from the old setup.py which uses sip-4. This is the ebuild I'm using to at least get it to build (correctly generates an importable python module, and subsequently allows Frescobaldi to build and run without issues). The deeper issue seems to be upstream components having upgraded away from setup.py-style builds that no longer allow sip-4 to do its thing.
I'm by no means an expert at this, and I can see how using sip-install might be unacceptable for use in the main tree (looks like sip-build seems to be OK based on other ebuilds). Maybe this will be enough inspiration for someone more knowledgable than me to finish the job? Otherwise I'll try to continue to learn until I can provide something more generally usable.
Created attachment 767098 [details]
Ebuild for latest release
This ebuild works for me.
Tested with dev-python/sip-6.5.0 and PYTHON_TARGETS="python3_9 python3_10".
Release 21.1.0 does not build out of the box. It works by either using the latest git version on master or by using the release and applying the next few commits via patch.
Created attachment 767099 [details, diff]
Patch for release 21.1.0
(In reply to Jan Breig from comment #15) > Created attachment 767098 [details] > Ebuild for latest release > > This ebuild works for me. > Tested with dev-python/sip-6.5.0 and PYTHON_TARGETS="python3_9 python3_10". > Release 21.1.0 does not build out of the box. It works by either using the > latest git version on master or by using the release and applying the next > few commits via patch. This comment in the ebuild is incorrect: # sip does not support separate build and installation You can use `sip-build` or `sip-build --no-make` for that. For an example, see https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-python/qscintilla-python/qscintilla-python-2.13.1.ebuild The ebuild for the latest release https://bugs.gentoo.org/attachment.cgi?id=767098 no longer works with qt-5.15.3 because there is no qmake in the $PATH (only qmake5). This ebuild (with the patch https://bugs.gentoo.org/attachment.cgi?id=767099) works if I make the symlink /usr/bin/qmake. (In reply to Davide Pesavento from comment #17) > (In reply to Jan Breig from comment #15) > > Created attachment 767098 [details] > > Ebuild for latest release > > > > This ebuild works for me. > > Tested with dev-python/sip-6.5.0 and PYTHON_TARGETS="python3_9 python3_10". > > Release 21.1.0 does not build out of the box. It works by either using the > > latest git version on master or by using the release and applying the next > > few commits via patch. > > This comment in the ebuild is incorrect: > > # sip does not support separate build and installation > > You can use `sip-build` or `sip-build --no-make` for that. For an example, > see > https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-python/qscintilla-python/ > qscintilla-python-2.13.1.ebuild I was trying to improve the ebuild from comment #14. The problem was, that `sip-install` compiles AND copies the files to the target location regardless of whether this has been done before by `sip-build`. So using both `sip-build` and `sip-install` does the compilation twice. That's why I put this comment there. The correct way would probably be to only use sip for compilation and then use some other method for installation but idk how to do that. (In reply to Andrey Grozin from comment #18) > The ebuild for the latest release > https://bugs.gentoo.org/attachment.cgi?id=767098 no longer works with > qt-5.15.3 because there is no qmake in the $PATH (only qmake5). This ebuild > (with the patch https://bugs.gentoo.org/attachment.cgi?id=767099) works if I > make the symlink /usr/bin/qmake. See bug 544108 etc. commit 238bd01c800450289ebf3ac52b5956c386530104 Author: Michał Górny <mgorny@gentoo.org> Date: Sun May 8 16:04:44 2022 +0200 dev-python/python-poppler-qt5: Bump to 21.3.0 Signed-off-by: Michał Górny <mgorny@gentoo.org> I think this might be resolved by ^ and the switch to the sip PEP517 backend. |