summaryrefslogtreecommitdiffstats
path: root/bin/isolated-functions.sh
Commit message (Collapse)AuthorAgeFilesLines
* remove old/unused gen_wrapper function (trunk r10591)Zac Medico2008-06-091-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=10613
* Bug #219286 - Whitelist INSTALL_MASK so that it works properly for binaryZac Medico2008-05-051-0/+3
| | | | | | | | packages. Also, filter INSTALL_MASK when saving or loading environment.bz2. This also applies to PKG_INSTALL_MASK and DOC_SYMLINKS_DIR, so add them too. (trunk r10195) svn path=/main/branches/2.1.2/; revision=10197
* Handle issues with newlines in elog messages that can trigger an unhandledZac Medico2008-04-091-1/+1
| | | | | | | | | | ValueError to be raised from a split() call inside collect_ebuild_messages(): * Use \0 to delimit messages, so that that elog messages containing newlines are handled correctly. * Handle a potential ValueError when splitting the message type. (trunk r9763) svn path=/main/branches/2.1.2/; revision=9764
* In dump_trace(), fix BASH_ARGV and BASH_ARGC offsets so that they are alwaysZac Medico2008-04-081-3/+9
| | | | | | correct wrt eachother. Thanks to Betelgeuse for reporting. (trunk r9732:9734) svn path=/main/branches/2.1.2/; revision=9751
* Bug #197905 - Preserve order of ebuild messages even between differentZac Medico2008-04-081-1/+1
| | | | | | message types. (trunk r9726 and r9747) svn path=/main/branches/2.1.2/; revision=9748
* Remove the killparent() function and associated SIGINT trap since thisZac Medico2008-03-281-1/+1
| | | | | | | should already be handled on the python side and it won't work with dropped privileges anyway. (trunk r9327) svn path=/main/branches/2.1.2/; revision=9581
* Bug #214619 - Add support for a PORTAGE_BINPKG_TAR_OPTS variable thatZac Medico2008-03-281-1/+1
| | | | | | | allows the user to specify tar command options for binary package creation. (trunk r9528) svn path=/main/branches/2.1.2/; revision=9580
* Bug #155993 - Update environment.bz2 after postinst in caseZac Medico2008-02-071-1/+2
| | | | | | | installation phases need to pass some variables to uninstallation phases. (trunk r9281) svn path=/main/branches/2.1.2/; revision=9282
* - Remove ebuild.autotools repoman check since it produces lotsZac Medico2008-01-311-1/+2
| | | | | | | | | | | of false positives (bug #207104) and its hard to parse bash - Use QA_INTERCEPTORS in ebuild.sh to implement a runtime 'QA Notice' when autotools is called directly trunk r9235 svn path=/main/branches/2.1.2/; revision=9247
* Replace the current diefunc() and die alias with a single die() function.Zac Medico2008-01-311-6/+9
| | | | | | | | The previous arguments to diefunc() weren't used anyway. The result is that the die message looks better because it doesn't show the alias and all of it's arguments which are totally irrelevant. (trunk r9215:9217) svn path=/main/branches/2.1.2/; revision=9245
* Make filter_readonly_variables() filter PATH in any case sinceZac Medico2008-01-051-1/+1
| | | | | | we never want to save of reload it. (trunk r9147) svn path=/main/branches/2.1.2/; revision=9148
* Send eerror and ewarn messages to stderr. This is important inZac Medico2008-01-041-2/+2
| | | | | | | | case somebody calls portageq inside a global scope command substitution. The output needs to go to stderr so that the die message from the subshell is visible. (trunk r9140) svn path=/main/branches/2.1.2/; revision=9141
* As suggested by grobian, treat Darwin just like USERLAND=gnuZac Medico2007-12-291-1/+1
| | | | | | | since they seem to be switching commands to gnu anyway. (trunk r9118) svn path=/main/branches/2.1.2/; revision=9119
* * Remove redundant lchown() compatibility code since theZac Medico2007-12-291-0/+11
| | | | | | | | | | | getattr(os, "lchown", None) call already handles it. * Simplify the userland detection code in portage.data and add a bash version of it to isolated-functions.sh. (trunk r9098:9101) svn path=/main/branches/2.1.2/; revision=9102
* Move XARGS initialization from portage.data to isolated-functions.sh.Zac Medico2007-12-291-0/+11
| | | | | | (trunk r9095:9097) svn path=/main/branches/2.1.2/; revision=9098
* Fixes for logic related to FEATURES=test to USE=test mapping:Zac Medico2007-12-281-1/+1
| | | | | | | | | | | | | | | | * Add EBUILD_FORCE_TEST to the environment whitelist and filter it from the saved environment in save_ebuild_env(). * Tweak logic inside the ebuild command and config.regenerate() so that EBUILD_FORCE_TEST works even in odd cases like when USE=test is masked. * Only make FEATURES=test map to USE=test when "test" is actually in IUSE. * Remove USE=test from the set of implicit IUSE so that useq() calls in ebuild.sh properly generate a QA Notice when "test" is missing from IUSE. (trunk r9063:9065) svn path=/main/branches/2.1.2/; revision=9076
* Make sure that PORTAGE_SANDBOX_* variables can never be setZac Medico2007-12-131-1/+1
| | | | | | by "${T}"/environment. (trunk r8911) svn path=/main/branches/2.1.2/; revision=8912
* Allow FEATURES to persist between phases since the user mightZac Medico2007-12-131-1/+1
| | | | | | | | | | | want to modify it via bashrc to enable things like splitdebug and installsources for specific packages. They should be able to modify it in pre_pkg_setup() and have it persist all the way through the install phase. However, if FEATURES exist inside environment.bz2 then they should be overridden by current settings. (trunk r8909) svn path=/main/branches/2.1.2/; revision=8910
* * whitelist CCACHE_* and DISTCC_* variables in config.environ()Zac Medico2007-12-031-0/+3
| | | | | | | * unset CCACHE_* and DISTCC_* variables in save_ebuild_env() (trunk r8818) svn path=/main/branches/2.1.2/; revision=8819
* 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. (trunk r8816) svn path=/main/branches/2.1.2/; revision=8817
* * 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 (trunk r8796) svn path=/main/branches/2.1.2/; revision=8797
* 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-011-1/+2
| | | | | | | * filter PREROOTPATH in save_ebuild_env() (trunk r8781) svn path=/main/branches/2.1.2/; revision=8782
* 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
* Bug #200775 - Save more portage generated environmentZac Medico2007-11-301-1/+1
| | | | | | | 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
* 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. (trunk r8752:8755) svn path=/main/branches/2.1.2/; revision=8756
* Check if ${EBUILD_EXIT_STATUS_FILE} is empty beforeZac Medico2007-11-261-1/+2
| | | | | | 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/+4
| | | | | | | | | | | | | | | | | | 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
* 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
* Filter more misc environment variables. (trunk r8676)Zac Medico2007-11-261-2/+2
| | | | svn path=/main/branches/2.1.2/; revision=8677
* * Move filtering of a bunch of portage config variables fromZac Medico2007-11-261-21/+10
| | | | | | | | 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
* Filter _RC_GET_KV_CACHE from the saved environment. (trunk r8666)Zac Medico2007-11-251-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=8667
* Make preprocess_ebuild_env() reload a known good version ofZac Medico2007-11-251-0/+68
| | | | | | | 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
* 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(). (trunk r8653) svn path=/main/branches/2.1.2/; revision=8656
* Fix the diefunc overlay message so that it doesn't triggerZac Medico2007-11-211-0/+1
| | | | | | falsely in prerm or postrm. (trunk r8578) svn path=/main/branches/2.1.2/; revision=8579
* Sync with ebuild.sh and isolated-functions.sh as of trunk r8569. ThisZac Medico2007-11-211-3/+118
| | | | | | | includes all the environment filtering enhancements that solve bugs #46223 and #190128. svn path=/main/branches/2.1.2/; revision=8570
* Fix quoting as reported by Drac in bug 194169 (trunk r7877:7879)Zac Medico2007-10-051-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=7921
* Fix eend so that it works properly on a standard BSD console. Thanks to ↵Zac Medico2007-05-021-0/+2
| | | | | | UberLord. (trunk r6466:6467) svn path=/main/branches/2.1.2/; revision=6468
* make it executableMike Frysinger2007-01-161-0/+0
| | | | svn path=/main/trunk/; revision=5677
* Fix ebuild environment color.map support so that it works properly through ↵Zac Medico2007-01-121-7/+9
| | | | | | exec calls (since the color variables can not be directly exported due to env pollution). svn path=/main/trunk/; revision=5578
* For bug #160075, send all 'QA Notice' messages to eqawarn. Also, modify ↵Zac Medico2007-01-101-1/+10
| | | | | | eqawarn to use vecho and send ouput to stderr. svn path=/main/trunk/; revision=5507
* Add new eqawarn function and QA loglevel to be used for QA messagesMarius Mauch2007-01-091-1/+7
| | | | svn path=/main/trunk/; revision=5490
* only print the "Removing /usr/share/info" if --quiet was not passedSimon Stelling2006-08-241-2/+6
| | | | svn path=/main/trunk/; revision=4339
* Make sure that variables containing colors pollute the environment for bug ↵Zac Medico2006-06-271-0/+1
| | | | | | #138246. svn path=/main/trunk/; revision=3675
* Allow /etc/portage/color.map to control colors associated with einfo, ewarn, ↵Zac Medico2006-06-261-5/+5
| | | | | | etc... svn path=/main/trunk/; revision=3665
* As suggested by exg, include the einfon code inside einfo instead of using ↵Zac Medico2006-06-221-6/+4
| | | | | | the FUNCNAME hack (FUNCNAME only works with >=bash-3.0). svn path=/main/trunk/; revision=3607
* Prevent extra newlines in elog for einfo invocations. See bug #136208.Zac Medico2006-06-121-2/+6
| | | | svn path=/main/trunk/; revision=3501
* you have to quote $@ or things can breakMike Frysinger2006-05-141-1/+1
| | | | svn path=/main/trunk/; revision=3351
* make portage shut up if --quiet is given; bug 62273Simon Stelling2006-05-011-1/+5
| | | | svn path=/main/trunk/; revision=3296
* allow escaping in elog_base() to fix bug 131913Simon Stelling2006-05-011-1/+1
| | | | svn path=/main/trunk/; revision=3294