Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 624660

Summary: euse in app-portage/gentoolkit can't handle dev-python/PyQt5
Product: Portage Development Reporter: Pengcheng Xu <i>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: CONFIRMED ---    
Severity: normal CC: aklhfex, arthur, jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: euse patch

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.