Fabian Groffen [Sat, 15 Nov 2008 16:17:24 +0000 (16:17 -0000)]
Merged from trunk -r11841:11845
| 11842 | * Use noiselevel=-1 for preserve-libs ">>> needed" and "<<< |
| zmedico | !needed" messages so that they're show even without |
| | --verbose mode. * Sort files for the ">>> needed" display. |
| 11843 | In the LinkageMap.findConsumers() docstring, add a note |
| zmedico | about incompatibility with symlinks created by |
| | binutils-config. |
| 11844 | Revert r11839 since it's not necessarily desired to invert |
| zmedico | all uninstall edges. TODO: Invert only the specific edges |
| | that the depgraph has decided are necessary and allowed to |
| | be inverted. |
| 11845 | Fix --jobs parallel scheduling to ensure that temporary |
| zmedico | simultaneous installation of conflicting packages is avoided |
| | when appropriate (especially for !!atom blockers), but |
| | allowed in specific cases that require it. This is |
| | accomplished by reversing specific uninstall edges in the |
| | digraph, while possibly leaving some edges in there original |
| | state. |
svn path=/main/branches/prefix/; revision=11941
Fabian Groffen [Sat, 15 Nov 2008 16:15:00 +0000 (16:15 -0000)]
Merged from trunk -r11833:11841
| 11834 | Update docstring for dblink._find_libs_to_preserve(). |
| zmedico | |
| 11835 | Handle a corner case inside |
| zmedico | dblink._add_preserve_libs_to_contents() in which a path to |
| | be preserved doesn't exist in the contents of the installed |
| | instance. |
| 11836 | When adding parent directories to contents inside |
| zmedico | dblink._add_preserve_libs_to_contents(), account for the |
| | trailing slash on $ROOT in the while loop. |
| 11837 | Add PROPERTIES=interactive support in depgraph.display() and |
| zmedico | the PackageCounters class. |
| 11838 | Move initialization of Scheduler._background from the |
| zmedico | constructor to the merge() method so that a potential |
| | InvalidDependString exception can be handled there, causing |
| | merge() to return unsuccessfully. This avoids having to |
| | raise an exception from the constructor. |
| 11839 | Inside Scheduler._reverse_uninstall_edges(), iover all nodes |
| zmedico | rather than just the merge list, because some uninstall |
| | nodes may not be in the merge list since they will be |
| | performed as part of an upgrade within a slot. This solves a |
| | problem with Scheduler._choose_pkg() not parallelizing in |
| | some cases when it should, due to an uninstall node not |
| | having it's edge reversed like it's supposed to. |
| 11840 | Make show_invalid_depstring_notice() send output to stderr |
| zmedico | via writemsg_level(). |
| 11841 | Remove unused formatter code in |
| zmedico | show_invalid_depstring_notice(). |
svn path=/main/branches/prefix/; revision=11940
Fabian Groffen [Sat, 15 Nov 2008 16:13:09 +0000 (16:13 -0000)]
merge changes from previous commit from LinkageMap into LinkageMapMachO
svn path=/main/branches/prefix/; revision=11939
Fabian Groffen [Sat, 15 Nov 2008 15:23:03 +0000 (15:23 -0000)]
Merged from trunk -r11816:11833
| 11817 | Inside LinkageMap._libs, use a SlotDict to store consumers |
| zmedico | and providers, to use less memory than a normal dict. |
| 11818 | Swap the locations of the arch and soname keys inside |
| zmedico | LinkageMap._libs in order to conserve memory. This new |
| | branching layout uses fewer dict instances since the number |
| | of sonames is much larger than the number of archs. |
| 11819 | Combine redundant arch_map code inside LinkageMap.rebuild(). |
| zmedico | |
| 11820 | When using the `read` builtin to split newlines in e* |
| zmedico | function arguments, use $REPLY in order to ensure that |
| | whitespace in each line is correctly preserved. Thanks to |
| | Joe Peterson <lavajoe@g.o> for reporting. |
| 11821 | Fix LinkageMap.rebuild() so that the data from include_file |
| zmedico | overrides the data from any previously installed files. This |
| | prevent possible corruption of the data since only one set |
| | of data can be correct for a given file. |
| 11822 | When calling scanelf inside LinkageMap.rebuild(), join paths |
| zmedico | with $ROOT when generating the arguments and then strip |
| | $ROOT from the paths in the output. |
| 11823 | Improve the error message that's generated in |
| zmedico | LinkageMap.rebuild() for corrupt NEEDED.ELF.2 entries. |
| 11824 | Replace NEEDED.ELF.2 strings with references to |
| zmedico | LinkageMap._needed_aux_key. |
| 11825 | Handle a potential OSError that occurs if the scanelf binary |
| zmedico | is missing when LinkageMap.rebuild() is called. |
| 11826 | In LinkageMap.rebuild(), immediately raise a CommandNotFound |
| zmedico | exception if scanelf is missing since otherwise it will lead |
| | to a KeyError later on from findConsumers or findProviders. |
| | This will allow the caller to handle the CommandNotFound |
| | exception if necessary, and skip any findConsumers or |
| | findProviders since they won't be able to return valid |
| | results. |
| 11827 | Handle CommandNotFound exceptions if the scanelf binary |
| zmedico | happens to be missing, and disable preserve-libs code in |
| | that case. |
| 11828 | With python-2.6, importing the Crypto.Hash.MD5 and |
| zmedico | Crypto.Hash.SHA modules from pycrypto triggers warnings |
| | since those modules are implemented using the deprecated md5 |
| | and sha modules from python's stdlib. So, in order to avoid |
| | the warning and the inferior hash implementations that come |
| | with them, never use these particular modules from pycrypto. |
| | Instead, use hashlib or directly use stdlib's md5 and sha |
| | modules if necessary. Thanks to Markus Peloquin for |
| | reporting. |
| 11829 | Fix $ROOT handlink inside display_preserved_libs(). |
| zmedico | |
| 11830 | Inside LinkageMap, use self._obj_key() whenever possible. |
| zmedico | |
| 11831 | Bug #245362 - Rewrite preserve-libs preservation code so |
| zmedico | that it always relies on inode comparisons rather than |
| | string comparisons. Instead of injecting libraries into $D |
| | before the files are merged, the preservation code now |
| | executes after the files are merged but before the old |
| | version is unmerged. After determining which libs to |
| | preserve, the CONTENTS are updated to include those libs. |
| | The PreservedLibsRegistry.register() call is now done just |
| | after the temporary vdb entry has been moved into place, |
| | guaranteeing that a valid vdb entry is in place so that the |
| | unregistration code from bug #210501 is no longer needed. |
| 11832 | Bug #243030 - In PreservedLibraryConsumerSet.load(), avoid |
| zmedico | rebuilding packages just because they contain preserved libs |
| | that happen to be consumers of other preserved libs. |
| 11833 | Inside vardbapi.removeFromContents(), automatically clear |
| zmedico | the contents cache of the dblink instance in case an |
| | existing one was passed in. |
svn path=/main/branches/prefix/; revision=11938
Fabian Groffen [Sat, 15 Nov 2008 15:17:23 +0000 (15:17 -0000)]
Merged from trunk -r11811:11816
| 11812 | Override Atom.__setattr__() to make Atom instances |
| zmedico | immutable. Thanks to Brian Harring for the suggestion. |
| 11813 | In Atom.__setattr__(), include inputs in case it helps for |
| zmedico | debugging with derived classes. Thanks to Brian Harring for |
| | the suggestion. |
| 11814 | Bug #245661 - Never enable --complete-graph automatically |
| zmedico | since it's confusing for users. |
| 11815 | Remove the special package.keywords mask warning from bug |
| zmedico | #223447 since --depclean now uses the depgraph class and |
| | therefore should be more consistent with the update |
| | algorithm. |
| 11816 | Bug #245932 - Pass use_mask and use_force parameters into |
| zmedico | recursive _expand_new_virtuals() calls, fixing a TypeError |
| | which is triggered inside |
| | portage.dep._use_dep._eval_qa_conditionals(). |
svn path=/main/branches/prefix/; revision=11937
Fabian Groffen [Tue, 11 Nov 2008 19:08:19 +0000 (19:08 -0000)]
don't use curly braces, I don't trust them
svn path=/main/branches/prefix/; revision=11857
Fabian Groffen [Wed, 5 Nov 2008 18:29:48 +0000 (18:29 -0000)]
Make some changes to make the LinkageMapMachO more compatible (codewise) to LinkageMap. It isn't necessary, since no patch lookups are done, as we have absolute paths as keys.
svn path=/main/branches/prefix/; revision=11811
Fabian Groffen [Wed, 5 Nov 2008 18:08:52 +0000 (18:08 -0000)]
Merged from trunk -r11799:11809
| 11800 | Remove locking from EbuildFetchPretend since it uses a |
| zmedico | private temp directory now (since bug #245231). |
| 11801 | Remove duplicate code inside EbuildFetchPretend._execute(). |
| zmedico | |
| 11802 | Import shutil globally. |
| zmedico | |
| 11803 | Make metadata.missing and metadata.bad fatal by removing |
| zmedico | them from the qawarnings set. Thanks to Robin H. Johnson |
| | <robbat2@g.o> for the suggestion. |
| 11804 | Bug #245356 - Filter POSIXLY_CORRECT from the ebuild |
| zmedico | environment since it breaks stuff. |
| 11805 | Bug #245358 - For unsatisfied dependencies, display the |
| zmedico | parent nodes and the argument that pulled them in. |
| 11806 | Bug #245362 - Use tuples of (device, inode) for all path |
| zmedico | comparisons inside LinkageMap, so that they work regardless |
| | of path differences due to symlinked directories. TODO: Fix |
| | other preserve-libs code, such as dblink._preserve_libs(), |
| | to use this approach for path comparisons. |
| 11807 | Free some memory by clearing the LinkageMap cache when it's |
| zmedico | not needed. |
| 11808 | Synchronize portage update/restart logic in dblink.merge() |
| zmedico | and depgraph.display() so it's consistent with |
| | Scheduler._is_restart_necessary(). Thanks to Jeremy Olexa |
| | <darkside@g.o> for reporting. |
| 11809 | Fix broken reference to self inside unmerge(). |
| zmedico | |
svn path=/main/branches/prefix/; revision=11810
Fabian Groffen [Sun, 2 Nov 2008 10:16:39 +0000 (10:16 -0000)]
uhm... we need ostype
svn path=/main/branches/prefix/; revision=11799
Fabian Groffen [Sun, 2 Nov 2008 10:02:21 +0000 (10:02 -0000)]
Merged from trunk -r11795:11796
| 11796 | Bug #245231 - Make EbuildFetchPretend use a private temp |
| zmedico | directory in order to avoid locking the main one. |
svn path=/main/branches/prefix/; revision=11798
Fabian Groffen [Sun, 2 Nov 2008 09:47:42 +0000 (09:47 -0000)]
Perhaps it is a better idea to have our own implementation of _LibGraphNode in LinkageMapMachO...
svn path=/main/branches/prefix/; revision=11797
Fabian Groffen [Sun, 2 Nov 2008 08:01:32 +0000 (08:01 -0000)]
Merged from trunk -r11785:11791
| 11786 | Bug #239015 - Disable unmerge operations for |
| zmedico | EverythingSet/@installed. |
| 11787 | In Scheduler._calc_resume_list(), use self.pkgsettings |
| zmedico | instead of the the temportary depgraph's. |
| 11788 | TODO: In case some elf files collide with blocked packages, |
| zmedico | ensure that NEEDED data from include_file overrides the |
| | stale NEEDED data from the colliding files in the blocked |
| | packages. |
| 11789 | In _validate_deps(), show the ebuild version to clarify |
| zmedico | which ebuild the errors belong to. |
| 11790 | In config.setcpv(), ensure that A and AA aren't in the env |
| zmedico | dict. |
| 11791 | In SetConfig.getSetAtoms(), access self.psets directly in |
| zmedico | order to avoid making a copy and also to avoid potential |
| | swallowing of an unexpected KeyError. |
svn path=/main/branches/prefix/; revision=11795
Fabian Groffen [Sun, 2 Nov 2008 07:58:32 +0000 (07:58 -0000)]
Apply r11777 to LinkageMapMachO
svn path=/main/branches/prefix/; revision=11794
Fabian Groffen [Sun, 2 Nov 2008 07:55:50 +0000 (07:55 -0000)]
Merged from trunk -r11776:11784
| 11777 | Rename "object" variable to avoid name collision with the |
| zmedico | builtin class. |
| 11778 | Before returning from PreservedLibsRegistry.store(), update |
| zmedico | self._data_orig. |
| 11779 | Explicitly load the preserved libs registry after obtaining |
| zmedico | a lock for merge or unmerge, in case the registry has been |
| | changed by a parallel emerge instance. |
| 11780 | Also call PreservedLibsRegistry.pruneNonExisting() after |
| zmedico | obtaining a lock and loading it for merge or unmerge. |
| 11781 | Remove unnecessary handler for plain "Exception" from |
| zmedico | lstat() call in dblink.mergeme(). |
| 11782 | * In fetch(), ensure that pkg_nofetch is never called more |
| zmedico | than once. * In _validate_deps(), revert back to using |
| | aux_get since the config instance does not cache SRC_URI. |
| 11783 | Remove broken pickle_write() since it can't possibly be |
| zmedico | used. |
| 11784 | When echoing the emake command, redirect to stderr since |
| zmedico | otherwise it breaks the gcc ebuild because of the way that |
| | the get_make_var() function from toolchain.eclass is used. |
svn path=/main/branches/prefix/; revision=11793
Fabian Groffen [Sat, 1 Nov 2008 16:01:40 +0000 (16:01 -0000)]
Merged from trunk -r11755:11768
| 11756 | Bug #244975 - Don't allow the user to make portage unmerge |
| zmedico | itself since there's never any valid reason to do so. |
| 11758 | Use portage.const.PORTAGE_PACKAGE_ATOM where appropriate. |
| zmedico | |
| 11759 | Pass a Package instance into the config.setcpv() call. |
| zmedico | |
| 11760 | Fix broken stuff to avoid tracebacks when running in commit |
| zmedico | mode with --pretend and no vcs. |
| 11761 | Remove unused conditional_disabled and conditional_enabled |
| zmedico | attributes from _use_dep.__slots__. |
| 11762 | Bug #244947 - Add repoman support for checking masked and |
| zmedico | forced flags when verifying USE deps. Thanks to Brian |
| | Harring for reporting. |
| 11763 | Revert previous commit since it doesn't properly calculate |
| zmedico | masked and forced flags for the package being matched (it |
| | erroneously uses the masked and forced flags from the parent |
| | package). |
| 11764 | Bug #236609 - Fix columns calculation for TERM="dumb". |
| zmedico | Thanks to Ulrich Müller <ulm@g.o> for the patch. |
| 11765 | In dblink._collision_protect(), remove redundant |
| zmedico | self.isowner() calls since self hasn't yet been merged and |
| | therefore has no CONTENTS file for ownership checks. Also, |
| | remove redundant isprotected() calls. |
| 11766 | Bug #243178 - Handle file collisions with preserved libs by |
| zmedico | allowing the current package to assume ownership and |
| | unregistering the preserved libraries. |
| 11767 | Eliminate duplicate code by calling equivalent |
| zmedico | dblink._clear_contents_cache(). |
| 11768 | Bug #244947 - Add basic repoman support for checking masked |
| zmedico | and forced flags when verifying USE deps. TODO: Add repoman |
| | support in dep_check() for evaluation of conditional USE |
| | deps based on forced/masked flags. masked flags, so that |
| | repoman can also |
Merged from trunk -r11768:11776
| 11769 | Bug #244947 - Add repoman support for checking masked and |
| zmedico | forced flags on conditional USE deps. |
| 11770 | Bug #244792 - Remove confcache support. |
| zmedico | |
| 11771 | Bug #241906 - Handle InvalidAtom exception raised from |
| zmedico | vardbapi.match(). |
| 11772 | Bug #240295 - When emake is called, echo the make command |
| zmedico | similar to the way that econf echoes the configure command. |
| 11773 | Filter PORTAGE_VERBOSE in save_ebuild_env(). |
| zmedico | |
| 11774 | Remove unused imports. |
| zmedico | |
| 11775 | Define __all__ and remove unused import. |
| zmedico | |
| 11776 | Define __all__ and remove unused imports. |
| zmedico | |
svn path=/main/branches/prefix/; revision=11785
Fabian Groffen [Thu, 30 Oct 2008 21:16:03 +0000 (21:16 -0000)]
recheck what changed in the repository also when nothing was added, because manifest regeneration might change the Manifest, this fixes bug #229033
svn path=/main/branches/prefix/; revision=11755
Fabian Groffen [Thu, 30 Oct 2008 21:13:23 +0000 (21:13 -0000)]
Merged from trunk -r11745:11753
| 11746 | Bug #225429 - In dblink.unmerge(), eliminate consumers |
| zmedico | having providers with the same soname as an installed |
| | library that is not preserved. This eliminates libraries |
| | that are erroneously preserved due to a move from one |
| | directory to another. |
| 11747 | In dblink.unmerge(), update the CONTENTS entries when |
| zmedico | preserved libs are removed. |
| 11748 | Bug # 225429 - Try to remove unneeded preserved libs just |
| zmedico | before returning from dblink.treewalk(), after the library |
| | path has been updated. This is intended to remove unneeded |
| | preserved libs after a gcc upgrade. TODO: Figure out why |
| | libgomp.so.1 still isn't properly removed. |
| 11749 | Bug #225429 - Inside LinkageMap.rebuild(), update |
| zmedico | self._defpath since it can change during a gcc upgrade. |
| 11751 | define myunadded such that repoman doesn't crash when being |
| zmedico | run in a non-{cvs,svn} dir (branches/prefix r11750) |
| 11752 | Avoid unnecessary aux_get calls inside Scheduler._pkg() by |
| zmedico | getting the existing Package instance from the digraph. |
| 11753 | Make sure mychanged and mynew are always defined even if |
| zmedico | there is no vcs because commit mode is allowed without a vcs |
| | in pretend mode. |
svn path=/main/branches/prefix/; revision=11754
Fabian Groffen [Thu, 30 Oct 2008 19:51:48 +0000 (19:51 -0000)]
define myunadded such that repoman doesn't crash when being run in a non-{cvs,svn} dir
svn path=/main/branches/prefix/; revision=11750
Fabian Groffen [Wed, 29 Oct 2008 20:15:28 +0000 (20:15 -0000)]
Apply LinkageMap changes to LinkageMapMachO, make sure we call rebuild correctly
svn path=/main/branches/prefix/; revision=11745
Fabian Groffen [Wed, 29 Oct 2008 20:02:41 +0000 (20:02 -0000)]
Merged from trunk -r11736:11743
| 11737 | Fix graph.get() so that it works as intended, returning the |
| zmedico | node corresponding to the given key. |
| 11738 | Remove manifest1 digest-* autoadd code. Thanks to grobian. |
| zmedico | |
| 11739 | Update the auto-add message to say "Manifest" instead of |
| zmedico | "digests". Thanks to grobian. |
| 11740 | Bug #238957 - When removing unneeded preserved libs inside |
| zmedico | dblink.unmerge(), use a digraph to properly track consumer |
| | relationships between preserved libs. This fixes cases where |
| | preserved libs failed to be removed due to being consumed by |
| | other preserved libs. |
| 11741 | Fix $ROOT handling inside LinkageMap.findConsumers(). |
| zmedico | |
| 11742 | Fix interaction between LinkageMap.rebuild() and the package |
| zmedico | replacement process in order to avoid problems with stale or |
| | unaccounted NEEDED. This solves a LinkageMap corruption |
| | issue which caused findConsumers to return false positive |
| | inside dblink.unmerge(). |
| 11743 | Make config.setcpv() store the ebuild metadata inside |
| zmedico | self.configdict["pkg"], and reuse this metadata inside |
| | doebuild() in order to avoid redundant portdbapi.aux_get() |
| | calls. |
svn path=/main/branches/prefix/; revision=11744
Fabian Groffen [Tue, 28 Oct 2008 19:09:53 +0000 (19:09 -0000)]
Merged from trunk -r11724:11733
| 11725 | When creating the temporary $DISTDIR, do not try to set the |
| zmedico | uid since it will fail when not running as root. |
| 11726 | Enable bashrc even when $EBUILD_PHASE is unset, so it's |
| zmedico | possible to override things like INSTALL_MASK. |
| 11727 | In fetch(), avoid the "Adjusting permissions recursively" |
| zmedico | message in cases when the directory has just been created |
| | and therefore it must be empty. |
| 11728 | Return early from fetch() if no uris are given. |
| zmedico | |
| 11729 | Pass $ROOT into portage.util.getlibpaths(). |
| zmedico | |
| 11730 | Pass $ROOT into the LinkageMap._ObjectKey constructor since |
| zmedico | it's needed for os.stat() and realpath() calls. |
| 11731 | Fix incorrect $ROOT handling inside dblink._preserve_libs(). |
| zmedico | |
| 11732 | Make SetConfig.getSetAtoms() raise a PackageSetNotFound |
| zmedico | exception when necessary and add handling code in emerge. |
| | This solves an unhandled KeyError that was raise when a |
| | nested set did not exist. Thanks to ABCD for reporting. |
| 11733 | Fix some incorrect $ROOT handling inside LinkageMap. |
| zmedico | |
svn path=/main/branches/prefix/; revision=11736
Fabian Groffen [Tue, 28 Oct 2008 18:51:42 +0000 (18:51 -0000)]
Merged from trunk -r11713:11724
| 11714 | Split dep validation out of doebuild() and skip it when |
| zmedico | called by emerge since there's no need to do this every time |
| | emerge executes a phase. |
| 11715 | Bug #233296 - Add minimal PROPERTIES=interactive support by |
| zmedico | simply forcing all package output to stdio whenever the |
| | merge list contains one or more interactive packages. |
| 11716 | Document PROPERTIES=interactive. |
| zmedico | |
| 11717 | Add a PROPERTIES.syntax check. |
| zmedico | |
| 11718 | Fix grammar. |
| zmedico | |
| 11719 | Bug #243224 - Add an exemption to the inherit.autotools |
| zmedico | check for ebuilds that inherit git.eclass since the |
| | GIT_BOOTSTRAP variable may be used to call one of autotools |
| | functions. |
| 11720 | Add "bzr" to the lists of live eclasses. |
| zmedico | |
| 11721 | Add "bzr" to the lists of live eclasses. |
| zmedico | |
| 11722 | Add "subversion" to InheritAutotools._exempt_eclasses. |
| zmedico | Thanks to Arfrever. |
| 11723 | When populating the fake $DISTDIR inside doebuild(), reuse |
| zmedico | existing symlinks when possible, instead of recreating the |
| | whole directory from scratch. |
| 11724 | Fix preserve-libs code inside dblink.unmerge() so that it |
| zmedico | will join paths correctly when ROOT != /. |
svn path=/main/branches/prefix/; revision=11735
Fabian Groffen [Tue, 28 Oct 2008 18:47:54 +0000 (18:47 -0000)]
Merged from trunk -r11701:11713
| 11702 | Remove the "found_available_arg" variable from |
| zmedico | depgraph._select_pkg() and use the "matched_packages" |
| | variable instead. This solve a problem where the |
| | "found_available_arg" flag is unreliable due to the slot |
| | filtering behavior of depgraph._iter_atoms_for_pkg(). For |
| | example, a higher version in a different slot than the |
| | available ebuild might be masked or unavailable, and |
| | depgraph._iter_atoms_for_pkg() will not identify the |
| | available ebuild as a match due to this installed package |
| | (which is not available for reinstall). |
| 11703 | Simplify logic from the previous commit. |
| zmedico | |
| 11704 | Revert previous 2 commits since they broke "selective" |
| zmedico | behavior. |
| 11705 | Handle the case that was intended to be fixed by r11702 |
| zmedico | (which got reverted). |
| 11706 | Prefer thirdpartymirrors over normal mirrors in cases when |
| zmedico | the file does not yet exist on the normal mirrors. Thanks to |
| | Maurice van der Pot <griffon26@g.o> for reporting. |
| 11707 | Remove redundant duplicate uri elimination code. It's |
| zmedico | already handled in the fetch loop. |
| 11708 | Add PORTAGE_QUIET to the environment whitelist and filter it |
| zmedico | from the saved ebuild environment. |
| 11709 | Bug #186842 - Suppress file merge display, as previously |
| zmedico | done in --quiet mode, whenever --verbose is not enabled. |
| | Also, export PORTAGE_VERBOSE to the ebuild environment and |
| | use it to control tar verbosity when creating binary |
| | packages. |
| 11710 | Use normal return statements instead of calling sys.exit() |
| zmedico | inside dblink.mergeme(). |
| 11711 | Remove needlessly complex error handling code from |
| zmedico | vardbapi.cpv_counter(). |
| 11712 | Remove unused imports found by pyflakes. |
| zmedico | |
| 11713 | Validate PROPERTIES inside doebuild(). |
| zmedico | |
svn path=/main/branches/prefix/; revision=11734
Fabian Groffen [Sat, 18 Oct 2008 20:17:04 +0000 (20:17 -0000)]
install make.conf.example and make.globals in usr/share/portage/config/
svn path=/main/branches/prefix/; revision=11701
Fabian Groffen [Sat, 18 Oct 2008 19:55:47 +0000 (19:55 -0000)]
Merged from trunk -r11694:11699
| 11695 | Bug #242304 - When a zero-byte distfile is detected inside |
| zmedico | fetch(), discard the digests and attempt to fetch the file |
| | if possible. This code is triggered via digestgen() when |
| | appropriate, so it fixes all digestgen() callers, including |
| | repoman. |
| 11696 | In fetch(), don't spawn pkg_nofetch unless PORTAGE_BUILDDIR |
| zmedico | exists since it will die anyway due to the code for bug |
| | #239560 that's in ebuild.sh. |
| 11697 | In fetch(), make sure all references to digests for |
| zmedico | zero-byte distfile are always discarded. |
| 11698 | Remove support for FEATURES=gpg since it's already disabled |
| zmedico | and broken anyway. Thanks to DJ Anderson for the suggestion. |
| 11699 | Remove the unused portage.gpg module and |
| zmedico | portage_gpg_update.sh script. |
svn path=/main/branches/prefix/; revision=11700
Fabian Groffen [Wed, 15 Oct 2008 20:33:21 +0000 (20:33 -0000)]
Merged from trunk -r11675:11692
| 11676 | Bug #241204 - Fix dbapi.invalidentry() calls inside |
| zmedico | vardbapi.cpv_all() to correctly join the path via |
| | self.getpath(). |
| 11677 | When warning about package categories that haven't been |
| zmedico | configured via /etc/portage/categories, join the path with |
| | PORTAGE_CONFIGROOT. Thanks to Ned Ludd <solar@g.o> for |
| | reporting. |
| 11678 | In EbuildFetcher._start(), in order to ensure that a new log |
| zmedico | is created when appropriate, clean up PORTAGE_BUILDDIR if |
| | appropriate. |
| 11679 | Make the Scheduler class treat failed fetches the same as |
| zmedico | other failed packages, and don't bail out due to a failure |
| | when in --fetchonly mode. This fixes an issue with |
| | --fetchonly bailing out instead of continuing to fetch. |
| 11680 | Buge #241100 - Make EbuildFetcher use a pty when |
| zmedico | appropriate, so that fetcher progress bars, like wget has, |
| | will work properly. |
| 11681 | Remove the prefetch logic in EbuildFetcher._pipe() since |
| zmedico | prefetchers are always in the background anyway. |
| 11682 | Now that only prefetch (parallel-fetch) output goes to the |
| zmedico | global fetch log, update code to remove inappropriate |
| | references to this log. |
| 11683 | Inside fetch(), don't call pkg_nofetch when in |
| zmedico | parallel-fetch mode since it will get call again later |
| | anyway. |
| 11684 | Add an explicit note about bug #239560 in the relevant code. |
| zmedico | |
| 11685 | Bug #241118 - Re-enable pkg_nofetch for emerge --pretend |
| zmedico | --fetch, but direct output to stderr. This requires |
| | PORTAGE_BUILDDIR locking for bug #239560 and also for elog |
| | message storage. |
| 11686 | Bug #234301 - When fetch fails, include the path of the log |
| zmedico | file in the eerror message that's generated. This way it's |
| | easy for the user to find the output from the fetcher or |
| | from the pkg_nofetch phase. |
| 11687 | Don't return from fetch() due to fetch restriction when in |
| zmedico | "listonly" mode. |
| 11688 | Make fetch() fetch as many files as possible, even if some |
| zmedico | fail, when in fetchonly mode. |
| 11689 | Make sure the pkg_nofetch phase is only called once when in |
| zmedico | fetchonly mode. |
| 11690 | When emerge --keep-going bails due to missing dependencies, |
| zmedico | show the error message after the mod_echo output since |
| | otherwise the mod_echo output can sweep the error message |
| | out of view. Thanks to Donnie Berkholz <dberkholz@g.o> for |
| | reporting. |
| 11691 | Bug #241366 - Only suggest to run `emaint --check world` |
| zmedico | when the atom is a direct member of the world set (rather |
| | than from a nested set). |
| 11692 | Bug #229033 - When a Manifest is added automatically by |
| zmedico | repoman, it's in the "mynew" list, so move manifest paths |
| | from that list to the "mymanifests" list when necessary. |
svn path=/main/branches/prefix/; revision=11694
Fabian Groffen [Wed, 15 Oct 2008 19:39:42 +0000 (19:39 -0000)]
Make note that Prefix uses rsync mirrors too. Since we now got an American mirror (tinderbox.dev.g.o) we split our mirrors up in two continents in the documentation.
svn path=/main/branches/prefix/; revision=11693
Fabian Groffen [Sat, 11 Oct 2008 15:49:30 +0000 (15:49 -0000)]
Merged from trunk -r11654:11673
| 11655 | Before returning config instances from |
| zmedico | Scheduler._allocate_config(), call the config.reset() |
| | method to make sure all settings from the previous package |
| | get flushed out (such as PORTAGE_LOG_FILE). This fixes a |
| | case where PORTAGE_LOG_FILE leaked from the previous |
| | package to the clean phase of the next one, resulting in an |
| | IOError due to the path being invalid and the parent |
| | directory being nonexistent. |
| 11656 | Since EbuildBuild no longer directs it's EbuildFetcher |
| zmedico | instance's output to the global fetch log, there's no need |
| | to schedule it on the fetch queue. |
| 11657 | Use separate temp directories in order to avoid potential |
| zmedico | name collisions. |
| 11658 | In EbuildBuild._fetch_exit(), clean up the fetch log if |
| zmedico | fetch was successful. |
| 11659 | Fix apparent breakage from r11593 (slot dep support): * |
| zmedico | Handle KeyError from element.getAttribute() in makeAtom() |
| | and makeVersion(). * Avoid 'sre_constants.error: unmatched |
| | group' exceptions in revisionMatch() when the atom does not |
| | have a slot. |
| 11660 | Don't show the repo display when the merge list is empty. |
| zmedico | |
| 11661 | In EbuildFetcher._set_returncode(), don't clean up |
| zmedico | PORTAGE_BUILDDIR if keepwork or keeptemp are in FEATURES. |
| 11664 | Bug #240684 - Fix _ebuild_arg_to_phase() to handle the |
| zmedico | src_prepare phase so that the default() function is |
| | properly created. |
| 11665 | Fix code from previous commit so it properly checks $eapi |
| zmedico | to verify that src_prepare is really a supported phase |
| | function. |
| 11666 | Remove redundant os.close(master_fd) call inside |
| zmedico | SpawnProcess._start() since that file discriptor is |
| | referenced by a file object which already has an |
| | appropriate close() call. This fixes an 'IOError: [Errno 9] |
| | Bad file descriptor' exception which was raised when |
| | attempting to close the file object. |
| 11667 | At the end of dyn_clean(), also remove the $CATEGORY |
| zmedico | directory if possible. |
| 11669 | Grab make.globals from GLOBAL_CONFIG_PATH if available and |
| zmedico | fall back to the legacy location if necessary. |
| 11670 | Create a new AmbiguousPackageName exception to raise from |
| zmedico | portage.cpv_expand(). It inherits from ValueError, for |
| | backward compatibility with calling code that already |
| | handles ValueError. |
| 11671 | Bug #241132 - Handle AmbiguousPackageName exceptions for |
| zmedico | atoms passed to the --info action. |
| 11672 | Migrate code from plain ValueError to AmbiguousPackageName |
| zmedico | where appropriate (inherits from ValueError for backward |
| | compatibility). |
| 11673 | only use dummy echos in do_file() when running in |
| SpankMan | interactive mode |
svn path=/main/branches/prefix/; revision=11675
Fabian Groffen [Sat, 11 Oct 2008 15:44:10 +0000 (15:44 -0000)]
Merged from trunk -r11635:11654
| 11636 | Bug #240022 - Avoid duplicate output for the same library |
| zmedico | (due to symlinks) in display_preserved_libs() by using |
| | os.path.realpath() to group duplicate references together. |
| | Thanks to Fabian Groffen <grobian@g.o> for the initial |
| | patch. |
| 11637 | Fix KeyError raised from display_preserved_libs() when the |
| zmedico | realpath is used as a key in consumer_map instead of the |
| | orignal path that was returned from the |
| | PreservedLibsRegistry. |
| 11642 | In order to avoid "waiting for lock" messages at the |
| zmedico | beginning, which annoy users, never spawn a prefetcher for |
| | the first package. |
| 11643 | In doebuild(), don't create build dirs when "listonly" fetch |
| zmedico | mode. |
| 11644 | In fetch(), never call the pkg_nofetch phase when in |
| zmedico | "listonly" mode. |
| 11645 | Bug #234301 - Add support to EbuildFetcher to collect elog |
| zmedico | messages that might be generated during the pkg_nofetch |
| | phase. This involves maintaining a lock on PORTAGE_BUILDDIR |
| | where the elog messages are collected, and cleaning up |
| | PORTAGE_BUILDDIR before releasing the lock. |
| 11646 | Fix EbuildFetcher._wait_hook() so it can be called more than |
| zmedico | once without throwing an AttributeError. |
| 11647 | Make EbuildFetcher direct fetch output to the normal build |
| zmedico | log. By keeping the output in the build log instead of the |
| | global emerge-fetch.log file, output from a possible fetch |
| | failure can be recovered and displayed later. TODO: Convert |
| | failed fetch to elog message as suggested in bug #234301. |
| 11648 | Make EbuildFetcher clean up the build dir after failures in |
| zmedico | fetchonly mode since the log is in emerge-fetch.log anyway. |
| 11649 | When EbuildBuild encounters a failed fetch, propagee the log |
| zmedico | path so that it can be properly displayed in the status |
| | display. |
| 11650 | Make HOMEPAGE.missing fatal again since, in cases when |
| zmedico | homepages are no longer available, we can use a link to some |
| | site like packages.gentoo.org or |
| | www.unmaintained-free-software.org. |
| 11651 | Change the "qawarnings" variable from a list to a set. |
| zmedico | |
| 11652 | Make "qawarnings" a normal set since the missingvars code |
| zmedico | might modify it. |
| 11653 | Instead of using inheritance, reference the ConfigParser |
| zmedico | part of SetConfig as an attribute in case we want to swap |
| | out the ConfigParser implemention and no longer want to |
| | implement the whole interface. |
| 11654 | Generate elog messages for failed fetches. This restores |
| zmedico | some functionality that was removed in r11645. |
svn path=/main/branches/prefix/; revision=11674
Fabian Groffen [Sun, 5 Oct 2008 18:00:09 +0000 (18:00 -0000)]
Merged from trunk -r11632:11634
| 11633 | Avoid raising a KeyError from display_preserved_libs() in |
| zmedico | cases when no owners are found for a particular library |
| | consumer. |
| 11634 | Make HOMEPAGE.missing a warning since some packages become |
| zmedico | homeless even though they still continue to work. Thanks to |
| | Robin H. Johnson <robbat2@g.o> for the suggestion. |
svn path=/main/branches/prefix/; revision=11635
Fabian Groffen [Sun, 5 Oct 2008 16:46:05 +0000 (16:46 -0000)]
Merged from trunk -r11621:11630
| 11622 | A cpv can be returned from dbapi.match() as an old-style |
| zmedico | virtual match even in cases when the package does not |
| | actually PROVIDE the virtual. Filter out any such false |
| | matches inside depgraph._select_package() and |
| | _show_unsatisfied_dep(). Thanks to Ned Ludd <solar@g.o> for |
| | reporting this issue which was discovered when attempting to |
| | install virtual/libc on uclibc profile. Apparently the |
| | uclibc ebuilds need to be fixed to properly set PROVIDE when |
| | the metadata cache is generated. |
| 11623 | Bug #239529 - Fix 'doins' to work with symlinks to |
| zmedico | directories, like it did before the changes from bug |
| | #210575. |
| 11624 | Add missing quotes on pushd argument from previous commit. |
| zmedico | |
| 11625 | Redirect pushd and popd output to /dev/null when |
| zmedico | appropriate. |
| 11626 | Fix PreservedLibsRegistry.store() so that it only rewrites |
| zmedico | the data file when something has changed. |
| 11627 | Only update the confmem file when something has changed. |
| zmedico | |
| 11628 | * When ensuring sane $PWD in ebuild.sh, die if the `cd |
| zmedico | "$PORTAGE_BUILDDIR"` call fails. * Create $PORTAGE_BUILDDIR |
| | for the "fetch" phase too since it might be necessary to |
| | call pkg_nofetch. |
| 11629 | Bug #239529 - When doins is called on a symlink to a |
| zmedico | directory, preserve the name of the symlink for the |
| | installed directory. This involves temporarily renaming the |
| | directory and then renaming it back again. |
| 11630 | In dyn_clean, cd to $PORTAGE_BUILDDIR/.. before attempting |
| zmedico | to remove it since 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/branches/prefix/; revision=11632
Fabian Groffen [Sun, 5 Oct 2008 16:38:39 +0000 (16:38 -0000)]
revert r11577, a proper fix is in 11630
svn path=/main/branches/prefix/; revision=11631
Fabian Groffen [Sat, 4 Oct 2008 09:59:25 +0000 (09:59 -0000)]
Merged from trunk 11616:11618
| 11617 | Make depgraph._add_pkg() take a Dependency instance. This |
| zmedico | provides access to the atom which pulled in the package, |
| | which may be needed in order to verify that a different |
| | package that's been added to the graph is capable of |
| | satisfying the atom. |
| 11618 | Fix depgraph._add_pkg() to ensure that the existing package |
| zmedico | in the graph matches the required atom in cases when a |
| | different package has been passed in. This solves a problem |
| | with silently unsatisfied USE deps that was reported by |
| | Jorge Manuel B. S. Vicetto <jmbsvicetto@g.o>. Now the |
| | unsatisfied dependency will result in a "slot conflict" |
| | rather than be silently ignored. |
svn path=/main/branches/prefix/; revision=11620
Fabian Groffen [Sat, 4 Oct 2008 09:57:18 +0000 (09:57 -0000)]
Make new changelog.ebuildadded check a warning instead of an error, since in Prefix, interrevisions are new ebuilds, but we do not use the ChangeLog for obvious maintenance reasons.
svn path=/main/branches/prefix/; revision=11619
Fabian Groffen [Fri, 3 Oct 2008 16:58:09 +0000 (16:58 -0000)]
Merged from trunk -r11602:11613
| 11603 | Generate an eqawarn message if econf is called from |
| zmedico | src_compile and 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. |
| 11604 | Bug #239272 - Handle InvalidAtom exception inside |
| zmedico | depgraph.validate_blockers(). |
| 11605 | When parsing PORTAGE_ELOG_SYSTEM, stack values in a dict so |
| zmedico | that things like "echo:info echo:qa" stack like one might |
| | expect. Thanks to Betelgeuse for reporting. |
| 11606 | Call elog_process before calling the "clean" phase for |
| zmedico | --buildpkgonly mode. |
| 11607 | Fix broken logic in Scheduler._main_loop() which would allow |
| zmedico | the main loop to exit while one or more merges are still |
| | scheduled. Thanks to Patrick Lauer for reporting. |
| 11608 | Optimize display_preserved_libs() by using a single |
| zmedico | getFileOwnerMap() to look up all the files. |
| 11609 | In JobStatusDisplay._update(), set _displayed = True when |
| zmedico | ruturning early due to stdout not being a tty. This fixes a |
| | problem excess output which was reported by Daniel Robbins. |
| 11610 | Implement a new "changelog.ebuildadded" check which causes |
| zmedico | repoman to bail out if an ebuild has been added and the |
| | ChangeLog has not been modified. This was requested by Robin |
| | H Johnson <robbat2@g.o> since it is a requirement for the |
| | packages.gentoo.org ChangeLog code. |
| 11611 | Remove pointless copying of the owners dict inside |
| zmedico | display_preserved_libs(). |
| 11613 | Fix `svn status` output parsing for compatibility with |
| zmedico | subversion-1.6. Thanks to Arfrever for this patch. |
svn path=/main/branches/prefix/; revision=11616
Fabian Groffen [Fri, 3 Oct 2008 16:53:25 +0000 (16:53 -0000)]
Merged from trunk -r11593:11602
| 11594 | For compatibility with long-standing --columns behavior, do |
| zmedico | not display "uninstall" or satsified "blocks" nodes in the |
| | merge list when --columns is enabled. Thanks to solar for |
| | the suggestion. |
| 11595 | make sure that cli-defined sets aren't added to @world |
| genone | |
| 11596 | allow selection of metadata source for VariableSet |
| genone | |
| 11597 | remove the 'repository' option from CategorySet in favor of |
| genone | the generic 'intersect' option |
| 11598 | Add a new DummyPackageSet handler to make set operators |
| genone | easier to use |
| 11599 | allow the portage.sets. prefix to be omitted in 'class' |
| genone | options of set definitions |
| 11600 | Bug #239006 - In FakeVartree._aux_get_wrapper(), fall back |
| zmedico | to vdb metadata if the live ebuild's EAPI is unsupported. |
| 11601 | Now that elog_base() uses 'echo -e' to expand escape codes |
| zmedico | prior to using 'read' to split on newlines, it's safe to use |
| | newlines as delimiters in the log file since 'read' is |
| | guaranteed to split any newlines contained in the arguments. |
| 11602 | Handle InvalidDependString from portdbapi.getFetchMap() |
| zmedico | inside search.output(). Thanks to agaffney for reporting. |
svn path=/main/branches/prefix/; revision=11615
Fabian Groffen [Fri, 3 Oct 2008 16:50:31 +0000 (16:50 -0000)]
Merged from trunk -r11580:11593
| 11581 | implement set arguments to reconfigure and create package |
| genone | sets on the commandline |
| 11582 | disable redefintion errors when updating the set definitions |
| genone | |
| 11583 | Properly process set arguments inside set expressions |
| genone | |
| 11584 | Add operator logic to sets.conf |
| genone | |
| 11585 | use ignorelist to avoid potential infite loop |
| genone | |
| 11586 | update set config documentation to include extend, remove and |
| genone | intersect options |
| 11587 | document AgeSet handler class |
| genone | |
| 11588 | account for DTD changes wrt 'revised' element (patch by |
| genone | Robert Buchholz <rbu@gentoo.org>) |
| 11589 | also accept glsa-2.dtd as valid for GLSAs (patch by Robert |
| genone | Buchholz <rbu@gentoo.org>) |
| 11590 | print dates in a consistent format (patch by Robert Buchholz |
| genone | <rbu@gentoo.org>) |
| 11591 | sort summarylist output (patch by Robert Buchholz |
| genone | <rbu@gentoo.org>) |
| 11592 | use summarylist for output of test mode when --verbose is |
| genone | given (patch by Robert Buchholz <rbu@gentoo.org>) |
| 11593 | add support for slot dependencies (original patch by Robert |
| genone | Buchholz <rbu@gentoo.org>) |
svn path=/main/branches/prefix/; revision=11614
Fabian Groffen [Thu, 2 Oct 2008 15:16:28 +0000 (15:16 -0000)]
Allow to set EAPIPREFIX. Not sure how hazardous this is, but it's darn handy at work (using Prefix repoman to commit on a non-Prefix overlay)
svn path=/main/branches/prefix/; revision=11612
Fabian Groffen [Sun, 28 Sep 2008 14:53:35 +0000 (14:53 -0000)]
I seem not to understand correctly how weird Python is, fix AttributeError: 'list' object has no attribute 'strip' error.
svn path=/main/branches/prefix/; revision=11580
Fabian Groffen [Sun, 28 Sep 2008 12:13:55 +0000 (12:13 -0000)]
Fix up messing around with lists, sets and frozen sets
svn path=/main/branches/prefix/; revision=11579
Fabian Groffen [Sun, 28 Sep 2008 11:08:30 +0000 (11:08 -0000)]
Merged from trunk -r11572:11576
| 11573 | Mask packages with deprecated EAPIs in order to prevent them |
| zmedico | from being installed. Such packages will still behave |
| | normally if they are already installed, but preventing new |
| | installation will remind people to update the EAPIs in their |
| | overlays if necessary. |
| 11574 | EAPI 2 is now supported. |
| zmedico | |
| 11575 | Fix code inside BlockerDB.findInstalledBlockers() to |
| zmedico | correctly strip multiple "!" characters when necessary. The |
| | code seemed to work fine anyway so this is more a |
| | correctness fix than a bug fix. |
| 11576 | Another correctness fix in |
| zmedico | BlockerDB.findInstalledBlockers(). |
svn path=/main/branches/prefix/; revision=11578
Fabian Groffen [Sun, 28 Sep 2008 10:54:48 +0000 (10:54 -0000)]
Crude hack to solve
rmdir .../var/tmp/binpkgs/cat/pkg-ver: Invalid argument
and alike for var/tmp/portage/... on Solaris.
rmtree(2) returns EINVAL on Solaris if the argument (the dir to remove)
is the current directory, or the argument ends with '.'. Since we cd to
PORTAGE_BUILDDIR we indeed cannot remove it anymore on Solaris. Hence,
we now try to go to the parent of this dir, but ultimately a better
solution should be found.
svn path=/main/branches/prefix/; revision=11577
Fabian Groffen [Sat, 27 Sep 2008 16:14:37 +0000 (16:14 -0000)]
Merged from trunk -r11544:11564
| 11545 | Use echo -e when splitting lines in e* functions, for |
| zmedico | compatibility with previous behavior wrt \e escape codes |
| | such as `elog "\e[31m***\e[0m"` for example. Thanks to |
| | Arfrever for finding this solution. |
| 11546 | Fix message: s/One or packages/One or more packages/. Thanks |
| zmedico | to Marijn Schouten <hkBst@g.o> for reporting. |
| 11547 | Ensure that cache modules always return a dict containing |
| zmedico | the _eclasses_ key. |
| 11548 | Fix mirror_cache() so it won't silently swallow a KeyError |
| zmedico | if _mtime_ or _eclass_ happens to be missing from the cache |
| | data for some reason. |
| 11549 | Add PROPERTIES to portage.auxdbkeys since it's been approved |
| zmedico | by the council. |
| 11550 | Bump to EAPI 2. |
| zmedico | |
| 11551 | Rename the EAPI 2 docs and to indicate that they are no |
| zmedico | longer a draft, and remove the EAPI 2_pre* docs. |
| 11552 | Make flat_hash write keys in alphabetical order. |
| zmedico | |
| 11553 | Fix a potential IndexError inside display_preserved_libs(). |
| zmedico | |
| 11554 | Direct EOutput.eerror() and ewarn() output to stderr. |
| zmedico | |
| 11555 | Handle possible CacheError inside mirror_cache(). |
| zmedico | |
| 11556 | Add back code removed in r11553 and fix logic to avoid |
| zmedico | IndexError. |
| 11558 | Bug #238766 - Revert the fetch() mirror:// behavior change |
| zmedico | from r11537 since it wasn't actually needed to comply with |
| | PMS 9.2.8, and the change actuall caused incorrect mirror |
| | fetching behavior. |
| 11560 | Update hardcoded auxdbkey_order attributes to include |
| zmedico | PROPERTIES. |
| 11561 | Add PROPERTIES to all of the metadata caches. |
| zmedico | |
| 11562 | Add PROPERTIES to the list of USE evaluated keys for the |
| zmedico | Packages index. |
| 11563 | Make $PWD default to $PORTAGE_BUILDDIR since $WORKDIR is |
| zmedico | sometimes created later. |
| 11564 | In the --depclean docs, there's no need to advise the user |
| zmedico | to use --oneshot when updating @system @world since @system |
| | now has world-candidate set to False by default. |
svn path=/main/branches/prefix/; revision=11572
Fabian Groffen [Sat, 27 Sep 2008 16:08:34 +0000 (16:08 -0000)]
Merged from trunk -r11531:11544
| 11533 | don't attempt to unmerge a set that doesn't exist anymore |
| genone | |
| 11534 | remove deprecation warnings and compat code for 2.1 changes |
| genone | to rsync and action argument syntax |
| 11535 | Bug #230975 - Rename the portage.selinux module to |
| zmedico | portage._selinux in order to avoid a relative import issue |
| | which caused portage.selinux to attempt to import itself |
| | instead of the real 'selinux' module. Thanks to Michael |
| | Edenfield for this patch. |
| 11536 | Import cPickle as pickle instead of vice versa. Eases 2to3's |
| zmedico | job because cPickle won't exist in py3k and 2to3 does |
| | s/cPickle/pickle. Thanks to Ali Polatel <hawking@g.o> for |
| | this patch. |
| 11537 | Fix fetch() mirror:// handling in to comply with section |
| zmedico | 9.2.8 of PMS. |
| 11538 | Bug #238550 - Set world-candidate = False for the @system |
| zmedico | since the portage ebuild will now automatically add @system |
| | to world_sets on upgrade and therefore it should no longer |
| | be necessary to add it world_sets via the command line. |
| 11539 | Fix the case where all arguments are filtered out by |
| zmedico | PORTAGE_COMPRESS_EXCLUDE_SUFFIXES, since otherwise 'set' was |
| | called with no arguments which caused the environment to be |
| | displayed on stdout. |
| 11540 | Add a new AgeSet class to select installed packages that |
| genone | have been installed more/less than n days ago |
| 11541 | relocate the post_emerge call so it gets called in more |
| genone | situations. |
| 11542 | move set expansion code into its own function |
| genone | |
| 11543 | implement simple expression logic for apckage sets to |
| genone | generate unions, intersections and differences of two or |
| | more package sets |
| 11544 | change set expression syntax: operators now have a @ suffix |
| genone | (IOW: all operands must be prefixed with @) to maintain |
| | compability with existing set names containing hyphens |
svn path=/main/branches/prefix/; revision=11571
Fabian Groffen [Sat, 27 Sep 2008 16:03:31 +0000 (16:03 -0000)]
Merged from trunk -r11515:11531
| 11516 | Fix typo in from previous commit. |
| zmedico | |
| 11517 | Implement the new EAPI 2 blocker behavior, including !!atom |
| zmedico | sytax which forbids temporary simultaneous installation of |
| | conflicting packages. |
| 11518 | Document the --debug option. Thanks to Jeremy Olexa |
| zmedico | <darkside@g.o> suggesting. |
| 11519 | Define __all__ and clean up unused imports found by |
| zmedico | pyflakes. |
| 11520 | Bug #238157 - Update http_proxy/ftp_proxy docs to show |
| zmedico | protocol://, for compat with rubygems. |
| 11521 | Document the --ignore-default-opts and --skip-manifest |
| zmedico | options. |
| 11522 | Implement SRC_URI arrows for EAPI 2. The |
| zmedico | portdbapi.getfetchlist() method is now deprecated and there |
| | is a new getFetchMap() method that returns a dict which maps |
| | each file name to a set of alternative URIs. The |
| | portage.fetch() function uses introspection to detect when |
| | such a dict is passed in and handles it appropriately, while |
| | maintaining backward compatibility if a list of uris is |
| | passed in. |
| 11523 | Add a "EAPI 2_pre3" section to show what's changed. |
| zmedico | |
| 11524 | Add test cases for SRC_URI validation. |
| zmedico | |
| 11525 | Fix some broken logic inside portdbapi.getFetchMap(). |
| zmedico | |
| 11526 | More SRC_URI validation. |
| zmedico | |
| 11527 | As requested by jmbsvicetto, add support to StaticFileSet |
| zmedico | for sets within subdirectories. This makes it possible to |
| | create a set name foo/bar by placing a file named bar inside |
| | a directory named foo. By allowing sets to be organized in |
| | subdirectories, it will allow us to avoid overcrowding as |
| | the number of sets grows. |
| 11528 | Fix erroneous variable references in the multiset |
| zmedico | 'Redefinition of set' message. |
| 11529 | Bug #238251 - Use 'read' instead of $IFS for splitting |
| zmedico | newlines in e* functions, since using $IFS causes spurious |
| | newlines to be inserted in the message when the e* function |
| | is called with more than one argument. |
| 11530 | Always call `cd "$WORKDIR"` to ensure that $CWD is sane |
| zmedico | whenever possible. |
| 11531 | Add a new --list-sets action, as requested by jmbsvicetto. |
| zmedico | |
svn path=/main/branches/prefix/; revision=11570
Fabian Groffen [Sat, 27 Sep 2008 16:00:06 +0000 (16:00 -0000)]
Fix up location after r11508
svn path=/main/branches/prefix/; revision=11569
Fabian Groffen [Sat, 27 Sep 2008 15:53:48 +0000 (15:53 -0000)]
Merged from trunk -r11505:11515
| 11506 | Document FEATURES=preserve-libs. |
| zmedico | |
| 11508 | Move the world file update code out of update_config_files() |
| zmedico | since it should not be relative to PORTAGE_CONFIGROOT. |
| | Thanks to grobian for reporting. |
| 11509 | Define __all__ and remove unused imports found by pyflakes. |
| zmedico | |
| 11510 | Bug #237526 - Use portage.util.grablines() for exception |
| zmedico | handling when reading the unread file. |
| 11511 | Fix PYTHONPATH adjustments to only insert a colon when |
| zmedico | necessary. This is necessary since having a stray colon |
| | causes python to interpret the empty path entry as "." which |
| | triggers the following message if cwd happens to contain a |
| | directory names "os": warning: Not importing directory 'os': |
| | missing __init__.py Thanks to Joe Peterson <lavajoe@g.o> for |
| | reporting. |
| 11512 | Remove unneeded quotes from PYTHONPATH assignments and also |
| zmedico | fix one more potential redundant colon inside |
| | misc-functions.sh. |
| 11513 | Improve error messages for issues with the SYNC variable |
| zmedico | inside action_sync(). |
| 11514 | Fix broken reference to self.files inside |
| zmedico | SpawnProcess._start(). |
| 11515 | Remove everything related to the eapi* default phase |
| zmedico | functions since they are not included in the current EAPI 2 |
| | draft. |
svn path=/main/branches/prefix/; revision=11568
Fabian Groffen [Sat, 27 Sep 2008 15:38:53 +0000 (15:38 -0000)]
stupid typo
svn path=/main/branches/prefix/; revision=11567
Fabian Groffen [Sat, 27 Sep 2008 15:37:27 +0000 (15:37 -0000)]
Missed an essential increment
svn path=/main/branches/prefix/; revision=11566
Fabian Groffen [Sat, 27 Sep 2008 14:52:10 +0000 (14:52 -0000)]
Now we have scanmacho, we can eventually do some fast examination of libraries and get all info at once that we need. Get rid of otool, and now also store the arch of objects (enabling theoretical support for FAT objects), hence bump to NEEDED.MACHO.3
svn path=/main/branches/prefix/; revision=11565
Fabian Groffen [Thu, 11 Sep 2008 17:47:56 +0000 (17:47 -0000)]
Fix usages of WORLD_FILE (seems to be a mixup of config_root and target_root, of which the latter caused problems as observed by darkside in bug #237323
svn path=/main/branches/prefix/; revision=11505
Fabian Groffen [Thu, 11 Sep 2008 17:32:16 +0000 (17:32 -0000)]
Merged from trunk -r11499:11503
|11500 |New debugedit support for FEATURES=splitdebug, by Sven Wegener: This |
|zmedico|will create new-style buildid symlinks for the splitted debuginfo and|
| |also a symlink to the binary that belongs to the debuginfo. Requires |
| |debugedit from rpm 5. Old versions of debugedit ignore all unkown |
| |command line arguments, so this is a no-op for them. Information: |
| |http://fedoraproject.org/wiki/Releases/FeatureBuildId New debugedit |
| |tarball: |
| |http://dev.gentoo.org/~swegener/distfiles/debugedit-5.0.0.tar.bz2 |
|11501 |Remove docs for the proposed unpack() gitweb snapshot extension since|
|zmedico|it's unpopular. |
|11502 |Remove docs for the proposed eapi* default phase functions since they|
|zmedico|are unpopular. |
|11503 |Adjust chunk.section.depth and generate.section.toc.level so that the|
|zmedico|EAPI 2 draft docs appear on a single page which includes it's own |
| |table of contents. |
svn path=/main/branches/prefix/; revision=11504
Fabian Groffen [Wed, 10 Sep 2008 08:33:53 +0000 (08:33 -0000)]
Merged from trunk -r11496:11498
| 11497 | In the ignored LDFLAGS check, filter out anything under |
| zmedico | /usr/lib/debug/ in order to avoid duplicate warnings for |
| | splitdebug files. Thanks to Cardoe for the suggestion. |
| 11498 | Don't mention log files in $T for eqawarn messages since the |
| zmedico | logs are likely to get removed and the user can just use the |
| | log from elog anyway. Thanks to Jeremy Olexa <darkside@g.o> |
| | for the suggestion. |
svn path=/main/branches/prefix/; revision=11499
Fabian Groffen [Fri, 5 Sep 2008 18:36:35 +0000 (18:36 -0000)]
Merged from trunk -r11484:11495
| 11485 | Bug #222091 - Filter out any instances of the \1 character |
| zmedico | from variable values since this character multiplies each |
| | time that the environment is saved (strange bash behavior). |
| | This can eventually result in mysterious 'Argument list too |
| | long' errors from programs that have huge strings of \1 |
| | characters in their environment. |
| 11486 | Adjust StaticFileSet._validate() to allow set tokens, so |
| zmedico | that sets can contain other sets. |
| 11487 | Add a new "EAPI 2 Draft" section which unifies the content |
| zmedico | of the EAPI 2_pre* sections. |
| 11488 | Adjust toc.section.depth in the stylesheet so that deeper |
| zmedico | sections appear in the table of contents. |
| 11489 | Nest the EAPI 2 "USE Dependencies" section inside a |
| zmedico | "Dependencies" section. |
| 11490 | Document EAPI 2 blocker atom extensions (not yet |
| zmedico | implemented). |
| 11491 | s/blocking/conflicting/ for consistency |
| zmedico | |
| 11492 | Nest the EAPI 2 "Dependencies" section inside a "Metadata" |
| zmedico | section. |
| 11493 | Add EAPI 2 documentation for customization of output file |
| zmedico | names in SRC_URI (bug #177863). |
| 11494 | Document EAPI 2 support in the unpack helper function for |
| zmedico | gitweb snapshots. A patch implementing this feature has been |
| | submitted by Daniel Robbins. |
| 11495 | Split the doman language code documentation into it's own |
| zmedico | section. |
svn path=/main/branches/prefix/; revision=11496
Fabian Groffen [Mon, 1 Sep 2008 18:48:49 +0000 (18:48 -0000)]
Merged from trunk -r11477:11483
| 11478 | In dep_zapdeps(), add a new choice category for choices that |
| zmedico | have packages that aren't yet installed but have been added |
| | to the graph. This category is given lower priority that the |
| | category for packages that are already installed. This helps |
| | dep_zapdeps() avoid making choices in some cases that would |
| | result in an unsolvable circular dependency. Thanks to Diego |
| | "Flameeyes" Pettenò for reporting a circular dependency |
| | issue involving that java overlay which is solved by this |
| | patch. The particular issue was triggered when attempting to |
| | install dev-java/icedtea6 for the first time. A circular |
| | dependency between dev-java/eclipse-ecj-3.2.2-r1 and |
| | dev-java/icedtea6-1.2 occured since icedtea6 was chosen to |
| | satisfy the jdk dependency of eclipse-ecj, even though |
| | sun-jdk-1.6.0.07 was already installed and capable of |
| | satisfying the dependency. This patch solves the issue by |
| | causing sun-jdk to be properly selected to satisfy the jdk |
| | dependency of eclipse-ecj. |
| 11479 | Add support for FEATURES="protect-owned" which is identical |
| zmedico | to the collision-protect feature except that files may be |
| | overwritten if they are not explicitly listed in the |
| | contents of a currently installed package. This is |
| | particularly useful on systems that have lots of orphan |
| | files that have been left behind by older versions of |
| | portage that did not support the unmerge-orphans feature. |
| | The additional tolerance makes this feature more suitable |
| | than collision-protect for being enabled by default. In |
| | order to ensure smooth operation of protect-owned in all |
| | cases, we also have to set COLLISION_IGNORE="/lib/modules" |
| | since files inside this directory are never unmerge. By |
| | enabling protect-owned by default, users are protected from |
| | problems that may occur due interactions with file |
| | collisions and the unmerge-orphans feature which is also |
| | enabled by default. |
| 11480 | Add a warning for emake -j1 calls which disable |
| zmedico | parallelization. Thanks to Diego "Flameeyes" Pettenò for |
| | the suggestion. |
| 11481 | Check for calls to the deprecated bindnow-flags function. |
| zmedico | Thanks to Diego "Flameeyes" Pettenò for the suggestion. |
| 11482 | Adjust EMakeParallelDisabled.re to require at least one |
| zmedico | space after emake. |
| 11483 | Update PORTAGE_RSYNC_OPTS docs to reflect that |
| zmedico | --delete-after is no longer used by default. |
svn path=/main/branches/prefix/; revision=11484
Fabian Groffen [Wed, 27 Aug 2008 18:00:00 +0000 (18:00 -0000)]
Merged from trunk -r11472:11475
| 11473 | Fix _ObjectKey.__eq__() to account for potential hash |
| zmedico | collisions that would break dict behavior. Thanks to Lucian |
| | Poston for spotting this. |
| 11474 | Revert recent changes to _ObjectKey.__eq__() since it's |
| zmedico | probably a bug if the wrong type is compared for equality |
| | anyway. |
| 11475 | When reloading the emerge config due to global updates in |
| zmedico | action_sync(), correctly update the local root_config |
| | reference. This should fix a KeyError: 'porttree' exception |
| | that's been reported to be triggered after --sync. |
svn path=/main/branches/prefix/; revision=11477
Fabian Groffen [Wed, 27 Aug 2008 17:52:07 +0000 (17:52 -0000)]
Fix another merge/sync error as noted by Derek Harland in bug #235858
svn path=/main/branches/prefix/; revision=11476
Fabian Groffen [Sun, 24 Aug 2008 19:50:47 +0000 (19:50 -0000)]
Merged from trunk -r11469:11470
| 11470 | Prevent [None] in repo display. Thanks to grobian. |
| zmedico | |
svn path=/main/branches/prefix/; revision=11472
Fabian Groffen [Sun, 24 Aug 2008 19:40:45 +0000 (19:40 -0000)]
seems I forgot to remove this line in the quote quote merge from LinkageMap to LinkageMapMachO
svn path=/main/branches/prefix/; revision=11471
Fabian Groffen [Sun, 24 Aug 2008 17:47:09 +0000 (17:47 -0000)]
Apply the same string fix to the LinkageMapMachO... this situation starts to become very unhealthy
svn path=/main/branches/prefix/; revision=11469
Fabian Groffen [Sun, 24 Aug 2008 17:39:14 +0000 (17:39 -0000)]
Merged from trunk 11465:11467
| 11466 | Avoid possible AttributeError raised from |
| zmedico | _ObjectKey.__eq__(). |
| 11467 | * Fix broken _ObjectKey.__eq__() logic from previous commit. |
| zmedico | * Define _ObjectKey.__slots__ to save memory. |
svn path=/main/branches/prefix/; revision=11468
Fabian Groffen [Sun, 24 Aug 2008 15:34:33 +0000 (15:34 -0000)]
sets need add, not append
svn path=/main/branches/prefix/; revision=11465
Fabian Groffen [Sun, 24 Aug 2008 15:16:43 +0000 (15:16 -0000)]
Merged from trunk -r11446:11448
|11447 |Optimize LinkageMap to use tuples of device and inode numbers from stat calls, instead of paths from |
|zmedico|realpath, as unique keys for identification of files. This is the same approach used by |
| |dblink.isowner() for cases in which path comparison fails due to symlinks. Thanks to Lucian Poston |
| |<lucianposton@gmail.com> for submitting this patch (along with the missing-rebuild package set which |
| |I haven't merged yet). These patches are hosted in the following location: |
| |http://repo.or.cz/w/revdep-rebuild-reimplementation.git?a=tree;h=refs/heads/rc3;hb=refs/heads/rc3 |
|11448 |Update comment, from Lucian Poston's git repo. |
|zmedico| |
Merged from trunk -r11454:11455
| 11455 | More LinkageMap enhancments from Lucian Poston: * Added |
| zmedico | _ObjectKey helper class to LinkageMap. (commit |
| |
eac5528887656abec65fc3a825506187397482e4) * Minor change to |
| | docstrings. (commit |
| |
adde422145d81f25b4024eac1e78b80e1b4a4531) |
Ported above commits to the LinkageMapMachO
svn path=/main/branches/prefix/; revision=11464
Fabian Groffen [Sun, 24 Aug 2008 13:26:44 +0000 (13:26 -0000)]
Merged from trunk -r11455:11460
| 11456 | Add a new filter_protected command which is similar to |
| zmedico | is_protected but works by reading filenames from stdin and |
| | writing to stdout only the filenames that are protected. |
| | This allows an unlimited number of files to be checked via a |
| | single portageq call. |
| 11457 | Flush stdout after the loop inside filter_protected() |
| zmedico | completes. |
| 11458 | Fix the loop in filter_protected() to continue when |
| zmedico | necessary due to an error. |
| 11459 | Fix spelling typos in error messages. |
| zmedico | |
| 11460 | Fix grammar. Thanks to ABCD. |
| zmedico | |
svn path=/main/branches/prefix/; revision=11463
Fabian Groffen [Sun, 24 Aug 2008 13:21:34 +0000 (13:21 -0000)]
Merged from trunk -r11445:11446
| 11446 | Fix typo in "directory" spelling. Thanks to Ofer Wald in bug |
| zmedico | #219957. |
Merged from trunk -r11448:11454
| 11449 | For consistency, show [0] in the repo display instead of |
| zmedico | suppressing it. Now the repo display and [0] will only be |
| | suppressed when [0] is all that would show for every |
| | package. Thanks to Joe Peterson <lavajoe@g.o> for the |
| | suggestion. |
| 11450 | Use shlex.split() to split CONFIG_PROTECT and |
| zmedico | CONFIG_PROTECT_MASK. |
| 11451 | Update ROOT docs wrt make.conf since it can now be set there |
| zmedico | regardless of PORTAGE_CONFIGROOT setting. |
| 11452 | Fix isprotected() call in dblink._collision_protect() to |
| zmedico | properly account for $ROOT. |
| 11453 | Add a new is_protected command which queries whether or not |
| zmedico | CONFIG_PROTECT applies to a given file, using logic |
| | identical to the merge code. |
| 11454 | Add a new src_prepare phase function which is called |
| zmedico | in-between src_unpack and src_configure (and bump EAPI to |
| | 2_pre3). Thanks to Ciaran McCreesh for the suggestion. |
svn path=/main/branches/prefix/; revision=11462
Fabian Groffen [Sun, 24 Aug 2008 13:14:29 +0000 (13:14 -0000)]
insert a dummy entry when otool isn't available
svn path=/main/branches/prefix/; revision=11461
Fabian Groffen [Wed, 20 Aug 2008 20:52:00 +0000 (20:52 -0000)]
Merged from trunk 11422:11443
| 11423 | Document /var/lib/portage/world_sets. |
| zmedico | |
| 11432 | Fix atom -> str breakage in StaticFileSet.write(). |
| zmedico | |
| 11433 | Don't assume that the "world" set is an instance of |
| zmedico | WorldSet, allowing the user to substitute some other set |
| | type if desired. |
| 11434 | * Truncate status display output when necessary to avoid |
| zmedico | line overflow and unwanted terminal scroll. * When the load |
| | average goes above 10, save space by showing fewer decimal |
| | places in the output. |
| 11435 | Update for @everything -> @installed rename. Thanks to |
| zmedico | Arfrever. |
| 11436 | The following error is known to occur with Linux kernel |
| zmedico | versions less than 2.6.24: select.error: (4, 'Interrupted |
| | system call') This error has been observed after a SIGSTOP, |
| | followed by SIGCONT. Treat it similar to EAGAIN if timeout |
| | is None, otherwise just return without any events. Thanks to |
| | Jeremy Olexa <darkside@g.o> for reporting and testing this |
| | patch. |
| 11437 | Remove reference to use.default. Thanks to ulm for |
| zmedico | reporting. |
| 11438 | Add an 'IUSE defaults' section. |
| zmedico | |
| 11439 | When in background mode, redirect "adjusting permissions" |
| zmedico | messages for features directories like CCACHE_DIR and |
| | DISTCC_DIR. Thanks to Arfrever for reporting. |
| 11440 | Make sure EBUILD_PHASE is properly unset when calling |
| zmedico | misc-functions.sh. |
| 11441 | Make dblink call back to the scheduler for "clean" and |
| zmedico | "cleanrm" phases, to handle output redirection. Thanks to |
| | Arfrever for reporting. |
| 11442 | Fix dep_wordreduce() so that it doesn't cancel out blocker |
| zmedico | atoms that happen to be matched by package.provided. |
| 11443 | Fix spelling of overriding for bug #235250. |
| zmedico | |
svn path=/main/branches/prefix/; revision=11445
Fabian Groffen [Wed, 20 Aug 2008 20:48:37 +0000 (20:48 -0000)]
try not to crash when otool isn't there, as that can happen
svn path=/main/branches/prefix/; revision=11444
Fabian Groffen [Sat, 16 Aug 2008 09:43:46 +0000 (09:43 -0000)]
Apparently my alphabet is a bit different, avoid needless diffs
svn path=/main/branches/prefix/; revision=11422
Fabian Groffen [Sat, 16 Aug 2008 09:41:32 +0000 (09:41 -0000)]
Make IUSE.invalid a warning only, as in Prefix we'll keep on having this as any modifications to metadata.xml will be wiped out on the next sync.
svn path=/main/branches/prefix/; revision=11421
Fabian Groffen [Sat, 16 Aug 2008 08:14:06 +0000 (08:14 -0000)]
Merged from trunk 11409:11419
| 11410 | Convert exceptions from parse_metadata_use() into |
| zmedico | "metadata.bad" errors instead of exiting. |
| 11411 | When a build fails, generate a status message showing which |
| zmedico | package failed and the path of the relevant log file if |
| | available. Thanks to _neuron_ for the suggestion. Here is |
| | some sample output: >>> Emerging (1 of 1) foo-bar/baz-1.0 |
| | >>> Failed to emerge foo-bar/baz-1.0, Log file: >>> |
| | '/var/log/portage/foo-bar:baz-1.0:
20080814-202327.log' |
| 11412 | * Replace vartree.dep_match() call with normal dbapi.match() |
| zmedico | call. * Don't silently swallow unexpected KeyError |
| | exceptions from dbapi.match() inside unmerge(). |
| 11413 | In order to avoid an unhandled InvalidAtom exception, |
| zmedico | validate atoms from command line arguments before passing |
| | them to unmerge(). Thanks to Cardoe for reporting. |
| 11414 | Validate atoms from command line args before calling |
| zmedico | action_depclean(). |
| 11415 | Pass atom instances into action_depclean() instead of the |
| zmedico | plain strings. |
| 11416 | For py3k compatibility, replace map() call with a normal for |
| zmedico | loop. Thanks to Ali Polatel <hawking@g.o>. |
| 11417 | Use a list comprehension instead of strange map() usage |
| zmedico | which yields odd results when fed to the py3k converter. |
| | Thanks to René 'Necoro' Neumann. |
| 11418 | For consistency, make get_open_fds() return a plain iterator |
| zmedico | in any case, rather than return a list in some cases. |
| 11419 | Bug #172496 - Add a PORTAGE_COMPRESS_EXCLUDE_SUFFIXES config |
| zmedico | variable which is used to filter ecompress arguments. This |
| | allows the user to control compression of files installed |
| | dodoc, excluding files with specific suffix patterns. The |
| | current default value includes all of the suffixes that are |
| | recognized by dohtml, as well as pdf. |
svn path=/main/branches/prefix/; revision=11420
Fabian Groffen [Thu, 14 Aug 2008 19:25:26 +0000 (19:25 -0000)]
Merged from trunk 11399:11408
| 11400 | Disable "waiting for lock" messages when in background mode. |
| zmedico | Thanks to Thargor for reporting. |
| 11401 | Bug #234478 - Fix config._getMissingLicenses() to only |
| zmedico | access USE when LICENSE is conditional since otherwise USE |
| | hasn't necessarily been calculated. |
| 11402 | Create a single EAPI section to contain all of the EAPI |
| zmedico | subsections and replace sect[1-3] elements with "section" |
| | elements which have unbounded depth. |
| 11404 | Fix quoting for iteration over PROFILE_PATHS. |
| zmedico | |
| 11405 | Make Scheduler._choose_pkg() parallelize more aggressively |
| zmedico | in cases when it will not result in a less optimal build |
| | order. This works by modifying the behavior of |
| | Scheduler._dependent_on_scheduled_merges() so that two cases |
| | of dependence are ignored: * A given dependency will be |
| | merged later anyway (due to dep cycles) and therefore |
| | delaying the merge of the parent package will not result in |
| | a more optimal build order. * A given dependency is an |
| | "uninstall" operation and it also is not a direct |
| | dependency, therefore it should be irrelevant to build order |
| | optimization. |
| 11406 | The fpformat module is deprecated and will be removed in |
| zmedico | py3k. The % string interpolation operator should be used |
| | instead. Thanks to Ali Polatel <hawking@g.o> for this patch. |
| 11407 | * Fix parse_metadata_use() to raise ParseError instead of |
| zmedico | the ExpatError that was reported by grobian. * Define |
| | __all__. |
svn path=/main/branches/prefix/; revision=11409
Fabian Groffen [Thu, 14 Aug 2008 19:16:02 +0000 (19:16 -0000)]
Merged from trunk 11391:11399
| 11392 | Remove unnecessary dict.keys() call. |
| zmedico | |
| 11393 | When testing userpriv write access in $DISTDIR, redirect the |
| zmedico | 'permission denied' error message to /dev/null. |
| 11394 | For pkg_config and pkg_info, add respective "config" and |
| zmedico | "info" values to EBUILD_PHASES. |
| 11395 | Increase Scheduler._job_delay_max to 10 seconds. |
| zmedico | |
| 11397 | In source_all_bashrcs(), only change $IFS while splitting |
| zmedico | $PROFILE_PATHS into 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. |
| 11398 | Entirely disable the src_configure phase from the python |
| zmedico | side for EAPI values 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. |
| 11399 | Fix ebuild(1) so that src_configure is only called for EAPIs |
| zmedico | for which it is supported. |
svn path=/main/branches/prefix/; revision=11408
Fabian Groffen [Sun, 10 Aug 2008 09:55:20 +0000 (09:55 -0000)]
check the same as what we will pass on
svn path=/main/branches/prefix/; revision=11391
Fabian Groffen [Sun, 10 Aug 2008 09:37:51 +0000 (09:37 -0000)]
Merged from trunk -r11372:11387
| 11373 | Bug #234157 - Remove BUILD_PREFIX from the docs since it's |
| zmedico | not a user config variable. |
| 11374 | Bug #234100 - Update date and portage version in man page |
| zmedico | headers. |
| 11375 | * Use shlex.split() for splitting COLLISION_IGNORE. * Define |
| zmedico | __all__. |
| 11376 | Add write_contents() and tar_contents() functions to |
| zmedico | __all__. |
| 11377 | Fix dyn_clean() to properly clean |
| zmedico | $PORTAGE_BUILDDIR/.configured. |
| 11378 | Make the scheduler's job delay ramp up faster by increasing |
| zmedico | the factor to 1.0 and adding an exponent of 1.5. |
| 11379 | Eliminate duplicate code by making _eapi1_src_compile() call |
| zmedico | _eapi2_src_configure(). |
| 11380 | Remove pointless `cd` calls in dyn_configure() and |
| zmedico | dyn_compile(). |
| 11381 | Remove INHERITED from the vardbapi aux_get cache since it's |
| zmedico | not really that useful (@live-rebuild currently pulls |
| | INHERITED from the highest visible ebuild). Also adjust keys |
| | used to pull metadata for Package instances, so that |
| | INHERITED won't get pulled from the vardbapi anymore. |
| 11382 | Fix typo. |
| zmedico | |
| 11383 | Add new sections for EAPI 0 and 1 (currently empty). |
| zmedico | |
| 11384 | Document the differences between EAPIs 0 and 1. |
| zmedico | |
| 11385 | Add sample code for the new src_configure and src_compile |
| zmedico | phase functions. |
| 11386 | Remove most references to Package.metadata_keys and replace |
| zmedico | them with approriate keys for the given package type. |
| 11387 | Move the default EAPI definition where it will work in any |
| zmedico | case it might be necessary, such as after loading an exising |
| | environment. |
svn path=/main/branches/prefix/; revision=11390
Fabian Groffen [Sun, 10 Aug 2008 09:33:08 +0000 (09:33 -0000)]
Merged from trunk -r11371:11372
| 11372 | Don't use "dir" for a variable name since it's also a |
| zmedico | builtin. |
svn path=/main/branches/prefix/; revision=11389
Fabian Groffen [Sun, 10 Aug 2008 09:27:21 +0000 (09:27 -0000)]
terminate quotes :/
svn path=/main/branches/prefix/; revision=11388
Fabian Groffen [Sat, 9 Aug 2008 12:09:02 +0000 (12:09 -0000)]
typo, thanks tabnanny
svn path=/main/branches/prefix/; revision=11371
Fabian Groffen [Sat, 9 Aug 2008 12:06:51 +0000 (12:06 -0000)]
implement Mach-O variants for listBrokenBinaries and listProviders
svn path=/main/branches/prefix/; revision=11370
Fabian Groffen [Sat, 9 Aug 2008 10:46:12 +0000 (10:46 -0000)]
Merged from trunk 11354:11357
| 11355 | In LinkageMap.rebuild(), filter empty strings that may be |
| zmedico | returned from split calls when processing the "needed" and |
| | "path" entries. Thanks to Lucian Poston for reporting. |
| 11356 | Fix broken reference to os.path.realpath() inside |
| zmedico | LinkageMap.getSoname(). |
| 11357 | Add new LinkageMap.listBrokenBinaries() and listProviders() |
| zmedico | methods. Thanks to Lucian Poston <lucianposton@gmail.com> |
| | for submitting this patch along with the missing-rebuild |
| | package set posted on the gentoo-portage-dev mailing list. |
svn path=/main/branches/prefix/; revision=11369
Fabian Groffen [Sat, 9 Aug 2008 10:44:29 +0000 (10:44 -0000)]
Merged from trunk 11362:11366
| 11363 | Update date in dyn_help copyright header. Thanks to grobian. |
| zmedico | |
| 11364 | Escape use flags before compiling regular expressions from |
| zmedico | them. Thanks to pchrist for reporting. |
| 11365 | Make eapi*_src_install die since they're not supported. |
| zmedico | |
| 11366 | Add a reference to the default sets.conf location. Thanks to |
| zmedico | dberkholz for the suggestion. |
svn path=/main/branches/prefix/; revision=11368
Fabian Groffen [Sat, 9 Aug 2008 10:42:15 +0000 (10:42 -0000)]
An attempt to get Prefix working with EAPI 2.
svn path=/main/branches/prefix/; revision=11367
Fabian Groffen [Sat, 9 Aug 2008 09:10:19 +0000 (09:10 -0000)]
Merged from trunk 11357:11360
| 11358 | Remove redundant default pkg_nofetch, src_unpack, and |
| zmedico | src_test definitions which are now handled inside |
| | _ebuild_phase_funcs(). |
| 11359 | Increase Scheduler._job_delay_factor from 0.5 to 0.75 so |
| zmedico | that the delay ramps up a little quicker, since the current |
| | value appears to be too weak in some cases. |
| 11360 | When calling dbaip.aux_get() inside |
| zmedico | depgraph._select_package(), only pull the keys that are |
| | cached. This avoids triggering useless cache pulls for |
| | INHERITED from the bindbapi. |
svn path=/main/branches/prefix/; revision=11362
Fabian Groffen [Sat, 9 Aug 2008 09:07:42 +0000 (09:07 -0000)]
Merged from trunk 11349:11354
| 11350 | Implement eapi$EAPI_* default phase functions that are |
| zmedico | equivalent to the 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. |
| 11351 | Rename the eapi2_pre2_* functions to just eapi2_* and |
| zmedico | document all the new eapi* functions. |
| 11352 | Fix default phase functions in EAPI 2_pre2, since they |
| zmedico | should be labeled as "2" instead of "2_pre2. Thanks to |
| | Arfrever for reporting. |
| 11353 | Add missing default_src_configure() function to table. |
| zmedico | Thanks to Arfrever. |
| 11354 | Fix broken quoting in eval statements. Thanks to Arfrever. |
| zmedico | |
svn path=/main/branches/prefix/; revision=11361
Fabian Groffen [Fri, 8 Aug 2008 11:20:35 +0000 (11:20 -0000)]
Merged from trunk 11334:11346
| 11335 | Fix breakage in elog function newline handling with causes |
| zmedico | blank/empty lines to get lost. |
| 11336 | Remove redundant 'local line' definition from previous |
| zmedico | commit. |
| 11337 | Fix `svn status` output parsing to account for "replaced" |
| zmedico | files indicated by "R". Thanks to Arfrever. |
| 11338 | Remove the "ebuild.disjointed" check because it's obsolete |
| zmedico | since we've switched to manifest2 only. Thanks to Arfrever |
| | for this patch. |
| 11339 | Replace call to `svn list` with a call to `svn status |
| zmedico | --depth=files --verbose` since the former contacts the |
| | server while the latter does not. Thanks to Arfrever for |
| | this patch. |
| 11340 | In order to conserve some space, make _setitem() skip |
| zmedico | writing keys for which the value is empty. |
| 11341 | Fix a bug in vardbapi.removeFromContents() which sometimes |
| zmedico | prevents the CONTENTS from being updated when it should. |
| 11342 | Add support in EAPI 2_pre2 for a function named "default" is |
| zmedico | redefined for each phase so that it will call the default_* |
| | function corresponding to the current phase. Thanks to |
| | Thomas Anderson for the initial patch. |
| 11343 | In order to properly preserve --jobs and --load-average |
| zmedico | settings for --resume operations, store resume options in |
| | the mtimedb as a dict instead of a list. The dict type is |
| | supported in >=portage-2.1.3_rc8 (2.1.4.4 is current stable) |
| | so people switching between stable/unstable will be fine. |
| 11344 | When testing containment of elem[:1] in "MR", filter |
| zmedico | potential empty string matches. |
| 11345 | Shorten the scheduler status display in the xterm title by |
| zmedico | removing all consecutive spaces. |
| 11346 | * Fix the default() implementation so that it maps the |
| zmedico | ebuild argument to 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/branches/prefix/; revision=11349
Fabian Groffen [Fri, 8 Aug 2008 10:40:13 +0000 (10:40 -0000)]
Avoid stupid message about missing AF_INET6 attribute on systems with completely no IPv6 support (such as Interix), guess it won't hurt to merge in trunk.
svn path=/main/branches/prefix/; revision=11347
Fabian Groffen [Tue, 5 Aug 2008 20:13:21 +0000 (20:13 -0000)]
Merged from trunk 11322:11332
| 11323 | Make dblink.unmerge() succeed even when ebuild phases are |
| zmedico | unsuccessful because the current behavior is even worse |
| | (results in orphan files). Thanks to Arfrever for this patch |
| | (UnsupportedAPIException hunk by me). |
| 11324 | Insert extra newline before status messages, since that's |
| zmedico | how it used to be. |
| 11325 | Make the status display say "Emerging" and "Emerging binary" |
| zmedico | instead of "Building" and "Extracting". Thanks to Joe |
| | Peterson for the suggestion (including extra newlines from |
| | previous commit). |
| 11326 | Remove code from bug #223447 which is now obsolete due to |
| zmedico | depclean using the depgraph class. |
| 11327 | Bug #233735 - Add support for src_configure and default_* |
| zmedico | functions with new EAPI=2_pre2. Thanks to Arfrever Frehtes |
| | Taifersar Arahesis for the initial patch which I've made a |
| | few adjustments to. |
| 11328 | Add some docs for EAPI 2_pre2. |
| zmedico | |
| 11329 | Remove the use.local.desc IUSE validation which is now |
| zmedico | replaced by glep56 metadata.xml validation. This was |
| | requested by Cardoe since he expects to complete the gleep56 |
| | conversion process pretty soon. |
| 11330 | Remove unused parse_use_local_desc() function. |
| zmedico | |
| 11331 | When there is no build log to display, it means that fetch |
| zmedico | failed, so display the fetch log in that case. |
| 11332 | Make doebuild() display manifest verification failures for |
| zmedico | each corrupt ebuild rather than just the first one. |
svn path=/main/branches/prefix/; revision=11334
Fabian Groffen [Tue, 5 Aug 2008 19:58:22 +0000 (19:58 -0000)]
Also install emerge-webrsync, like in normal Portage, also because it works, yay
svn path=/main/branches/prefix/; revision=11333
Fabian Groffen [Sun, 3 Aug 2008 19:17:54 +0000 (19:17 -0000)]
Merged from trunk 11302:11320
| 11303 | Bug #233487 - Fix --fetch-all-uri breakage: * Make |
| zmedico | --fetch-all-uri imply --fetchonly so that all the |
| | --fetchonly conditionals apply to --fetch-all-uri as well. * |
| | Add an EbuildFetcher.fetchall attribute, and also add the |
| | required support to portage.doebuild() for a "fetchall" |
| | phase that EbuildFetcher can invoke in the background via |
| | the ebuild(1) command. |
| 11304 | Bug #229033 - Use `svn propget -R svn:keywords` to detect |
| zmedico | which will have 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. |
| 11305 | Remove the list of FEATURES descriptions from |
| zmedico | make.conf.example and replace it with a reference to the |
| | make.conf(5) man page. |
| 11306 | Fix new rejects in cnf/make.conf.*.diff. |
| zmedico | |
| 11307 | Optimize `emaint` --fix binhost so that it the Packages file |
| zmedico | isn't re-read 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. |
| 11308 | Make InheritSet more like DowngradeSet, and check INHERITED |
| zmedico | from the highest visible ebuild in the portage tree rather |
| | than from the installed package itself. |
| 11309 | Bug #233252 - Handle InvalidAtom exceptions that can be |
| zmedico | raised from depgraph._add_dep() calls inside |
| | _add_pkg_deps(). |
| 11310 | Add DowngradeSet and OwnerSet to __all__. |
| zmedico | |
| 11311 | Update the Parallel Scheduling section to describe the |
| zmedico | current algorithm. |
| 11312 | Make EbuildFetcher pass a copy of os.environ to the |
| zmedico | ebuild(1) subprocess so that any incremental variables have |
| | been overridden are correctly considered by the config |
| | instance in the subproccess. |
| 11314 | Add debug support to PackagesSystemSet since robbat2 is |
| zmedico | reporting an empty set for some unknown reason. |
| 11315 | * Add INHERITED to vardbapi._aux_cache_keys since |
| zmedico | Package.metadata_keys also includes this one now. * Fix |
| | pull_me calculation inside vardbapi.aux_get() so that it |
| | correctly subtracts _mtime_ from the list of keys to pull. |
| 11316 | In the file collision elog message, only say 'NOT merged' |
| zmedico | when collision-protect is enabled. Thanks to dberkholz for |
| | reporting. |
| 11317 | Add a new RestrictSet which contains all packages that match |
| zmedico | specified RESTRICT values. This could be useful for |
| | implementing something like a @live-rebuild based on |
| | RESTRICT metadata, as suggested in bug #233589. |
| 11318 | Document the fact that use of @installed/EverythingSet makes |
| zmedico | it impossible for emerge to solve blockers by automatic |
| | uninstallation of blocked packages. |
| 11319 | Handle missing sets, to avoid KeyError raised from |
| zmedico | unmerge(). |
| 11320 | Add a more generic VariableSet to replace the InheritSet and |
| zmedico | RestrictSet classes. Thanks to Arfrever Frehtes Taifersar |
| | Arahesis for this patch from bug #233589 (with some minor |
| | adjustments from me). |
svn path=/main/branches/prefix/; revision=11322
Fabian Groffen [Sun, 3 Aug 2008 19:14:53 +0000 (19:14 -0000)]
revert my manifest recommit patch (bug #229033), such that I can cleanly merge zmedico's slightly adapted version
svn path=/main/branches/prefix/; revision=11321
Fabian Groffen [Thu, 31 Jul 2008 13:30:22 +0000 (13:30 -0000)]
Merged from trunk 11287:11300
| 11288 | Bug #233421 - Fix grammar, missing "be" in --update |
| zmedico | description. Thanks to Mikael Magnusson for this patch. |
| 11289 | Split out a _spawn_fetch() function that will be useful for |
| zmedico | implementing a userpriv testcase for bug #233303. |
| 11290 | Fixes in portage.fetch() for bugs #233303 and #94133: * |
| zmedico | Totally skip $DISTDIR creation if the fetch_to_ro feature is |
| | enabled. * Don't touch $DISTDIR permissions unless unless |
| | usepriv and/or userfetch are enabled. * When usepriv and/or |
| | userfetch are enabled, test whether or not a process that |
| | has dropped privileges is able to create a file in the |
| | directory, and only adjust permissions if the test fails. * |
| | Completely |
| 11291 | disable default IONICE command as it breaks for non-root, |
| genone | and ionice might not always be available |
| 11292 | Implement a new @live-ebuilds which is generated from |
| zmedico | installed packages that inherit from know live eclasses such |
| | as cvs, darcs, git, mercurial, and subversion. The list of |
| | eclasses is controlled by an "inherits" attribute that is |
| | configure in sets.conf for and instance of InheritSet. This |
| | set serves a purpose similar to the -scm ebuild suffix that |
| | has been proposed in GLEP 54. |
| 11293 | Add a new @module-rebuild set which emulates the behavior of |
| zmedico | the module-rebuild tool. The /lib/modules path is set in |
| | sets.conf via a "files" attribute of an OwnerSet instance. |
| | This can be easily used to define similar sets based on |
| | paths on installed files. |
| 11294 | Remove quotes since the seem to cause incorrect results. |
| zmedico | |
| 11295 | * Rename @live-ebuilds to @live-rebuild, for consistency |
| zmedico | with the other *-rebuild sets. * Document the new sets. |
| 11296 | Describe InheritSet and OwnerSet. |
| zmedico | |
| 11297 | Bug #233458 - Fix AsynchronousTask exit listener handling so |
| zmedico | that an exit listener will never get called after it's been |
| | passed into removeExitListener(), since the caller of |
| | removeExitListener() needs to be able to be able to trust |
| | that the given exit listener will not be called under any |
| | circumstances. |
| 11298 | Always invalidate results from |
| zmedico | _userpriv_test_write_file_cache when adjusting permissions |
| | on a given directory. |
| 11299 | Bug #233253 - Implement a @downgrade set which selects |
| zmedico | packages for which the highest visible ebuild version is |
| | lower than the currently installed version. This is useful |
| | if you have installed packages from an overlay and you want |
| | to downgrade to the highest visible after removing the |
| | overlay, even though the packages that will be dowgraded are |
| | not necessarily masked in any way. |
| 11300 | Fix DowngradeSet so it's safe for cases when no ebuild is |
| zmedico | available. |
svn path=/main/branches/prefix/; revision=11302
Fabian Groffen [Thu, 31 Jul 2008 13:26:41 +0000 (13:26 -0000)]
revert 1124{2,3}, trunk solved it by simply disabling IONICE by default, which works for me too.
svn path=/main/branches/prefix/; revision=11301
Fabian Groffen [Wed, 30 Jul 2008 13:58:43 +0000 (13:58 -0000)]
Merged from trunk 11267:11284
| 11268 | Add a quiet signal handler for SIGINT and SIGTERM since |
| zmedico | emerge calls ebuild for fetchs and we don't want the user to |
| | see a traceback due to the ebuild process getting killed. |
| 11269 | Disable auto_schedule on all of Scheduler._task_queues and |
| zmedico | schedule them inside _schedule_tasks(). This should help |
| | solve a tight loop. |
| 11270 | Fix the last part of Scheduler._main_loop() to work |
| zmedico | correctly now that all the queues have auto_schedule |
| | disabled. |
| 11271 | Avoid triggering a tight loop AssertionError in |
| zmedico | Scheduler._main_loop(). |
| 11272 | Fix _choose_pkg() to always return something if nothing is |
| zmedico | running or merging. |
| 11273 | Count state changes in Scheduler._schedule_tasks() and avoid |
| zmedico | some extra calls when nothing changes. |
| 11274 | Change conditional USE deps syntax and expermental EAPI from |
| zmedico | 2_pre0 to 2_pre1. Conditional syntax examples: Compact Form |
| | Equivalent Expanded Form foo[bar?] bar? ( foo[bar] ) !bar? ( |
| | foo ) foo[!bar?] bar? ( foo ) !bar? ( foo[-bar] ) foo[bar=] |
| | bar? ( foo[bar] ) !bar? ( foo[-bar] ) foo[!bar=] bar? ( |
| | foo[-bar] ) !bar? ( foo[bar] ) |
| 11275 | * Optimize SequentialTaskQueue.schedule() by using a _dirty |
| zmedico | attribute to track whether anything relevant has changed |
| | since the last schedule call. Since we can always rely on |
| | exist listeners being called, set of running tasks is always |
| | pruned automatically and there is never any need to actively |
| | prune it. * Remove the unused |
| | SequentialTaskQueue.auto_schedule feature. |
| 11276 | Just return a boolean "state changed" value from |
| zmedico | Scheduler._schedule_tasks_imp(), since the other "remaining" |
| | part is now unused. |
| 11277 | Put a 5 second cap on the delay produced by |
| zmedico | Scheduler._job_delay(). |
| 11278 | When checking for news items in --pretend mode, pass |
| zmedico | update=False into the NewsManager.getUnreadItems() call. |
| | Emerge shouldn't have to update anything anyway when in |
| | --pretend mode, and this helps to avoid potential permission |
| | problems. In order to pass the relevant information about |
| | options (--pretend state) to the new code, supporting |
| | function parameters have been added to |
| | display_news_notification(), post_emerge(), and |
| | checkUpdatedNewsItems(). |
| 11279 | * Add more use dep validation. * Fix broken handling of |
| zmedico | !foo? reported by ABCD. |
| 11280 | Remove unused variable. |
| zmedico | |
| 11281 | Remove redundant use dep validation code that's handled by |
| zmedico | regular expression now. |
| 11282 | * Fix Scheduler._restart_if_necessary() breakage so that the |
| zmedico | given package is correctly compared to the last one in the |
| | merge list. * Update code in depgraph.display() to be more |
| | consistent with the code in |
| | Scheduler._is_restart_necessary(). |
| 11283 | Update foo[!bar=] syntax. |
| zmedico | |
| 11284 | Fix typo. |
| zmedico | |
svn path=/main/branches/prefix/; revision=11287
Fabian Groffen [Wed, 30 Jul 2008 13:55:41 +0000 (13:55 -0000)]
Merged from trunk 11248:11267
| 11249 | Bug #233165 - When waiting for jobs and merges to finish in |
| zmedico | Scheduler._main_loop(), keep scheduling the merge queue |
| | since it doesn't autoschedule, and skip the poll loop if |
| | there no event handlers due to synchronous merge tasks being |
| | the only things left to do. |
| 11250 | Fix broken reference to "categories" in |
| zmedico | CategorySet.singleBuilder(). Thanks to Thargor for |
| | reporting. |
| 11251 | Make use of the new config.iteritems() method. |
| zmedico | |
| 11252 | Document the doman language code path translation extension |
| zmedico | from bug #222439. |
| 11253 | Tweak the conditional USE deps examples. |
| zmedico | |
| 11254 | Fix alignment. |
| zmedico | |
| 11255 | Add syntax examples for unconditional USE deps. |
| zmedico | |
| 11256 | Redirect the FEATURES=buildsyspkg message to the log when in |
| zmedico | background mode. |
| 11257 | Fix _use_dep.__str__() to work correctly in the case when |
| zmedico | conditional USE deps have evaluated to nothing (empty string |
| | rather than []). Thanks to ABCD for reporting. |
| 11258 | Implement _use_dep.__nonzero__(). |
| zmedico | |
| 11259 | Tweak table alignment. |
| zmedico | |
| 11260 | In apply_recursive_permissions(), ignore InvalidLocation |
| zmedico | exceptions such as FileNotFound and DirectoryNotFound since |
| | sometimes things disappear, like when adjusting permissions |
| | on DISTCC_DIR. |
| 11261 | Add support for the --jobs option to be specified without an |
| zmedico | argument, and also support -j as a short option. Since |
| | optparse doesn't natively support options with non-required |
| | args, create an insert_optional_args() function that inserts |
| | the required argument into the args so that optparse is |
| | happy. The function inserts the string True as a substitute |
| | for the argument that is required. This string is later |
| | converted to the True constant when stored in the emerge |
| | opts dict (similar to how normal boolean options are |
| | stored). The PollScheduler and SequentialTaskQueue classes |
| | recognize the meaning of the True constant to mean unlimited |
| | concurrent jobs. |
| 11262 | Fix slightly broken loop logic in insert_optional_args() by |
| zmedico | converting it to pop args off of a stack. |
| 11263 | During the first minute of entering the main scheduler loop, |
| zmedico | if --load-average is enabled then limit the rate that new |
| | jobs are spawned, so that the load average measurement has |
| | time to respond to the new load introduced by the new jobs. |
| | The time between spawning new jobs is proportional to the |
| | number of currently running jobs. |
| 11264 | Enable Scheduler._job_delay() whenever --load-average is |
| zmedico | enabled, for whole time the scheduler is running. This |
| | protects against too many jobs being sheduled if the load |
| | average temporarily drops. |
| 11265 | Fix Scheduler._choose_pkg() so that it doesn't choose |
| zmedico | packages prematurely in some cases. |
| 11266 | Make sure Scheduler._choose_pkg() doesn't return a package |
| zmedico | too early when there's no digraph and the previous merge |
| | hasn't completed yet. |
| 11267 | Fix Scheduler._set_digraph() to correctly handle cases when |
| zmedico | max_jobs is True. |
svn path=/main/branches/prefix/; revision=11286
Fabian Groffen [Mon, 28 Jul 2008 20:26:09 +0000 (20:26 -0000)]
implement missing getSoname function in LinkageMapMachO, thanks calculus for testing my fix
svn path=/main/branches/prefix/; revision=11248
Fabian Groffen [Mon, 28 Jul 2008 20:07:56 +0000 (20:07 -0000)]
Prepare emerge-webrsync to get working, use gentooexperimental for distfiles
svn path=/main/branches/prefix/; revision=11247
Fabian Groffen [Mon, 28 Jul 2008 20:03:55 +0000 (20:03 -0000)]
Merged from trunk 11243:11245
| 11244 | Even though the message is split on $'\n' in elog_base(), |
| zmedico | it's still 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. |
| 11245 | Bug #233103 - In portage.fetch(), pass all config variables |
| zmedico | instead of just those returned by the environ() method which |
| | is filtered. |
svn path=/main/branches/prefix/; revision=11246
Fabian Groffen [Mon, 28 Jul 2008 18:38:40 +0000 (18:38 -0000)]
Avoid portage constantly complaining about IONICENESS not working, since one has to be root to do that (and in Prefix we usually aren't)
svn path=/main/branches/prefix/; revision=11243
Fabian Groffen [Mon, 28 Jul 2008 18:23:29 +0000 (18:23 -0000)]
fix misc issues causing eapi not to be valid
svn path=/main/branches/prefix/; revision=11242
Fabian Groffen [Mon, 28 Jul 2008 18:05:08 +0000 (18:05 -0000)]
I want a frikkin compiler to tell me I am not sane...
svn path=/main/branches/prefix/; revision=11241