summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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. (trunk r8785) svn path=/main/branches/2.1.2/; revision=8786
* 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. (trunk r8783) svn path=/main/branches/2.1.2/; revision=8784
* * whitelist PREROOTPATH in config.environ()Zac Medico2007-12-012-2/+3
| | | | | | | * filter PREROOTPATH in save_ebuild_env() (trunk r8781) svn path=/main/branches/2.1.2/; revision=8782
* * whitelist DISTDIR, PORTDIR, and PORTAGE_TMPDIR, PORTAGE_WORKDIR_MODE.Zac Medico2007-12-011-4/+12
| | | | | | * whitelist RPMDIR just for the "rpm" phase. (trunk r8779) svn path=/main/branches/2.1.2/; revision=8780
* Update comments about ROOTPATH:Zac Medico2007-12-012-2/+4
| | | | | | | sandbox's bashrc sources /etc/profile which unsets ROOTPATH, so we have to back it up and restore it. (trunk r8775:8777) svn path=/main/branches/2.1.2/; revision=8778
* Fix quoting for PORTAGE_ROOTPATH. (trunk r8774)Zac Medico2007-12-011-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=8775
* In doebuild_environment(), fix KV logic so that itZac Medico2007-12-011-1/+2
| | | | | | | | never gets set during the "depend" phase. Also, use backup_changes() to properly cache the result. (trunk r8771) svn path=/main/branches/2.1.2/; revision=8773
* 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. (trunk r8770) svn path=/main/branches/2.1.2/; revision=8772
* sandbox unsets ROOTPATH, so we have to back it up on the pythonZac Medico2007-11-302-1/+12
| | | | | | side then restore it on the bash side. (trunk r8768) svn path=/main/branches/2.1.2/; revision=8769
* Fix broken module loading logic.Zac Medico2007-11-301-6/+8
| | | | svn path=/main/branches/2.1.2/; revision=8767
* 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. (trunk r8765) svn path=/main/branches/2.1.2/; revision=8766
* 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. (trunk r8763) svn path=/main/branches/2.1.2/; revision=8764
* 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. (trunk r8761) svn path=/main/branches/2.1.2/; revision=8762
* Make config.environ() export PKGDIR to the ebuild environmentZac Medico2007-11-301-0/+7
| | | | | | | during the "package" phase since it's currently referenced there. (trunk r8759) svn path=/main/branches/2.1.2/; revision=8760
* * After the initial setup phase, the original ebuild and eclasses are noZac Medico2007-11-301-0/+7
| | | | | | | longer needed because the same ebuild environment is reused for the entire lifecycle of the package, including uninstallation. svn path=/main/branches/2.1.2/; revision=8758
* Bug #189417 - When ${T}/environment exists, isolate the ebuildZac Medico2007-11-303-32/+80
| | | | | | | | | 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. (trunk r8752:8755) svn path=/main/branches/2.1.2/; revision=8756
* Make elog_process() pre-load log modules that it can be calledZac Medico2007-11-291-0/+19
| | | | | | just for that purpose. (trunk r8751) svn path=/main/branches/2.1.2/; revision=8752
* When portage reinstalls itself, pre-load elog modules inZac Medico2007-11-291-3/+10
| | | | | | | dblink.merge() since we won't be able to later if they get unmerged (happens when namespace changes). (trunk r8749) svn path=/main/branches/2.1.2/; revision=8750
* 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. (trunk r8745) svn path=/main/branches/2.1.2/; revision=8748
* Adjust PYTHONPATH when calling portageq so that variableZac Medico2007-11-291-0/+3
| | | | | | PORTAGE_PYM_PATH works. (trunk r8745) svn path=/main/branches/2.1.2/; revision=8746
* 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. (trunk r8743) svn path=/main/branches/2.1.2/; revision=8744
* 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/branches/2.1.2/; revision=8742
* If portage is reinstalling itself, create a temporaryZac Medico2007-11-291-27/+81
| | | | | | | | copy of PORTAGE_BIN_PATH in order to avoid relying on on the new versions which may be incompatible. (trunk r8730:8739) svn path=/main/branches/2.1.2/; revision=8740
* Bug #200652 - Skip ${T}/environment handling for pkg_nofetch(). (trunk r8729)Zac Medico2007-11-281-3/+4
| | | | svn path=/main/branches/2.1.2/; revision=8730
* Condense duplicate eerror log generation code into a singleZac Medico2007-11-281-20/+15
| | | | | | _eerror() function. svn path=/main/branches/2.1.2/; revision=8728
* 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. (trunk r8726) svn path=/main/branches/2.1.2/; revision=8727
* 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. (trunk r8724) svn path=/main/branches/2.1.2/; revision=8725
* Add a sanity check in dblink.treewalk() so that a broken ebuildZac Medico2007-11-281-7/+46
| | | | | | | | | | | 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. (trunk r8720) svn path=/main/branches/2.1.2/; revision=8723
* Don't export PORTAGE_PACKAGE_EMPTY_ABORT to theZac Medico2007-11-281-1/+2
| | | | | | ebuild environment. (trunk r8721). svn path=/main/branches/2.1.2/; revision=8722
* In the preprocess_ebuild_env() subshell, check for errors andZac Medico2007-11-281-4/+4
| | | | | | return early when necessary. (trunk r8718) svn path=/main/branches/2.1.2/; revision=8719
* Just use ${PN} instead of catpkgsplit().Zac Medico2007-11-271-3/+2
| | | | svn path=/main/branches/2.1.2/; revision=8717
* 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. (trunk r8714) svn path=/main/branches/2.1.2/; revision=8715
* Remove a redundant os.EX_OK check that exit_status_check() alreadyZac Medico2007-11-271-2/+1
| | | | | | handles internally. (trunk r8712) svn path=/main/branches/2.1.2/; revision=8713
* Fix logic wrt exit_status_check and elog_process in doebuild(). (trunk r8710)Zac Medico2007-11-271-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=8711
* 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). (trunk r8708) svn path=/main/branches/2.1.2/; revision=8709
* Don't forget to unlink ${EBUILD_EXIT_STATUS_FILE} before each phase.Zac Medico2007-11-271-0/+4
| | | | | | (trunk r8706) svn path=/main/branches/2.1.2/; revision=8707
* Fix config.pop() so that is will properly raise a KeyError. (trunk r8704)Zac Medico2007-11-271-4/+11
| | | | svn path=/main/branches/2.1.2/; revision=8705
* 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. (trunk r8702) svn path=/main/branches/2.1.2/; revision=8703
* Make the environment handling code detect errors and die ifZac Medico2007-11-261-7/+24
| | | | | | necessary. (trunk r8700) svn path=/main/branches/2.1.2/; revision=8701
* Make doebuild() use EBUILD_EXIT_STATUS_FILE sanity checks for theZac Medico2007-11-261-0/+2
| | | | | | extra misc-functions.sh preinst/postinst shell code. (trunk r8698) svn path=/main/branches/2.1.2/; revision=8699
* Make doebuild skip directory creation for the "cleanrm" command. (trunk r8696)Zac Medico2007-11-261-1/+2
| | | | svn path=/main/branches/2.1.2/; revision=8697
* Fix grammar. (trunk r8694)Zac Medico2007-11-261-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=8695
* * 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. (trunk r8692) svn path=/main/branches/2.1.2/; revision=8693
* Make config.pop() properly call config.modifying(). (trunk r8690)Zac Medico2007-11-261-0/+1
| | | | svn path=/main/branches/2.1.2/; revision=8691
* Implement config.pop(). (trunk r8688)Zac Medico2007-11-261-0/+6
| | | | svn path=/main/branches/2.1.2/; revision=8689
* Check if ${EBUILD_EXIT_STATUS_FILE} is empty beforeZac Medico2007-11-263-4/+8
| | | | | | attempting to use it. (trunk r8686) svn path=/main/branches/2.1.2/; revision=8687
* --buildpkgonly will not merge anything, soZac Medico2007-11-261-0/+7
| | | | | | it cancels all binary package options. svn path=/main/branches/2.1.2/; revision=8685
* Bug #200313 - Detect and report when an ebuild phaseZac Medico2007-11-264-4/+89
| | | | | | | | | | | | | | | | | | 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. (trunk r8682) svn path=/main/branches/2.1.2/; revision=8684
* Automatically try to load environment.bz2 wheneverZac Medico2007-11-261-2/+4
| | | | | | | "${T}/environment" does not exist, except for "clean" and "depend" phases. (trunk r8680) svn path=/main/branches/2.1.2/; revision=8681
* 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. (trunk r8678) svn path=/main/branches/2.1.2/; revision=8679