summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
Commit message (Collapse)AuthorAgeFilesLines
* Collapse two [[ ]] into one.Zac Medico2009-11-061-1/+1
| | | | svn path=/main/trunk/; revision=14782
* For --debug mode, enable bash tracing when sourcing the ebuild.Zac Medico2009-11-061-1/+8
| | | | svn path=/main/trunk/; revision=14781
* Revert the workaround for bug #288863. This will require a dependency onZac Medico2009-10-261-6/+0
| | | | | | >=sys-apps/sandbox-2.2. svn path=/main/trunk/; revision=14733
* drop IMAGE -- people have had years to catch upMike Frysinger2009-10-191-4/+0
| | | | svn path=/main/trunk/; revision=14694
* Move filtering of misc bash variables from save_ebuild_env() toZac Medico2009-10-181-2/+6
| | | | | | | filter_readonly_variables(). Add additional variables found in the output of `env -i bash -c 'declare -p'`. svn path=/main/trunk/; revision=14676
* Fix messages broken in r14616. Thanks to Arfrever for reporting and thanks toZac Medico2009-10-181-4/+3
| | | | | | Jonathan Callen <abcd@g.o> for this patch. svn path=/main/trunk/; revision=14675
* Fix breakage in DEFINED_PHASES code.Zac Medico2009-10-181-2/+2
| | | | svn path=/main/trunk/; revision=14664
* Preserve variables which have been set in global scope using 'declare'.Arfrever Frehtes Taifersar Arahesis2009-10-181-65/+62
| | | | svn path=/main/trunk/; revision=14662
* Use short substitution syntax in use_with() and use_enable(). Thanks toZac Medico2009-10-171-18/+4
| | | | | | Jonathan Callen <abcd@g.o> for this patch. svn path=/main/trunk/; revision=14623
* Fix einstall() change from previous commit, for compatibility with emptyZac Medico2009-10-171-1/+1
| | | | | | but set CONF_PREFIX. Thanks to Jonathan Callen <abcd@g.o> for reporting. svn path=/main/trunk/; revision=14622
* Use [ "${foo+set}" = set ] instead of "${foo-unset}" != unset ], to avoidZac Medico2009-10-171-18/+18
| | | | | | | any possility of ambiguity. Thanks to Jonathan Callen <abcd@g.o> for the suggestion. svn path=/main/trunk/; revision=14621
* In dyn_unpack, check mtimes on $A instead of $AA. Thanks to Jonathan CallenZac Medico2009-10-171-1/+1
| | | | | | <abcd@g.o> for reporting. svn path=/main/trunk/; revision=14619
* Make phase variable local in has_phase_defined_up_to().Zac Medico2009-10-171-0/+1
| | | | svn path=/main/trunk/; revision=14618
* Simplify the conditionals from bug #273648. Thanks to Jonathan CallenZac Medico2009-10-171-18/+13
| | | | | | <abcd@g.o> for this patch. svn path=/main/trunk/; revision=14617
* Bug #273648 - EAPI 3 - the following condtions must be met:Zac Medico2009-10-171-13/+49
| | | | | | | | | | | | 1. The A variable contains no items. 2. The phase function in question is not in DEFINED_PHASES. 3. None of the phase functions unpack, prepare, configure, compile or install, if supported by the EAPI in question and occurring prior to the phase about to be executed, are in DEFINED_PHASES. Thanks to Jonathan Callen <abcd@g.o> for this patch. svn path=/main/trunk/; revision=14616
* Ensure that /dev/std* streams have appropriate sandbox permission forZac Medico2009-10-161-0/+6
| | | | | | | bug #288863. This can be removed after sandbox is fixed and portage depends on the fixed version. svn path=/main/trunk/; revision=14612
* Use a shell script for dohtml instead of a function, for xargs compatibility.Zac Medico2009-10-111-7/+0
| | | | svn path=/main/trunk/; revision=14582
* Add some more EPYTHON safety.Zac Medico2009-10-111-1/+1
| | | | svn path=/main/trunk/; revision=14570
* Set EPYTHON variable as empty when calling portageq or dohtml to avoid using ↵Arfrever Frehtes Taifersar Arahesis2009-10-111-7/+23
| | | | | | potentially unsupported version of Python. svn path=/main/trunk/; revision=14568
* Bug #285979 - Replace references to CDEPEND with UNUSED_00, to make it clearZac Medico2009-09-231-2/+1
| | | | | | that this key really is unused. svn path=/main/trunk/; revision=14393
* make sure we can deal with arches like x86-fbsd, like is done in ↵Fabian Groffen2009-08-241-1/+1
| | | | | | bin/ebuild-helpers/prepstrip svn path=/main/trunk/; revision=14151
* Support QA_DT_HASH_${ARCH} and QA_PRESTRIPPED_${ARCH} (bug #271416).Arfrever Frehtes Taifersar Arahesis2009-08-211-0/+1
| | | | svn path=/main/trunk/; revision=14114
* Use elog in _eapi0_pkg_nofetch().Zac Medico2009-08-151-2/+2
| | | | svn path=/main/trunk/; revision=14068
* Bug #277537 - Synchronize order of PATH elements with the order defined byZac Medico2009-08-061-2/+2
| | | | | | | /etc/profile (promote paths under /usr to the front). Thanks to Michał Górny <gentoo@mgorny.alt.pl>. svn path=/main/trunk/; revision=13935
* Remove the code from bug #278895 since we're going to need a daemon processZac Medico2009-08-031-13/+0
| | | | | | | | | | | | 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
* Add a python-based setsid script for use with USERLAND=BSD.Zac Medico2009-07-301-2/+5
| | | | svn path=/main/trunk/; revision=13863
* Move the setsid code (from bug #278895) as early as possible.Zac Medico2009-07-301-18/+17
| | | | svn path=/main/trunk/; revision=13861
* Bug #278895 - Make ebuild.sh clean up orphaned processes that may have beenZac Medico2009-07-301-0/+11
| | | | | | | | | | | 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
* For consistency with emake, add ${MAKEOPTS} ${EXTRA_EMAKE} to make argumentsZac Medico2009-07-171-0/+2
| | | | | | | | inside einstall. Also, force -j1 in order to override any --jobs settings from MAKEOPTS. Thanks to Diego Pettenò <flameeyes@gentoo.org> for the suggestion. svn path=/main/trunk/; revision=13833
* Bug #273640 - Add --disable-dependency-tracking to econf arguments forZac Medico2009-07-061-0/+5
| | | | | | EAPI 3. Thanks to Markus Meier <maekke@gentoo.org> for this patch. svn path=/main/trunk/; revision=13800
* Bug #273622 - Add pkg_pretend support for the ebuild(1) command (emergeZac Medico2009-07-061-2/+16
| | | | | | | support not implemented yet). Thanks to Markus Meier <maekke@gentoo.org> for this patch. svn path=/main/trunk/; revision=13799
* Bug #273631 - Add default src_install implementation for EAPI 3. Thanks toZac Medico2009-07-061-0/+21
| | | | | | | Markus Meier <maekke@gentoo.org> for this patch (and people in #gentoo-portage for bash syntax tweaks). svn path=/main/trunk/; revision=13798
* Don't set RDEPEND=${RDEPEND-${DEPEND}} for EAPI=3 and simplify setting it ↵Arfrever Frehtes Taifersar Arahesis2009-07-031-10/+4
| | | | | | for lower EAPIs. svn path=/main/trunk/; revision=13768
* Remove unused newdepend(), newrdepend(), newpdepend(), and do_newdepend()Zac Medico2009-06-111-62/+0
| | | | | | functions. Thanks to ABCD for reporting. svn path=/main/trunk/; revision=13636
* Make usev() strip ! prefix in echoed output as specified in bug #270658,Zac Medico2009-06-031-1/+1
| | | | | | comment #16. svn path=/main/trunk/; revision=13628
* drop sandbox settings that sandbox itself takes care of #258684Mike Frysinger2009-06-031-7/+4
| | | | svn path=/main/trunk/; revision=13627
* Make useq() die if called during the "depend" phase in newer EAPIs.Zac Medico2009-05-021-5/+9
| | | | svn path=/main/trunk/; revision=13598
* Skip useq() IUSE QA Notices during the "depend" phase because lots ofZac Medico2009-05-021-1/+5
| | | | | | | ebuilds/eclasses have stuff in global scope that really belongs somewhere like pkg_setup or src_configure. Thanks to Arfrever for reporting. svn path=/main/trunk/; revision=13597
* Enable use() qa checks via PORTAGE_IUSE for all ebuild phases and for binaryZac Medico2009-04-301-6/+1
| | | | | | packages since it should work fine now. svn path=/main/trunk/; revision=13570
* Put ebuild helpers at the absolute front of the PATH.Zac Medico2009-04-281-4/+7
| | | | svn path=/main/trunk/; revision=13404
* Bug #71646 - Don't allow the HISTFILE variable into the ebuild environmentZac Medico2009-04-281-1/+1
| | | | | | since it triggers sandbox violations. svn path=/main/trunk/; revision=13403
* Revert r13390 (dosed and dohard functions) since a stack trace isn't reallyZac Medico2009-04-241-8/+0
| | | | | | | 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-0/+8
| | | | | | displayed (not possible with the helper binaries). svn path=/main/trunk/; revision=13390
* Add dohard and doset helper which die for EAPI 3. TODO: Make the dieZac Medico2009-04-241-2/+2
| | | | | | | | helper use pipe or socket IPC instead of a signal, to avoid a potential race condition in signal delivery. Thanks to to Tiziano Müller <dev-zero@g.o> for the initial patch. svn path=/main/trunk/; revision=13389
* Fix breakage in PREROOTPATH logic from the EAPI 3 code.Zac Medico2009-04-231-0/+1
| | | | svn path=/main/trunk/; revision=13386
* Remove ccache and distcc remove_path_entry code since PATH is alwaysZac Medico2009-04-231-3/+0
| | | | | | initialized from scratch so there's no danger of accumulation. svn path=/main/trunk/; revision=13385
* Use declare -F to check existence of function definitions, instead ofZac Medico2009-04-221-10/+10
| | | | | | type -t, in order to avoid use of subshells. svn path=/main/trunk/; revision=13384
* In ebuild_main(), unset ebuild_helpers_path when finished with it, sinceZac Medico2009-04-211-0/+1
| | | | | | bash exposes local variables to 'children'. svn path=/main/trunk/; revision=13381
* Add ${PORTAGE_BIN_PATH}/ebuild-helpers/3 directory to PATH for EAPI 3. ThanksZac Medico2009-04-211-0/+13
| | | | | | to Tiziano Müller <dev-zero@g.o> for this patch. svn path=/main/trunk/; revision=13380
* Make portage.bsd_chflags correspond to FEATURES=chflags so that it can beZac Medico2009-04-131-1/+1
| | | | | | used for related conditionals in shell code. svn path=/main/trunk/; revision=13342