Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 761748 - dev-python/pyside2-tools[tools] is impossible to enable (circular conflict with dev-qt/qtchooser)
Summary: dev-python/pyside2-tools[tools] is impossible to enable (circular conflict wi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-26 10:04 UTC by Andreas Sturmlechner
Modified: 2020-12-28 04:47 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sturmlechner gentoo-dev 2020-12-26 10:04:42 UTC
Ebuild contains this:

> # * "dev-qt/qtchooser" installs binaries conflicting with the "tools" USE flag.
> COMMON_DEPEND="${PYTHON_DEPS}
> 	>=dev-python/pyside2-${PV}[widgets,${PYTHON_USEDEP}]
> "
> RDEPEND="${COMMON_DEPEND}
> 	tools? ( !dev-qt/qtchooser )
> "

- dev-python/pyside2 depends on all kinds of dev-qt/*
- dev-qt/* depends on dev-qt/qtchooser

What are those conflicts and why was this not resolved properly before pushing to tree?
Comment 1 Andreas Sturmlechner gentoo-dev 2020-12-26 11:37:19 UTC
> * Detected file collision(s):
> * 
> *      /usr/bin/uic
> *      /usr/bin/rcc
> *      /usr/bin/designer
> * 
Here are the legitimate owners of those paths:

dev-qt/qtcore-5.15.2 (/usr/lib64/qt5/bin/rcc)
dev-qt/qtwidgets-5.15.2 (/usr/lib64/qt5/bin/uic)
dev-qt/designer-5.15.2 (/usr/lib64/qt5/bin/designer)

Please check what this package is doing here, looks like it is trying to install bundled parts of qtbase and qttools which is really messy.
Comment 2 Andreas Sturmlechner gentoo-dev 2020-12-26 11:45:00 UTC
> DESCRIPTION="PySide development tools (lupdate, rcc, uic)"
^ Same here, none of those mentioned binaries should be provided here (lupdate is part of dev-qt/linguist-tools), if they are pythonised *versions* of them then they must be installed either in site-packages or at least with a non-colliding name.

> DEPEND="${COMMON_DEPEND}
> 	test? ( virtual/pkgconfig )
> "
virtual/pkgconfig is a BDEPEND.

> rm "${ED}"/usr/bin/pyside_tool.py
missing || die
Comment 3 Miroslav Šulc gentoo-dev 2020-12-26 12:10:35 UTC
attempting to resolve it at this thread: https://github.com/waebbl/waebbl-gentoo/issues/237

it seems the tools are just symlinks to qtchooser. so the only util installed is pyside2-lupdate, whereas qtchooser has lupdate. maybe freecad could use that and pyside2-tools could be removed completely from the tree.

adding waebbl (freecad maintainer) so he knows about this bug too.
Comment 4 Bernd 2020-12-26 18:50:33 UTC
I will test, whether the pyside2-lupdate is needed to build freecad. I somewhat doubt, we can remove it completely yet, as long as lupdate from dev-qt/linguist can't parse python files and therefore is usable from pure python projects. Think we should check this with upstream, and what their plans about pyside2-tools are.
Comment 5 Miroslav Šulc gentoo-dev 2020-12-26 18:52:59 UTC
thanks. anyway, if it will be needed, i suppose we can drop the tools part and leave just pyside2-lupdate as that is what i have installed on my systems anyway and it's enough to build freecad.
Comment 6 Larry the Git Cow gentoo-dev 2020-12-28 04:47:11 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61f1c976ee026dab3cc8e8be9179f203a5002dd8

commit 61f1c976ee026dab3cc8e8be9179f203a5002dd8
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2020-12-28 04:47:03 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2020-12-28 04:47:03 +0000

    dev-python/pyside2-tools: removed tools keeping only pyside2-lupdate
    
    Closes: https://bugs.gentoo.org/761748
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 .../pyside2-tools-5.15.1-dont-install-tools.patch  | 58 +++++++++++++++++
 dev-python/pyside2-tools/metadata.xml              |  3 -
 .../pyside2-tools/pyside2-tools-5.15.1.ebuild      | 75 ++++------------------
 3 files changed, 70 insertions(+), 66 deletions(-)