summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Add more QA warnings for econf calls during unexpected phases. Thanks toZac Medico2009-03-091-3/+12
| | | | | | Diego Elio Pettenò <flameeyes@g.o> for the suggestion. svn path=/main/trunk/; revision=12808
* When generating variable names to hold EXPORT_FUNCTIONS argument in, useZac Medico2009-03-091-6/+1
| | | | | | | $ECLASS_DEPTH as a unique id since it's a lot simpler then encoding the eclass name in the variable name. svn path=/main/trunk/; revision=12806
* Use the ebuild_phase helper function to calls phase hooks and fix brokenZac Medico2009-03-091-24/+18
| | | | | | | trap calls that try to unset multiple signal handlers at once without passing - as the first argument. svn path=/main/trunk/; revision=12805
* Inside dyn_unpack(), only call pre/post phase hooks when src_unpack isZac Medico2009-03-091-2/+1
| | | | | | called (when .unpacked does not already exist). svn path=/main/trunk/; revision=12804
* Replace things like [[ $PORTAGE_BUILDDIR/.prepared -nt $WORKDIR ]] withZac Medico2009-03-091-6/+5
| | | | | | | | | simply [[ -e $PORTAGE_BUILDDIR/.prepared ]] since the timestamp of $WORKDIR is practically always newer due to the other hidden files that are created there as each phase is executed. Thanks to Alfredo Tupone <tupone@g.o> for reporting. svn path=/main/trunk/; revision=12795
* Generate a QA Notice when EXPORT_FUNCTIONS is called before inherit, sinceZac Medico2009-03-081-0/+7
| | | | | | it's incompatible with <=portage-2.1.6.7. svn path=/main/trunk/; revision=12794
* Fix typo from previous commit.Zac Medico2009-03-081-1/+1
| | | | svn path=/main/trunk/; revision=12792
* Also support + character in eclass names.Zac Medico2009-03-081-1/+2
| | | | svn path=/main/trunk/; revision=12791
* Translate period characters in eclass names when generating variable namesZac Medico2009-03-081-3/+4
| | | | | | to store EXPORT_FUNCTIONS arguments. Thanks to Arfrever for reporting. svn path=/main/trunk/; revision=12788
* Make EXPORT_FUNCTIONS store it's arguments in an environment variable andZac Medico2009-03-081-12/+28
| | | | | | | | | perform the function generation after the current inherit call has returned. This allows an eclass to call EXPORT_FUNCTIONS either before or after it inherits other eclasses, and the result is still the same. Thanks to Donnie Berkholz <dberkholz@g.o> for reporting. svn path=/main/trunk/; revision=12785
* Revert previous 2 commits due to bugs.Zac Medico2009-03-081-20/+12
| | | | svn path=/main/trunk/; revision=12784