summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Bug #200652 - Skip ${T}/environment handling for pkg_nofetch().Zac Medico2007-11-281-3/+4
| | | | svn path=/main/trunk/; revision=8729
* In chk_updated_cfg_files(), avoid scanning for config files forZac Medico2007-11-281-0/+4
| | | | | | | | paths that aren't writable by the current user. This prevents Permission denied errors from being triggered later when trying to scan subdirectories that are inaccessible. svn path=/main/trunk/; revision=8726
* Disable PORTAGE_PACKAGE_EMPTY_ABORT by default sinceZac Medico2007-11-281-1/+1
| | | | | | | the scrollkeeper-9999 upgrade will trigger a false positive. Thanks to leio for reporting. svn path=/main/trunk/; revision=8724
* Don't export PORTAGE_PACKAGE_EMPTY_ABORT to the ebuild environment.Zac Medico2007-11-281-1/+2
| | | | svn path=/main/trunk/; revision=8721
* Add a sanity check in dblink.treewalk() so that a broken ebuildZac Medico2007-11-281-5/+41
| | | | | | | | | | that doesn't install any files will not be able to replace a package in the same slot that really installs files. This check can be bypassed by manually unmerging the old package or by setting PORTAGE_PACKAGE_EMPTY_ABORT="0" in /etc/make.conf. svn path=/main/trunk/; revision=8720
* 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
* Just use ${PN} instead of catpkgsplit().Zac Medico2007-11-271-3/+2
| | | | svn path=/main/trunk/; revision=8716
* portage upgrade or downgrade invalidates EBUILD_EXIT_STATUS_FILEZac Medico2007-11-271-5/+11
| | | | | | | sanity checks since ebuild.sh portage version may differ from the current instance that is running in python. svn path=/main/trunk/; revision=8714
* Remove a redundant os.EX_OK check that exit_status_check() alreadyZac Medico2007-11-271-2/+1
| | | | | | handles internally. svn path=/main/trunk/; revision=8712
* Fix logic wrt exit_status_check and elog_process in doebuild().Zac Medico2007-11-271-1/+1
| | | | svn path=/main/trunk/; revision=8710
* 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
* Don't forget to unlink ${EBUILD_EXIT_STATUS_FILE} before each phase.Zac Medico2007-11-271-0/+4
| | | | svn path=/main/trunk/; revision=8706
* Fix config.pop() so that is will properly raise a KeyError.Zac Medico2007-11-271-4/+11
| | | | svn path=/main/trunk/; revision=8704
* Bug #200231 - Make dir_get_metadata() handle an exception thrownZac Medico2007-11-271-2/+11
| | | | | | from dir_get_list() when there's a problem connection problem. svn path=/main/trunk/; revision=8702
* Make the environment handling code detect errors and die ifZac Medico2007-11-261-7/+24
| | | | | | necessary. svn path=/main/trunk/; revision=8700
* Make doebuild() use EBUILD_EXIT_STATUS_FILE sanity checks for theZac Medico2007-11-261-0/+2
| | | | | | extra misc-functions.sh preinst/postinst shell code. svn path=/main/trunk/; revision=8698
* Make doebuild skip directory creation for the "cleanrm" command.Zac Medico2007-11-261-1/+2
| | | | svn path=/main/trunk/; revision=8696
* Fix grammar.Zac Medico2007-11-261-1/+1
| | | | svn path=/main/trunk/; revision=8694
* * In doebuild(), don't create directories for the "clean" or "unmerge".Zac Medico2007-11-262-6/+8
| | | | | | * Fix dyn_clean() to clean the status file and return early when appropriate. svn path=/main/trunk/; revision=8692
* Make config.pop() properly call config.modifying().Zac Medico2007-11-261-0/+1
| | | | svn path=/main/trunk/; revision=8690
* Implement config.pop().Zac Medico2007-11-261-0/+6
| | | | svn path=/main/trunk/; revision=8688
* Check if ${EBUILD_EXIT_STATUS_FILE} is empty beforeZac Medico2007-11-263-4/+8
| | | | | | attempting to use it. svn path=/main/trunk/; revision=8686
* --buildpkgonly will not merge anything, soZac Medico2007-11-261-0/+7
| | | | | | it cancels all binary package options. svn path=/main/trunk/; revision=8683
* Bug #200313 - Detect and report when an ebuild phaseZac Medico2007-11-264-4/+79
| | | | | | | | | | | | | | | | 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-262-4/+19
| | | | 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
* Add NOCONFMEM to config._environ_filter.Zac Medico2007-11-261-1/+2
| | | | svn path=/main/trunk/; revision=8672
* * Move filtering of a bunch of portage config variables fromZac Medico2007-11-263-24/+26
| | | | | | | | save_ebuild_env() to config.environ(). * Add EMERGE_FROM to the READONLY_PORTAGE_VARS list. svn path=/main/trunk/; revision=8670
* Bug #124041 - Make emerge show an informative warning message when oneZac Medico2007-11-263-6/+50
| | | | | | | | or more eclasses override eclasses from PORTDIR. The warning can be permanently disabled by setting PORTAGE_ECLASS_WARNING_ENABLE="0" in /etc/make.conf. svn path=/main/trunk/; revision=8668
* 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-252-2/+8
| | | | | | * 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-252-3/+29
| | | | | | | | | | | 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
* Use `md5` if `md5sum` is not available (useful for FreeBSD users).Zac Medico2007-11-241-2/+10
| | | | svn path=/main/trunk/; revision=8643
* Fix quoting to work properly with eval.Zac Medico2007-11-241-3/+3
| | | | svn path=/main/trunk/; revision=8640
* When binarytree.populate() finds missing metadata, specify which keysZac Medico2007-11-241-4/+18
| | | | | | are missing so that the user has a clue about what is wrong. svn path=/main/trunk/; revision=8638
* Unconditionally filter some of the SANDBOX_* variables from theZac Medico2007-11-241-1/+7
| | | | | | | | environment in order to avoid potential interference problems. For example, having an invalid value for SANDBOX_LOG prevents the sandbox from killing the ebuild when a violation occurs. svn path=/main/trunk/; revision=8636
* Fix the var_grep variable in filter_readonly_variables() so thatZac Medico2007-11-241-1/+1
| | | | | | it's properly local. svn path=/main/trunk/; revision=8634
* In the grep expression that's generated in filter_readonly_variables(),Zac Medico2007-11-241-8/+10
| | | | | | condense redundant identical expressions into a single one. svn path=/main/trunk/; revision=8630
* Filter _E_DOCDESTTREE_ and _E_EXEDESTTREE_ from environment.bz2.Zac Medico2007-11-241-1/+1
| | | | svn path=/main/trunk/; revision=8629
* Add support for persistence of colon separatedZac Medico2007-11-241-8/+27
| | | | | | | | SANDBOX_{DENY,READ,PREDICT,WRITE} variables between phases so things like the global scope addpredict() call in qt3.eclass will continue to work. svn path=/main/trunk/; revision=8628