summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Avoid leaking some variables from ebuild_main() into the environment (localv2.2_rc29Zac Medico2009-04-111-3/+3
| | | | | | variables are exposed to 'children'). svn path=/main/trunk/; revision=13316
* Call _ebuild_phase_funcs() from ebuild_main() since it needs to be called forZac Medico2009-04-081-5/+5
| | | | | | every phase (for EAPI 2 default() phase function setup). svn path=/main/trunk/; revision=13301
* - Move DEFINED_PHASES code into _source_ebuild() and add it to the list ofZac Medico2009-04-081-35/+34
| | | | | | | readonly variables. - Save DEFINED_PHASES in the vdb entries, as requested by lxnay. svn path=/main/trunk/; revision=13300
* Move the ebuild sourcing code into a new _source_ebuild() function.Zac Medico2009-04-081-6/+9
| | | | 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/+2
| | | | | | proactively call set +e inside qa_source(), qa_call(), and die(). svn path=/main/trunk/; revision=13273
* In dyn_unpack(), don't force a new unpack when the ebuild mtime is newerZac Medico2009-03-271-4/+1
| | | | | | | than $WORKDIR, since that may be too touchy. The user can easily call the clean phase explicitly if they really want it. svn path=/main/trunk/; revision=13222
* Move checks for /usr/lib/distcc/bin and /usr/lib/ccache/bin to the pythonZac Medico2009-03-261-15/+4
| | | | | | | | side and don't add distcc to CC and CXX when /usr/lib/distcc/bin doesn't exist since that won't necessarily work. Thanks to Jeroen Roovers <jer@g.o> for reporting the issue with adding distcc to CC. svn path=/main/trunk/; revision=13198
* Source bashrc after PATH tweaks inside ebuild_main().Zac Medico2009-03-251-1/+2
| | | | svn path=/main/trunk/; revision=13184
* Move distcc and ccache PATH setup later, after EAPI is guaranteed to be known,Zac Medico2009-03-251-58/+35
| | | | | | | so that it's possible to do indepenent EAPI-specific PATH modifications prior to the distcc/ccache modifications. svn path=/main/trunk/; revision=13183
* Remove unused tar_opts variable inside unpack(). Thanks to zong_sharo forZac Medico2009-03-251-5/+4
| | | | | | reporting. svn path=/main/trunk/; revision=13181
* Use a separate if/then to group boolean or'd expressions together, ratherZac Medico2009-03-231-6/+6
| | | | | | than a subshell. svn path=/main/trunk/; revision=13149
* Make ebuild(1) detect ebuild/eclass changes and automatically source theZac Medico2009-03-231-2/+4
| | | | | | | | ebuild atain in this case (even though $T/environment may already exist). This should help avoid confusion by ensuring that the latest changes to the ebuild/eclasses are reflected in the environment. svn path=/main/trunk/; revision=13148
* When triggering a fresh unpack inside dyn_unpack(), remove theZac Medico2009-03-221-1/+1
| | | | | | .prepared, .configured and .installed files along with the others. svn path=/main/trunk/; revision=13146
* In order to avoid possible duplicate elog messages when using ebuild(1) toZac Medico2009-03-181-0/+7
| | | | | | | | call the same phase multiple times, wipe out elog log files for the current phase just before executing the phase. Thanks to Mike Frysinger <vapier@g.o> for reporting. svn path=/main/trunk/; revision=13130
* Add missing brackets to [:upper:] and [:lower:] in _sb_append_var() trZac Medico2009-03-131-1/+2
| | | | | | arguments. svn path=/main/trunk/; revision=13104
* cleanup sandbox env var handling -- make sure we dont insert empty : ↵Mike Frysinger2009-03-121-29/+27
| | | | | | sections and avoid unnecessary eval usage svn path=/main/trunk/; revision=13090
* Make dyn_clean ignore FEATURES=keepwork when [[ $EMERGE_FROM = binary ]]Zac Medico2009-03-121-2/+3
| | | | | | | and remove shutil.rmtree() call from Binpkg._clean_exit() since dyn_clean is guaranteed to do a full clean now. svn path=/main/trunk/; revision=13069
* Move ebuild helpers into an ebuild-helpers subdirectory.Zac Medico2009-03-121-1/+1
| | | | svn path=/main/trunk/; revision=13063
* Only execute src_test pre/post hooks when src_test is actually executed.Zac Medico2009-03-091-4/+4
| | | | svn path=/main/trunk/; revision=12809