summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* 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-061-9/+13
| | | | | | | | 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
* Fix setconfig loader to use config files instead of hardcoded fallbacksMarius Mauch2007-12-041-2/+2
| | | | svn path=/main/trunk/; revision=8839
* 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
* revert accidential commitMarius Mauch2007-12-031-1/+0
| | | | svn path=/main/trunk/; revision=8824
* implement the final part of FEATURES=preserved-libs and remove previously ↵Marius Mauch2007-12-031-0/+1
| | | | | | 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-0/+3
| | | | | | * 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
* * whitelist some misc variables from the calling environmentZac Medico2007-12-011-0/+4
| | | | | | | | * 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
* When die has been called and ${T}/environment does not exist,Zac Medico2007-12-011-1/+8
| | | | | | | dump the current environment to ${T}/die.env in case it helps for debugging. svn path=/main/trunk/; revision=8783
* * whitelist PREROOTPATH in config.environ()Zac Medico2007-12-011-1/+2
| | | | | | * filter PREROOTPATH in save_ebuild_env() svn path=/main/trunk/; revision=8781
* 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=8776
* Fix quoting for PORTAGE_ROOTPATH.Zac Medico2007-12-011-1/+1
| | | | svn path=/main/trunk/; revision=8774
* Bug #200863 - Don't filter ${KV} since kernel-2.eclass uses thatZac Medico2007-12-011-1/+1
| | | | | | variable and we don't want to interfere. svn path=/main/trunk/; revision=8770
* sandbox unsets ROOTPATH, so we have to back it up on the pythonZac Medico2007-11-301-0/+6
| | | | | | side then restore it on the bash side. svn path=/main/trunk/; revision=8768
* Bug #200775 - Save more portage generated environmentZac Medico2007-11-302-8/+21
| | | | | | | variables that are in environment.bz2 so that they are available for use by tools such as epm. svn path=/main/trunk/; revision=8765
* Don't use sandbox's BASH_ENV for new shells because it doesZac Medico2007-11-301-0/+4
| | | | | | | 'source /etc/profile' which can interfere with the build environment by modifying our PATH. svn path=/main/trunk/; revision=8761
* Remove unused EBUILD_ENV_FILE variable.Zac Medico2007-11-301-1/+1
| | | | svn path=/main/trunk/; revision=8755
* Bug #189417 - When ${T}/environment exists, isolate the ebuildZac Medico2007-11-301-1/+1
| | | | | | | | | 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-292-24/+6
| | | | | | | | | | | | 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
* Adjust PYTHONPATH when calling portageq so that variableZac Medico2007-11-291-0/+3
| | | | | | PORTAGE_PYM_PATH works. svn path=/main/trunk/; revision=8745
* Bug #200652 - Skip ${T}/environment handling for pkg_nofetch().Zac Medico2007-11-281-3/+4
| | | | svn path=/main/trunk/; revision=8729
* In the preprocess_ebuild_env() subshell, check for errors andZac Medico2007-11-281-4/+4
| | | | | | return early when necessary. svn path=/main/trunk/; revision=8718
* Bug #200229 - The gimp ebuild defines AA as a local variable. In orderZac Medico2007-11-271-8/+11
| | | | | | | | | | to accomodate this, create a PORTAGE_MUTABLE_FILTERED_VARS list for variables that portage sets but doesn't mark readonly. In order to prevent changed values from causing unexpcted interference, they are filtered out of the environment when it is saved or loaded (any mutations do not persist). svn path=/main/trunk/; revision=8708
* Make the environment handling code detect errors and die ifZac Medico2007-11-261-7/+24
| | | | | | necessary. svn path=/main/trunk/; revision=8700
* * In doebuild(), don't create directories for the "clean" or "unmerge".Zac Medico2007-11-261-1/+3
| | | | | | * Fix dyn_clean() to clean the status file and return early when appropriate. svn path=/main/trunk/; revision=8692
* Check if ${EBUILD_EXIT_STATUS_FILE} is empty beforeZac Medico2007-11-263-4/+8
| | | | | | attempting to use it. svn path=/main/trunk/; revision=8686
* Bug #200313 - Detect and report when an ebuild phaseZac Medico2007-11-263-2/+8
| | | | | | | | | | | | | | | | exits unexpectedly. This is type of behavior is known to be triggered by things such as failed variable assignments (bug #190128) or bad substitution errors (bug #200313). We use a EBUILD_EXIT_STATUS_FILE environment variable to specify a file that the shell code is supposed to create when it exits in a normal manner. If the file does not get created like it's supposed to be then we can conclude that the shell has exited in some unexpected way. svn path=/main/trunk/; revision=8682
* Automatically try to load environment.bz2 wheneverZac Medico2007-11-261-2/+4
| | | | | | | "${T}/environment" does not exist, except for "clean" and "depend" phases. svn path=/main/trunk/; revision=8680
* Make diefunc() show the path of ${T}/environment since it's usuallyZac Medico2007-11-261-0/+2
| | | | | | in the stack trace and the user is likely to be interested in it. svn path=/main/trunk/; revision=8678
* Filter more misc environment variables.Zac Medico2007-11-261-2/+2
| | | | svn path=/main/trunk/; revision=8676
* unset ECLASS along with the other variables from inherit().Zac Medico2007-11-261-1/+1
| | | | svn path=/main/trunk/; revision=8674
* * Move filtering of a bunch of portage config variables fromZac Medico2007-11-262-23/+13
| | | | | | | | save_ebuild_env() to config.environ(). * Add EMERGE_FROM to the READONLY_PORTAGE_VARS list. svn path=/main/trunk/; revision=8670
* Filter _RC_GET_KV_CACHE from the saved environment.Zac Medico2007-11-251-1/+1
| | | | svn path=/main/trunk/; revision=8666
* Make preprocess_ebuild_env() reload a known good version ofZac Medico2007-11-252-70/+79
| | | | | | | save_ebuild_env() in order to avoid making an assumption that it hasn't been overridden. svn path=/main/trunk/; revision=8663
* Remove some unsafe assumptions from preprocess_ebuild_env() andZac Medico2007-11-251-2/+4
| | | | | | | note the remaining assumption that save_ebuild_env() is not overridden by the environment being loaded. svn path=/main/trunk/; revision=8662
* Allow the pkg_info and pkg_config pre/post hooks to run evenZac Medico2007-11-251-1/+0
| | | | | | when the ebuild function is not defined. svn path=/main/trunk/; revision=8659
* Remove the empty default pkg_setup, src_install, pkg_preinst,Zac Medico2007-11-251-29/+1
| | | | | | | pkg_postinst, pkg_prerm, pkg_postrm, and pkg_config functions since they do nothing more than clutter the environment. svn path=/main/trunk/; revision=8655
* Test if ebuild functions are defined before calling them. ThisZac Medico2007-11-251-25/+21
| | | | | | | | | will be useful if an environment.bz2 has been loaded and it has missing functions for some reason. For example, there are a lot of default functions that are empty and could simply be omitted from the environment. svn path=/main/trunk/; revision=8654
* The qa_call() function and anything before it are portage internalsZac Medico2007-11-251-1/+11
| | | | | | | that the user will not be interested in. Therefore, the stack trace should only show calls that come after qa_call(). svn path=/main/trunk/; revision=8653
* * Load environment.bz2 for the pkg_config() phase.Zac Medico2007-11-251-1/+1
| | | | | | * Run the "clean" phase if pkg_config() succeeds. svn path=/main/trunk/; revision=8651
* Implement loading of environment.bz2 for the pkg_info() phase.Zac Medico2007-11-251-1/+2
| | | | | | | | | | | Since a temporary directory is required for processing of ${T}/environment, and we want a user who's not in the portage group to be able to run the pkg_info() phase, PORTAGE_TMPDIR is temporarily overridden with a directory created by mkdtemp. To make this work, doebuild() creates the tempdir and cleans it up in a finally block. svn path=/main/trunk/; revision=8649
* Bug #200238 - Make ebuild.sh properly bail out when the pkg_info()Zac Medico2007-11-241-1/+1
| | | | | | function doesn't exist. svn path=/main/trunk/; revision=8647
* Bug #140180 - Never trigger a LICENSE.missing violation for old styleZac Medico2007-11-241-2/+4
| | | | | | virtuals since they don't directly install anything. svn path=/main/trunk/; revision=8645