Fabian Groffen [Tue, 30 Jun 2009 09:24:08 +0000 (09:24 -0000)]
Merged from trunk -r13733:13743
| 13735 | Move code from bug #258773 to dep_zapdeps, since the parent |
| zmedico | always needs to be passed in for atom validation in order to |
| | solve bug #275821. |
| 13736 | Bug #275821 - Make emerge reject !!atom blockers for EAPI 0 |
| zmedico | and 1. |
| 13737 | Bug #275796 - Prefer packages selected for install over |
| zmedico | installed packages. This helps automatically solve cases |
| | such as the upgrade to the new bluez package which requires |
| | uninstallation of the older bluez-libs and bluez-utils |
| | packages. Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for this patch. |
| 13738 | Use a finally blocker to ensure _expand_new_virtuals |
| zmedico | properly resets eapi state when an exception is raised. |
| 13739 | Fix virtual blocker code inside _expand_new_virtuals to |
| zmedico | correctly handle !!atom blockers. |
| 13740 | Remove the upgrade selection code inside dep_zapdeps (from |
| zmedico | bug #171840 and bug #159360) since the code in |
| | depgraph._dep_check_composite_db._visible() from bug #253904 |
| | now masks choices that do not match the highest available |
| | version in the slot. This means that such undesirable |
| | choices automatically go into the dep_zapdeps "other" |
| | category. |
| 13741 | In _expand_new_virtuals, don't expand old-style virtuals |
| zmedico | when there is a new-style match. |
| 13742 | Bug #82488 - In _expand_new_virtuals(), check PROVIDE before |
| zmedico | expanding old-style virtuals. |
| 13743 | Bug #275901 - Make emerge bail out for USE deps in EAPI 0 |
| zmedico | and 1. |
svn path=/main/branches/prefix/; revision=13744
Fabian Groffen [Mon, 29 Jun 2009 19:09:45 +0000 (19:09 -0000)]
Merged from trunk -r13717:13733
| 13723 | make sure etc-update sorts updates in the order (1) leading |
| SpankMan | dir path (2) filename (3) cfg update |
| 13724 | Bug #236786 - Warn about 'test?' USE conditionals in |
| zmedico | RDEPEND. Thanks to Markus Meier <maekke@gentoo.org> for |
| | this patch. |
| 13725 | Check for redundant blank lines. Thanks to Markus Meier |
| zmedico | <maekke@gentoo.org> for this patch. |
| 13726 | Make Package.invalid suitable for use by repoman. |
| zmedico | |
| 13728 | Use Package.invalid to generate *.syntax repoman errors for |
| zmedico | LICENSE, PROPERTIES, PROVIDE, and RESTRICT. |
| 13729 | Fix Package.metadata USE conditional evaluation so that |
| zmedico | it's delayed until after config.setcpv() has calculated |
| | PORTAGE_USE. Thanks to Arfrever for reporting. |
| 13730 | Bug #253467 - Fix regression in config._env_blacklist |
| zmedico | handling. |
| 13731 | Fix constructor to avoid TypeError when the "perms" keyword |
| zmedico | parameter is given. |
| 13732 | Add missing resume_depgraph import, and remove unused |
| zmedico | imports. |
| 13733 | Prepare 41 messages to localization. |
| arfrever | |
svn path=/main/branches/prefix/; revision=13734
Fabian Groffen [Sun, 28 Jun 2009 19:17:51 +0000 (19:17 -0000)]
it helps when EPREFIX is known
svn path=/main/branches/prefix/; revision=13727
Fabian Groffen [Sun, 28 Jun 2009 14:48:34 +0000 (14:48 -0000)]
logging /inside/ the prefix is much more fun
svn path=/main/branches/prefix/; revision=13722
Fabian Groffen [Sun, 28 Jun 2009 13:41:26 +0000 (13:41 -0000)]
Merged from trunk -r13703:13717
| 13716 | Bug #270953 - New !!atom blockers do not allow temporary |
| zmedico | simulaneous installation, so unlike !atom blockers, !!atom |
| | blockers aren't ignored when they match other packages |
| | occupying the same slot. Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for the initial patch. |
| 13717 | * Add new abstract PhaseCheck class for ebuild |
| zmedico | phase-specific checks. * Reimplement SrcUnpackPatches using |
| | PhaseCheck. * Add new SrcCompileEconf, |
| | Eapi3IncompatibleFuncs, and Eapi3GoneVars checks. Thanks to |
| | Markus Meier <maekke@gentoo.org> for this patch. |
svn path=/main/branches/prefix/; revision=13721
Fabian Groffen [Sun, 28 Jun 2009 13:40:14 +0000 (13:40 -0000)]
Merged from trunk -r13697:13703
| 13698 | Move __init__.py to main.py. |
| zmedico | |
| 13699 | Bug #275532 - In action_depclean(), free memory from the dep |
| zmedico | calculation before calling unmerge(). |
| 13700 | Use clear_caches() to free memory inside action_depclean(). |
| zmedico | |
| 13701 | Make portdbapi define self.settings, for conformity with |
| zmedico | other dbapi classes. |
| 13702 | Fix PROVIDE code since the Package class automatically |
| zmedico | evaluates USE conditionals now. |
| 13703 | Use a property to implement portdbapi.settings. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13720
Fabian Groffen [Sun, 28 Jun 2009 13:36:35 +0000 (13:36 -0000)]
manually replay r13697 and pray that nothing was changed in the file at the same time
svn path=/main/branches/prefix/; revision=13719
Fabian Groffen [Sun, 28 Jun 2009 13:10:08 +0000 (13:10 -0000)]
Merged from trunk -r13690:13696
| 13691 | * Add a Package.invalid attribute to store messages about |
| zmedico | invalid LICENSE, PROPERTIES, PROVIDE, and RESTRICT metadata. |
| | Use it to mask invalid packages when necessary. * Evaluate |
| | USE conditional values in Package.metadata when the are |
| | accessed. |
| 13692 | Add a Package.metadata.properties attribute containing a |
| zmedico | list of enabled PROPERTIES values. |
| 13693 | Add a Package.metadata.restrict attribute containing a list |
| zmedico | of enabled RESTRICT values. |
| 13694 | Make config.regenerate() detect api-level updates to |
| zmedico | ACCEPT_LICENSE, for use in implementing the "free" filter |
| | for the packagekit backend. |
| 13695 | Make dbapi.cp_list() raise NotImplementedError. |
| zmedico | |
| 13696 | Use @property instead of __getattribute__ to implement lazy |
| zmedico | Package.iuse.regex initialization. |
svn path=/main/branches/prefix/; revision=13718
Fabian Groffen [Sat, 27 Jun 2009 14:44:56 +0000 (14:44 -0000)]
Merged from trunk -r13688:13690
| 13689 | Split out a depgraph._iter_match_pkgs() method from |
| zmedico | _select_pkg_highest_available_imp(). |
| 13690 | Add/update copyright headers. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13715
Fabian Groffen [Sat, 27 Jun 2009 14:32:58 +0000 (14:32 -0000)]
Merged from trunk -r13677:13688
| 13678 | Fix imports for _emerge submodules. |
| zmedico | |
| 13679 | Bug #275237 - If a directory exists in a location where a |
| zmedico | normal file is to be merged, generate a config-protect |
| | filename for the file and merge it that way. Thanks to Jonas |
| | Bernoulli <jonas@bernoulli.cc> for this patch. |
| 13680 | In binarytree.inject(), when a symlink is created for the |
| zmedico | current package and it overwrites another package, delete |
| | the corresponding metadata from the Packages file. Thanks to |
| | Eitan Mosenkis <eitan@mosenkis.net> for reporting. |
| 13681 | Add support to `portageq owners` for querying paths matching |
| zmedico | a given basename. It is natural to support this since the |
| | vartree already maintains a basename -> owner index anyway. |
| | There are plans for the packagekit backend is to support |
| | this type of search. |
| 13685 | Bug #275217 - Part 3 - Splits depgraph.select_files into |
| zmedico | select_files and _resolve. Thanks to Sebastian Mingramm |
| | (few) <s.mingramm@gmx.de> for this patch. |
| 13686 | * Make Package.metadata['USE'] access trigger USE |
| zmedico | calculation for unbuilt ebuilds. * Make |
| | Package.metadata['LICENSE'] access trigger USE conditional |
| | evaluation. * Make Package.metadata['PROVIDE'] access |
| | trigger USE conditional evaluation. * Initialize |
| | Package.metadata['CHOST'] in the Package constructor for |
| | unbuilt ebuilds. |
| 13687 | Remove obsolete Package.metadata['CHOST'] initialization. |
| zmedico | |
| 13688 | Use depgraph._pkg() to construct Package instances inside |
| zmedico | _select_pkg_highest_available_imp(). |
svn path=/main/branches/prefix/; revision=13714
Fabian Groffen [Sat, 27 Jun 2009 14:31:19 +0000 (14:31 -0000)]
Merged from trunk -r13675:13677
| 13676 | Bu #275217 - Part 1 - Resolve the circular dep between |
| zmedico | Scheduler and depgraph; mark all functions as local that |
| | aren't used outside of depgraph. Thanks to Sebastian |
| | Mingramm (few) <s.mingramm@gmx.de> for this patch. |
| 13677 | Bug #275217 - Part 2 - Move changelog stuff stuff out of |
| zmedico | depgraph. Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for this patch. |
svn path=/main/branches/prefix/; revision=13713
Fabian Groffen [Sat, 27 Jun 2009 14:28:34 +0000 (14:28 -0000)]
Merged from trunk -r13673:13675
| 13674 | Make the global "actions" variable a local inside |
| zmedico | parse_opts() since the name collision with the |
| | _emerge.actions module triggers this traceback with |
| | epydoc-3.0.1: Traceback (most recent call last): File |
| | "/usr/bin/epydoc", line 13, in cli() File |
| | "/usr/lib/python2.6/site-packages/epydoc/cli.py", line 965, |
| | in cli main(options, names) File |
| | "/usr/lib/python2.6/site-packages/epydoc/cli.py", line 757, |
| | in main exclude_parse=exclude_parse) File |
| | "/usr/lib/python2.6/site-packages/epydoc/docbuilder.py", |
| | line 235, in build_doc_index docindex = DocIndex(docs) File |
| | "/usr/lib/python2.6/site-packages/epydoc/apidoc.py", line |
| | 1715, in __init__ raise ValueError("All APIdocs passed to |
| | DocIndexer " ValueError: All APIdocs passed to DocIndexer |
| | must already have canonical names. |
| 13675 | Fix import for split _emerge.MetadataRegen module. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13712
Fabian Groffen [Sat, 27 Jun 2009 14:24:48 +0000 (14:24 -0000)]
Merged from trunk -r13672:13673
| 13673 | Bug #275047 - Split _emerge/__init__.py into smaller pieces |
| zmedico | (part 6). Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for this patch. |
svn path=/main/branches/prefix/; revision=13711
Fabian Groffen [Sat, 27 Jun 2009 14:07:14 +0000 (14:07 -0000)]
Merged from trunk -r13671:13672
| 13672 | Bug #275047 - Split _emerge/__init__.py into smaller pieces |
| zmedico | (part 5). Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for this patch. |
svn path=/main/branches/prefix/; revision=13710
Fabian Groffen [Sat, 27 Jun 2009 13:36:49 +0000 (13:36 -0000)]
Merged from trunk -r13669:13671
|13670 |Change ACCEPT_LICENSE evaluation so that things like ACCEPT_LICENSE="* -@EULA" |
|zmedico|will work as expected. The ACCEPT_LICENSE variable is now treated as a lazily |
| |evaluated incremental, so that * can be used to match all licenses without every |
| |having to explicitly expand it to all licenses. It should now behave as approved |
| |by the council in response to the "RFC: ACCEPT_LICENSE default value (GLEP 23)" |
| |discussion: |
| |http://archives.gentoo.org/gentoo-dev/msg_d5c1e7285399ebc27a74bdd02cb4d037.xml |
|13671 |Fix config._lazy_vars._accept_license() to exclude irrelevant licenses. |
|zmedico| |
svn path=/main/branches/prefix/; revision=13709
Fabian Groffen [Sat, 27 Jun 2009 13:35:38 +0000 (13:35 -0000)]
Merged from trunk -r13668:13669
| 13669 | Bug #275047 - Split _emerge/__init__.py into smaller pieces |
| zmedico | (part 4). Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for this patch. |
svn path=/main/branches/prefix/; revision=13708
Fabian Groffen [Sat, 27 Jun 2009 13:19:35 +0000 (13:19 -0000)]
Merged from trunk -r13667:13668
| 13668 | Bug #275047 - Split _emerge/__init__.py into smaller pieces |
| zmedico | (part 3). Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for this patch. |
svn path=/main/branches/prefix/; revision=13707
Fabian Groffen [Sat, 27 Jun 2009 13:12:24 +0000 (13:12 -0000)]
Merged from trunk -r13666:13667
| 13667 | Bug #275047 - Split _emerge/__init__.py into smaller pieces |
| zmedico | (part 2). Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for this patch. |
svn path=/main/branches/prefix/; revision=13706
Fabian Groffen [Sat, 27 Jun 2009 13:02:34 +0000 (13:02 -0000)]
Merged from trunk -r13663:13666
| 13664 | Fix imports broken by splitting of _emerge/__init__.py. |
| zmedico | |
| 13665 | Use lazy imports for submodules where possible. |
| zmedico | |
| 13666 | Revert lazy imports from r13665 for now, since pyflakes |
| zmedico | doesn't understand them, and pyflakes helps check stuff |
| | while we're splitting this file up. |
svn path=/main/branches/prefix/; revision=13705
Fabian Groffen [Sat, 27 Jun 2009 12:51:25 +0000 (12:51 -0000)]
Merged from trunk -r13662:13663, tried to re-apply all Prefix patches,
but unfortunately the code was changed next to just being split.
| 13663 | Bug #275047 - Split _emerge/__init__.py into smaller pieces. |
| zmedico | Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for |
| | this patch. |
svn path=/main/branches/prefix/; revision=13704
Fabian Groffen [Wed, 24 Jun 2009 12:45:17 +0000 (12:45 -0000)]
Greetings from LinuxTag 2009 too :)
Merged from trunk -r13654:13662
| 13655 | Bug #264434 - Delay evaluation of all disjunctive (virtual |
| zmedico | and ||) dependencies. Evaluting disjuctions as late as |
| | possible allows better decisions since the graph is more |
| | complete when the decisions are made. Thanks to Sebastian |
| | Mingramm (few) <s.mingramm@gmx.de> for the initial patch. |
| 13656 | Don't set KV for EAPI >=3. |
| arfrever | |
| 13657 | Factor duplicate code out of depgraph._add_pkg and |
| zmedico | _pop_disjunction. |
| 13658 | In doebuild_environment, ensure that cached $KV from the |
| zmedico | backupenv does not leak into the environment for EAPI >= 3. |
| 13659 | Bug #274742 - Exempt $dir from quoting checks since it's a |
| zmedico | likely candidate for false positives. |
| 13660 | Tweak depcache permission handling so egencache can be run |
| zmedico | by a user who's not in the portage group, allowing for |
| | better privilege isolation. |
| 13661 | Reorganize $KV logic in doebuild_environment. |
| zmedico | |
| 13662 | Use portage.util.apply_permissions() inside |
| zmedico | _ensure_access(). |
svn path=/main/branches/prefix/; revision=13684
Fabian Groffen [Wed, 24 Jun 2009 08:45:19 +0000 (08:45 -0000)]
bad svn for not barking at me for checking in conflicts
svn path=/main/branches/prefix/; revision=13683
Fabian Groffen [Wed, 24 Jun 2009 08:36:19 +0000 (08:36 -0000)]
make postsync scripts work, thanks haubi for the patch
svn path=/main/branches/prefix/; revision=13682
Fabian Groffen [Fri, 19 Jun 2009 19:34:38 +0000 (19:34 -0000)]
be a bit more precise
svn path=/main/branches/prefix/; revision=13654
Fabian Groffen [Fri, 19 Jun 2009 19:25:10 +0000 (19:25 -0000)]
Merged from trunk -r13640:13652
| 13641 | Misc fixes and updates. Thanks to Sebastian Mingramm (few) |
| zmedico | <s.mingramm@gmx.de> for this patch from bug #274279. |
| 13642 | Escape hyphens from previous commit. |
| zmedico | |
| 13643 | Bug #274279 - Add color.map support for mapping a color to a |
| zmedico | different color (rather than just mapping a class/style to a |
| | different color). Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for this patch. |
| 13644 | Use map_code_to_color_code() where appropriate inside |
| zmedico | ConsoleStyleFile.write(). |
| 13645 | Add epydoc docstrings fro codes and color_codes variables. |
| zmedico | |
| 13646 | Rename map_code_to_color_code() to style_to_ansi_code(). |
| zmedico | |
| 13647 | Rename codes to _styles. |
| zmedico | |
| 13648 | Rename color_codes back to codes. |
| zmedico | |
| 13649 | Add NOCOLOR to the environment whitelist. This fixes |
| zmedico | inappropriate colors produced by elog functions. Thanks to |
| | Luis F. Araujo <araujo@gentoo.org> for reporting. |
| 13650 | When --pretend overrides --ask, don't show any output. |
| zmedico | |
| 13651 | Allow missing ChangeLog when using git. We don't use |
| zmedico | ChangeLogs in distributed SCMs. It will be generated on |
| | server side from scm log, before package moves to the rsync |
| | server. This is needed because we try to avoid merge |
| | collisions. Thanks to Tomas Chvatal <scarabeus@gentoo.org> |
| | for this patch. |
| 13652 | Add a EMERGE_LOG_DIR variable to control the location of |
| zmedico | emerge.log and emerge-fetch.log. This was requested by Eitan |
| | Mosenkis <eitan@mosenkis.net> for use in his 'online image |
| | builder' soc project. |
svn path=/main/branches/prefix/; revision=13653
Fabian Groffen [Sun, 14 Jun 2009 08:33:46 +0000 (08:33 -0000)]
Merged from trunk -r13629:13639
| 13630 | Bug #272063 - Use elements inside elements. |
| zmedico | |
| 13631 | Remove element in invalid location. |
| zmedico | |
| 13632 | Fix non-empty elements. |
| zmedico | |
| 13633 | Bug #272063 - Remove elements that don't validate. |
| zmedico | |
| 13634 | Fix more elements to contain elements. |
| zmedico | |
| 13635 | propset svn:rev ON |
| zmedico | |
| 13636 | Remove unused newdepend(), newrdepend(), newpdepend(), and |
| zmedico | do_newdepend() functions. Thanks to ABCD for reporting. |
| 13637 | Bug #273020 - Document FEATURES=multilib-strict. Thanks to |
| zmedico | Samuli Suominen <ssuominen@gentoo.org> for the patch. |
| 13638 | Document FEATURES=python-trace. |
| zmedico | |
| 13639 | Prepare 117 messages to localization. |
| arfrever | |
svn path=/main/branches/prefix/; revision=13640
Fabian Groffen [Sun, 7 Jun 2009 06:40:12 +0000 (06:40 -0000)]
Merged from trunk -r13625:13628
| 13626 | Bug #268929 - Add grep for 'dereferencing pointer' messages |
| zmedico | produced by gcc 4.4. Thanks to ABCD <en.ABCD@gmail.com> for |
| | this patch. |
| 13627 | drop sandbox settings that sandbox itself takes care of |
| SpankMan | #258684 |
| 13628 | Make usev() strip ! prefix in echoed output as specified in |
| zmedico | bug #270658, comment #16. |
svn path=/main/branches/prefix/; revision=13629
Fabian Groffen [Tue, 19 May 2009 19:10:35 +0000 (19:10 -0000)]
also ignore @loader_path entries when checking install_names
svn path=/main/branches/prefix/; revision=13625
Fabian Groffen [Tue, 19 May 2009 19:07:16 +0000 (19:07 -0000)]
Merged from trunk -r13621:13623
| 13622 | Enable FEATURES=assume-digests by default. |
| zmedico | |
| 13623 | Add some really big integers to the vercmp tests. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13624
Fabian Groffen [Sat, 9 May 2009 09:43:41 +0000 (09:43 -0000)]
Right time to wake up
svn path=/main/branches/prefix/; revision=13621
Fabian Groffen [Sat, 9 May 2009 09:28:35 +0000 (09:28 -0000)]
Merged from trunk -r13595:13618
| 13596 | Fix inverted logic in superuser logic for bug #267104. |
| zmedico | |
| 13597 | Skip useq() IUSE QA Notices during the "depend" phase |
| zmedico | because lots of ebuilds/eclasses have stuff in global scope |
| | that really belongs somewhere like pkg_setup or |
| | src_configure. Thanks to Arfrever for reporting. |
| 13598 | Make useq() die if called during the "depend" phase in |
| zmedico | newer EAPIs. |
| 13599 | Simplify DepPriority.__int__() and make it consistent with |
| zmedico | __str__(). |
| 13600 | Bug #268398 - Document econf's automatic die behavior. |
| zmedico | |
| 13608 | Fix "arguments" spelling. |
| zmedico | |
| 13612 | Fix misleading/outdated info in the DESCRIPTION section. |
| zmedico | |
| 13613 | Make portdbapi.getfetchlist() return an equal number of |
| zmedico | uris/file names so that no information is lost. |
| 13615 | When generating ACCEPT_LICENSE for the ebuild environment, |
| zmedico | do not expand *, since that would make it appear to the |
| | check_license() function as if the user has accepted |
| | licenses which have not really been explicitly accepted. |
| 13616 | tweak output when diff access rights are needed |
| SpankMan | |
| 13617 | Fix SrcUnpackPatches to ignore comment lines. Thanks to |
| zmedico | Christian Ruppert <idl0r@g.o> for reporting. |
| 13618 | Fix digestcheck() to handle missing distfiles digests |
| zmedico | correctly. Thanks to Petteri Räty <betelgeuse@g.o> for |
| | reporting. |
svn path=/main/branches/prefix/; revision=13620
Fabian Groffen [Sat, 9 May 2009 09:09:25 +0000 (09:09 -0000)]
require our bash everywhere, perhaps that solves some weird issues (during bootstrap)
svn path=/main/branches/prefix/; revision=13619
Fabian Groffen [Tue, 5 May 2009 14:02:29 +0000 (14:02 -0000)]
clarify my intentions
svn path=/main/branches/prefix/; revision=13614
Fabian Groffen [Sat, 2 May 2009 09:31:29 +0000 (09:31 -0000)]
Merged from trunk -r13580:13589
| 13582 | Make elog functions use read -r when splitting lines, so |
| zmedico | that backslashes intended for display will not be eaten. |
| 13584 | Bug #267175 - Instead of "poor code kills airplanes", say |
| zmedico | "install aborted due to poor programming practices shown |
| | above" in order to help the user link the die message to the |
| | related "poor programming practices" messages. Thanks to |
| | Jeremy Olexa <darkside@g.o> for the suggestion. |
| 13589 | Fix DepPriority.__int__() to return distinguishable values, |
| zmedico | for use when measuring hardness for the circular dependency |
| | display. This fixes a problem visible in bug #268038, |
| | comment #0, where buildtime dependencies are incorrectly |
| | displayed as runtime dependencies. |
svn path=/main/branches/prefix/; revision=13595
Fabian Groffen [Sat, 2 May 2009 09:30:11 +0000 (09:30 -0000)]
Merged from trunk -r13575:13580
| 13578 | Fix logic error which prevents repos.conf [DEFAULT] section |
| zmedico | from applying to repos that don't have their own section. |
| | Thanks to Markos Chandras <hwoarang@g.o> for reporting. |
| 13580 | Only generate KV when setting up the environment for a real |
| zmedico | ebuild phase. This should preven "Permission Denied: |
| | /usr/src/linux/.config" errors reported by repoman users |
| | (repoman may trigger the error when it calls the fetch |
| | phase). |
svn path=/main/branches/prefix/; revision=13594
Fabian Groffen [Sat, 2 May 2009 09:23:14 +0000 (09:23 -0000)]
Merged from trunk -r13563:13575
| 13565 | Fix _lazy_accept_license to discard || from the set of |
| zmedico | licenses. |
| 13567 | Bug #267104 - When appropriate, advise the user that they |
| zmedico | may set FEATURES= -userfetch in order to use remaining |
| | space. |
| 13569 | Move PORTAGE_RESTRICT calculation to config.setcpv() (lazy |
| zmedico | evaluation) and fix it to work correctly for pre-built |
| | packages. |
| 13570 | Enable use() qa checks via PORTAGE_IUSE for all ebuild |
| zmedico | phases and for binary packages since it should work fine |
| | now. |
| 13573 | In config.setcpv() reuse split USE from built packages |
| zmedico | instead of splitting them again. |
| 13575 | Remove unnecessary doebuild_environment() call from |
| zmedico | EbuildFetchonly.execute() since PORTAGE_RESTRICT is |
| | calculated by config.setcpv() now. |
svn path=/main/branches/prefix/; revision=13593
Fabian Groffen [Sat, 2 May 2009 09:20:39 +0000 (09:20 -0000)]
Merged from trunk -r13414:13563
| 13415 | Exclude 'backupenv' from config.configlist and lookuplist |
| zmedico | since it doesn't make size to have it in there when |
| | configdict['env'] already serves that purpose. This allows |
| | values to be temporarily removed from configdict['env'] and |
| | have them not appear in the environment until reset() is |
| | called to restore those values from the backupenv. |
| 13416 | In config.regenerate(), explicitly include self.backupenv |
| zmedico | when processing incrementals, since it's no longer included |
| | in self.configlist. |
| 13417 | Generate a pruned version of ACCEPT_LICENSE, by intersection |
| zmedico | with LICENSE. This is required since otherwise |
| | ACCEPT_LICENSE might be too big (bigger than ARG_MAX), |
| | causing execve() calls to fail with E2BIG errors as in bug |
| | #262647. |
| 13418 | In config.setcpv(), move the code that makes sure "pkg" |
| zmedico | values override "env" values _after_ the reset() call. |
| 13419 | Fix error in calculations from bug #267104. |
| zmedico | |
| 13560 | Fix ACCEPT_LICENSE handling for binary packages, so that the |
| zmedico | build-time USE settings are used calculate an appropriate |
| | ACCEPT_LICENSE value. |
| 13562 | Add note about repos.conf eclass overrides. |
| zmedico | |
| 13563 | Fix typo in version from previous commit. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13592
Fabian Groffen [Sat, 2 May 2009 09:18:01 +0000 (09:18 -0000)]
Merged from trunk -r13405:13414
| 13406 | Bug #267104 - If the statvfs f_bavail field shows |
| zmedico | insufficient free space and userfetch is not enabled, |
| | recalculate using the f_bfree field. |
| 13407 | Bug #267810 - Don't sort C/CXX/LDFLAGS in emerge --info |
| zmedico | output since these variables aren't really sortable in that |
| | way. |
| 13408 | Fix the code from bug #267104 to account non-root users. |
| zmedico | |
| 13409 | Bug #267860 - Make JobStatusDisplay respect |
| zmedico | FEATURES=notitles. |
| 13410 | Make xtermTitle() use a global variable to cache the result |
| zmedico | of the TERM check. |
| 13411 | Make EbuildWhitespace ignore here-documents. Thanks to Diego |
| zmedico | Pettenò <flameeyes@g.o> for reporting. |
| 13412 | Move the here-document code from the EbuildWhitespace check |
| zmedico | to the run_checks() function, so that all checks ignore the |
| | content of here-documents. |
| 13413 | Warn about sed and epatch calls which should be moved from |
| zmedico | src_unpack to src_prepare. Thanks to Markus Meier |
| | <maekke@g.o> for the initial patch. |
| 13414 | Clarify RESTRICT=bindist docs by referring to 'built' |
| zmedico | packages. Thanks to Thomas Sachau <tommy@g.o> for reporting. |
svn path=/main/branches/prefix/; revision=13591
Fabian Groffen [Sat, 2 May 2009 09:16:10 +0000 (09:16 -0000)]
Kill the dreaded mtree/chflags errors on FreeBSD, don't have it and don't want it in Prefix with non-root
svn path=/main/branches/prefix/; revision=13590
Fabian Groffen [Tue, 28 Apr 2009 19:03:01 +0000 (19:03 -0000)]
Merged from trunk -r13400:13404
| 13401 | Add a new EAPI.definition check for cases in which EAPI is |
| zmedico | defined after an inherit call. Thanks to Markus Meier |
| | <maekke@g.o> for the initial patch. |
| 13402 | fix e-mail munging and add see also section |
| SpankMan | |
| 13403 | Bug #71646 - Don't allow the HISTFILE variable into the |
| zmedico | ebuild environment since it triggers sandbox violations. |
| 13404 | Put ebuild helpers at the absolute front of the PATH. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13405
Fabian Groffen [Sun, 26 Apr 2009 15:51:56 +0000 (15:51 -0000)]
old code that hasn't been triggered for a while, metadata is in pkg nowadays, bug #267556
svn path=/main/branches/prefix/; revision=13400
Fabian Groffen [Sun, 26 Apr 2009 11:20:28 +0000 (11:20 -0000)]
remove more echos
svn path=/main/branches/prefix/; revision=13399
Fabian Groffen [Sun, 26 Apr 2009 11:15:05 +0000 (11:15 -0000)]
Revamped the entire buildsystem to become somewhat cleaner, at least more readable and faster. Still can't run make check after make, as we still only expand in the install phase. It needs excessive investments with incompatabilities with trunk to get this right.
svn path=/main/branches/prefix/; revision=13398
Fabian Groffen [Sat, 25 Apr 2009 11:06:17 +0000 (11:06 -0000)]
Remove --enable-just-compiled-sources, its implementation was commented
out anyway.
svn path=/main/branches/prefix/; revision=13397
Fabian Groffen [Sat, 25 Apr 2009 09:07:18 +0000 (09:07 -0000)]
- consistently use @PORTAGE_BASE@ instead of path
- fix for Prefix by not calling /bin/bash
- fix for Prefix by not defaulting to non-Prefixed paths
- fix second export PATH for Prefix, make note on difference with trunk
svn path=/main/branches/prefix/; revision=13396
Fabian Groffen [Sat, 25 Apr 2009 08:40:48 +0000 (08:40 -0000)]
Merged from trunk -r13387:13391
| 13388 | Set executable. |
| zmedico | |
| 13389 | Add dohard and doset helper which die for EAPI 3. TODO: Make |
| zmedico | the die 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. |
| 13390 | Add dummy dosed and dohard functions for EAPI 3, so that a |
| zmedico | trace can be displayed (not possible with the helper |
| | binaries). |
| 13391 | Revert r13390 (dosed and dohard functions) since a stack |
| zmedico | trace isn't really important this particular QA feature. |
| | Thanks to Tiziano Müller <dev-zero@g.o> for the suggestion. |
svn path=/main/branches/prefix/; revision=13395
Fabian Groffen [Sat, 25 Apr 2009 08:38:51 +0000 (08:38 -0000)]
Merged from trunk -r13383:13387
| 13384 | Use declare -F to check existence of function definitions, |
| zmedico | instead of type -t, in order to avoid use of subshells. |
| 13385 | Remove ccache and distcc remove_path_entry code since PATH |
| zmedico | is always initialized from scratch so there's no danger of |
| | accumulation. |
| 13386 | Fix breakage in PREROOTPATH logic from the EAPI 3 code. |
| zmedico | |
| 13387 | Automatically define errno.ESTALE if it doesn't exist (like |
| zmedico | on interix). Thanks to Markus Duft <mduft@g.o> for |
| | reporting. |
svn path=/main/branches/prefix/; revision=13394
Fabian Groffen [Sat, 25 Apr 2009 08:37:23 +0000 (08:37 -0000)]
Merged from trunk -r13375:13383
| 13377 | When in --nodeps mode, make depgraph._serialize_tasks() |
| zmedico | preserve the package order given on the command line. Thanks |
| | to Markus Duft <mduft@g.o> for reporting. |
| 13378 | Clarify language in repos.conf reference to repoman and |
| zmedico | egencache. |
| 13379 | Exit unsuccessfully when in commit mode and nothing is found |
| zmedico | to commit. Thanks to Jeremy Olexa <darkside@g.o> for the |
| | suggestion. |
| 13380 | Add ${PORTAGE_BIN_PATH}/ebuild-helpers/3 directory to PATH |
| zmedico | for EAPI 3. Thanks to Tiziano Müller <dev-zero@g.o> for |
| | this patch. |
| 13381 | In ebuild_main(), unset ebuild_helpers_path when finished |
| zmedico | with it, since bash exposes local variables to 'children'. |
| 13382 | Add new dodoc implementation for EAPI 3. Thanks to to |
| zmedico | Tiziano Müller <dev-zero@g.o> for this patch. |
| 13383 | Use ret|=1 instead of ++ret, to avoid possible overflow. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13393
Fabian Groffen [Sat, 25 Apr 2009 08:35:39 +0000 (08:35 -0000)]
Merged from trunk -r13369:13375
| 13370 | Add notes about eclass precedence for metadata/layout.conf. |
| zmedico | |
| 13371 | Emphasize precedence of repos.conf over layout.conf. |
| zmedico | |
| 13372 | Tweak _eclasses_ logic inside action_metadata(). |
| zmedico | |
| 13373 | Add missing del when cleansing cache in action_metadata(). |
| zmedico | |
| 13374 | Drop from --ask to --pretend for uninstall all actions. |
| zmedico | |
| 13375 | Add note about 'use' in the Atom.intersects() docstring. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13392
Fabian Groffen [Sun, 19 Apr 2009 07:15:02 +0000 (07:15 -0000)]
Merged from trunk -r13355:13366
| 13356 | Add support to emerge --metadata for transfering cache from |
| zmedico | overlays that have a metadata/cache directory. |
| 13357 | Use a new ProfileDesc class to handle the data for each |
| zmedico | profile listed in profiles.desc. |
| 13358 | Support use.desc from overlays. |
| zmedico | |
| 13359 | Support profiles.desc from overlays. |
| zmedico | |
| 13360 | Handle IOError from codecs.open(). |
| zmedico | |
| 13361 | If a repo doesn't have metadata/layout.conf then use either |
| zmedico | missing eclass directory or missing profiles/profiles.desc |
| | to trigger assignment of a default master. |
| 13362 | Fix default master code so that it doesn't trigger when |
| zmedico | PORTDIR is empty. |
| 13363 | Add a new --deselect action which removes atoms from the |
| zmedico | world file. This action is implied by uninstall actions, |
| | including --depclean, --prune and --unmerge. Use |
| | --deselect=n in order to prevent uninstall actions from |
| | removing atoms from the world file. This solves bug #259994 |
| | and bug #265206. |
| 13364 | Fix bugs in action_deselect() and add --pretend support. |
| zmedico | |
| 13365 | Add --ask support to action_deselect(). |
| zmedico | |
| 13366 | In action_deselect(), use the installed packages to expand |
| zmedico | atoms into slot atoms. |
svn path=/main/branches/prefix/; revision=13369
Fabian Groffen [Sun, 19 Apr 2009 07:12:23 +0000 (07:12 -0000)]
Merged from trunk -r13350:13355
| 13351 | Fix typo from previous commit. |
| zmedico | |
| 13352 | Add support for repos.conf 'aliases' attribute which allows |
| zmedico | alias substitution in metadata/layout.conf repository |
| | references. |
| 13353 | Bug #266493 - Never return a long from vercmp() since that |
| zmedico | can trigger an OverflowError if it's returned by a __cmp__ |
| | implementation. Thanks to Douglas Anderson <dja@gendja.com> |
| | for the initial patch. I've modified it to use the (a > b) - |
| | (a < b) construct as suggested in the py3k docs, since cmp() |
| | is no longer supported in py3k. |
| 13354 | Simplify pkgcmp(). Thanks to Douglas Anderson |
| zmedico | <dja@gendja.com> for this patch from bug #266493. |
| 13355 | Fix lockfile() docstring to correctly document the |
| zmedico | wantnewlockfile behavior. Thanks to Arfrever for reporting. |
svn path=/main/branches/prefix/; revision=13368
Fabian Groffen [Sun, 19 Apr 2009 07:05:16 +0000 (07:05 -0000)]
Merged from trunk -r13346:13350
| 13347 | Bug #266211 - Handle ESTALE like ENOENT in fetch and locking |
| zmedico | code. Thanks to Krzysztof Olędzki <ole+gentoo@ans.pl> for |
| | the initial patch. |
| 13348 | Bug #265909 - Make emerge display a warning message if any |
| zmedico | overlays are ignored due to duplicate profiles/repo_name |
| | entries. The warning can be disabled by setting |
| | PORTAGE_REPO_DUPLICATE_WARN=0 in /etc/make.conf. |
| 13349 | Call realpath(repodir) so it's conistent with the value that |
| zmedico | pordbapi uses. Thanks to Fabian Groffen <grobian@g.o> for |
| | reporting. |
| 13350 | Add support in repos.conf to override the "masters" setting |
| zmedico | from layout.conf. |
svn path=/main/branches/prefix/; revision=13367
Fabian Groffen [Wed, 15 Apr 2009 16:59:19 +0000 (16:59 -0000)]
Merged from trunk -r13339:13345
| 13340 | Create the myreporoot variable from portdir_overlay before |
| zmedico | doing realpath(portdir_overlay) since otherwise symlinks |
| | break the assumptions. Thanks to Thomas Sachau <tommy@g.o> |
| | for reporting and troubleshooting. |
| 13342 | Make portage.bsd_chflags correspond to FEATURES=chflags so |
| zmedico | that it can be used for related conditionals in shell code. |
| 13343 | Convert portage.bsd_chflags into a class with chflags() and |
| zmedico | lchflags() class methods. |
| 13344 | Split out an action_uninstall() function to handle argument |
| zmedico | validation for clean, depclean, prune, and unmerge actions. |
| 13345 | Add support in action_uninstall() for file -> package |
| zmedico | lookup. |
svn path=/main/branches/prefix/; revision=13346
Fabian Groffen [Mon, 13 Apr 2009 18:58:56 +0000 (18:58 -0000)]
don't use hardcoded /usr/bin/python
svn path=/main/branches/prefix/; revision=13341
Fabian Groffen [Sun, 12 Apr 2009 19:44:22 +0000 (19:44 -0000)]
Rearrange symlinks for usr/bin and usr/sbin to match portage-2.2_rc29 ebuild
svn path=/main/branches/prefix/; revision=13339
Fabian Groffen [Sun, 12 Apr 2009 19:03:00 +0000 (19:03 -0000)]
Merged from trunk -r13331:13335
| 13333 | Add a LibraryFileConsumerSet class that can be used to |
| zmedico | rebuild all packages that consume one or more given files. |
| | Note: This does not detect libtool archive (*.la) files that |
| | consume the specified files (revdep-rebuild is able to |
| | detect them). |
| 13334 | Add a note about dlopen and libtool archives in the |
| zmedico | LinkageMap.findConsumers() docstring. |
| 13335 | Ensure that the correct PORTDIR setting is passed into the |
| zmedico | profile-specific config constructors. |
svn path=/main/branches/prefix/; revision=13338
Fabian Groffen [Sun, 12 Apr 2009 17:47:15 +0000 (17:47 -0000)]
Merged from trunk -r13322:13331
| 13323 | Set local_config=False in config constructor calls, since |
| zmedico | egencache is similar to repoman in the way that it's used to |
| | distribute something to other users and thus site-specific |
| | local configuration is irrelevant. |
| 13324 | Move the /etc/portage categories and mirrors docs into |
| zmedico | alphabetical order. |
| 13325 | Bug #265747 - Add a new /etc/portage/repos.conf config file |
| zmedico | which can be used to configure site-specific eclass override |
| | behavior. Note that configuration settings which are |
| | specified here do not apply to tools such as repoman(1) and |
| | egencache(1) since their operations are inherently not |
| | site-specific. Beware that use of eclass-overrides is |
| | generally not recommended and that it may trigger |
| | performance issues under some circumstances (see bug |
| | #124041). Example: # make all repositories inherit eclasses |
| | from the java-overlay and # java-experimental repositories, |
| | with eclasses from java-experimental # taking precedence |
| | over those from java-overlay [DEFAULT] eclass-overrides = |
| | java-overlay java-experimental # disable all eclass |
| | overrides for the gentoo repository [gentoo] |
| | eclass-overrides = |
| 13326 | Pass the correct PORTDIR_OVERLAY value into the |
| zmedico | profile-specific config constructor calls. |
| 13327 | Inside the portdbapi constructor, handle repositories with |
| zmedico | the same repo_name by discarding the ones that were |
| | encountered earlier. |
| 13328 | Bug #265768 - When initializing the eclass cache, use the |
| zmedico | correct location. |
| 13329 | Bug #265768 - If the user happens to be using the |
| zmedico | metadata_overlay module then initialize it's eclass cache |
| | with an appropriate instance inside the portdbapi |
| | constructor. |
| 13330 | Add a note about egencache to the --regen docs. |
| zmedico | |
| 13331 | Bug #265768 - Handle CacheError when deleting currupt cache |
| zmedico | inside portdbapi._pull_valid_cache(). |
svn path=/main/branches/prefix/; revision=13337
Fabian Groffen [Sun, 12 Apr 2009 17:45:26 +0000 (17:45 -0000)]
remove prefix handling/parsing in eapi_is_supported, revert to trunk version
svn path=/main/branches/prefix/; revision=13336
Fabian Groffen [Sat, 11 Apr 2009 11:41:41 +0000 (11:41 -0000)]
Merged from trunk -r13313:13316
| 13314 | Filter virtuals when expanding atoms if it helps to avoid an |
| zmedico | ambiguity. |
| 13315 | Show an error message when deletion of stale cache fails. |
| zmedico | |
| 13316 | Avoid leaking some variables from ebuild_main() into the |
| zmedico | environment (local variables are exposed to 'children'). |
svn path=/main/branches/prefix/; revision=13322
Fabian Groffen [Sat, 11 Apr 2009 11:40:10 +0000 (11:40 -0000)]
Merged from trunk -r13305:13313
| 13306 | Bug #264435 - Handle EAGAIN errors when writing to stdout, |
| zmedico | due to poorly behaved subprocesses that set O_NONBLOCK mode |
| | on inherited file descriptors. TODO: When possible, avoid |
| | having child processes inherit stdio file descriptors from |
| | portage (maybe it can't be avoided with |
| | PROPERTIES=interactive). |
| 13307 | Initialize self._trg_cache.ec inside the GenCache |
| zmedico | constructor. |
| 13308 | Remove --nocolor since it's been replaced by --color=n and |
| zmedico | the support code no longer exists. |
| 13309 | Fix typo in docstring. |
| zmedico | |
| 13310 | In config.setcpv(), don't add empty values to |
| zmedico | self.configdict['pkg'] for keys that don't exist in the |
| | given dict. |
| 13311 | Use _doebuild_exit_status_check() for unsuccessful return |
| zmedico | codes (no just successful ones), since we want to be sure to |
| | produce an informative warning message whenever the shell |
| | exits unexpectedly (whether it's successful or |
| | unsuccessful). This is important since it can be makes these |
| | kinds of issues easier to diagnose (otherwise the user might |
| | blame portage, when it's really the ebuild/eclasses that is |
| | at fault). |
| 13312 | Bug #265034 - In depgraph.loadResumeCommand(), tolerate |
| zmedico | missing packages since it's possible that the resume list is |
| | still partially valid. |
| 13313 | Fix broken logic from previous commit. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13321
Fabian Groffen [Sat, 11 Apr 2009 11:38:43 +0000 (11:38 -0000)]
Due to too many conflicts, I have dropped support for EAPI=prefix sooner
than originally planned. This commit removes the bits from ebuild.sh.
Merged from trunk -r13296:13305
| 13297 | Make emerge --info display USE similarly to how they are |
| zmedico | displayed in the merge list. |
| 13298 | Make RecursiveFileLoader skip hidden directories, and only |
| zmedico | use a single stat call to check for existence and file type. |
| 13299 | Move the ebuild sourcing code into a new _source_ebuild() |
| zmedico | function. |
| 13300 | - Move DEFINED_PHASES code into _source_ebuild() and add it |
| zmedico | to the list of readonly variables. - Save DEFINED_PHASES in |
| | the vdb entries, as requested by lxnay. |
| 13301 | Call _ebuild_phase_funcs() from ebuild_main() since it needs |
| zmedico | to be called for every phase (for EAPI 2 default() phase |
| | function setup). |
| 13302 | Bug #265111 - Make current options override older options |
| zmedico | for --resume. |
| 13303 | Add UseFlagDisplay.sort_combined and sort_separated |
| zmedico | attributes that can be passed directly as key parameters to |
| | list.sort(). |
| 13304 | Reorganize emerge --info display, and make sure that the |
| zmedico | "cpv was built with the following" line is shown for every |
| | package. |
| 13305 | Don't try to execut the pkg_info phase if DEFINED_PHASES is |
| zmedico | available and it shows that the phase is undefined. |
svn path=/main/branches/prefix/; revision=13320
Fabian Groffen [Sat, 11 Apr 2009 11:26:37 +0000 (11:26 -0000)]
Merged from trunk -r13290:13296
|13291 |Add portdbapi support for a metadata/layout.conf file which specifies information |
|zmedico|about the repository layout. Currently, only a single "masters" attribute is |
| |supported, which is used to specify names of repositories which satisfy |
| |dependencies on eclasses and/or ebuilds. Each repository name should correspond |
| |the value of a repo_name entry from one of the repositories that is configured via|
| |the PORTDIR or PORTDIR_OVERLAY variables. Since layout.conf is now used to control|
| |eclass inheritance, it is now safer to use overlays which contain forked eclasses |
| |have names identical to those from the main tree. Such eclasses will only apply to|
| |their containing repository and any other repositories which reference their |
| |containing repository via layout.conf. This solves bug #124041 by containing |
| |eclass overrides so that they don't necessarily apply to all ebuilds. Thanks to |
| |Alistair Bush <ali_bush@g.o> for his initial patch for layout.conf support in |
| |repoman (will be merged later). See the "QA Overlay Layout support" thread on the |
| |gentoo-dev mailing list for more information: |
| |http://archives.gentoo.org/gentoo-dev/msg_33c61550b4ed2b7b25dd5a4110e1ec81.xml |
|13292 |Add a --repo option, allowing cache to be generated for overlays. |
|zmedico| |
|13293 |Fix code in the portdbapi constructor to cache eclass_cache.cache instances where |
|zmedico|appropriate. |
|13294 |Replace references to portdbapi.eclassdb with appropriate references for the |
|zmedico|specific repo. |
|13295 |Add support to repoman for using layout.conf to control which repositories are |
|zmedico|used to satisfy dependencies. Thanks to Alistair Bush <ali_bush@g.o> for the |
| |initial patch. See the "QA Overlay Layout support" thread on the gentoo-dev |
| |mailing list for more information: |
| |http://archives.gentoo.org/gentoo-dev/msg_33c61550b4ed2b7b25dd5a4110e1ec81.xml |
|13296 |Fix some _doebuild_exit_status_check() calls so that they only happen when the |
|zmedico|bash process exits successfully (for consistency with usage elsewhere). When |
| |calling this functions, we're mainly concerned about false success, and we always |
| |want to allow things like using bashrc die hooks to clean up $PORTAGE_BUILDDIR for|
| |users that are building in tmpfs (in which case the exit status file may be |
| |removed before bash exits). |
svn path=/main/branches/prefix/; revision=13319
Fabian Groffen [Sat, 11 Apr 2009 11:22:36 +0000 (11:22 -0000)]
Merged from trunk -r13286:13290
| 13287 | If there are not ebuilds matching a argument, only generate |
| zmedico | an error if there are also no cache entries matching the |
| | argument. |
| 13288 | Always generate an error if the target cache contains an |
| zmedico | apparently invalid cpv. |
| 13289 | Add an example for PORTAGE_IONICE_COMMAND. Thanks to |
| zmedico | Vlastimil Babka <caster@g.o> for the suggestion. |
| 13290 | Bug #262647 - Inside config.setcpv(), never add SRC_URI to |
| zmedico | the environment since that can cause execve() calls to fail |
| | with E2BIG errors. |
svn path=/main/branches/prefix/; revision=13318
Fabian Groffen [Fri, 3 Apr 2009 10:47:48 +0000 (10:47 -0000)]
shame on me
svn path=/main/branches/prefix/; revision=13286
Fabian Groffen [Fri, 3 Apr 2009 10:32:18 +0000 (10:32 -0000)]
FAIL
svn path=/main/branches/prefix/; revision=13285
Fabian Groffen [Fri, 3 Apr 2009 10:18:30 +0000 (10:18 -0000)]
Merged from trunk -r13280:13282
| 13281 | Inside tar_contents(), don't emulate tar --numeric-id |
| zmedico | option. The uid/gid might be different on the system where |
| | the package will be installed, so we need to store the |
| | actual user/group name in the tar file. |
| 13282 | Generate an error if there are no ebuilds found for a |
| zmedico | package that's specified on the commandline. |
svn path=/main/branches/prefix/; revision=13284
Fabian Groffen [Fri, 3 Apr 2009 10:16:35 +0000 (10:16 -0000)]
set BASH_BINARY and MOVE_BINARY based on what configure found
svn path=/main/branches/prefix/; revision=13283
Fabian Groffen [Thu, 2 Apr 2009 17:53:36 +0000 (17:53 -0000)]
Merged from trunk -r13278:13279
| 13279 | Bug #264245 - Revert i|=1 from r13242 since that breaks the |
| zmedico | array indexing code here. |
svn path=/main/branches/prefix/; revision=13280
Fabian Groffen [Thu, 2 Apr 2009 13:06:41 +0000 (13:06 -0000)]
Merged from trunk -r13262:13275
| 13263 | Add parsing code for --jobs and --load-average. |
| zmedico | |
| 13264 | Fix typo in comment. |
| zmedico | |
| 13265 | Automatically enable FEATURES=metadata-transfer if it's not |
| zmedico | enabled, instead of bailing out. |
| 13266 | Add support for a EGENCACHE_DEFAULT_OPTS variable in |
| zmedico | make.conf. |
| 13267 | Combine the --rdeps-only and --root-deps options into a |
| zmedico | single --root-deps option which takes an optional 'rdeps' |
| | argument. |
| 13268 | Clarify docs for --root-deps. |
| zmedico | |
| 13269 | Document new prepare and configure commands for EAPI 2. |
| zmedico | |
| 13270 | Add a man page for egencache(1). |
| zmedico | |
| 13271 | Allow --root-deps for ROOT=/, so people can do weird things |
| zmedico | like use it with -e to remerge deep runtime deps without |
| | pulling in build-time deps. It's not something we really |
| | want to advertise, but it's good to leave the option open in |
| | case it happens to be useful. Thanks to Ned Ludd <solar@g.o> |
| | for the suggestion. |
| 13272 | Remove the ATOMS section and move --update to a new ACTIONS |
| zmedico | section. |
| 13273 | Bug #264494 - In case the ebuild has enabled set -e during |
| zmedico | an ebuild phase, proactively call set +e inside qa_source(), |
| | qa_call(), and die(). |
| 13274 | - Add more info to the DESCRIPTION section. - Add a BUGS |
| zmedico | section to explain issues related to limitations in the |
| | cache format and its validation mechanism. |
| 13275 | Note that only updates to PORTDIR are currently supported. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13278
Fabian Groffen [Thu, 2 Apr 2009 13:02:59 +0000 (13:02 -0000)]
Merged from trunk -r13253:13262
| 13254 | Add a cp_iter keyword argument to the MetadataRegen |
| zmedico | constructor, which can be used to do a regen for a subset |
| | of packages. TODO: Add support to cleanse cache for the |
| | specific cp values that are processed. |
| 13255 | Add support in MetadataRegen for cleansing stale cache when |
| zmedico | only a subset of packages are processed. |
| 13256 | Add a "consumer" keyword parameter to the MetadataRegen |
| zmedico | constructor which can be used to pass in a callback that is |
| | called for each ebuild that is processed (allowing access |
| | to the ebuild metadata). |
| 13257 | reword the qa execstack notice since it can be triggered by |
| SpankMan | pt_load sections and not stacks |
| 13258 | In MetadataRegen._metadata_exit(), notify the consumer of |
| zmedico | failures (in this case the metadata argument is None). |
| 13259 | When in --quiet mode, still show a message for failures in |
| zmedico | MetadataRegen._metadata_exit(). |
| 13260 | Bug #261377 - Add a new 'egencache' tool to generate |
| zmedico | metadata cache for distribution. It only have the most |
| | basic functionality now, and more features will be added |
| | later. Usage: egencache [options] --update [atom] ... |
| | Options: -h, --help show this help message and exit |
| | --update update metadata/cache/ (generate as necessary) |
| | --cache-dir=CACHE_DIR location of the metadata cache |
| | --config-root=CONFIG_ROOT location of portage config files |
| | --jobs=JOBS max ebuild processes to spawn |
| | --load-average=LOAD_AVERAGE max load allowed when spawning |
| | multiple jobs |
| 13261 | Bug #263370 - In create_message(), use email.header.Header |
| zmedico | to wrap the subject, as a workaround so that long subject |
| | lines are wrapped correctly by <=python-2.6 (gentoo bug |
| | #263370, python issue #1974). |
| 13262 | Add a new egencache --rsync option which enables a stat |
| zmedico | collision workaround for cases in which the content of a |
| | cache entry changes and neither the file mtime nor size |
| | changes (preventing rsync from detecting changes). See bug |
| | #139134. This option should only be needed for distribution |
| | via something like rsync, which relies on timestamps and |
| | file sizes to detect changes. It's not needed with git |
| | since that uses a more thorough mechanism which allows it |
| | to detect changed inode numbers (described in racy-git.txt |
| | in the git technical docs). |
svn path=/main/branches/prefix/; revision=13277
Fabian Groffen [Thu, 2 Apr 2009 12:58:32 +0000 (12:58 -0000)]
Merged from trunk -r13244:13253
| 13245 | Add support for --rdeps-only and --root-deps options which |
| zmedico | are useful in combination with $ROOT. Thanks to Ned Ludd |
| | <solar@g.o> for the initial patch. |
| 13246 | Add a --root option that sets $ROOT (complements the |
| zmedico | --config-root option). |
| 13247 | Document --root and --config-root. |
| zmedico | |
| 13248 | Inside depgraph.validate_blockers(), prevent false positives |
| zmedico | in PROVIDE virtual blocker matches that can occur for |
| | packages for packages that don't actual have the appropriate |
| | value in PROVIDE (triggered by profile 'virtuals' settings). |
| | Thanks to Ned Ludd <solar@g.o> for reporting. |
| 13249 | Fix bug in old-style virtuals code from previous commit. |
| zmedico | |
| 13250 | Update dep_getusedeps() docstring. Thanks to Douglass |
| zmedico | Anderson <dja@gendja.com>. |
| 13251 | Implement _use_dep.__repr__(). Thanks to Douglass Anderson |
| zmedico | for the suggestion. |
| 13252 | Bug #264291 - Fix inappropriate build dir creation for |
| zmedico | emerge --fetchonly. |
| 13253 | Fix --newuse code to compare installed package USE to the |
| zmedico | USE that a binary package was built with (instead of |
| | config["PORTAGE_USE"]). |
svn path=/main/branches/prefix/; revision=13276
Fabian Groffen [Sun, 29 Mar 2009 11:24:46 +0000 (11:24 -0000)]
remove prefix hack to inject prefix statically in iuse_implicit, it's in use.force now, so no longer necessary
svn path=/main/branches/prefix/; revision=13244
Fabian Groffen [Sun, 29 Mar 2009 07:48:52 +0000 (07:48 -0000)]
Merged from trunk -r13238:13242
| 13239 | Add (x of y ) package counter in the "Installing" message, |
| zmedico | similar to the counter show in the "Emerging" message. |
| | Thanks to Ned Ludd <solar@g.o> for the suggestion. |
| 13240 | Don't show the package counter for "Uninstalling" messages. |
| zmedico | |
| 13241 | Bug #243220 - Show messages in emerge.log when old versions |
| zmedico | are uninstalled for AUTOCLEAN. This reverts behavior so that |
| | messages which used to be generated prior to portage-2.1.5.x |
| | (when AUTOCLEAN was moved from emerge to dblink.treewalk()) |
| | are generated once again. |
| 13242 | In order to eliminate the possibility of integer overflay, |
| zmedico | replace things like ((ret+=$?)) with ((ret|=$?)). Thanks to |
| | zong_sharo for the suggestion. |
svn path=/main/branches/prefix/; revision=13243
Fabian Groffen [Fri, 27 Mar 2009 12:03:02 +0000 (12:03 -0000)]
Merged from trunk -r13200:13232
| 13201 | For consistency in output with other helpers, check for file |
| zmedico | existence before calling install. |
| 13202 | When copying symlink targets to temp files, use a private |
| zmedico | temp dir inside $T instead of using $T directly. |
| 13222 | In dyn_unpack(), don't force a new unpack when the ebuild |
| zmedico | mtime is newer than $WORKDIR, since that may be too touchy. |
| | The user can easily call the clean phase explicitly if they |
| | really want it. |
| 13224 | In portdbapi.findname2(), move some of the path joining out |
| zmedico | of the loop. |
| 13226 | Inside config.setcpv(), don't clear out |
| zmedico | self.configdict['pkg'] entirely since some values need to be |
| | reused sometimes. |
| 13227 | In config.setcpv(), make sure the current args are really |
| zmedico | identical to the previous args before returning early. |
| 13230 | Fix typo in comment. |
| zmedico | |
| 13232 | Make the argument hash in config.setcpv() a little stronger. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13236
Fabian Groffen [Fri, 27 Mar 2009 11:45:43 +0000 (11:45 -0000)]
sync with trunk, remove our binhost url fix, better have same behaviour as trunk, whether or not this is better
svn path=/main/branches/prefix/; revision=13235
Fabian Groffen [Fri, 27 Mar 2009 11:43:55 +0000 (11:43 -0000)]
Remove EAPIPREFIX, remain backwards compatible for now by still accepting 'prefix' in EAPI, but not caring about it much. Prefix masking is done solely by our (for this reason) different keywords
svn path=/main/branches/prefix/; revision=13234
Fabian Groffen [Thu, 26 Mar 2009 21:27:57 +0000 (21:27 -0000)]
Merged from trunk -r13193:13198
| 13198 | Move checks for /usr/lib/distcc/bin and /usr/lib/ccache/bin |
| zmedico | to the python 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/branches/prefix/; revision=13200
Fabian Groffen [Thu, 26 Mar 2009 21:23:09 +0000 (21:23 -0000)]
We can no longer rely on the environment, since PATH initialisation is only done after parsing EAPI, hence we need to use absolute paths for our binaries too. Pick binaries from the Build EPREFIX, not the perhaps cross EPREFIX, except for PRELINK_BINARY, as I think that one should operate on the target, not the host, the others are host helper tools
svn path=/main/branches/prefix/; revision=13199
Fabian Groffen [Thu, 26 Mar 2009 20:55:38 +0000 (20:55 -0000)]
Merged from trunk -r13187:13193
| 13188 | In config.setcpv(), clear out self.configdict["pkg"] to make |
| zmedico | sure that no preexisting metadata leaks through here. |
| 13189 | In config.regenerate(), always synchronize self.features |
| zmedico | with self['FEATURES']. |
| 13193 | Make StaticFileSet.multiBuilder() filter hidden files and |
| zmedico | directories. Thanks to oahong for reporting. |
svn path=/main/branches/prefix/; revision=13197
Fabian Groffen [Thu, 26 Mar 2009 20:54:28 +0000 (20:54 -0000)]
Merged from trunk -r13184:13187
| 13185 | Bug #227265 - Make pkgsplit() allow "versiony looking parts" |
| zmedico | in package names, for pms compliance. Also, add |
| | corresponding test cases. |
| 13186 | Add test case for consecutive hyphens. |
| zmedico | |
| 13187 | Bug #227265 - Make pkgsplit() allow multiple consecutive |
| zmedico | hyphens in package names, and add corresponding test cases. |
svn path=/main/branches/prefix/; revision=13196
Fabian Groffen [Thu, 26 Mar 2009 20:53:23 +0000 (20:53 -0000)]
Merged from trunk -r13180:13184
| 13181 | Remove unused tar_opts variable inside unpack(). Thanks to |
| zmedico | zong_sharo for reporting. |
| 13182 | Fix domo and doexe to return non-zero if there are any |
| zmedico | errors. Thanks to zong_sharo for reporting. |
| 13183 | Move distcc and ccache PATH setup later, after EAPI is |
| zmedico | guaranteed to be known, so that it's possible to do |
| | indepenent EAPI-specific PATH modifications prior to the |
| | distcc/ccache modifications. |
| 13184 | Source bashrc after PATH tweaks inside ebuild_main(). |
| zmedico | |
svn path=/main/branches/prefix/; revision=13195
Fabian Groffen [Thu, 26 Mar 2009 20:45:18 +0000 (20:45 -0000)]
Merged from trunk -r13174:13180
| 13175 | Add support for FEATURES=parse-eapi-glep-55. This feature is |
| zmedico | only intended for experimental purposes and should not be |
| | enabled under normal circumstances. |
| 13176 | Remove redundant EAPI assingment inside |
| zmedico | doebuild_environment(). |
| 13178 | Update code for removing noauto from FEATURES since |
| zmedico | config.features is a set instead of a list now. |
| 13179 | Note that --noreplace takes precedence over options such as |
| zmedico | --newuse. |
| 13180 | Note that --noreplace takes precedence over options such as |
| zmedico | --newuse. |
svn path=/main/branches/prefix/; revision=13194
Fabian Groffen [Thu, 26 Mar 2009 20:42:02 +0000 (20:42 -0000)]
Merged from trunk -r13144:13174
| 13145 | Replace xrange() usage with normal iteration and enumerate() |
| zmedico | where appropriate. Thanks to Douglass Anderson |
| | <dja@gendja.com> for the initial patch. |
| 13146 | When triggering a fresh unpack inside dyn_unpack(), remove |
| zmedico | the .prepared, .configured and .installed files along with |
| | the others. |
| 13147 | Add "prepare" to the list of phases that trigger a warning |
| zmedico | about stale ${T}/environment. |
| 13148 | Make ebuild(1) detect ebuild/eclass changes and |
| zmedico | automatically source the 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. |
| 13149 | Use a separate if/then to group boolean or'd expressions |
| zmedico | together, rather than a subshell. |
| 13150 | Only check for ebuild/eclass modification when a relevant |
| zmedico | phase is called. |
| 13168 | Fix misc typos in comments. |
| zmedico | |
| 13170 | When calling doebuild() to spawn the 'depend' phase, just |
| zmedico | call config.setcpv() since that should be enough (no need |
| | for separate reset or reload calls). |
| 13173 | Add support for FEATURES=parse-eapi-ebuild-head, which is |
| zmedico | similar to GLEP 55 except that the EAPI is parsed from the |
| | head of the ebuild (first 30 lines). This feature is only |
| | intended for experimental purposes and should not be enabled |
| | under normal circumstances. |
| 13174 | If a package is masked by EAPI then don't show any other |
| zmedico | masking reasons. |
svn path=/main/branches/prefix/; revision=13192
Fabian Groffen [Thu, 26 Mar 2009 20:36:48 +0000 (20:36 -0000)]
Merged from trunk -r13139:13144
| 13140 | Fix argument validation to allow file paths. Thanks to |
| zmedico | Arfrever for reporting. |
| 13141 | Add a temporary workaround for bug #263081 (partially |
| zmedico | reverts r12757). |
| 13142 | Remove pointless usage of xrange(). Thanks to Douglass |
| zmedico | Anderson <dja@gendja.com> for this patch. |
| 13143 | Inside config.environ(), skip stat call on $T/environment |
| zmedico | for phases such as 'clean' and 'depend' where environment |
| | filtering isn't needed. Thanks to Piotr Jaroszyński |
| | <peper@g.o> for reporting. |
| 13144 | Inside spawn(), avoid redundant os.access() and stat() calls |
| zmedico | on commonly spawned binaries such as BASH_BINARY, |
| | SANDBOX_BINARY, and FAKEROOT_BINARY. Thanks to Piotr |
| | Jaroszyński <peper@g.o> for reporting. |
svn path=/main/branches/prefix/; revision=13191
Fabian Groffen [Thu, 26 Mar 2009 20:35:11 +0000 (20:35 -0000)]
Merged from trunk -r13133:13139
| 13134 | Make config.features a set instead of a list. |
| zmedico | |
| 13135 | Add docstrings for the fd_pipes and returnpid parameters of |
| zmedico | doebuild(). |
| 13136 | Make sure mysettings.setcpv() always gets called when |
| zmedico | necessary inside doebuild_environment(). |
| 13137 | Fix try/except indentation so that 2to3 will recognize it. |
| zmedico | |
| 13138 | Fix try/except indentation so that 2to3 will recognize it. |
| zmedico | |
| 13139 | Normalize try/except indentation for compatibility with |
| zmedico | 2to3. |
svn path=/main/branches/prefix/; revision=13190
Fabian Groffen [Wed, 18 Mar 2009 10:44:42 +0000 (10:44 -0000)]
Merged from trunk -r13103:13131
| 13104 | Add missing brackets to [:upper:] and [:lower:] in |
| zmedico | _sb_append_var() tr arguments. |
| 13108 | Tweak grammar. |
| zmedico | |
| 13109 | Bug #262365 - Make the "portage.internal" category |
| zmedico | (prepalldocs check) a warning instead of fatal. |
| 13113 | Add make.conf for amd64-fbsd submitted by Timothy Redaelli |
| zmedico | <drizzt@g.o>. |
| 13114 | add m68k diff from kolla |
| SpankMan | |
| 13115 | Do not create hardlinks when merging CONFIG_PROTECTed files |
| zmedico | since config files shouldn't be hardlinked to eachother |
| | (for example, shadow installs several identical config |
| | files inside /etc/pam.d/). Thanks to Caleb Cushing |
| | <xenoterracide@gmail.com> for reporting. |
| 13116 | Bug #262485 - Handle InvalidAtom from dep_expand(). |
| zmedico | |
| 13117 | Punt fix-db.py since it's not really needed. It's been |
| zmedico | broken since 2.1.6 and nobody noticed until bug #262132 was |
| | filed. |
| 13118 | Bug #262365 - Punt the prepalldocs check until there is an |
| zmedico | alternative available in EAPI 3. |
| 13119 | Remove portage.internal docs (goes with previous commit). |
| zmedico | |
| 13126 | Validate argument atoms earlier for build actions. |
| zmedico | |
| 13130 | In order to avoid possible duplicate elog messages when |
| zmedico | using ebuild(1) to 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. |
| 13131 | Update copyright headers. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13133
Fabian Groffen [Wed, 18 Mar 2009 10:40:54 +0000 (10:40 -0000)]
remove eprefixify, its is now in prefix.eclass
svn path=/main/branches/prefix/; revision=13132
Fabian Groffen [Sat, 14 Mar 2009 12:08:49 +0000 (12:08 -0000)]
disable the use of openpty on Solaris as it seems Python's openpty implementation doesn't play nice on Solaris with Portage's behaviour causing hangs/deadlocks
svn path=/main/branches/prefix/; revision=13112
Fabian Groffen [Thu, 12 Mar 2009 21:08:18 +0000 (21:08 -0000)]
silence false positive
svn path=/main/branches/prefix/; revision=13103
Fabian Groffen [Thu, 12 Mar 2009 21:02:04 +0000 (21:02 -0000)]
avoid double checks, and problems due to grep not liking to grep directories
svn path=/main/branches/prefix/; revision=13102
Fabian Groffen [Thu, 12 Mar 2009 21:00:56 +0000 (21:00 -0000)]
unbreak my portage, find fails, means no ebuild helpers for me
svn path=/main/branches/prefix/; revision=13101
Fabian Groffen [Thu, 12 Mar 2009 20:14:26 +0000 (20:14 -0000)]
Quote portageuser and portagegroup some more, apparently necessary, thanks Jeremy Olexa, in bug #261372
svn path=/main/branches/prefix/; revision=13100
Fabian Groffen [Thu, 12 Mar 2009 20:07:48 +0000 (20:07 -0000)]
Merged from trunk -r13063:13091
| 13064 | Use ${x##*/} instead of calling basename. |
| zmedico | |
| 13065 | Bug #262096 - Add separate eerror, elog, eqawarn, and ewarn |
| zmedico | binaries for use by non-bash programs running inside the |
| | ebuild environment, such as sandbox. |
| 13066 | Also add an einfo binary. |
| zmedico | |
| 13067 | Use posix compatible find -perm arguments. Thanks to |
| zmedico | Timothy Redaelli <drizzt@g.o> for reporting. |
| 13068 | When translating portage uid/gid to root uid/gid after |
| zmedico | src_install on FreeBSD, temporarily remove all file flags |
| | inside $D in order to avoid EPERM errors. Thanks to Timothy |
| | Redaelli <drizzt@g.o> for reporting. |
| 13069 | Make dyn_clean ignore FEATURES=keepwork when [[ |
| zmedico | $EMERGE_FROM = binary ]] and remove shutil.rmtree() call |
| | from Binpkg._clean_exit() since dyn_clean is guaranteed to |
| | do a full clean now. |
| 13070 | Bug #261992 - Inside Binpkg._prefetch_exit(), avoid |
| zmedico | potention issues with shutil.rmtree() by just doing a |
| | minimal cleanup. |
| 13071 | Bug #261992 - Replace the EbuildBuildDir.clean() method |
| zmedico | with a clean_log() method since log cleanup is all that's |
| | currently needed and shutil.rmtree() can fail with |
| | "OSError: [Errno 36] File name too long" due to strange |
| | file names, or on FreeBSD it can fail with EPERM due to |
| | file flags in $D. |
| 13072 | Update docstring for EbuildBuildDir.clean_log(). |
| zmedico | |
| 13088 | Bug #261670 - Automatically revert the CHOST metadata to |
| zmedico | the initial value after src_install, in case the ebuild has |
| | changed it. |
| 13090 | cleanup sandbox env var handling -- make sure we dont |
| SpankMan | insert empty : sections and avoid unnecessary eval usage |
| 13091 | Filter _sb_append_var in save_ebuild_env(). |
| zmedico | |
svn path=/main/branches/prefix/; revision=13099
Fabian Groffen [Thu, 12 Mar 2009 20:01:45 +0000 (20:01 -0000)]
attempt to install ebuild helpers in their own directory
svn path=/main/branches/prefix/; revision=13098
Fabian Groffen [Thu, 12 Mar 2009 19:52:52 +0000 (19:52 -0000)]
make sure I don't forget to kill this lame script in the prefix ebuild
svn path=/main/branches/prefix/; revision=13097
Fabian Groffen [Thu, 12 Mar 2009 19:42:41 +0000 (19:42 -0000)]
put back prefix version that svn foobarfed about on the original commit :(
svn path=/main/branches/prefix/; revision=13096
Fabian Groffen [Thu, 12 Mar 2009 19:37:31 +0000 (19:37 -0000)]
Merged from trunk -r13062:13063
| 13063 | Move ebuild helpers into an ebuild-helpers subdirectory. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13095
Fabian Groffen [Thu, 12 Mar 2009 19:21:56 +0000 (19:21 -0000)]
Merged from trunk -r12824:13062
| 13056 | Add new xpak.5 man page by Lars Hartmann chaotikaorg>. |
| zmedico | |
| 13059 | Bug #262012 - Only trigger the slot conflict message about |
| zmedico | --newuse when the installed version is the same as the new |
| | one. If they are different versions then there's some other |
| | problem. |
| 13060 | Bug #262211 - Make vardbapi.aux_get() translate empty SLOT |
| zmedico | to 0 since other code expects non-empty SLOT (for generation |
| | package slot atoms). |
| 13061 | Bug #262211 - Avoid triggering an InvalidAtom exception |
| zmedico | inside the Package constructor when SLOT is empty. |
| 13062 | Use absolute imports instead of relative. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13094
Fabian Groffen [Thu, 12 Mar 2009 19:18:52 +0000 (19:18 -0000)]
Merged from trunk -r12807:12824
| 12808 | Add more QA warnings for econf calls during unexpected |
| zmedico | phases. Thanks to Diego Elio Pettenò <flameeyes@g.o> for |
| | the suggestion. |
| 12809 | Only execute src_test pre/post hooks when src_test is |
| zmedico | actually executed. |
| 12810 | Bug #261670 - Generate a QA Notice if CHOST (from |
| zmedico | dyn_install) has a value which differs from the initial |
| | setting. |
| 12811 | Inside create_trees(), when cleansing the environment for |
| zmedico | the ROOT=/ config instance, call config.reset() so that |
| | configdict['env'] is cleared as was originally intended |
| | here. This prevents thinks like CHOST overrides from the |
| | calling environment from inappropriately being applied to |
| | ROOT=/. |
| 12812 | Simplify environment cleansing that's done for the ROOT=/ |
| zmedico | config instance when ROOT!=/. A new "env" config constructor |
| | parameter is used to allow the caller to avoid having the |
| | config instance polluted by os.environ. |
| 12813 | When the config_incrementals parameter is unspecified in the |
| zmedico | config constructor, don't warn because it's ridiculous to |
| | require this parameter when it's always the same anyway. |
| 12814 | Bug #261852 - If an unexpected exception is raise from |
| zmedico | emerge_main() then show the traceback after the mod_echo |
| | output to that the traceback isn't obscured by mod_echo |
| | flooding. |
| 12815 | Optimize dbapi._cpv_sort_ascending() by calling vercmp |
| zmedico | directly instead of calling pkgcmp. |
| 12816 | Initialize UserDict.data in the constructor. |
| zmedico | |
| 12817 | Simplify cmp_sort_key._cmp_key.__lt__(). |
| zmedico | |
| 12818 | Fix incorrect slice inside _src_uri_validate() and add new |
| zmedico | test case. |
| 12819 | Remove redundant conditional inside _src_uri_validate(). |
| zmedico | |
| 12820 | Make _src_uri_validate() identify the || operator as invalid |
| zmedico | and add a corresponding test case. |
| 12821 | Use protocol=2 for pickle.dump() calls, so that pickles |
| zmedico | written by py3k will be backward compatible. |
| 12822 | Handle ValueError and UnpicklingError inside |
| zmedico | PreservedLibsRegistry.load(). |
| 12823 | Use slices instead of startswith inside |
| zmedico | manifest2AuxfileFilter(). |
| 12824 | Don't default env=os.environ directly in the config |
| zmedico | constructor because that makes it show environment variables |
| | in api docs generated by epydoc. |
svn path=/main/branches/prefix/; revision=13093
Fabian Groffen [Mon, 9 Mar 2009 19:51:11 +0000 (19:51 -0000)]
Merged from trunk -r12790:12806
| 12791 | Also support + character in eclass names. |
| zmedico | |
| 12792 | Fix typo from previous commit. |
| zmedico | |
| 12793 | for pointers cast to 32bit ints, we always want to abort on |
| SpankMan | 64bit systems, not just when FEATURES=stricter |
| 12794 | Generate a QA Notice when EXPORT_FUNCTIONS is called before |
| zmedico | inherit, since it's incompatible with <=portage-2.1.6.7. |
| 12795 | Replace things like [[ $PORTAGE_BUILDDIR/.prepared -nt |
| zmedico | $WORKDIR ]] with 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. |
| 12796 | Make the --digest warning message show for FEATURES=digest. |
| zmedico | |
| 12797 | Bug #261675 - When doebuild() is called by emerge, don't |
| zmedico | call digestgen() for FEATURES=digest because it's redundant |
| | and it can cause interference with parallel-fetch and |
| | parallel builds. |
| 12798 | Bug #261675 - Also don't call digestgen() from |
| zmedico | parallel-fetch processes. |
| 12799 | Bug #261675 - Generate manifests in advance when |
| zmedico | FEATURES=digest is enabled. |
| 12800 | Never call digestgen() inside doebuild() which only 'fetch' |
| zmedico | has been requested since it's not needed in this case. |
| 12801 | Reorganize code for --digests and FEATURES=digest. |
| zmedico | |
| 12802 | Make manifest mode with --force option cause existing |
| zmedico | digests to be replaced for any files that exist in |
| | ${DISTDIR}. This provides an alternative to ebuild --force |
| | manifest for updating existing distfiles digests. Digests |
| | are assumed to be corect for files that do not exist in |
| | ${DISTDIR} since the user could simply remove the whole |
| | Manifest if they wanted to regenerate digests for all files |
| | (and it's safer to regenerate as few as possible because |
| | it's less probably that a valid digest will get replaced by |
| | an invalid one). |
| 12803 | Fix _setitem() to account for the change to |
| zmedico | serialize_eclasses = False. |
| 12804 | Inside dyn_unpack(), only call pre/post phase hooks when |
| zmedico | src_unpack is called (when .unpacked does not already |
| | exist). |
| 12805 | Use the ebuild_phase helper function to calls phase hooks |
| zmedico | and fix broken trap calls that try to unset multiple signal |
| | handlers at once without passing - as the first argument. |
| 12806 | When generating variable names to hold EXPORT_FUNCTIONS |
| zmedico | argument in, use $ECLASS_DEPTH as a unique id since it's a |
| | lot simpler then encoding the eclass name in the variable |
| | name. |
svn path=/main/branches/prefix/; revision=12807