summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
Commit message (Collapse)AuthorAgeFilesLines
* At the end of dyn_clean(), also remove the $CATEGORY directory if possible.v2.2_rc12Zac Medico2008-10-091-2/+2
| | | | svn path=/main/trunk/; revision=11667
* Fix code from previous commit so it properly checks $eapi to verify thatZac Medico2008-10-091-1/+2
| | | | | | src_prepare is really a supported phase function. svn path=/main/trunk/; revision=11665
* Bug #240684 - Fix _ebuild_arg_to_phase() to handle the src_prepare phaseZac Medico2008-10-091-0/+3
| | | | | | so that the default() function is properly created. svn path=/main/trunk/; revision=11664
* In dyn_clean, cd to $PORTAGE_BUILDDIR/.. before attempting to remove it sinceZac Medico2008-10-051-3/+4
| | | | | | | | some kernels, such as Solaris, return EINVAL when an attempt is made to remove the current working directory. Thanks to Fabian Groffen <grobian@g.o> for reporting. svn path=/main/trunk/; revision=11630
* * When ensuring sane $PWD in ebuild.sh, die if the `cd "$PORTAGE_BUILDDIR"`Zac Medico2008-10-051-1/+4
| | | | | | | | call fails. * Create $PORTAGE_BUILDDIR for the "fetch" phase too since it might be necessary to call pkg_nofetch. svn path=/main/trunk/; revision=11628
* Generate an eqawarn message if econf is called from src_compile andZac Medico2008-10-011-0/+4
| | | | | | | | src_configure is also defined. Thanks to Betelgeuse for the patch which I've modified to be silent in EAPI 0 or 1 in case ebuilds want to define src_configure in those EAPIs and call it manually from src_compile. svn path=/main/trunk/; revision=11603
* Make $PWD default to $PORTAGE_BUILDDIR since $WORKDIR is sometimes createdZac Medico2008-09-271-2/+2
| | | | | | later. svn path=/main/trunk/; revision=11563
* Add PROPERTIES to all of the metadata caches.Zac Medico2008-09-261-1/+1
| | | | svn path=/main/trunk/; revision=11561
* Add PROPERTIES to portage.auxdbkeys since it's been approved by the council.Zac Medico2008-09-251-2/+2
| | | | svn path=/main/trunk/; revision=11549
* Always call `cd "$WORKDIR"` to ensure that $CWD is sane whenever possible.Zac Medico2008-09-211-0/+3
| | | | svn path=/main/trunk/; revision=11530
* Remove everything related to the eapi* default phase functions since theyZac Medico2008-09-181-35/+7
| | | | | | are not included in the current EAPI 2 draft. svn path=/main/trunk/; revision=11515
* Remove unneeded quotes from PYTHONPATH assignments and also fix one moreZac Medico2008-09-131-3/+3
| | | | | | potential redundant colon inside misc-functions.sh. svn path=/main/trunk/; revision=11512
* Fix PYTHONPATH adjustments to only insert a colon when necessary. ThisZac Medico2008-09-131-3/+3
| | | | | | | | | | | | is necessary since having a stray colon causes python to interpret the empty path entry as "." which triggers the following message if cwd happens to contain a directory names "os": warning: Not importing directory 'os': missing __init__.py Thanks to Joe Peterson <lavajoe@g.o> for reporting. svn path=/main/trunk/; revision=11511
* Add a new src_prepare phase function which is called in-between src_unpackZac Medico2008-08-231-4/+40
| | | | | | | and src_configure (and bump EAPI to 2_pre3). Thanks to Ciaran McCreesh for the suggestion. svn path=/main/trunk/; revision=11454
* Fix quoting for iteration over PROFILE_PATHS.Zac Medico2008-08-121-1/+1
| | | | svn path=/main/trunk/; revision=11404
* Entirely disable the src_configure phase from the python side for EAPI valuesZac Medico2008-08-111-1/+0
| | | | | | | | for which it's not supported. This avoids pointless spawning of ebuild.sh and also avoids having bashrc called during an invalid phase as reported by Arfrever. svn path=/main/trunk/; revision=11398
* In source_all_bashrcs(), only change $IFS while splitting $PROFILE_PATHS intoZac Medico2008-08-111-5/+4
| | | | | | | | | an array, and then restore it before doing anything else. This avoids interference that can otherwise occur if code from profile.bashrc (or /etc/portage/env, be extension) needs to call any of the elog functions which use the save_IFS and restore_IFS aliases internally. svn path=/main/trunk/; revision=11397
* Move the default EAPI definition where it will work in any case it mightZac Medico2008-08-101-4/+4
| | | | | | be necessary, such as after loading an exising environment. svn path=/main/trunk/; revision=11387
* Remove pointless `cd` calls in dyn_configure() and dyn_compile().Zac Medico2008-08-101-6/+4
| | | | svn path=/main/trunk/; revision=11380
* Eliminate duplicate code by making _eapi1_src_compile() call ↵Zac Medico2008-08-101-3/+1
| | | | | | _eapi2_src_configure(). svn path=/main/trunk/; revision=11379
* Fix dyn_clean() to properly clean $PORTAGE_BUILDDIR/.configured.Zac Medico2008-08-091-6/+3
| | | | svn path=/main/trunk/; revision=11377
* Make eapi*_src_install die since they're not supported.Zac Medico2008-08-091-3/+3
| | | | svn path=/main/trunk/; revision=11365
* Update date in dyn_help copyright header. Thanks to grobian.Zac Medico2008-08-091-1/+1
| | | | svn path=/main/trunk/; revision=11363
* Remove redundant default pkg_nofetch, src_unpack, and src_test definitionsZac Medico2008-08-081-12/+0
| | | | | | which are now handled inside _ebuild_phase_funcs(). svn path=/main/trunk/; revision=11358
* Fix broken quoting in eval statements. Thanks to Arfrever.Zac Medico2008-08-081-2/+2
| | | | svn path=/main/trunk/; revision=11354
* Fix default phase functions in EAPI 2_pre2, since they should be labeled asZac Medico2008-08-081-2/+2
| | | | | | "2" instead of "2_pre2. Thanks to Arfrever for reporting. svn path=/main/trunk/; revision=11352
* Rename the eapi2_pre2_* functions to just eapi2_* and document all theZac Medico2008-08-081-8/+8
| | | | | | new eapi* functions. svn path=/main/trunk/; revision=11351
* Implement eapi$EAPI_* default phase functions that are equivalent to theZac Medico2008-08-081-54/+107
| | | | | | | | | 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-35/+117
| | | | | | | | | | | 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
* Add support in EAPI 2_pre2 for a function named "default" is redefined forZac Medico2008-08-071-0/+9
| | | | | | | | each phase so that it will call the default_* function corresponding to the current phase. Thanks to Thomas Anderson <gentoofan23> for the initial patch. svn path=/main/trunk/; revision=11342
* Bug #233735 - Add support for src_configure and default_* functions withZac Medico2008-08-041-67/+164
| | | | | | | 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
* Fixes from Arfrever:Zac Medico2008-07-271-1/+1
| | | | | | | * Highlight the "Files built without respecting LDFLAGS" QA Notice with red. * Remove scanelf-ignored-LDFLAGS.log when empty. svn path=/main/trunk/; revision=11216
* Copy portageq exit code validation from has_version() to best_version().Zac Medico2008-06-281-0/+12
| | | | svn path=/main/trunk/; revision=10836
* remove old/unused gen_wrapper functionMike Frysinger2008-06-071-9/+0
| | | | svn path=/main/trunk/; revision=10591
* Skip source_all_bashrcs() when $EBUILD_PHASE is not set.Zac Medico2008-05-261-0/+1
| | | | svn path=/main/trunk/; revision=10429
* Prefer deb2tgz over ar for unpacking .deb files when installed (patch by ↵Marius Mauch2008-05-131-1/+14
| | | | | | Fabian Groffen, http://archives.gentoo.org/gentoo-portage-dev/msg_2f9c8543016f1a96f9122aca0ec35ded.xml) svn path=/main/trunk/; revision=10327
* Bug #217444 - Send debug-print() output to stderr so that it can't interfereZac Medico2008-04-121-1/+1
| | | | | | | with command substitution. Thanks to Fabio Rossi <rossi.f@inwind.it> for this patch. svn path=/main/trunk/; revision=9856
* Bug #215673 - Make ebuild.sh leave IUSE defaults intact instead of filteringZac Medico2008-04-011-14/+0
| | | | | | | them out. The built_with_use() function in eutils.eclass needs to be updated for compatibility. svn path=/main/trunk/; revision=9674
* When dyn_unpack() automatically cleans ${WORKDIR}, also remove thingsZac Medico2008-03-291-0/+1
| | | | | | like .unpacked and .compiled so that the state is consistent. svn path=/main/trunk/; revision=9606
* Make dyn_clean() consistent wrt removal of ${PORTAGE_BUILDDIR}/image andZac Medico2008-03-281-1/+1
| | | | | | | | | ${PORTAGE_BUILDDIR}/.installed since otherwise with FEATURES=keepwork dyn_install() will not call src_install() as necessary to repopulate ${PORTAGE_BUILDDIR}/image (resulting in install_qa_check failure due to absence of ${PORTAGE_BUILDDIR}/image). svn path=/main/trunk/; revision=9527
* Bug #213698 - Make FEAUTURES=keepwork and keeptemp preserve ${T}/environmentZac Medico2008-03-281-7/+3
| | | | | | since it may contain essential state. svn path=/main/trunk/; revision=9526
* Move the default empty compiler flag settings fromZac Medico2008-03-261-6/+0
| | | | | | ebuild.sh to make.globals (bug #214499). svn path=/main/trunk/; revision=9511
* Bug #214499 - When compiler flags are unset, many packages will substituteZac Medico2008-03-241-0/+6
| | | | | | their own implicit flags. For uniformity, use an empty string as the default. svn path=/main/trunk/; revision=9503
* Bug #174634 - Fix ebuild 'digest' and 'manifest' behave 100% identically andZac Medico2008-03-181-1/+1
| | | | | | update the docs to reflect this. svn path=/main/trunk/; revision=9475
* Bug #213540 - Make sure DESTTREE=/usr is set before inherit calls.Zac Medico2008-03-161-0/+4
| | | | svn path=/main/trunk/; revision=9472
* Use os.environ["SANDBOX_ON"] = "0" to make portageq exempt from sandbox forZac Medico2008-03-061-1/+1
| | | | | | things like writing metadata cache. Thanks to ferringb for the suggestion. svn path=/main/trunk/; revision=9448
* Remove egrep syntax emulation since it's not really needed.Zac Medico2008-03-061-2/+2
| | | | svn path=/main/trunk/; revision=9447
* Implement the sed-based declare -r filter in python.Zac Medico2008-03-061-9/+1
| | | | svn path=/main/trunk/; revision=9446
* Move the variable name validation regexes (for bug 211949) intoZac Medico2008-03-061-6/+3
| | | | | | filter-bash-environment.py instead of passing them in from bash. svn path=/main/trunk/; revision=9445
* Pass a space-separated list of variables into filter-bash-environment.py andZac Medico2008-03-051-8/+3
| | | | | | | generate the final regex on the python side instead of in bash. Also, properly anchor the regex so that it actually works. svn path=/main/trunk/; revision=9443