Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949348 - =dev-python/qtpy-2.4.2 ebuild broken
Summary: =dev-python/qtpy-2.4.2 ebuild broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-05 18:38 UTC by Alec Ari
Modified: 2025-02-07 18:53 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 Alec Ari 2025-02-05 18:38:04 UTC
So I need =dev-python/qtpy/qtpy-2.4.2 (not the r1 release because I need qt5 support, which has been removed in =dev-python/qtpy/qtpy-2.4.2-r1) however the ebuild is broken.

pyside2 is not a USE flag for qtpy, however further down the ebuild, line 147 is:

if ! use pyside2; then

Removing the entire `if` clause for pyside2 fixes the issue, but I think the proper fix should be taken from the -r1 release:

	# Always disable PySide2
	sed \
		-e "s/from PySide2 import/raise ImportError #/" \
		-e "s/from PySide2.QtCore import/raise ImportError #/" \
		-e '/if "PySide2" in sys.modules:/,/"pyside2"/c\' \
		-i qtpy/__init__.py || die

	sed \

It is impossible to merge =dev-python/qtpy/qtpy-2.4.2 at the moment.

Reproducible: Always

Steps to Reproduce:
1. emerge =dev-python/qtpy/qtpy-2.4.2
2. Wait
3. Instant error
Actual Results:  
error: pyside 2 is not a IUSE flag

Expected Results:  
=dev-python/qtpy/qtpy-2.4.2 should be able to merge.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-05 18:43:22 UTC
Broke with:

commit c58e2344a965ca75077542de66f17a02089876f6
Author: Nowa Ammerlaan <nowa@gentoo.org>
Date:   Mon Feb 3 16:21:37 2025 +0100

    dev-python/pyside6: rename to dev-python/pyside

    Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
Comment 2 Larry the Git Cow gentoo-dev 2025-02-05 19:14:43 UTC
The bug has been closed via the following commit(s):

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

commit df5f2c6709c1e9bc56091a419ce62caa7b7d9ec1
Author:     Nowa Ammerlaan <nowa@gentoo.org>
AuthorDate: 2025-02-05 19:13:54 +0000
Commit:     Nowa Ammerlaan <nowa@gentoo.org>
CommitDate: 2025-02-05 19:13:54 +0000

    dev-python/qtpy: drop use pyside2 properly
    
    Closes: https://bugs.gentoo.org/949348
    Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>

 dev-python/qtpy/qtpy-2.4.2.ebuild | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)
Comment 3 Nowa Ammerlaan gentoo-dev 2025-02-05 19:15:40 UTC
Fixed, but note that this will be removed at the end of the month when the last dependency requiring qt5 support here will be removed.
Comment 4 Alec Ari 2025-02-07 18:51:47 UTC
Thanks, does this mean that qt5 will be removed entirely from the gentoo repo?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-07 18:53:36 UTC
(In reply to Alec Ari from comment #4)
> Thanks, does this mean that qt5 will be removed entirely from the gentoo
> repo?

It's being removed wherever possible, in phases: https://public-inbox.gentoo.org/gentoo-dev/3346777.aeNJFYEL58@tuxbrain.fritz.box/