Summary: | method for packages to customize portage settings | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Robin Johnson <robbat2> |
Component: | Core - Configuration | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED WORKSFORME | ||
Severity: | major | CC: | radek |
Priority: | High | ||
Version: | 2.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Robin Johnson
![]() ![]() ![]() ![]() This points more to the fact that CONFIG_PROTECT and it's cousins probably
shouldn't be stored in the ENV, but should be put elsewhere.
kyoto portage # cat bashrc
echo $EBUILD_PHASE
PATH=/usr/bin:/bin/
. /etc/profile.env
echo $CONFIG_PROTECT
kyoto portage # CONFIG_PROTECT="-*" emerge bash
Calculating dependencies ...done!
>>> emerge (1 of 1) app-shells/bash-3.0-r12 to /
clean
/usr/lib/X11/xkb /usr/kde/3.4/share/config /usr/kde/3.4/env /usr/kde/3.4/
shutdown /usr/kde/3.3/share/config /usr/kde/3.3/env /usr/kde/3.3/shutdown /usr/
share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/
texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/xdvi/ /
usr/share/config
....
Putting . /etc/profile.env in your /etc/portage/bashrc should work for you if
you don't do command line CONFIG_PROTECT things. Otherwise the command line
CONFIG_PROTECT gets quashed by the many sourcings of /etc/profile.env that the
bashrc will do.
I would suggest looking at your ssh configuration as well. The point is valid (
user uses a different shell or has a weird ENV portage should take notice ).
However I think your ssh settings can take care of this in your case.
As for this working in an older version, what version did you first notice the
problem? I'll dive into the CVS logs to see if I can find the commit that broke
it and attempt to get it fixed.
Note that it could also be that this was always broken and your ssh
configuration changed. Please check that as well.
yeah, i agree CONFIG_PROTECT / CONFIG_PROTECT_MASK in the env is wrong While I also agree that it's wrong, somewhere along the line it was decided to be a good thing. Now there's several packages that depend on it, so... How about sourcing /etc/env.d and inserting the result after make.conf but before the real env? Is this still an issue? (seems to work fine here) yeah it seems to have gone away with newer baselaoyuts. |