summaryrefslogtreecommitdiffstats
path: root/bin/isolated-functions.sh
Commit message (Collapse)AuthorAgeFilesLines
...
* Quote paths for 'call stack' display.Michał Górny2010-04-231-1/+1
| | | | | | Added missing quoting around the path passed to basename when printing 'Call stack' on die(). This should fix the issue where basename syntax error was displayed instead of the source file name.
* Quote path for die snippet display.Michał Górny2010-04-241-1/+1
| | | | | | Added missing quoting around the path passed to sed when displaying ebuild snippet on die(). This should fix the issue where they weren't displayed due to the occurence of special characters in the path.
* Implement REPLACING_VERSIONS and REPLACED_BY_VERSIONSebastian Luther2010-04-101-0/+1
|
* Remove PORTAGE_USERNAME and PORTAGE_GROUPNAME support for now since antarusZac Medico2010-04-061-2/+2
| | | | says he wants it to work via make.conf, requiring redesign.
* Add a test which calls bash -n on all scripts with bash shebang.Zac Medico2010-04-021-1/+2
|
* Add PORTAGE_USERNAME and PORTAGE_GROUPNAME to the environment whitelist andZac Medico2010-03-261-2/+3
| | | | filter them from the saved environment.
* Remove unsed check_KV() function. Thanks to Brian Harring.Zac Medico2010-03-251-1/+1
|
* Remove obsolete reference to nonexistent functions like newdepend inZac Medico2010-03-251-2/+1
| | | | save_ebuild_env. Thanks to Brian Harring.
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Bug #309149 - Unify look of eend used in bash & python code, additionallyZac Medico2010-03-201-7/+4
| | | | | | | fixing few inconsistences in bash code. Thanks to Michał Górny <gentoo@mgorny.alt.pl> for this patch. svn path=/main/trunk/; revision=15839
* In save_ebuild_env(), preserve all ebuild phases in any case since excludingZac Medico2009-12-241-2/+0
| | | | | | | the already executed ones from environment.bz2 doesn't save much space, and it's possible that someone would want to look at them later. svn path=/main/trunk/; revision=15145
* Fix the assert alias to avoid 'value to great for base' messages in some cases.Zac Medico2009-12-191-2/+9
| | | | | | Thanks to Jonathan Callen <abcd@g.o> for reporting. svn path=/main/trunk/; revision=15121
* Revert previous commit because it's no comptible (doesn't pass arguments toZac Medico2009-12-191-1/+1
| | | | | | die). svn path=/main/trunk/; revision=15120
* Fix the assert alias to 'value to great for base' messages in some cases.Zac Medico2009-12-191-1/+1
| | | | | | Thanks to Jonathan Callen <abcd@g.o> for reporting. svn path=/main/trunk/; revision=15119
* Bug #296870 - Allow locale related LANG and LC_* variables to persist betweenZac Medico2009-12-161-5/+0
| | | | | | ebuild phases, and only filter them for binary and installed packages. svn path=/main/trunk/; revision=15096
* Remove unused STARTDIR variable.Zac Medico2009-12-121-1/+1
| | | | svn path=/main/trunk/; revision=15051
* Add EAPI 3_pre2 to conditinals so the EAPI 4 stuff is disabled.Zac Medico2009-12-111-1/+1
| | | | svn path=/main/trunk/; revision=15035
* Add localization variables (LANG and LC_*) to the environment whitelist andZac Medico2009-12-091-0/+5
| | | | | | | filter them from the saved environment (so user settings override those of binary packages). Thanks to Fabio Erculiani <lxnay@g.o> for reporting. svn path=/main/trunk/; revision=14975
* Fix handling for TEMP, TMP, and TMPDIR variables:Zac Medico2009-12-091-1/+1
| | | | | | | | * Add to whitelist so current values are always used. * Always filter them from the saved environment. * Always add thier values to SANDBOX_WRITE. svn path=/main/trunk/; revision=14973
* Bump EAPI conditionals to account for rename of EAPI 3 to 4. Thanks toZac Medico2009-12-081-2/+2
| | | | | | Jonathan Callen <abcd@g.o> for this patch. svn path=/main/trunk/; revision=14965
* Bug #295715 - Implement a register_success_hook function to complementZac Medico2009-12-061-0/+1
| | | | | | | register_die_hook, and also add code to ensure the die hooks are called even when the failure is on the python side (like for file collisions). svn path=/main/trunk/; revision=14936
* Restore support for bash-3.Arfrever Frehtes Taifersar Arahesis2009-11-081-0/+3
| | | | svn path=/main/trunk/; revision=14804
* drop IMAGE -- people have had years to catch upMike Frysinger2009-10-191-1/+1
| | | | svn path=/main/trunk/; revision=14694
* Move filtering of misc bash variables from save_ebuild_env() toZac Medico2009-10-181-4/+1
| | | | | | | filter_readonly_variables(). Add additional variables found in the output of `env -i bash -c 'declare -p'`. svn path=/main/trunk/; revision=14676
* Remove reference to non-existent _source_ebuild function.Zac Medico2009-10-181-1/+0
| | | | svn path=/main/trunk/; revision=14663
* Preserve variables which have been set in global scope using 'declare'.Arfrever Frehtes Taifersar Arahesis2009-10-181-2/+2
| | | | svn path=/main/trunk/; revision=14662
* Simplify the conditionals from bug #273648. Thanks to Jonathan CallenZac Medico2009-10-171-0/+1
| | | | | | <abcd@g.o> for this patch. svn path=/main/trunk/; revision=14617
* Add back Arfrever's emerge --info change because it's good and I was justZac Medico2009-10-091-1/+1
| | | | | | confused. svn path=/main/trunk/; revision=14527
* Ask for the output of 'emerge --info' instead of 'emerge --info ↵Arfrever Frehtes Taifersar Arahesis2009-10-091-1/+1
| | | | | | =$CATEGORY/$PF'. Suggested by zmedico. svn path=/main/trunk/; revision=14526
* Ask for the output of 'emerge --info =$CATEGORY/$PF'.Arfrever Frehtes Taifersar Arahesis2009-10-091-2/+2
| | | | svn path=/main/trunk/; revision=14525
* Bug #270933 - Make the "If you need support ..." message ask for emergeZac Medico2009-10-091-2/+3
| | | | | | | --info and the build.log. Thanks to Sebastian Mingramm (few) for this patch. svn path=/main/trunk/; revision=14521
* - do not calculate source with of isolated-functions (for die function)Fabian Groffen2009-10-031-16/+16
| | | | | | | | | | | as we don't print it - move paths to the bottom and print ${S} as it's often necessary when a package fails. - move error message up directly after the message it says it failed (printing it below the code snippet usually just repeats the message) svn path=/main/trunk/; revision=14483
* only calculate spacing width for that part of the stack that we're going to ↵Fabian Groffen2009-10-031-1/+8
| | | | | | print svn path=/main/trunk/; revision=14482
* Remove ACCEPT_PROPERTIES filtering since it's filtered on the python side.Zac Medico2009-08-151-1/+1
| | | | svn path=/main/trunk/; revision=14065
* Add ACCEPT_PROPERTIES variable which has default value * and can be set inMounir Lamouri2009-08-111-1/+1
| | | | | | | make.conf or /etc/portage/package.properties. If ACCEPT_PROPERTIES doesn't match ebuild PROPERTIES, the ebuild is masked. svn path=/main/trunk/; revision=13997
* Filter PORTAGE_NONFATAL from the environment where appropriate.Zac Medico2009-08-061-1/+1
| | | | svn path=/main/trunk/; revision=13938
* Implement nonfatal().Arfrever Frehtes Taifersar Arahesis2009-08-061-0/+16
| | | | svn path=/main/trunk/; revision=13936
* Remove the code from bug #278895 since we're going to need a daemon processZac Medico2009-08-031-2/+1
| | | | | | | | | | | | in the ebuild's login session in order to pass signals from the controlling terminal to the detached session. A simple fifo-based approach in ebuild.sh does not seem to work since bash's read builtin occasionally loses the fifo data when it's 'Interrupted system call'. Maybe a python script will work better for the session leader/daemon. NOTE: The daemon will also be useful for implementing a fifo-based die helper (to replace the current signal- based approach). svn path=/main/trunk/; revision=13879
* Inside die(), only send the signal for subshell die support when we areZac Medico2009-07-301-1/+1
| | | | | | actually in a subshell. svn path=/main/trunk/; revision=13857
* Bug #278895 - Make ebuild.sh clean up orphaned processes that may have beenZac Medico2009-07-301-1/+2
| | | | | | | | | | | left behind by ebuild phases. This works by using setsid to create a new login session for the ebuild.sh process, and `kill -s SIGHUP 0` to send a SIGHUP signal to all processes in the session. The setsid is currently not done on the python side since that would cause the sandbox process in the session, and sandbox produces a warning message if it catches a SIGHUP signal. svn path=/main/trunk/; revision=13856
* Make elog functions use read -r when splitting lines, so that backslashesZac Medico2009-05-011-11/+11
| | | | | | intended for display will not be eaten. svn path=/main/trunk/; revision=13582
* Fix ACCEPT_LICENSE handling for binary packages, so that the build-time USEZac Medico2009-04-301-1/+1
| | | | | | settings are used calculate an appropriate ACCEPT_LICENSE value. svn path=/main/trunk/; revision=13560
* Revert r13390 (dosed and dohard functions) since a stack trace isn't reallyZac Medico2009-04-241-2/+1
| | | | | | | important this particular QA feature. Thanks to Tiziano Müller <dev-zero@g.o> for the suggestion. svn path=/main/trunk/; revision=13391
* Add dummy dosed and dohard functions for EAPI 3, so that a trace can beZac Medico2009-04-241-1/+2
| | | | | | displayed (not possible with the helper binaries). svn path=/main/trunk/; revision=13390
* Move the ebuild sourcing code into a new _source_ebuild() function.Zac Medico2009-04-081-0/+1
| | | | svn path=/main/trunk/; revision=13299
* Bug #264494 - In case the ebuild has enabled set -e during an ebuild phase,Zac Medico2009-04-011-0/+1
| | | | | | proactively call set +e inside qa_source(), qa_call(), and die(). svn path=/main/trunk/; revision=13273
* Update copyright headers.Zac Medico2009-03-181-1/+1
| | | | svn path=/main/trunk/; revision=13131
* Filter _sb_append_var in save_ebuild_env().Zac Medico2009-03-121-1/+1
| | | | svn path=/main/trunk/; revision=13091
* Make save_ebuild_env() filter NOCOLOR, and remove related code from ebuild.shZac Medico2009-02-181-1/+1
| | | | | | since that variable is not loaded from $T/environment anymore. svn path=/main/trunk/; revision=12625
* Filter the new hasg and hasgq functions inside save_ebuild_env().Zac Medico2009-02-071-1/+2
| | | | svn path=/main/trunk/; revision=12592