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.
Marking this for later. Generate some noise on this bug if you're *really* after it still.
bashrc + hooks
released in 2.1_pre1