summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* 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
* 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
* 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
* * 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. (trunk r8692) svn path=/main/branches/2.1.2/; revision=8693
* Check if ${EBUILD_EXIT_STATUS_FILE} is empty beforeZac Medico2007-11-261-2/+4
| | | | | | attempting to use it. (trunk r8686) svn path=/main/branches/2.1.2/; revision=8687
* Bug #200313 - Detect and report when an ebuild phaseZac Medico2007-11-261-1/+2
| | | | | | | | | | | | | | | | | | 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
* unset ECLASS along with the other variables from inherit(). (trunk r8674)Zac Medico2007-11-261-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=8675
* * Move filtering of a bunch of portage config variables fromZac Medico2007-11-261-2/+3
| | | | | | | | save_ebuild_env() to config.environ(). * Add EMERGE_FROM to the READONLY_PORTAGE_VARS list. (trunk r8670) svn path=/main/branches/2.1.2/; revision=8671
* Make preprocess_ebuild_env() reload a known good version ofZac Medico2007-11-251-70/+11
| | | | | | | save_ebuild_env() in order to avoid making an assumption that it hasn't been overridden. (trunk r8663) svn path=/main/branches/2.1.2/; revision=8665
* 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. (trunk r8662) svn path=/main/branches/2.1.2/; revision=8664
* 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. (trunk r8659) svn path=/main/branches/2.1.2/; revision=8660
* 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. (trunk r8655) svn path=/main/branches/2.1.2/; revision=8658
* 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. (trunk r8654) svn path=/main/branches/2.1.2/; revision=8657
* * Load environment.bz2 for the pkg_config() phase.Zac Medico2007-11-251-1/+1
| | | | | | | * Run the "clean" phase if pkg_config() succeeds. (trunk r8651) svn path=/main/branches/2.1.2/; revision=8652
* 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. (trunk r8649) svn path=/main/branches/2.1.2/; revision=8650
* Bug #200238 - Make ebuild.sh properly bail out when the pkg_info()Zac Medico2007-11-241-1/+1
| | | | | | function doesn't exist. (trunk r8647) svn path=/main/branches/2.1.2/; revision=8648
* Fix quoting to work properly with eval. (trunk r8640)Zac Medico2007-11-241-3/+3
| | | | svn path=/main/branches/2.1.2/; revision=8641
* 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. (trunk r8636) svn path=/main/branches/2.1.2/; revision=8637
* Fix the var_grep variable in filter_readonly_variables() so thatZac Medico2007-11-241-1/+1
| | | | | | it's properly local. (trunk r8634) svn path=/main/branches/2.1.2/; revision=8635
* 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. (trunk r8630) svn path=/main/branches/2.1.2/; revision=8633
* Filter _E_DOCDESTTREE_ and _E_EXEDESTTREE_ from environment.bz2. (trunk r8629)Zac Medico2007-11-241-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=8632
* 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. (trunk r8628) svn path=/main/branches/2.1.2/; revision=8631
* Make save_ebuild_env() filter the new source_all_bashrcs() functionZac Medico2007-11-231-1/+2
| | | | | | from the environment. (trunk r8623) svn path=/main/branches/2.1.2/; revision=8624
* Try again to make bashrc sourcing compatible with previousZac Medico2007-11-231-32/+37
| | | | | | | | behavior. The bashrcs get an opportunity to set aliases that will be expanded during sourcing of ebuilds and eclasses. (trunk r8621) svn path=/main/branches/2.1.2/; revision=8622
* unset x to avoid global env pollution. (trunk r8619)Zac Medico2007-11-231-0/+1
| | | | svn path=/main/branches/2.1.2/; revision=8620
* For compatibility with previous behavior, so the bashrc sourcingZac Medico2007-11-231-33/+31
| | | | | | after the ebuild environment is fully loaded. (trunk r8617) svn path=/main/branches/2.1.2/; revision=8618
* Make the sed expression in filter_readonly_variables() handleZac Medico2007-11-231-1/+3
| | | | | | '^declare -r ' by simply removing it. (trunk r8611) svn path=/main/branches/2.1.2/; revision=8612
* Allow any errors from save_ebuild_env() to go to stderr instead ofZac Medico2007-11-221-1/+1
| | | | | | directing them to /dev/null. (trunk r8607) svn path=/main/branches/2.1.2/; revision=8608
* Generalize the sed expression in filter_readonly_variables() so thatZac Medico2007-11-221-1/+1
| | | | | | | it will work with things like 'declare -xr' as well as 'declare -rx'. (trunk r8605) svn path=/main/branches/2.1.2/; revision=8606
* Don't call preprocess_ebuild_env() unless EBUILD_SH_ARGS is setZac Medico2007-11-221-1/+1
| | | | | | | since otherwise it can interfere with the environment for things like the "package" phase. (trunk r8603) svn path=/main/branches/2.1.2/; revision=8604
* When portage reinstalls itself, during inst/rm phases, theZac Medico2007-11-221-0/+7
| | | | | | | | | environment may have been saved by a different version of ebuild.sh, so it can't trusted that it's been properly filtered. Therefore, always preprocess the environment when ${PN} == portage. (trunk r8601) svn path=/main/branches/2.1.2/; revision=8602
* Filter HOSTTYPE, MACHTYPE, and OSTYPE vars that are set by bash.Zac Medico2007-11-221-1/+2
| | | | | | (trunk r8595). svn path=/main/branches/2.1.2/; revision=8596
* Replace usage of the "myarg" global variable with the equivalentZac Medico2007-11-211-34/+27
| | | | | | readonly EBUILD_SH_ARGS variable. (trunk r8585) svn path=/main/branches/2.1.2/; revision=8586
* In dyn_install(), don't cleanse S from the global environment,Zac Medico2007-11-211-5/+9
| | | | | | | | in case the user wants to repeat the phase (like with FEATURES=noauto and the ebuild command). Only cleanse it from environment.bz2. (trunk r8583) svn path=/main/branches/2.1.2/; revision=8584
* * Make save_ebuild_env() filter some more variables.Zac Medico2007-11-211-2/+8
| | | | | | | * Make dyn_install() filter S when it's no longer needed. (trunk r8581) svn path=/main/branches/2.1.2/; revision=8582
* Move environment saving from dyn_compile() to dyn_install()Zac Medico2007-11-211-27/+27
| | | | | | so that state from src_install() is saved. (trunk r8575) svn path=/main/branches/2.1.2/; revision=8576
* Clean up some local variables that are needlessly savedZac Medico2007-11-211-2/+6
| | | | | | in the environment. (trunk r8573) svn path=/main/branches/2.1.2/; revision=8574
* Sync with ebuild.sh and isolated-functions.sh as of trunk r8569. ThisZac Medico2007-11-211-199/+195
| | | | | | | includes all the environment filtering enhancements that solve bugs #46223 and #190128. svn path=/main/branches/2.1.2/; revision=8570
* Disable logging and ${T}/environment saving during theZac Medico2007-11-211-2/+1
| | | | | | pkg_info() phase. (trunk r8526) svn path=/main/branches/2.1.2/; revision=8568
* Set IMAGE for minimal backward compatibility withZac Medico2007-11-211-0/+3
| | | | | | | overlays or user's bashrc, but don't export it. (trunk r8511:8513) svn path=/main/branches/2.1.2/; revision=8564
* Fix quoting for `source ${EBUILD}`. (trunk r8503)Zac Medico2007-11-211-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=8562
* * Replace references to deprecated ${IMAGE} with equivalent ${D}.Zac Medico2007-11-201-6/+3
| | | | | | | * Remove redundant trailing slashes and fix quoting. (trunk r8501) svn path=/main/branches/2.1.2/; revision=8560
* Make diefunc() clean up QA_INTERCEPTORS in case it isZac Medico2007-11-201-1/+6
| | | | | | | called from inherit() since sed called below. (trunk r8490) svn path=/main/branches/2.1.2/; revision=8553
* Go ahead and exempt selected profile-specific USE_EXPANDZac Medico2007-11-061-1/+6
| | | | | | | | | | | | | flags from IUSE QA Notices since we are planning to make these particular flags into implicit members of IUSE. We can make this extensible later, but for now we just want to eliminate some useless QA Notices (a subset of bug #70648). We're not exempting any non profile- specific USE_EXPAND flags here. For non profile-specific flags, we intend to implement an IUSE syntax extension (bug #133327). (trunk r8442) svn path=/main/branches/2.1.2/; revision=8443
* Fix diefunc() so that it doesn't report that the ebuild is fromZac Medico2007-11-021-1/+2
| | | | | | an overlay when EMERGE_FROM == binary. (trunk r8349) svn path=/main/branches/2.1.2/; revision=8375
* Remove slashes that cause problems when unpacking files withZac Medico2007-10-221-4/+4
| | | | | | relative paths (bug #196565) (trunk r8200) svn path=/main/branches/2.1.2/; revision=8231
* add support for .lzma / .tar.lzma to unpackZac Medico2007-10-121-0/+8
| | | | | | (trunk r7991) svn path=/main/branches/2.1.2/; revision=8061
* Remove redundant trailing slashes from ${D}. (trunk r7890)Zac Medico2007-10-051-14/+17
| | | | svn path=/main/branches/2.1.2/; revision=7923