summaryrefslogtreecommitdiffstats
path: root/bin/isolated-functions.sh
Commit message (Collapse)AuthorAgeFilesLines
* Use echo -e when splitting lines in e* functions, for compatibility withZac Medico2008-09-251-6/+6
| | | | | | | previous behavior wrt \e escape codes such as `elog "\e[31m***\e[0m"` for example. Thanks to Arfrever for finding this solution. svn path=/main/trunk/; revision=11545
* Bug #238251 - Use 'read' instead of $IFS for splitting newlines in e*Zac Medico2008-09-211-67/+7
| | | | | | | functions, since using $IFS causes spurious newlines to be inserted in the message when the e* function is called with more than one argument. svn path=/main/trunk/; revision=11529
* Fix typo in from previous commit.Zac Medico2008-09-191-1/+1
| | | | svn path=/main/trunk/; revision=11516
* Remove everything related to the eapi* default phase functions since theyZac Medico2008-09-181-1/+1
| | | | | | are not included in the current EAPI 2 draft. svn path=/main/trunk/; revision=11515
* Add a new src_prepare phase function which is called in-between src_unpackZac Medico2008-08-231-4/+4
| | | | | | | and src_configure (and bump EAPI to 2_pre3). Thanks to Ciaran McCreesh for the suggestion. svn path=/main/trunk/; revision=11454
* Rename the eapi2_pre2_* functions to just eapi2_* and document all theZac Medico2008-08-081-1/+1
| | | | | | new eapi* functions. svn path=/main/trunk/; revision=11351
* Implement eapi$EAPI_* default phase functions that are equivalent to theZac Medico2008-08-081-1/+1
| | | | | | | | | default_* functions for the given EAPI. For example, a function named eapi0_src_compile provides access to the default src_compile implementation that EAPI 0 provides. This feature is supported only when EAPI=2_pre2 is set. Thanks to Brian Harring for suggesting this idea. svn path=/main/trunk/; revision=11350
* * Fix the default() implementation so that it maps the ebuild argument toZac Medico2008-08-081-0/+23
| | | | | | | | | | | the correct phase function. * Add --exclude-init-phases option to save_ebuild_env() for filtering out unnecessary functions and variables when creating environment.bz2. * Add support for default() and default_* functions that die in all ebuild phases so that improper use of these functions is quickly discovered. svn path=/main/trunk/; revision=11346
* Remove redundant 'local line' definition from previous commit.Zac Medico2008-08-061-1/+0
| | | | svn path=/main/trunk/; revision=11336
* Fix breakage in elog function newline handling with causes blank/emptyZac Medico2008-08-061-5/+43
| | | | | | lines to get lost. svn path=/main/trunk/; revision=11335
* Bug #233735 - Add support for src_configure and default_* functions withZac Medico2008-08-041-3/+6
| | | | | | | new EAPI=2_pre2. Thanks to Arfrever Frehtes Taifersar Arahesis for the initial patch which I've made a few adjustments to. svn path=/main/trunk/; revision=11327
* Even though the message is split on $'\n' in elog_base(), it's stillZac Medico2008-07-281-1/+5
| | | | | | | | not entirely safe to use it as a delimiter in the log file since there can still be escaped newlines that will be expanded due to the echo -e parameter. svn path=/main/trunk/; revision=11244
* Make elog_base() just use \n as the delimiter in the file since it's safeZac Medico2008-07-271-1/+1
| | | | | | now that lines are always split. svn path=/main/trunk/; revision=11220
* Make all the elog functions split lines when displaying output, just likeZac Medico2008-07-271-5/+35
| | | | | | elog_base() does when saving it. svn path=/main/trunk/; revision=11219
* Add support to elog_base() to split messages on newlines automatically.Zac Medico2008-07-271-2/+8
| | | | | | Thanks to Arfrever for the suggestion. svn path=/main/trunk/; revision=11218
* revert accidential commitMarius Mauch2008-06-201-10/+1
| | | | svn path=/main/trunk/; revision=10734
* update release notes/newsMarius Mauch2008-06-201-1/+10
| | | | svn path=/main/trunk/; revision=10733
* More eblank.Zac Medico2008-06-171-2/+0
| | | | svn path=/main/trunk/; revision=10704
* Remove eblank nonsenseMarius Mauch2008-06-171-10/+1
| | | | svn path=/main/trunk/; revision=10694
* * Rename NEUTRAL color to BLANK for eblank.Zac Medico2008-06-171-3/+3
| | | | | | | * Document the new BLANK code in color.map.5. * Implement python version of eblank for mod_echo. svn path=/main/trunk/; revision=10677
* Add support for an new "eblank" elog function that shows a blank line.Zac Medico2008-06-171-1/+17
| | | | | | | Consecutive eblank calls are all collapsed into a single blank line. Thanks to Joe Peterson <lavajoe@g.o> for this patch. svn path=/main/trunk/; revision=10675
* remove old/unused gen_wrapper functionMike Frysinger2008-06-071-1/+1
| | | | svn path=/main/trunk/; revision=10591
* Don't unset PORTAGE_BINPKG_FILE because it's readonly.Zac Medico2008-06-031-1/+0
| | | | svn path=/main/trunk/; revision=10546
* Filter PORTAGE_BINPKG_FILE in save_ebuild_env().Zac Medico2008-06-011-0/+1
| | | | svn path=/main/trunk/; revision=10541
* 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. svn path=/main/trunk/; revision=10195
* 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. svn path=/main/trunk/; revision=9763
* Fix BASH_ARGC and BASH_ARGV offsets some more.Zac Medico2008-04-061-1/+1
| | | | svn path=/main/trunk/; revision=9734
* In dump_trace(), fix BASH_ARGV and BASH_ARGC offsets so that they are alwaysZac Medico2008-04-061-3/+9
| | | | | | correct wrt eachother. Thanks to Betelgeuse for reporting. svn path=/main/trunk/; revision=9733
* preserve order of ebuild messages even between different message types (bug ↵Marius Mauch2008-04-061-1/+1
| | | | | | #197905) svn path=/main/trunk/; revision=9726
* 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. svn path=/main/trunk/; revision=9528
* Remove the killparent() function and associated SIGINT trap since thisZac Medico2008-02-101-1/+1
| | | | | | | should already be handled on the python side and it won't work with dropped privileges anyway. svn path=/main/trunk/; revision=9327
* Bug #155993 - Update environment.bz2 after postinst in caseZac Medico2008-02-071-1/+2
| | | | | | | installation phases need to pass some variables to uninstallation phases. svn path=/main/trunk/; revision=9281
* - Remove ebuild.autotools repoman check since it produces lotsZac Medico2008-01-301-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 svn path=/main/trunk/; revision=9235
* We need to implement diefunc() since environment.bz2 files containZac Medico2008-01-211-1/+7
| | | | | | calls to it (due to alias expansion). svn path=/main/trunk/; revision=9217
* Replace the current diefunc() and die alias with a single die() function.Zac Medico2008-01-201-6/+3
| | | | | | | | | 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. (branches/prefix r9212) svn path=/main/trunk/; revision=9216
* Make filter_readonly_variables() filter PATH in any case sinceZac Medico2008-01-051-1/+1
| | | | | | we never want to save of reload it. svn path=/main/trunk/; revision=9147
* 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. svn path=/main/trunk/; revision=9140
* As suggested by grobian, treat Darwin just like USERLAND=gnuZac Medico2007-12-291-4/+1
| | | | | | since they seem to be switching commands to gnu anyway. svn path=/main/trunk/; revision=9118
* Fix broken Darwin USERLAND detection.Zac Medico2007-12-291-0/+3
| | | | svn path=/main/trunk/; revision=9116
* Simplify the userland detection code in portage.data and addZac Medico2007-12-291-0/+11
| | | | | | a bash version of it to isolated-functions.sh. svn path=/main/trunk/; revision=9100
* Move XARGS initialization from portage.data to isolated-functions.sh.Zac Medico2007-12-291-0/+11
| | | | svn path=/main/trunk/; revision=9096
* 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. svn path=/main/trunk/; revision=9064
* Make sure that PORTAGE_SANDBOX_* variables can never be setZac Medico2007-12-131-1/+1
| | | | | | by "${T}"/environment. svn path=/main/trunk/; revision=8911
* 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. svn path=/main/trunk/; revision=8909
* * 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
* * 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
* 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