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
Fabian Groffen [Mon, 28 Jul 2008 17:52:55 +0000 (17:52 -0000)]
Original commit:
| 11233 | Add support for an new EAPI="2_pre0" value so that people |
| zmedico | who want to test USE deps can set the EAPI to something |
| | other than 0 or 1. We can support as many different |
| | experimental EAPI values as we need, and drop support for |
| | them when the final EAPI 2 is defined. |
Changed into a Prefix enabled version, which is more generic. It build
further on the idea that multiple properties are being present in EAPI.
I split it up in "should have" properties ("prefix" for now) that must
be present, and "can have" properties, that may be present. This
patch is not perfect (can have EAPI="prefix 2_pre0 1 0") but fixing that
requires more thinking (successing properties, conflicting
properties...)
svn path=/main/branches/prefix/; revision=11240
Fabian Groffen [Mon, 28 Jul 2008 17:48:47 +0000 (17:48 -0000)]
Merged from trunk 11225:11238
| 11226 | Fix the new glep56 code to handle missing metadata.xml. |
| zmedico | Thanks to jmbsvicetto for reporting. |
| 11227 | Fix incorrect logging.exception() arguments. The exception |
| zmedico | instance is not supposed to be passed into this function. |
| 11228 | Bug #233137 - Implement Atom.split(). |
| zmedico | |
| 11229 | * Add support in dep_getusedeps() and isvalidatom() for |
| zmedico | comma separated USE deps that only have one set of square |
| | brackets. * Add test cases for the new comma separated USE |
| | deps syntax. |
| 11230 | Create a SlotDict constructor which can take an optional |
| zmedico | positional arg that is passed to the update() method |
| | (similar to the dict constructor), and also pass keyword |
| | arguments into the update() method if any are given. This |
| | makes it possible to use the constructor similarly to the |
| | way that the _emerge.SlotObject constructor is used. |
| 11231 | Implement new conditional USE dep syntax: Conditional |
| zmedico | evaluation behavior: parent state conditional result x x? x |
| | -x x? x -x? -x -x? -x x x= x -x x= -x x x!= -x -x x!= x |
| | Conditional syntax examples: compact form equivalent |
| | expanded form foo[bar?] foo bar? ( foo[bar] ) foo[-bar?] foo |
| | !bar? ( foo[-bar] ) foo[bar=] foo bar? ( foo[bar] ) !bar? ( |
| | foo[-bar] ) foo[bar!=] foo bar? ( foo[-bar] ) !bar? ( |
| | foo[bar] ) |
| 11232 | Disable the multi-bracket USE deps syntax, so only the comma |
| zmedico | separated syntax is now valid. |
| 11234 | Fix arg count when constructing a TypeError in the SlotDict |
| zmedico | constructor. |
| 11235 | Create a table to document conditional USE dependency |
| zmedico | syntax. |
| 11236 | Add note about support for EAPI="2_pre0". |
| zmedico | |
| 11238 | Remove pointless generator expression. |
| zmedico | |
svn path=/main/branches/prefix/; revision=11239
Fabian Groffen [Sun, 27 Jul 2008 14:54:44 +0000 (14:54 -0000)]
Improve svn properties reading, thanks to Arfrever in #-portage.
svn path=/main/branches/prefix/; revision=11225
Fabian Groffen [Sun, 27 Jul 2008 14:43:00 +0000 (14:43 -0000)]
Merged from trunk 11215:11223
| 11216 | Fixes from Arfrever: * Highlight the "Files built without |
| zmedico | respecting LDFLAGS" QA Notice with red. * Remove |
| | scanelf-ignored-LDFLAGS.log when empty. |
| 11217 | Fix breakage from r11213 in INHERITED values returned from |
| zmedico | portdbapi.aux_get(). |
| 11218 | Add support to elog_base() to split messages on newlines |
| zmedico | automatically. Thanks to Arfrever for the suggestion. |
| 11219 | Make all the elog functions split lines when displaying |
| zmedico | output, just like elog_base() does when saving it. |
| 11220 | Make elog_base() just use \n as the delimiter in the file |
| zmedico | since it's safe now that lines are always split. |
| 11221 | Use ${NORMAL} to properly restore color when necessary. |
| zmedico | |
| 11222 | Update path to make.conf.example. Thanks to Arfrever. |
| zmedico | |
| 11223 | Fix EbuildFetcher to pass all config variables to the |
| zmedico | fetcher so things like http_proxy are included. |
svn path=/main/branches/prefix/; revision=11224
Fabian Groffen [Sun, 27 Jul 2008 11:51:06 +0000 (11:51 -0000)]
Merged from trunk 11212:11213
| 11213 | Serialize src_unpack() $DISTDIR access for live ebuilds |
| zmedico | since otherwise they can interfere with eachother. This will |
| | have to rely on a hardcoded list of eclasses until we create |
| | way to properly tag this information in the metadata. |
svn path=/main/branches/prefix/; revision=11215
Fabian Groffen [Sun, 27 Jul 2008 11:49:38 +0000 (11:49 -0000)]
fix off by one
svn path=/main/branches/prefix/; revision=11214
Fabian Groffen [Sun, 27 Jul 2008 11:29:55 +0000 (11:29 -0000)]
Merged from trunk 11209:11210
| 11210 | * Define a frozenset of live eclasses for the LIVEVCS.stable |
| zmedico | check. * Add "mercurial" to the list of known live eclasses. |
svn path=/main/branches/prefix/; revision=11212
Fabian Groffen [Sun, 27 Jul 2008 11:28:26 +0000 (11:28 -0000)]
Do a humble attempt to implement something along the lines of bug #229033
Big problem with SVN is that retrieving the known files is slow and
expensive (it goes over the network), hence should be avoided.
Imlemented Manifest commit in the first batch, if no headers change.
This implementation is a (hopefully) 90% coverage one. First, not all
keywords are recognised (they never were), second we do not check in
SVN's case if the used keyword is the one that SVN expands. What we
just try to achieve is to avoid the single Manifest commit on SVN repos
which by default do not use header expansion. This objective seems to
be made with this commit.
svn path=/main/branches/prefix/; revision=11211
Fabian Groffen [Sun, 27 Jul 2008 09:46:46 +0000 (09:46 -0000)]
Fix repoman not seeing subversion auto-ignored files (such as patch rejects and editor backup copies), thereby causing messed up Manifests. This fix should be merged in the trunk.
svn path=/main/branches/prefix/; revision=11208
Fabian Groffen [Sun, 27 Jul 2008 09:31:10 +0000 (09:31 -0000)]
Merged from trunk 11201:11206
| 11202 | Fix AsynchronousTask.removeStartListener() and |
| zmedico | removeExitListener() to return early if there are no |
| | listeners. |
| 11203 | In PollScheduler._poll(), add a call to _schedule() in order |
| zmedico | to ensure that event handlers are registered if possible. If |
| | not, raise StopIteration in order to avoid endless blocking |
| | in a poll call with no file descriptors registered. Add |
| | StopIteration exception handling for all |
| | PollScheduler._poll._next_poll_event() calls. |
| 11204 | Schedule ebuild pkg_setup phases on the merge queue, in |
| zmedico | order to serialize unsandboxed access to the live |
| | filesystem. |
| 11205 | Bug #233077 - Add QA check which verifies that LDFLAGS are |
| zmedico | respected. For now this only works when LDFLAGS contains |
| | --hash-style=gnu since in this case the the elf files should |
| | not contain .hash sections and we can use scanelf to check |
| | whether or not the those sections exist. This adds a |
| | QA_DT_HASH variable that is analogous to existing QA control |
| | variables documented in the ebuild.5 man page. There is also |
| | a complementary QA_STRICT_DT_HASH variable that can be set |
| | in make.conf in order to ignore QA_DT_HASH settings in |
| | ebuilds. Thanks to Arfrever Frehtes Taifersar Arahesis for |
| | this patch which I've tweaked in just a few minor ways. |
| 11206 | Temporarily `set -o noglob` when splitting QA_DT_HASH. |
| zmedico | |
svn path=/main/branches/prefix/; revision=11207
Fabian Groffen [Sat, 26 Jul 2008 20:55:16 +0000 (20:55 -0000)]
Merged from trunk 11187:11200
| 11188 | Detect an invalid cpv passed into portdbapi.findname2() and |
| zmedico | raise an InvalidPackageName exception. This avoids silent or |
| | nonsense errors later on. |
| 11190 | Fix PORTAGE_BIN_PATH typo in EbuildFetcher._start(). |
| zmedico | |
| 11191 | Suppress "for /" and "to /" in status messages when ROOT=/. |
| zmedico | Thanks to Thargor for the suggestion. |
| 11192 | Add PORTAGE_IONICE_COMMAND setting for make.conf which is |
| zmedico | called to adjust IO priority on portage and it's |
| | subprocesses. |
| 11193 | Reduce the default PORTAGE_IONICE_COMMAND priority to "idle" |
| zmedico | priority since it's probably suitable for most people. This |
| | way, even when the IO load is very high, the impact on |
| | system responsiveness should be practically unnoticeable. |
| 11194 | * For bug 227625, automatically create the |
| zmedico | /usr/src/rpm/SOURCES directory when necessary. * Add `cd |
| | "${T}"` at the beginning of dyn_rpm() since the spec file is |
| | written to $PWD. |
| 11195 | Replace hardcoded i386 machine name in dyn_rpm() with the |
| zmedico | result of `uname -m`. |
| 11196 | Bug #228085 - In the event of a file collision, the |
| zmedico | explanation about the collision and how to solve it may not |
| | be visible via a scrollback buffer, especially if the number |
| | of file collisions is large. Therefore, show a summary at |
| | the end and refer the user to the elog messages. |
| 11197 | Bug #232924 - When the user specifies a non-existent set, |
| zmedico | display a list of existing sets. |
| 11198 | Split out an apply_priorities() function to apply nice and |
| zmedico | ionice settings. |
| 11199 | * Use pure bash ${PARAMETER%/*} instead of spawing`dirname`. |
| zmedico | * Break out of loop as early as possible when searching for |
| | libs in ${D}. |
| 11200 | Fix LinkageMap.findConsumers() to check whether the master |
| zmedico | link for a lib providing a given soname actually points to |
| | that lib. If there is another version of this lib with the |
| | same soname and the master link points to that other |
| | version, this lib will be shadowed and won't have any |
| | consumers. By eliminating false, positives this way, we |
| | avoid the following state after upgrade from |
| | media-libs/mesa-7.0.3 to media-libs/mesa-7.1_rc3: # scanelf |
| | -S /usr/lib64/libGLU.so* TYPE SONAME FILE ET_DYN libGLU.so.1 |
| | /usr/lib64/libGLU.so ET_DYN libGLU.so.1 |
| | /usr/lib64/libGLU.so.1 ET_DYN libGLU.so.1 |
| | /usr/lib64/libGLU.so.1.3 ET_DYN libGLU.so.1 |
| | /usr/lib64/libGLU.so.1.3.070003 ET_DYN libGLU.so.1 |
| | /usr/lib64/libGLU.so.1.3.070100 <- shadowed lib Thanks to |
| | Diego "Flameeyes" Pettenò for reporting this issue. |
svn path=/main/branches/prefix/; revision=11201
Fabian Groffen [Fri, 25 Jul 2008 21:08:05 +0000 (21:08 -0000)]
we also need EPREFIX in Prefix
svn path=/main/branches/prefix/; revision=11189
Fabian Groffen [Fri, 25 Jul 2008 07:37:53 +0000 (07:37 -0000)]
fix syntax error found by tabcheck
svn path=/main/branches/prefix/; revision=11187
Fabian Groffen [Fri, 25 Jul 2008 07:34:22 +0000 (07:34 -0000)]
Merged from trunk 11169:11185
| 11170 | Make --fetchonly disable background mode. |
| zmedico | |
| 11173 | Add GENTOO_MIRRORS to the variables exported by |
| zmedico | EbuildFetcher. |
| 11175 | Add sandbox write access to PORTAGE_PYM_PATH before |
| zmedico | importing portage in order to avoid sandbox violations after |
| | python upgrade. |
| 11176 | Fix --depclean/--prune regressions reported by selkin: * |
| zmedico | Make --with-bdeps default to "y" for removal actions. * |
| | Treat unsatisfied build time dependencies as "soft" for |
| | removal actions, even when --with-bdeps=y. |
| 11177 | Avoid "0 files checked ..." messages reported by Pesa. |
| zmedico | |
| 11178 | Fix typo, found by pyflakes. |
| zmedico | |
| 11179 | Fix bug in get_repo_path() when called with multiple args. |
| zmedico | |
| 11181 | Bug #228117 - Insert a trailing newline in the getconfig() |
| zmedico | input file as necessary to avoid a silent error in shlex |
| | that is triggered by a source statement at the end of the |
| | file without a trailing newline after the source statement. |
| | To solve this problem, derive a special file class that |
| | inserts a newline just before eof when necessary. |
| 11182 | Bug #206773 - Add a new PORTAGE_IONICE_COMMAND variable that |
| zmedico | emerge uses to adjust ionice priority, similar to |
| | PORTAGE_NICENESS but used more like FETCHCOMMAND since so |
| | that portage doesn't have to know anything about ionice |
| | options. The command should include a \${PID} place-holder |
| | to be substituted with an integer pid. |
| 11183 | * Refer user to make.conf(5) if PORTAGE_IONICE_COMMAND |
| zmedico | fails. * Document that PORTAGE_IONICE_COMMAND can be |
| | disabled by setting it to an empty string. |
| 11184 | When in background mode and there is a single failure, dump |
| zmedico | the whole build log for convenience. |
| 11185 | Cancel prefetchers if they're the only reason the main poll |
| zmedico | loop is still running. |
svn path=/main/branches/prefix/; revision=11186
Fabian Groffen [Wed, 23 Jul 2008 06:54:24 +0000 (06:54 -0000)]
Merged from trunk 11157:11169
| 11158 | Fix --depclean/--prune to add lib providers and their |
| zmedico | dependencies to the graph and create a new clean list when |
| | necessary. This completes the fix for bug #230053. |
| 11159 | Adjust --fetchonly failure messages to work better with |
| zmedico | background mode. |
| 11160 | Adjust status messages for --fetchonly mode. |
| zmedico | |
| 11161 | Redirect dblink._preserve_libs() messages to the log when in |
| zmedico | background mode. |
| 11162 | Make --pretend disable background mode and imply --jobs=1. |
| zmedico | |
| 11163 | Disable "Installing" status messages when in --pretend or |
| zmedico | --buildpkgonly mode. |
| 11164 | Redirect build log eqawarn messages to the log file when in |
| zmedico | background mode. |
| 11165 | Show the number of failed packages in the status display. |
| zmedico | |
| 11166 | Fix resume_depgraph() so that it doesn't raise an |
| zmedico | AssertionError due to unsatisfied PDEPEND. |
| 11167 | In dblink.unmerge(), redirect preserve-libs "!needed" |
| zmedico | messages to the log file when in background mode. |
| 11168 | Update --depclean and --prune, removing warnings about |
| zmedico | libraries since those are now automatically accounted for. |
| 11169 | Handle UnsatisfiedResumeDep in |
| zmedico | Scheduler._calc_resume_list(). |
svn path=/main/branches/prefix/; revision=11172
Fabian Groffen [Wed, 23 Jul 2008 06:52:10 +0000 (06:52 -0000)]
Merged from trunk 11149:11157
| 11150 | Fix broken references to the old elog_modules namespace. |
| zmedico | |
| 11151 | Redirect the 'Recording in "world" favorites file...' |
| zmedico | message through _status_msg(). |
| 11152 | For --depclean and --prune, eliminate duplicate graph |
| zmedico | creation code by re-using the depgraph class to do it. The |
| | depgraph class was used in the past for this purpose but |
| | back then it didn't handle USE flags correctly for installed |
| | packages. Now it works fine. |
| 11153 | Fix typo. |
| zmedico | |
| 11154 | Fix breakage in the depclean/prune unsatisfied deps |
| zmedico | handling. |
| 11155 | In dblink._preserve_libs(), strip leading $ROOT from |
| zmedico | contents paths so that it works when $ROOT != /. |
| 11156 | In dblink.findProviders(), clone the "path" variable before |
| zmedico | extending it since obviously it shouldn't grow each time |
| | that findProviders() is called. |
| 11157 | Add initial lib awareness for --depclean and --prune. |
| zmedico | Currently it will simply bail out if the clean list contains |
| | a package that will cause link breakage if removed. TODO: |
| | Calculate a new cleanlist instead of bailing out, and |
| | implement a package set for rebuilding consumers. |
svn path=/main/branches/prefix/; revision=11171
Fabian Groffen [Sun, 20 Jul 2008 10:13:34 +0000 (10:13 -0000)]
Merged from trunk 11139:11147
| 11140 | Use the memoized _choose_pkg() result to return earlier from |
| zmedico | _schedule_tasks() when possible. |
| 11141 | Calling _schedule() from Scheduler._poll() is unsafe since |
| zmedico | the _schedule() call itself can consume poll events. |
| | Therefore, until a safe way exists, don't do it. |
| 11142 | Fix Scheduler._schedule_tasks_imp() so that it never |
| zmedico | indicates that there are remaining tasks in cases when it's |
| | supposed to bail out due to a package failure. |
| 11143 | Merge tasks currently run synchronously which makes it |
| zmedico | necessary to disable auto_schedule on the merge queue in |
| | order to avoid excess recursion which prevents tasks from |
| | being marked complete as soon as they should be. |
| 11144 | Make PollScheduler._poll() add poll events to the stack |
| zmedico | instead of returning them. This makes it more useful as a |
| | hook, allowing Scheduler._poll() to safely call _schedule(). |
| 11145 | * Clean up _schedule_tasks_imp() a bit. * Make _task() |
| zmedico | access _background directly instead of as a parameter. |
| 11146 | Fix Scheduler emergelog() interaction to properly disable |
| zmedico | emergelog() xterm titles whenever the status display is |
| | enabled. |
| 11147 | Redirect some more unmerge() output through writemsg_level() |
| zmedico | so that it can filtered out when in background mode. |
svn path=/main/branches/prefix/; revision=11149
Fabian Groffen [Sun, 20 Jul 2008 10:12:19 +0000 (10:12 -0000)]
Merged from trunk 11125:11139
| 11126 | Bug #199788 - Make repoman parse GLEP 56 USE flag |
| zmedico | descriptions from metadata.xml (in addition to |
| | use.local.desc). Thanks to Doug Goldstein <cardoe@g.o> for |
| | this patch. |
| 11127 | Add a MergeListItem.statusMessage(msg) callback for |
| zmedico | displaying messages like "Building this" or "Installing |
| | that". This delegates the resposibility of generating \r and |
| | \n control characters, to guarantee that lines are created |
| | or erased when necessary and appropriate. TODO: Make |
| | JobStatusDisplay display the output. |
| 11128 | Add support to JobStatusDisplay() to update the current line |
| zmedico | on the terminal, which in the future can be used to erase |
| | the line and update it with new information such as the |
| | latest load average measurement. This uses curses to obtain |
| | the simple control codes that are needed, and has fallback |
| | codes in case the curses module is unavailable or raises an |
| | error. When stdout is not a tty then the line erasing |
| | behavior is automatically disabled and display updates are |
| | simply show on a new line. |
| 11129 | When JobStatusDisplay.displayMessage() is called while the |
| zmedico | status is currently displayed, call display() after showing |
| | the given message. |
| 11130 | Make all poll() calls pass through PollScheduler._poll(). |
| zmedico | |
| 11131 | Add a hook in Scheduler._poll() that updates the display |
| zmedico | once every 2 seconds if stdout is a tty, so that the load |
| | average numbers are always current. |
| 11132 | Display "Verifying ebuild manifests" and "Starting parallel |
| zmedico | fetch" via the status display instead of directly to stdout. |
| 11133 | Add a Scheduler._background_mode() method to control |
| zmedico | background mode, and trigger it if either --quiet is enabled |
| | or --jobs > 1. |
| 11134 | Fix typos. |
| zmedico | |
| 11135 | * Call self._schedule() from inside Scheduler._poll(). This |
| zmedico | ensures that new jobs can scheduled as soon a the load |
| | average is low enough, and one of the running jobs doesn't |
| | have to complete for _schedule() to get called. * Cache the |
| | result of _background_mode() so it doesn't have to be called |
| | inside _schedule(), since this method is called a lot more |
| | often now. * Move background related state adjustments into |
| | _background_mode(). * Call _status_display.display() |
| | unconditionally inside _schedule_tasks(), since we want to |
| | update the display to show current load average even if no |
| | new jobs are added. |
| 11136 | Fix JobStatusDisplay._init_term() to supply default codes in |
| zmedico | cases when curses.tigetstr() returns None. |
| 11137 | Instead of calling _background_mode(), use the cached |
| zmedico | result. |
| 11138 | Bug #231464 - Replace erroneous "return" statement in |
| zmedico | elog_process() with a continue statement. Thanks to TGL for |
| | this patch. |
| 11139 | When Scheduler._choose_pkg() is unable to find a package, |
| zmedico | memoize the result until at least one of the existing jobs |
| | completes. |
svn path=/main/branches/prefix/; revision=11148
Fabian Groffen [Fri, 18 Jul 2008 09:02:11 +0000 (09:02 -0000)]
Merged from trunk 11111:11124
| 11112 | Since it's not very interesting, disable the "merges" part |
| zmedico | of status display. |
| 11113 | Also, don't count "merges" as changes in the status display. |
| zmedico | |
| 11114 | Initialize JobStatusDisplay.merges since it's not |
| zmedico | initialized with the bound properties anymore. |
| 11115 | Also, reset "merges" in JobStatusDisplay.reset(). |
| zmedico | |
| 11116 | When dblink is looping over files for merge/unmerge, |
| zmedico | temporarily yield to the scheduler each time a fixed number |
| | of files are processed (currently 20). This gives the |
| | scheduler an opportunity to service pending poll events. |
| | This is implemented with a new |
| | PollScheduler._schedule_yield() method which calls poll() |
| | exactly once, without blocking, and any services any |
| | resulting poll events. |
| 11117 | Redirect dblink elog messages from stdout to the log file |
| zmedico | when in background mode. This is implemented by adding a new |
| | "out" parameter to the portage.elog.e* functions, which can |
| | be used to send output to an arbitary file instead of |
| | stdout. |
| 11118 | If an problem is detected in dblink._security_check(), log |
| zmedico | it via elog so that it's properly displayed in the |
| | foreground even when in background mode. |
| 11119 | Use dblink._eerror() to eliminate duplicate code. |
| zmedico | |
| 11120 | In dblink._dblink_display_merge(), when in background mode |
| zmedico | and no log is available, suppress output when level < |
| | logging.WARNING. This hides ">>> Regenerating |
| | /etc/ld.so.cache..." messages that appear after postrm when |
| | PORT_LOGDIR is unset (the log file if it exists is removed |
| | after postrm so there's no place to log the message). |
| 11121 | Change package status messages to give more accurate |
| zmedico | information about what is happening at a given time: * |
| | Change "Emerging" messages to "Building" for ebuilds and |
| | "Extracting" for binary packages. * Change "Merging" |
| | messages to "Installing" and "Uninstalling". |
| 11122 | Add background output redirection and async ebuild phase |
| zmedico | support for PackageUninstall (automatic uninstalls that |
| | solve blockers). |
| 11123 | Suppress counter initialization warning messages in |
| zmedico | vardbapi.get_counter_tick_core() in cases when the vdb is |
| | empty. This avoids pointless error messages when merging |
| | packages into a new root, like when building stage 1. |
| 11124 | Fix typo. |
| zmedico | |
svn path=/main/branches/prefix/; revision=11125
Fabian Groffen [Thu, 17 Jul 2008 14:09:19 +0000 (14:09 -0000)]
Fix identation (tabnanny complains about this), should be merged into trunk
svn path=/main/branches/prefix/; revision=11110
Fabian Groffen [Thu, 17 Jul 2008 14:06:14 +0000 (14:06 -0000)]
Merged from trunk 11106:11107
| 11107 | Reformat the status display. Here's an example: >>> Jobs: 0 |
| zmedico | of 2 complete, 2 running Load average: 2.9, 2.4, 2.0 >>> |
| | Jobs: 0 of 2 complete, 1 running, 2 merges Load average: |
| | 2.8, 2.4, 2.0 >>> Jobs: 2 of 2 complete Load average: 2.6, |
| | 2.3, 2.0 |
svn path=/main/branches/prefix/; revision=11109
Fabian Groffen [Thu, 17 Jul 2008 14:03:12 +0000 (14:03 -0000)]
Merged from trunk 11087:11105
| 11088 | Avoid raising an IndexError from deprecated_profile_check() |
| zmedico | if the deprecated file happens to be empty. Instead just |
| | refer to the "Gentoo Upgrading Guide". Thanks to armin76 for |
| | reporting. |
| 11089 | Remove TODO since it no longer exists. |
| zmedico | |
| 11090 | Add --anon option for anonsvn.gentoo.org users. |
| zmedico | |
| 11091 | Add --anon to the usage message. |
| zmedico | |
| 11092 | Eliminate duplicate code by making EbuildProcess inherit |
| zmedico | from SpawnProcess instead of SubProcess. |
| 11093 | When SpawnProcess._start() spawns a process in the |
| zmedico | background, use /dev/null so that any attempts to read from |
| | stdin will immediately return EOF instead of blocking |
| | indefinitely. TODO: Use job control functions like |
| | tcsetpgrp() to control access to stdin. |
| 11094 | Add the new --anon option to the getopt args. |
| zmedico | |
| 11095 | In SequentialTaskQueue.clear(), remove the exit listener |
| zmedico | from each task before cancelling it. |
| 11096 | Add a JobStatusDisplay class to encapsulate the status |
| zmedico | display. This object tracks whether or not any of it's |
| | attributes have changed since the last time it was |
| | displayed, so the it's only displayed when something has |
| | changed. Unlike before, now the display should always update |
| | whenever a relevant change occurs. |
| 11097 | Don't increment the "complete" count for uninstall tasks. |
| zmedico | |
| 11098 | * Add a new portage.util.writemsg_level() function which |
| zmedico | uses a "level" parameter to control whether the message is |
| | sent to stdout or stderr. When level >= logging.WARNING then |
| | the message is sent to stderr, otherwise it is sent to |
| | stdout. The noiselevel is passed directly to writemsg(). * |
| | Use writemsg_level() for handling merge messages from dblink |
| | and add appropriate noiselevel values to each call. * Add a |
| | writemsg_level parameter to portage.env_update() so that |
| | dblink can pass in dblink._display_merge() as a means to |
| | redirect output back to the scheduler for appropriate |
| | handling when running in the background. |
| 11099 | Tweak interaction between Scheduler and status display so |
| zmedico | that it doesn't display more often than necessary and avoids |
| | showing inconsistent counts. |
| 11100 | Handle the case in dblink.unmerge() when the log file is a |
| zmedico | temp file and so it doesn't exist after postrm cleaning. |
| 11101 | Don't show a blank newline before ">>> Emerging" when in |
| zmedico | background mode. |
| 11102 | Make BinpkgVerifier redirect output to the fetch log when in |
| zmedico | background mode. |
| 11103 | Update the status display in _build_exit(), after |
| zmedico | decrementing the job count. |
| 11104 | Make Binpkg send "Extracting" messages to the log file when |
| zmedico | in background mode, instead of stdout. |
| 11105 | Don't show "Merging" and "merged." messages when in |
| zmedico | background mode. |
svn path=/main/branches/prefix/; revision=11108
Fabian Groffen [Thu, 17 Jul 2008 13:58:15 +0000 (13:58 -0000)]
PORTAGE_CONFIGROOT includes EPREFIX since my recent changes, thanks Lothar Braun for reporting
svn path=/main/branches/prefix/; revision=11106
Fabian Groffen [Wed, 16 Jul 2008 18:11:32 +0000 (18:11 -0000)]
fix more prefix errors
svn path=/main/branches/prefix/; revision=11087
Fabian Groffen [Wed, 16 Jul 2008 18:02:33 +0000 (18:02 -0000)]
fix NameError
svn path=/main/branches/prefix/; revision=11086
Fabian Groffen [Wed, 16 Jul 2008 17:53:11 +0000 (17:53 -0000)]
Fix misc amount of out-of-prefix issues
svn path=/main/branches/prefix/; revision=11085
Fabian Groffen [Wed, 16 Jul 2008 15:33:03 +0000 (15:33 -0000)]
I forgot about EROOT, reorder to make a bit more sense
svn path=/main/branches/prefix/; revision=11084
Fabian Groffen [Wed, 16 Jul 2008 15:21:47 +0000 (15:21 -0000)]
expansion doesn't run on man-pages, document Prefix variables in ebuild.5
svn path=/main/branches/prefix/; revision=11083
Fabian Groffen [Wed, 16 Jul 2008 13:10:43 +0000 (13:10 -0000)]
We have a most confusing situation here, which is most of all pretty
weak for protecting us from making mistakes.
First there is a config_root (PORTAGE_CONFIGROOT) which can be a path
somewhere, from which all paths need to be relative (e.g.
etc/portage), hence those constants do NOT have EPREFIX, because
config_root contains EPREFIX by default -- overriding it loses the
EPREFIX as one would expect.
Second there is target_root (ROOT) which is to install somewhere
completely else, in Prefix of limited use. Because this is an offset
always given, the EPREFIX should always be applied in it. Those
constants (like VDB_PATH) DO have EPREFIX.
svn path=/main/branches/prefix/; revision=11082
Fabian Groffen [Wed, 16 Jul 2008 12:21:33 +0000 (12:21 -0000)]
Revert -r11077:11080, lstrip doesn't take a string but chars. Need to fix it differently.
svn path=/main/branches/prefix/; revision=11081
Fabian Groffen [Wed, 16 Jul 2008 12:07:46 +0000 (12:07 -0000)]
this is going to cause some headaches, strip more prefixes for now
svn path=/main/branches/prefix/; revision=11080
Fabian Groffen [Wed, 16 Jul 2008 11:52:52 +0000 (11:52 -0000)]
more prefix confusement
svn path=/main/branches/prefix/; revision=11079
Fabian Groffen [Wed, 16 Jul 2008 11:24:54 +0000 (11:24 -0000)]
messing around with/without EPREFIX, I'm affraid I lost the consistency here
svn path=/main/branches/prefix/; revision=11078
Fabian Groffen [Wed, 16 Jul 2008 11:11:49 +0000 (11:11 -0000)]
Merged from trunk 11060:11076
| 11061 | In Scheduler._restart_if_necessary(), use list.remove() |
| zmedico | instead of assuming that portage is first in the resume |
| | list. |
| 11062 | Make EbuildFetcher copy FETCHCOMMAND and RESUMECOMMAND to |
| zmedico | the fetch environment, in case the default values have been |
| | overridden. |
| 11063 | Add some cross references between emerge's new parallel |
| zmedico | build options and MAKEOPTS. |
| 11064 | When --jobs > 1, display a status message each time that |
| zmedico | Scheduler._schedule_tasks() is called. For example: >>> |
| | Jobs: 2 running, 0 merges, load average: 0.34, 0.46, 0.27 |
| 11065 | Redirect dblink.unmerge() output to the log file when --jobs |
| zmedico | > 1. |
| 11066 | Adapt the dblink merge display callback to use log levels |
| zmedico | from the logging module so that it can be used as an |
| | interface for both writemsg() and writemsg_stdout(). |
| 11067 | Make dblink._display_merge() detect scheduler presence |
| zmedico | internally. |
| 11068 | Redirect dblink.merge() output to the log file when --jobs > |
| zmedico | 1. |
| 11069 | Pass the whole dblink instance into |
| zmedico | Scheduler._dblink_display_merge() in case it's ever needed. |
| 11070 | Show LDFLAGS in emerge --info output. Thanks to dirtyepic |
| zmedico | for this patch. |
| 11071 | Remove the config._filter_calling_env attribute since it's |
| zmedico | not really needed. Replace it with an simple |
| | os.path.exists() call inside config.environ(). |
| 11072 | Add async support for calling functions in |
| zmedico | misc-functions.sh: * Create a new MiscFunctionsProcess class |
| | derived from SpawnProcess. * Add "background" support to the |
| | SpawnProcess class and split out a _spawn() template |
| | function so MiscFunctionsProcess can override it. * Rename |
| | the existing EbuildPhase class to EbuildProcess. * Create a |
| | new EbuildPhase class derived from CompositeTask. This class |
| | spawns the EbuildProcess and MiscFunctionsProcess classes as |
| | sub-tasks. |
| 11073 | * Add xterm titles support to Scheduler._display_status(). * |
| zmedico | Tweak emergelog() so that it won't interfere with the |
| | scheduler summary. |
| 11075 | Add a progress counter showing "x of y complete" to |
| zmedico | Scheduler._display_status(). |
| 11076 | Pass background=True into prefetcher constructors. |
| zmedico | |
svn path=/main/branches/prefix/; revision=11077
Fabian Groffen [Wed, 16 Jul 2008 08:34:04 +0000 (08:34 -0000)]
Do not check config_root + prefix, if we explicitly set PORTAGE_CONFIGROOT we mean that dir, not the Prefix variant
svn path=/main/branches/prefix/; revision=11074
Fabian Groffen [Tue, 15 Jul 2008 19:59:50 +0000 (19:59 -0000)]
try to be more correct in Prefix
svn path=/main/branches/prefix/; revision=11060