summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* 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-082-9/+9
| | | | | | new eapi* functions. svn path=/main/trunk/; revision=11351
* Implement eapi$EAPI_* default phase functions that are equivalent to theZac Medico2008-08-082-55/+108
| | | | | | | | | 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-082-35/+140
| | | | | | | | | | | 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
* When testing containment of elem[:1] in "MR", filter potential empty stringZac Medico2008-08-071-1/+1
| | | | | | matches. svn path=/main/trunk/; revision=11344
* 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
* Replace call to `svn list` with a call to `svn status --depth=files --verbose`Zac Medico2008-08-071-6/+6
| | | | | | | since the former contacts the server while the latter does not. Thanks to Arfrever for this patch. svn path=/main/trunk/; revision=11339
* Remove the "ebuild.disjointed" check because it's obsolete since we'veZac Medico2008-08-061-50/+1
| | | | | | switched to manifest2 only. Thanks to Arfrever for this patch. svn path=/main/trunk/; revision=11338
* Fix `svn status` output parsing to account for "replaced" files indicatedZac Medico2008-08-061-1/+1
| | | | | | by "R". Thanks to Arfrever. svn path=/main/trunk/; revision=11337
* Remove redundant 'local line' definition from previous commit.Zac Medico2008-08-061-1/+0
| | | | svn path=/main/trunk/; revision=11336
* Fix breakage in elog function newline handling with causes blank/emptyZac Medico2008-08-061-5/+43
| | | | | | lines to get lost. svn path=/main/trunk/; revision=11335
* Remove the use.local.desc IUSE validation which is now replaced by glep56Zac Medico2008-08-051-30/+2
| | | | | | | metadata.xml validation. This was requested by Cardoe since he expects to complete the gleep56 conversion process pretty soon. svn path=/main/trunk/; revision=11329
* Bug #233735 - Add support for src_configure and default_* functions withZac Medico2008-08-043-71/+171
| | | | | | | 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
* Optimize `emaint` --fix binhost so that it the Packages file isn't re-readZac Medico2008-08-011-15/+45
| | | | | | | and re-written for each package that's updated. Instead, hold a lock for the whole time the command is running and just update it once. svn path=/main/trunk/; revision=11307
* Bug #229033 - Use `svn propget -R svn:keywords` to detect which will haveZac Medico2008-08-011-10/+30
| | | | | | | | | | changed headers that require an additional manifest commit. Thanks to Fabian Groffen for this patch which I've made some modifications to: * For clarity, use separate "no_expansion" variable for cvs bin blobs. * Fix svn keyword parsing to properly handle multiple keywords delimited by newlines. svn path=/main/trunk/; revision=11304
* Add a quiet signal handler for SIGINT and SIGTERM since emerge calls ebuildZac Medico2008-07-291-1/+16
| | | | | | | for fetchs and we don't want the user to see a traceback due to the ebuild process getting killed. svn path=/main/trunk/; revision=11268
* Even though the message is split on $'\n' in elog_base(), it's stillZac Medico2008-07-281-1/+5
| | | | | | | | not entirely safe to use it as a delimiter in the log file since there can still be escaped newlines that will be expanded due to the echo -e parameter. svn path=/main/trunk/; revision=11244
* Fix incorrect logging.exception() arguments. The exception instance is notZac Medico2008-07-271-4/+4
| | | | | | supposed to be passed into this function. svn path=/main/trunk/; revision=11227
* Fix the new glep56 code to handle missing metadata.xml. Thanks to jmbsvicettoZac Medico2008-07-271-9/+10
| | | | | | for reporting. svn path=/main/trunk/; revision=11226
* Use ${NORMAL} to properly restore color when necessary.Zac Medico2008-07-271-1/+1
| | | | svn path=/main/trunk/; revision=11221
* Make elog_base() just use \n as the delimiter in the file since it's safeZac Medico2008-07-271-1/+1
| | | | | | now that lines are always split. svn path=/main/trunk/; revision=11220
* Make all the elog functions split lines when displaying output, just likeZac Medico2008-07-271-5/+35
| | | | | | elog_base() does when saving it. svn path=/main/trunk/; revision=11219
* Add support to elog_base() to split messages on newlines automatically.Zac Medico2008-07-271-2/+8
| | | | | | Thanks to Arfrever for the suggestion. svn path=/main/trunk/; revision=11218
* Fixes from Arfrever:Zac Medico2008-07-272-2/+4
| | | | | | | * Highlight the "Files built without respecting LDFLAGS" QA Notice with red. * Remove scanelf-ignored-LDFLAGS.log when empty. svn path=/main/trunk/; revision=11216
* * Define a frozenset of live eclasses for the LIVEVCS.stable check.Zac Medico2008-07-271-3/+10
| | | | | | * Add "mercurial" to the list of known live eclasses. svn path=/main/trunk/; revision=11210
* Fix repoman not seeing subversion auto-ignored files (such as patch rejects ↵Zac Medico2008-07-271-2/+2
| | | | | | | | and editor backup copies), thereby causing messed up Manifests. This fix should be merged in the trunk. (branches/prefix r11208) svn path=/main/trunk/; revision=11209
* Temporarily `set -o noglob` when splitting QA_DT_HASH.Zac Medico2008-07-271-0/+4
| | | | svn path=/main/trunk/; revision=11206
* Bug #233077 - Add QA check which verifies that LDFLAGS are respected. For nowZac Medico2008-07-271-0/+31
| | | | | | | | | | | | | this only works when LDFLAGS contains --hash-style=gnu since in this case the the elf files should not contain .hash sections and we can use scanelf to check whether or not the those sections exist. This adds a QA_DT_HASH variable that is analogous to existing QA control variables documented in the ebuild.5 man page. There is also a complementary QA_STRICT_DT_HASH variable that can be set in make.conf in order to ignore QA_DT_HASH settings in ebuilds. Thanks to Arfrever Frehtes Taifersar Arahesis for this patch which I've tweaked in just a few minor ways. svn path=/main/trunk/; revision=11205
* * Use pure bash ${PARAMETER%/*} instead of spawing`dirname`.Zac Medico2008-07-261-2/+2
| | | | | | * Break out of loop as early as possible when searching for libs in ${D}. svn path=/main/trunk/; revision=11199
* Replace hardcoded i386 machine name in dyn_rpm() with the result of `uname -m`.Zac Medico2008-07-261-1/+3
| | | | svn path=/main/trunk/; revision=11195
* * For bug 227625, automatically create the /usr/src/rpm/SOURCES directory whenZac Medico2008-07-261-1/+4
| | | | | | | | | necessary. * Add `cd "${T}"` at the beginning of dyn_rpm() since the spec file is written to $PWD. svn path=/main/trunk/; revision=11194
* Fix bug in get_repo_path() when called with multiple args.v2.2_rc3Zac Medico2008-07-231-1/+1
| | | | svn path=/main/trunk/; revision=11179
* Fix typo, found by pyflakes.Zac Medico2008-07-231-1/+1
| | | | svn path=/main/trunk/; revision=11178
* Add sandbox write access to PORTAGE_PYM_PATH before importing portage inZac Medico2008-07-231-3/+12
| | | | | | order to avoid sandbox violations after python upgrade. svn path=/main/trunk/; revision=11175
* Bug #199788 - Make repoman parse GLEP 56 USE flag descriptions fromZac Medico2008-07-181-0/+15
| | | | | | | metadata.xml (in addition to use.local.desc). Thanks to Doug Goldstein <cardoe@g.o> for this patch. svn path=/main/trunk/; revision=11126
* Since lots of packages will have to be fixed before stable portage can abortZac Medico2008-07-151-9/+29
| | | | | | | | | with "this code is not 64bit clean", convert the die call to an eerror message instructing the user to file a bug at bugs.gentoo.org. This should allow us to stabilize portage-2.2 without having to ensure that the entire stable tree is 64 bit clean first. svn path=/main/trunk/; revision=11057
* Use plain sequential search for the SRC_URI.mirror check since the regexZac Medico2008-07-081-5/+8
| | | | | | approach is actually much slower. svn path=/main/trunk/; revision=10977
* Add a new "SRC_URI.mirror" check which checks to if a uri listed inZac Medico2008-07-071-0/+19
| | | | | | | profiles/thirdpartymirrors is found in SRC_URI. Thanks to Betelgeuse for the initial patch which has now been optimized with a regex. svn path=/main/trunk/; revision=10973
* Thanks to Ali Polatel <hawking@g.o> for this patch to fix broken indentation.Zac Medico2008-07-051-2/+2
| | | | svn path=/main/trunk/; revision=10944
* Bug #230525 - Work around ObjectProxy breakage in `portageq vdb_path`.Zac Medico2008-07-041-2/+4
| | | | svn path=/main/trunk/; revision=10929