Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 624660 - euse in app-portage/gentoolkit can't handle dev-python/PyQt5
Summary: euse in app-portage/gentoolkit can't handle dev-python/PyQt5
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Portage Tools Team
Depends on:
Reported: 2017-07-12 08:43 UTC by Pengcheng Xu
Modified: 2017-10-17 18:07 UTC (History)
3 users (show)

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

euse patch (euse.624660.patch,483 bytes, patch)
2017-08-14 15:22 UTC, Paul Varner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pengcheng Xu 2017-07-12 08:43:55 UTC
Gives the following error:

    ERROR: Invalid package atom. Did you forget the leading '='?

Way to reproduce (example):

    euse -p dev-python/PyQt5 -E multimedia
Comment 1 Paul Varner (RETIRED) gentoo-dev 2017-07-25 21:28:46 UTC
It is purposely designed this way and is looking for versioned atoms. Since 99% of my package.use files are not versioned, this restriction does not make sense to me.

I will look at removing that restriction from the program.
Comment 2 Paul Varner (RETIRED) gentoo-dev 2017-08-14 15:22:01 UTC
Created attachment 488906 [details, diff]
euse patch

The attached patch fixes euse for this specific case. However, euse is still broken for other package names and versions. While euse is an excellent bash script, it really needs to be rewritten in Python and use the portage API.

In the meantime, I am looking at what it would take to use python inline in the script to replace the regular expressions that are causing the problems.