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

Bug 483064

Summary: sys-apps/pkgcore: wrapper scripts rely on argv[0] to start tools
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Brian Dolbec (RETIRED) <dolsen>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: gentoo, radhermit
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-08-30 20:42:56 UTC
$ pquery
Cannot load script pquery_python2.7.
Add --debug to the commandline for a traceback.


It fails because the ugly wrappers try to get the Python module name from argv[0]. Instead, they should be generated with proper module name hardcoded.
Comment 1 Tim Harder gentoo-dev 2014-02-25 00:58:01 UTC
Is this even an issue anymore with the latest python-exec stuff? It doesn't seem to be a problem for me.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-02-25 07:59:16 UTC
It's not. Yet still it is a bit ugly, you know.
Comment 3 Tim Harder gentoo-dev 2014-02-25 22:19:08 UTC
(In reply to Michał Górny from comment #2)
> It's not. Yet still it is a bit ugly, you know.

I never said it wasn't, just was making sure it's not a priority. Feel free to submit a patch.
Comment 4 Tim Harder gentoo-dev 2014-12-15 02:00:56 UTC
Closing as won't fix for now. At some point, I might look into using setuptools to generate the scripts but currently we do some custom argparsing magic that isn't compatible with that method.

Further non-ebuild related bugs should be opened on the github project.