Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210258 - ebuild helper functions should use absolute paths if possible
Summary: ebuild helper functions should use absolute paths if possible
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-15 17:11 UTC by Alex
Modified: 2008-02-17 20:27 UTC (History)
0 users

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 Alex 2008-02-15 17:11:26 UTC
Writing my own ebuild I came across the problem that newinitd was using a script called 'install' to insert the init script into etc/init.d
However I am required to overwrite the PATH env variable in my src_install() so there was another install script in the path which newinitd used instead - and of course failed.
If possible I would propose the ebuild helper functions such as newinitd use absolute paths instead.

Reproducible: Always

Steps to Reproduce:
1. overwrite PATH environment variable with a path whit an executable named install 
2. run newinitd
3. newinitd will run your install instead of the portage one



Expected Results:  
newinitd (and possibly others as well) should use absolute paths

You can easily work around that by saving the old PATH and setting it again before calling newinitd
Comment 1 SpanKY gentoo-dev 2008-02-15 19:04:28 UTC
your ebuild is incorrect then ... override PATH on a per-program invocation, or dont muck with it at all

`install` is a core binary that many things rely upon
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-02-17 20:27:19 UTC
As said above. Also killing portage functions when something in coreutils etc. changes path (which happened quite a lot recently) just because someone wrote a broken ebuild rocks...

@ portage folks - could we please start killing this and similar bugs ASAP so that they stop messing with search for actually useful issues?