Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49216 - script call from emerge
Summary: script call from emerge
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-27 15:20 UTC by norbert kamenicky
Modified: 2006-01-02 20:46 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 norbert kamenicky 2004-04-27 15:20:06 UTC
Sometimes I have to modify ebuild (add patches, change behavior, etc.).
Sometimes it is necessary to set extra variable(s) to emerge some package (alsa-driver, xfree-drm ...)

To solve such tasks (an probable much more) it would be fine if emerge is able to call an user script before emerge of a package (if it exists).

I propose to add new configuration file "/etc/portage/packages.conf",
which will specify a script to run for some packages immediately before emerge.

Here is an example how the content can look:

# cat /etc/portage/package.conf
>=media-sound/alsa-driver-1.0.3 alsa.new
<media-sound/alsa-driver-1.0.3  alsa.old

Scripts alsa.new and alsa.old will be in new directory /etc/portage/make.dir



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Brian Harring (RETIRED) gentoo-dev 2004-08-04 21:35:03 UTC
Marking this for later.  Generate some noise on this bug if you're *really* after it still.
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-01-02 20:46:27 UTC
bashrc + hooks
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-01-02 20:46:46 UTC
released in 2.1_pre1