Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483064 - sys-apps/pkgcore: wrapper scripts rely on argv[0] to start tools
Summary: sys-apps/pkgcore: wrapper scripts rely on argv[0] to start tools
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Brian Dolbec (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-30 20:42 UTC by Michał Górny
Modified: 2014-12-15 02:00 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 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.