Created attachment 310355 [details, diff] 0001-ebuild.sh-source-etc-portage-env-scripts-before-etc-.patch It is a generally accepted convention that package-specific options should take priority over global ones and I think this should apply to the bashrc scripts as well. This currently isn't the case because /etc/portage/bashrc is sourced last. I spoke to mgorny, who implemented the per-package bashrc support and he agreed, stating that he didn't really consider the order at the time. Please see the attached patch. I have checked that the tests still pass.
Shouldn't the title be exactly the other way round? "Package-specific /etc/portage/env scripts should be sourced *after* /etc/portage/bashrc"
Thanks, this is in git: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=7bf14ebd3feb75c368f32e06e1ac34e9ccbd35ed
(In reply to comment #1) > Shouldn't the title be exactly the other way round? > "Package-specific /etc/portage/env scripts should be sourced *after* > /etc/portage/bashrc" Erm yep, wrote that in a hurry! Thanks for the quick merge, Zac.
This is released for testing in 2.2.0_alpha102.
This is fixed in 2.1.10.58.