summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Do an EBUILD_EXIT_STATUS_FILE sanity check in spawnebuild()Zac Medico2007-12-081-1/+10
| | | | | | where it spawns misc-functions.sh after the install phase. svn path=/main/trunk/; revision=8874
* Bug #189417 - Comment on how the whitelist and BASH_ENV are used toZac Medico2007-12-071-3/+8
| | | | | | prevent environment leakage. svn path=/main/trunk/; revision=8867
* Bug #189417 - Whitelist BASH_ENV since we need to have it set in orderZac Medico2007-12-071-1/+1
| | | | | | | to prevent sandbox from causing env leakage by sourcing /etc/profile via it's bashrc. svn path=/main/trunk/; revision=8866
* Bug #189417 - Explicitly whitelist any remaining variables that areZac Medico2007-12-071-14/+32
| | | | | | | | | | allowed to leak into the ebuild environment. Also, fix spawnebuild to properly filter the env when it spawns misc-functions.sh after the install phase. There is still some remaining leakage that seems to come from something in the ebuild environment sourcing /etc/profile. svn path=/main/trunk/; revision=8865
* Add a TODO note about remaining work for bug #189417.Zac Medico2007-12-071-0/+5
| | | | svn path=/main/trunk/; revision=8864
* Perform set argument validation in emerge_main() even forZac Medico2007-12-071-38/+38
| | | | | | values actions that need to expland sets themselves. svn path=/main/trunk/; revision=8863
* Remove automatic "system" and "world" set creation since we canZac Medico2007-12-071-9/+0
| | | | | | probably rely on having a complete config. svn path=/main/trunk/; revision=8862
* Bug #201506 - Make preprocess_ebuild_env() preserveZac Medico2007-12-061-1/+4
| | | | | | | | SANDBOX_{DENY,PREDICT,READ,WRITE} between all phases, except when the environment comes directly from environment.bz2. svn path=/main/trunk/; revision=8853
* Keep the RootConfig.sets attribute in sync with the SetConfig.Zac Medico2007-12-051-0/+1
| | | | svn path=/main/trunk/; revision=8850
* Make SetConfig.getSets() return a copy of the psets attributeZac Medico2007-12-052-2/+3
| | | | | | | instead of a direct reference. Fix the to stop relying on having the direct reference. svn path=/main/trunk/; revision=8849
* Show ? if the installed package is missing aZac Medico2007-12-051-5/+1
| | | | | | | | repository label. The stable version of portage creates these labels now, so false positives won't be as common as they used to be. svn path=/main/trunk/; revision=8846
* bootstrap.sh expects that the "system" set always exists, so createZac Medico2007-12-051-3/+14
| | | | | | it automatically if necessary. svn path=/main/trunk/; revision=8845
* In order to know exactly which atoms/sets should be added to theZac Medico2007-12-051-36/+43
| | | | | | | | world file, the depgraph performs set expansion later. It will get confused about where the atoms came from if it's not allowed to expand them itself. svn path=/main/trunk/; revision=8844
* fix another typoMarius Mauch2007-12-041-1/+1
| | | | svn path=/main/trunk/; revision=8841
* perform sanity checks for set configuration even if myaction is NoneMarius Mauch2007-12-042-6/+7
| | | | svn path=/main/trunk/; revision=8840
* Fix setconfig loader to use config files instead of hardcoded fallbacksMarius Mauch2007-12-042-51/+20
| | | | svn path=/main/trunk/; revision=8839
* make sure we only remove files that were previously preservedMarius Mauch2007-12-041-2/+6
| | | | svn path=/main/trunk/; revision=8837
* Remove redundant config.load_infodir() calls fromZac Medico2007-12-032-2/+0
| | | | | | | portage.pkgmerge() and dblink.unmerge() since it's already called in doebuild.() svn path=/main/trunk/; revision=8835
* Fix typo in config.load_infodir() return value logic.Zac Medico2007-12-031-1/+1
| | | | svn path=/main/trunk/; revision=8831
* * Don't load the CATEGORY in config.load_infodir() since this value isZac Medico2007-12-032-23/+23
| | | | | | | | critical for doebuild() operation and we already know the category. * Always call config.setcpv() prior to config.load_infodir() so that the CATEGORY is always known. svn path=/main/trunk/; revision=8830
* Bug #201090 - When portage creates a temp PORTAGE_BIN_PATH, put itZac Medico2007-12-031-1/+4
| | | | | | | inside PORTAGE_TMPDIR since, unlike /tmp, it can't be mounted with the "noexec" option. svn path=/main/trunk/; revision=8828
* Make config.load_infodir() more fault tolerant for cases like bugZac Medico2007-12-031-5/+16
| | | | | | #201082. svn path=/main/trunk/; revision=8826
* Bug #201082 - Don't call config.load_infodir() prior to pkg_postinst()Zac Medico2007-12-031-1/+0
| | | | | | | | | because it's not needed and the ebuild path that's passed in for postinst is may be from the portage tree, which causes load_infodir() to discard critical metadata such as CATEGORY without realoading it. svn path=/main/trunk/; revision=8822
* implement the final part of FEATURES=preserved-libs and remove previously ↵Marius Mauch2007-12-033-4/+40
| | | | | | preserved libs that don't have any consumers left. Also fix the notice if preserved libs are found to use the preserved-rebuild package set instead of revdep-rebuild. svn path=/main/trunk/; revision=8821
* * whitelist CCACHE_* and DISTCC_* variables in config.environ()Zac Medico2007-12-031-1/+4
| | | | | | * unset CCACHE_* and DISTCC_* variables in save_ebuild_env() svn path=/main/trunk/; revision=8818
* Synchronize self-reinstallation logic so that emerge will alwaysZac Medico2007-12-022-6/+3
| | | | | | | restart itself when dblink.merge() creates temporary copies of PORTAGE_{BIN,PYM}_PATH. svn path=/main/trunk/; revision=8803
* In dblink.treewalk(), tweak the "Safely unmergingZac Medico2007-12-021-9/+13
| | | | | | | already-installed instance" logic to make sure that it works in all possible cases. svn path=/main/trunk/; revision=8801
* For portage.spawn() calls, use a _shell_quote() function to quoteZac Medico2007-12-021-15/+35
| | | | | | the path of the binary since. svn path=/main/trunk/; revision=8798
* * whitelist some misc variables from the calling environmentZac Medico2007-12-011-4/+9
| | | | | | | | * blacklist the same variables in save_ebuild_env() so that the latest values from the calling environment always override those from the ebuild environment svn path=/main/trunk/; revision=8796
* Show the pid in the "starting parallel fetching" message.Zac Medico2007-12-011-1/+2
| | | | svn path=/main/trunk/; revision=8794
* When os.waitid() raises OSError, discard the pid since there'sZac Medico2007-12-011-2/+3
| | | | | | no need to wait on it again. svn path=/main/trunk/; revision=8792
* After each merge, collect status from child processesZac Medico2007-12-011-2/+33
| | | | | | | in order to clean up zombies (such as the parallel-fetch process). svn path=/main/trunk/; revision=8791
* Move duplicate module loading code into a function.Zac Medico2007-12-011-17/+13
| | | | svn path=/main/trunk/; revision=8789
* Add missing newline after message.Zac Medico2007-12-011-1/+2
| | | | svn path=/main/trunk/; revision=8787
* In create_trees(), when isolating the environment of the ROOT=/ config,Zac Medico2007-12-011-2/+4
| | | | | | | use it's env.d keys as a blacklist to make env.d override the calling environment. svn path=/main/trunk/; revision=8785
* * whitelist PREROOTPATH in config.environ()Zac Medico2007-12-011-1/+1
| | | | | | * filter PREROOTPATH in save_ebuild_env() svn path=/main/trunk/; revision=8781
* * whitelist DISTDIR, PORTDIR, and PORTAGE_TMPDIR, PORTAGE_WORKDIR_MODE.Zac Medico2007-12-011-4/+12
| | | | | | * whitelist RPMDIR just for the "rpm" phase. svn path=/main/trunk/; revision=8779
* Update comments about ROOTPATH:Zac Medico2007-12-011-1/+2
| | | | | | | sandbox's bashrc sources /etc/profile which unsets ROOTPATH, so we have to back it up and restore it svn path=/main/trunk/; revision=8777
* In doebuild_environment(), fix KV logic so that it neverZac Medico2007-12-011-1/+2
| | | | | | | gets set during the "depend" phase. Also, use backup_changes() to properly cache the result. svn path=/main/trunk/; revision=8771
* sandbox unsets ROOTPATH, so we have to back it up on the pythonZac Medico2007-11-301-1/+6
| | | | | | side then restore it on the bash side. svn path=/main/trunk/; revision=8768
* Add some variables such as TERM to the whitelist of variablesZac Medico2007-11-301-2/+13
| | | | | | | from the calling environment that are allowed into the ebuild environment. svn path=/main/trunk/; revision=8763
* Make config.environ() export PKGDIR to the ebuild environmentZac Medico2007-11-301-0/+7
| | | | | | | during the "package" phase since it's currently referenced there. svn path=/main/trunk/; revision=8759
* Bug #189417 - When ${T}/environment exists, isolate the ebuildZac Medico2007-11-301-8/+38
| | | | | | | | | environment from the calling environment. This makes it possible for the build to unset a variable that was inherited from the calling environment, and the variable will remain unset between phases. svn path=/main/trunk/; revision=8754
* Move environment.bz2 extraction from ebuild.sh to doebuild() onZac Medico2007-11-291-0/+36
| | | | | | | | | | | | the python side. The python will be able to use it's awareness of the ${T}/environment to decide what type of ebuild environment should be generated. For example, if the ebuild environment should be able to unset variables that have been inherited from the calling environment, the existence of ${T}/environment will indicate that the ebuild environment should be isolated from the calling environment. svn path=/main/trunk/; revision=8753
* Make elog_process() pre-load log modules that it can be calledZac Medico2007-11-291-0/+21
| | | | | | just for that purpose. svn path=/main/trunk/; revision=8751
* When portage reinstalls itself, pre-load elog modules inZac Medico2007-11-292-4/+13
| | | | | | | dblink.merge() since we won't be able to later if they get unmerged (happens when namespace changes). svn path=/main/trunk/; revision=8749
* Don't modify sys.path inside dblink.merge() because it doesn't seemZac Medico2007-11-291-4/+2
| | | | | | | to help and it triggers import errors for elog modules when downgrading to versions of portage that use the old namespace. svn path=/main/trunk/; revision=8747
* When portage reinstalls itself, copy both the bin and pymZac Medico2007-11-291-25/+26
| | | | | | | | directories to a temp dir. Insert the temporary PORTAGE_PYM_PATH as the first element of sys.path and register an atexit hook to clean up the temporary directories. svn path=/main/trunk/; revision=8743
* In dblink.treewalk(), make portage unmerge multiple instancesZac Medico2007-11-291-1/+2
| | | | | | | os sys-apps/portage in the same slot if necessary (needed when AUTOCLEAN=no is set). svn path=/main/trunk/; revision=8741
* Remove stray print statement.Zac Medico2007-11-291-1/+0
| | | | svn path=/main/trunk/; revision=8739