summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix PECLASS logic inside inherit() so that ECLASS is always restored to theZac Medico2009-03-081-5/+7
| | | | | | | correct value after recursion (previously it would be restored to the wrong value if more than one eclass was passed into the inherit call). svn path=/main/trunk/; revision=12783
* Make EXPORT_FUNCTIONS store it's arguments in an environment variable andZac Medico2009-03-081-7/+13
| | | | | | | | | perform the function generation after the current inherit call has returned. This way an eclass can 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=12782
* Fix vdb entry writting code in dyn_install() to avoid generating empty entriesZac Medico2009-03-041-3/+4
| | | | | | in some cases. Thanks to Ned Ludd <solar@g.o> for reporting. svn path=/main/trunk/; revision=12745
* Make save_ebuild_env() filter NOCOLOR, and remove related code from ebuild.shZac Medico2009-02-181-12/+0
| | | | | | since that variable is not loaded from $T/environment anymore. svn path=/main/trunk/; revision=12625
* unify code for unpacking of tar filesMike Frysinger2009-02-161-23/+13
| | | | svn path=/main/trunk/; revision=12620
* Automatically export QA_PRESTRIPPED if it's set. Thanks to Raúl PorcelZac Medico2009-02-141-0/+3
| | | | | | <armin76@g.o> for reporting. svn path=/main/trunk/; revision=12609
* * Remove outdated comment about qa_source() return value (with typo).Zac Medico2009-02-121-2/+2
| | | | | | | * Update copyright header. Thanks to Jeremy Olexa <darkside@g.o> for reporting. svn path=/main/trunk/; revision=12602
* Add new EAPI 3_pre1 value, and disable unpack() support for *.xz for earlierZac Medico2009-02-091-4/+9
| | | | | | EAPI values. svn path=/main/trunk/; revision=12596
* Remove support for deprecated 2_pre* EAPI values.Zac Medico2009-02-091-3/+3
| | | | svn path=/main/trunk/; revision=12594
* add support for .xz compressed files like .lzmaMike Frysinger2009-02-081-0/+8
| | | | svn path=/main/trunk/; revision=12593
* Escape globs in hasgq arguments in order to prevent bash from tryingZac Medico2009-02-071-3/+3
| | | | | | to perform filename expansion. svn path=/main/trunk/; revision=12591
* cleanup econf() code -- use hasg* funcs in multilib code to avoid ↵Mike Frysinger2009-02-071-49/+20
| | | | | | wrong/duplicate parsing methods, move all handling to "$@" to avoid duplication, and make sure we prepend arguments coming from the ebuild rather than append -- only EXTRA_ECONF from user should override things svn path=/main/trunk/; revision=12590
* fix previous commit -- hasq isnt as cool as i thought and doesnt accept ↵Mike Frysinger2009-02-071-1/+7
| | | | | | globs, so define a new hasg() func that does and use that svn path=/main/trunk/; revision=12589
* fix --libdir detection when econf is passed whitespace/empty arguments ... ↵Mike Frysinger2009-02-071-1/+1
| | | | | | those break the plain string expansion comparison svn path=/main/trunk/; revision=12588
* Add messages before and after the src_prepare phase. Thanks to Arfrever forZac Medico2009-01-251-0/+2
| | | | | | this patch. svn path=/main/trunk/; revision=12555
* Bug #250469 - Fix unpack() so that deb2targz is called in a way such thatZac Medico2009-01-071-3/+17
| | | | | | $DISTDIR write access is not required. svn path=/main/trunk/; revision=12389
* - tell the user where we unpacked the sourceNed Ludd2009-01-021-1/+1
| | | | svn path=/main/trunk/; revision=12375
* Fix DEFINED_PHASES code to check for pkg_config and pkg_info functions.Zac Medico2008-12-211-5/+5
| | | | svn path=/main/trunk/; revision=12274
* Add support for the new DEFINED_PHASES metadata key which is automatically ↵Zac Medico2008-12-211-1/+27
| | | | | | | | | generated from the set of phase functions that are defined by the ebuild and any eclasses it may have inherited. svn path=/main/trunk/; revision=12273
* When attempting to close fd 9 at the end of the depend phase, use exec so thatZac Medico2008-12-101-1/+1
| | | | | | it really works. svn path=/main/trunk/; revision=12190
* Bug #250148 - Prevent ebuild.sh subprocess from inheriting file descriptorZac Medico2008-12-101-9/+19
| | | | | | | 9, since otherwise if a daemon process such as udevd gets spawned then it can inherit the file descriptor and hang emerge. svn path=/main/trunk/; revision=12189
* Skip sourcinf of profile.bashrc during the depend phase.Zac Medico2008-12-021-8/+11
| | | | svn path=/main/trunk/; revision=12136
* Source bashrc files as late as possible, giving them the opportunity toZac Medico2008-12-021-4/+5
| | | | | | | override as much as possible. Thanks to Ned Ludd <solar@g.o> for the suggestion. svn path=/main/trunk/; revision=12134
* Fix inconsistencies between the "clean" and "cleanrm" phases.Zac Medico2008-12-011-3/+3
| | | | svn path=/main/trunk/; revision=12126
* Bug #205044 - When creating $EBUILD_EXIT_STATUS_FILE, don't direct output to ↵Zac Medico2008-11-261-3/+9
| | | | | | | | /dev/null since it should never fail and if it does then the error message might be useful. svn path=/main/trunk/; revision=12105
* Bug #245356 - Filter POSIXLY_CORRECT from the ebuild environment since itZac Medico2008-11-031-1/+1
| | | | | | breaks stuff. svn path=/main/trunk/; revision=11804
* Bug #244792 - Remove confcache support.Zac Medico2008-11-011-27/+2
| | | | svn path=/main/trunk/; revision=11770
* Enable bashrc even when $EBUILD_PHASE is unset, so it's possible to overrideZac Medico2008-10-261-2/+1
| | | | | | things like INSTALL_MASK. svn path=/main/trunk/; revision=11726
* Add an explicit note about bug #239560 in the relevant code.Zac Medico2008-10-121-1/+3
| | | | svn path=/main/trunk/; revision=11684
* 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