summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Instead of calling sys.exit when a ParseError occurs in the configZac Medico2007-12-114-63/+27
| | | | | | | | | constructor, raise a ParseError and make emerge and portageq handle the error. This way consumers of the portage api can handle the ParseError rather than have their application exit. Thanks to lxnay for reporting. svn path=/main/trunk/; revision=8884
* * Raise PermissionDenied from getconfig() when appropriate.Zac Medico2007-12-111-3/+5
| | | | | | | * When available, make getconfig() include an invalid token in a ParseError message. svn path=/main/trunk/; revision=8883
* First import the main portage module without legacy globals since itZac Medico2007-12-111-1/+10
| | | | | | | | | is almost certain to succeed in that case. This provides access to the portage.exception namespace which is needed for later exception handling, like if portage.exception.PermissionDenied is raised when constructing the legacy global config instance. svn path=/main/trunk/; revision=8882
* * When installing a binary package, export the file name of the packageZac Medico2007-12-112-2/+14
| | | | | | | | | | | | | | as PORTAGE_BINPKG_FILE in order to give bashrc users an opportunity to do various things such as remove binary packages after they're installed. * Add a note in ebuild.sh explaining why hardcoded bash lists are needed for backward compatibility with <portage-2.1.4 since they assume that a newly installed version of ebuild.sh will work for pkg_postinst, pkg_prerm, and pkg_postrm when portage is upgrading itself. svn path=/main/trunk/; revision=8878
* Add a "Quality Assurance" <part> tag so that all chapters areZac Medico2007-12-091-0/+3
| | | | | | consistently nested inside <part> tags. svn path=/main/trunk/; revision=8877
* Add some documentation for ebuild phases and pre/post phaseZac Medico2007-12-096-0/+79
| | | | | | hooks that can be defined via bashrc. svn path=/main/trunk/; revision=8876
* 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 #201513 - Fix typos for preserve-libs and PreservedLibraryConsumerSet.Zac Medico2007-12-071-2/+2
| | | | | | | Thanks to Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com> for this patch. svn path=/main/trunk/; revision=8861
* Declare retval as a local variable.Zac Medico2007-12-061-0/+1
| | | | svn path=/main/trunk/; revision=8859
* Prevent the filter_opts local variable from leaking into theZac Medico2007-12-061-1/+2
| | | | | | environment in preprocess_ebuild_env(). svn path=/main/trunk/; revision=8857
* Bug #201506 - Make preprocess_ebuild_env() preserveZac Medico2007-12-062-10/+17
| | | | | | | | SANDBOX_{DENY,PREDICT,READ,WRITE} between all phases, except when the environment comes directly from environment.bz2. svn path=/main/trunk/; revision=8853
* Remove redundant successful exit call from the "depend" phaseZac Medico2007-12-061-3/+0
| | | | | | | and let it run to the bottom of ebuild.sh just like the other phases. svn path=/main/trunk/; revision=8852
* Fix broken timestamp logic in do_snapshot(). Thanks to AlonZac Medico2007-12-061-6/+5
| | | | | | Bar-Lev <alonbl@gentoo.org> for this patch. svn path=/main/trunk/; revision=8851
* 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
* - repository configuration file and `emerge --sync [repo_set]... [repo]...`Zac Medico2007-12-051-0/+2
| | | | | | support for overlays and binhosts (zmedico) svn path=/main/trunk/; revision=8848
* 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-043-53/+22
| | | | svn path=/main/trunk/; revision=8839
* enable FEATURES=preserve-libs globally for extended testingMarius Mauch2007-12-041-0/+3
| | | | svn path=/main/trunk/; revision=8838
* 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
* Synchronize the conditional that triggers "${T}"/environmentZac Medico2007-12-031-4/+3
| | | | | | | generation with the conditional that triggers distcc and ccache FEATURES setup. svn path=/main/trunk/; revision=8833
* 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
* update TODO listMarius Mauch2007-12-031-2/+3
| | | | svn path=/main/trunk/; revision=8825
* revert accidential commitMarius Mauch2007-12-031-1/+0
| | | | svn path=/main/trunk/; revision=8824
* 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-035-4/+46
| | | | | | 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-032-1/+7
| | | | | | * unset CCACHE_* and DISTCC_* variables in save_ebuild_env() svn path=/main/trunk/; revision=8818
* For compatibility with cvs.eclass, do not unset CVS_RSH inZac Medico2007-12-021-1/+1
| | | | | | | save_ebuild_env() since that variable may be initialized in global scope. svn path=/main/trunk/; revision=8816
* Convert caterror() to call warn() instead of err() sinceZac Medico2007-12-021-1/+4
| | | | | | we don't want to exit here. svn path=/main/trunk/; revision=8808
* Add back missing err() function.Zac Medico2007-12-021-0/+7
| | | | svn path=/main/trunk/; revision=8807
* Fix useq() so that it won't generate a bogus IUSE QA NoticeZac Medico2007-12-021-0/+2
| | | | | | | if called during the "depend" phase with a flag that uses IUSE defaults. svn path=/main/trunk/; revision=8805
* 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-012-4/+13
| | | | | | | | * 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