portage.git
18 years agoAdd Mach-O LinkageMap implementation
Fabian Groffen [Sun, 4 May 2008 11:25:08 +0000 (11:25 -0000)]
Add Mach-O LinkageMap implementation

svn path=/main/branches/prefix/; revision=10174

18 years agoAlso store the install_name, we need it to detect the group of files/symlinks that...
Fabian Groffen [Sun, 4 May 2008 09:14:18 +0000 (09:14 -0000)]
Also store the install_name, we need it to detect the group of files/symlinks that make up one library

svn path=/main/branches/prefix/; revision=10173

18 years ago Merged from trunk 10149:10165
Fabian Groffen [Sun, 4 May 2008 07:52:57 +0000 (07:52 -0000)]
   Merged from trunk 10149:10165

   | 10151   | Fix spelling of _show_unsatisfied_blockers().                |
   | zmedico |                                                              |

   | 10153   | Remove obsolete tuple() usage inside depgraph.display().     |
   | zmedico |                                                              |

   | 10155   | Fix some unwanted interaction between --tree display and     |
   | zmedico | unsatisfied blockers in depgraph.display().                  |

   | 10157   | Fix package counters in depgraph.display() so they're only   |
   | zmedico | incremented for "ordered" display nodes.                     |

   | 10160   | Fix misplaced variable used as parameter to                  |
   | zmedico | _load_favorites().                                           |

   | 10162   | In order to fix --tree display behave normally in --resume   |
   | zmedico | mode, properly add to the digraph all packages matched by    |
   |         | arguments.                                                   |

   | 10165   | Do more validation of resume data from the mtimedb.          |
   | zmedico |                                                              |

svn path=/main/branches/prefix/; revision=10170

18 years ago Merged from trunk 10124:10149
Fabian Groffen [Sun, 4 May 2008 07:51:38 +0000 (07:51 -0000)]
   Merged from trunk 10124:10149

   | 10126   | Buf #219294 - Fix 'date' and 'cut' arguments for BSD         |
   | zmedico | userland. Thanks to RB <aoz.syn@gmail.com> for this patch.   |

   | 10127   | Use absolute paths for files in ${DISTDIR}. Thanks to RB     |
   | zmedico | <aoz.syn@gmail.com> for this patch.                          |

   | 10130   | Similar to the circular dependency display, handle the       |
   | zmedico | unsatisfied blocker display inside _serialize_tasks() since  |
   |         | that's a convenient place to bail out.                       |

   | 10132   | * Move circular deps and blocker displays to                 |
   | zmedico | depgraph.display_problems(). * Always call                   |
   |         | display_problems() since calling it from inside display()    |
   |         | can lead to unwanted recursion.                              |

   | 10134   | Improve --resume handling of saved "favorites" argument      |
   | zmedico | atoms: * Save the favorites in oneshot mode too since        |
   |         | they're still useful for restoring state upon --resume. *    |
   |         | Add a depgraph._load_favorites() method to resume state from |
   |         | a previous select_files() call. This allows Package          |
   |         | instances to be matched with DependencyArg instances during  |
   |         | graph creation.                                              |

   | 10136   | Fix logic so display_problems() gets called every time       |
   | zmedico | display() does.                                              |

   | 10137   | Fix display_problems() logic some more.                      |
   | zmedico |                                                              |

   | 10139   | When loadResumeCommand() rejects a resume list, give a more  |
   | zmedico | informative explanation.                                     |

   | 10141   | Don't clean out old resume lists when in --ask or --pretend  |
   | zmedico | mode.                                                        |

   | 10143   | When a --resume list is rejected due to unsatisfied deps,    |
   | zmedico | display a list of missing deps and which packages they       |
   |         | belong to.                                                   |

   | 10145   | When a resume list is rejected, display the invalid resume   |
   | zmedico | list data in case the user is interested. This is enabled    |
   |         | with --verbose or --debug.                                   |

   | 10147   | Validate all the data types inside BlockerCache._load() so   |
   | zmedico | that any corruption is detected as soon as possible.         |

   | 10149   | In BlockerData._load(), salvage as much cache as possible    |
   | zmedico | when some seems to be corrupt.                               |

svn path=/main/branches/prefix/; revision=10169

18 years ago Merged from trunk 10091:10124
Fabian Groffen [Sun, 4 May 2008 07:49:43 +0000 (07:49 -0000)]
   Merged from trunk 10091:10124

   | 10092   | Clean up merge list handling: * In                           |
   | zmedico | depgraph.loadResumeCommand(), populate                       |
   |         | _serialized_tasks_cache so that it can be returned from      |
   |         | depgraph.altlist(). * Handle --skipfirst instide             |
   |         | depgraph.loadResumeCommand(), and fix it to skip the first   |
   |         | "merge" task and never skip "uninstall" tasks. * Always get  |
   |         | the merge list from depgraph.altlist() instead of using the  |
   |         | mtimedb directly. The list returned from depgraph.altlist()  |
   |         | contains Package instances with cached metadata. * Remove    |
   |         | obsolete code from depgraph.display() and MergeTask.merge()  |
   |         | since the merge list always comes from depgraph.altlist()    |
   |         | now, and never directly from the mtimedb.                    |

   | 10094   | Validate resume list data some more.                         |
   | zmedico |                                                              |

   | 10096   | In depgraph._complete_graph(), use cached Package instances  |
   | zmedico | instead of constructing new ones.                            |

   | 10098   | In depgraph._serialize_tasks(), filter "nomerge" nodes at a  |
   | zmedico | more appropriate place.                                      |

   | 10100   | Use Package instance attributes to clean up and simplify     |
   | zmedico | depgraph.validate_blockers().                                |

   | 10102   | Use Package.cp attribute instead of calling cpv_getkey().    |
   | zmedico |                                                              |

   | 10104   | When searching for a "sys-apps/portage" installation task,   |
   | zmedico | use match_pkgs() instead of sequential search.               |

   | 10106   | In depgraph.validate_blockers(), discard any "uninstall"     |
   | zmedico | tasks scheduled by previous calls, since those tasks may not |
   |         | make sense given the current graph state.                    |

   | 10108   | Move the blocker cache validation into                       |
   | zmedico | depgraph.validate_blockers().                                |

   | 10110   | Use match_pkgs() to simplify package comparison.             |
   | zmedico |                                                              |

   | 10112   | Add a PackageVirtualDbapi.__iter__() method and use it to    |
   | zmedico | iterate over all installed packages in                       |
   |         | depgraph.validate_blockers().                                |

   | 10114   | * Check for masked packages in the --resume merge list and   |
   | zmedico | bail out in that case (bug #199408). * In                    |
   |         | depgraph.loadResumeCommand(), create a dependency graph from |
   |         | the resume list. This ensures that the merge list has it's   |
   |         | dependencies satisfied. It also enables --tree display       |
   |         | together with --resume.                                      |

   | 10115   | Fix --resume mode to check for unsatisfied blockers and bail |
   | zmedico | out when necessary.                                          |

   | 10116   | Add --nodeps to the parallel-fetch --resume options since    |
   | zmedico | recalculation of deps is a a waste here.                     |

   | 10117   | Delete the resume list(s) if there is an unsatisfied block.  |
   | zmedico |                                                              |

   | 10119   | Fix depgraph.loadResumeCommand() to identify an unsatisfied  |
   | zmedico | dependency and invalidate the resume list in that case.      |

   | 10121   | Make --nodepa automatically disable --tree.                  |
   | zmedico |                                                              |

   | 10123   | Move --resume options handling to the beginning of           |
   | zmedico | action_build() so that the current options are updated with  |
   |         | the saved options as soon as possible.                       |

   | 10124   | Also move mtimedb resume list validation earlier.            |
   | zmedico |                                                              |

svn path=/main/branches/prefix/; revision=10168

18 years agoMach-O 2 format is essentially just a ';' instead of a ' ' so we can cope with paths...
Fabian Groffen [Sun, 4 May 2008 07:46:00 +0000 (07:46 -0000)]
Mach-O 2 format is essentially just a ';' instead of a ' ' so we can cope with paths containing spaces.  I still need to implement the Darwin logic though.

svn path=/main/branches/prefix/; revision=10167

18 years agoCall Prefix scanelf (yuck this is ugly!), do not run basename on NEEDED
Fabian Groffen [Fri, 2 May 2008 15:31:22 +0000 (15:31 -0000)]
Call Prefix scanelf (yuck this is ugly!), do not run basename on NEEDED
entries any more, genone says the code can deal with it.

svn path=/main/branches/prefix/; revision=10091

18 years agouse configured values for portage user and group instead of hardcoded portage:portage
Fabian Groffen [Fri, 2 May 2008 14:49:33 +0000 (14:49 -0000)]
use configured values for portage user and group instead of hardcoded portage:portage

svn path=/main/branches/prefix/; revision=10090

18 years ago Merged from trunk 10069:10086
Fabian Groffen [Fri, 2 May 2008 14:40:49 +0000 (14:40 -0000)]
   Merged from trunk 10069:10086

   | 10070   | Skip group/owner tarsync options for tarsync if chown on     |
   | zmedico | /usr/portage fails, since the user might still be able to    |
   |         | sync even though the chown call is not permitted.            |

   | 10072   | Fix broken variable references found by pyflakes.            |
   | zmedico |                                                              |

   | 10073   | remove 'sets/' name-prefix for file-based package sets       |
   | genone  |                                                              |

   | 10075   | check if a given package set is defined more than once       |
   | genone  |                                                              |

   | 10077   | add config option for package sets to not be recorded in     |
   | genone  | 'world'                                                      |

   | 10078   | properly remove sets from 'world' when unmerging             |
   | genone  |                                                              |

   | 10079   | move cleaning of sets out of package loop                    |
   | genone  |                                                              |

   | 10080   | do not consider sets to be installed that are about to be    |
   | genone  | unmerged                                                     |

   | 10081   | v2 of FEATURES=preserved-libs, using LinkageMap instead of   |
   | genone  | the now removed LibraryPackageMap class                      |

   | 10082   | use special symlink comparison code (original patch from     |
   | genone  | prefix r9499)                                                |

   | 10083   | fix typo                                                     |
   | genone  |                                                              |

   | 10085   | rename NEEDED.2 to NEEDED.ELF.2 to allow other ABI formats   |
   | genone  | to use a different syntax                                    |

   | 10086   | Update documentation for package set configuration. Original |
   | genone  | patch by Arfrever Frehtes Taifersar Arahesis                 |

svn path=/main/branches/prefix/; revision=10089

18 years ago Merged from trunk 10035:10069
Fabian Groffen [Fri, 2 May 2008 14:39:08 +0000 (14:39 -0000)]
   Merged from trunk 10035:10069

   | 10037   | Make unmerge() group packages by cat/pn when the order       |
   | zmedico | doesn't matter, so the display appears like earlier versions |
   |         | of portage.                                                  |

   | 10039   | Fix "deep" logic in depgraph._complete_graph() so that it    |
   | zmedico | always properly recognizes whether or not "deep" was         |
   |         | previously enabled.                                          |

   | 10041   | * Fix dep_check() so that it doesn't expand virtual blockers |
   | zmedico | since the un-expanded virtual atom is more useful for        |
   |         | maintaining a cache of blocker atoms. * Expand virtual       |
   |         | blockers in depgraph.validate_blockers(), since it's not     |
   |         | done by dep_check() anymore. * If blocker data from the      |
   |         | graph is available, use it to validate the blocker cache and |
   |         | update the cache if it seems invalid. * Make                 |
   |         | BlockerCache._load() more tolerant to installs/uninstalls so |
   |         | so that cache isn't rebuilt every time.                      |

   | 10042   | Fix logic to re-use blockers from the graph when populating  |
   | zmedico | the blocker cache.                                           |

   | 10043   | Fix broken comparison, compare with None instead of nonzero. |
   | zmedico |                                                              |

   | 10045   | Handle a KeyError when validating the blocker cache.         |
   | zmedico |                                                              |

   | 10047   | Bug #219837 - Adjust date calculations to improve accuracy.  |
   | zmedico |                                                              |

   | 10050   | * Add a Package.operation attribute and use it to            |
   | zmedico | distinguish "uninstall" operations.                          |

   | 10052   | Don't add blockers to the graph more times than necessary.   |
   | zmedico |                                                              |

   | 10054   | Sort blockers when caching them.                             |
   | zmedico |                                                              |

   | 10056   | Detect an old version of tarsync and use bzip2 compression   |
   | zmedico | in that case.                                                |

   | 10062   | When adding blockers for installed packages to the graph,    |
   | zmedico | use cached Package instances instead of constructing new     |
   |         | ones.                                                        |

   | 10065   | Fix variable rename breakage: pkg -> pkg.cpv                 |
   | zmedico |                                                              |

   | 10067   | Bug #219837 - Adjust date calculations some more and show an |
   | zmedico | informative ewarn message when bailing out due to a newer    |
   |         | snapshot being unavailable.                                  |

   | 10069   | check if PORTAGE_TMPDIR is mounted readonly/noexec (bug      |
   | genone  | #219957)                                                     |

svn path=/main/branches/prefix/; revision=10088

18 years ago Merged from trunk 10000:10035
Fabian Groffen [Fri, 2 May 2008 14:36:59 +0000 (14:36 -0000)]
   Merged from trunk 10000:10035

   | 10001   | Bug #219369 - Enable automatic upgrage or downgrade to a     |
   | zmedico | version with visible KEYWORDS when the installed version is  |
   |         | masked by KEYWORDS, but never reinstall the same exact       |
   |         | version only due to a KEYWORDS mask.                         |

   | 10003   | Never uninstall sys-apps/portage except through replacement. |
   | zmedico |                                                              |

   | 10005   | * Remove the only remaining sys.exit() calls inside the      |
   | zmedico | depgraph class. * Fix _unknown_internal_error() to work with |
   |         | zero arguments.                                              |

   | 10006   | Fix the EbuildQuote check to ignore "echo" and the elog      |
   | zmedico | functions since people might not want quotes in those cases. |

   | 10007   | Bug #218854 - Fix depgraph._iter_atoms_for_pkg() so that     |
   | zmedico | argument atoms only match the highest visible slot.          |

   | 10008   | Add missing slot comparison when looking for higher slot in  |
   | zmedico | _iter_atoms_for_pkg().                                       |

   | 10009   | Bug #211833 - When an ebuild removal phase fails, notify the |
   | zmedico | user that removal of environment.bz2 file will cause the     |
   |         | ebuild to be sourced and eclasses from the current portage   |
   |         | tree will be used when necessary.                            |

   | 10014   | Fix PackageVirtualDbapi.cpv_inject() to make sure packages   |
   | zmedico | with duplicate cpv or slot are handled correctly.            |

   | 10016   | Use write_atomic() for manifest updates.                     |
   | zmedico |                                                              |

   | 10018   | Try to format the elog message better for bug #211833,       |
   | zmedico | separating paragraphs for easier reading.                    |

   | 10020   | Add comma to ("__weakref__",) so that it's a tuple instead   |
   | zmedico | of a string. Thanks to ferringb.                             |

   | 10022   | As suggested by Chr. Schaefer in bug #211833, comment #15,   |
   | zmedico | note that removal of the environment.bz2 file is preferred   |
   |         | since it may allow the removal phases to execute             |
   |         | successfully.                                                |

   | 10024   | For bug #211833, be explicit that the pkg_prerm() and        |
   | zmedico | pkg_postrm() removal phases are the ones that are skipped.   |

   | 10026   | Add a Package.pv_split attibute to optimize version          |
   | zmedico | comparison operators.                                        |

   | 10028   | Fix spelling.                                                |
   | zmedico |                                                              |

   | 10030   | When a package scheduled for uninstall isn't installed       |
   | zmedico | anymore, move on to the next task.                           |

   | 10032   | Handle a potential KeyError in depgraph.display() when in    |
   | zmedico | --resume mode and a package scheduled for uninstall is no    |
   |         | longer installed.                                            |

   | 10034   | Prevent some more visible downgrades from possibly being     |
   | zmedico | missed (bug #219369).                                        |

   | 10035   | Prevent some more visible downgrades from possibly being     |
   | zmedico | missed (bug #219369).                                        |

svn path=/main/branches/prefix/; revision=10087

18 years agoRevert 9499, genone merged and improved it in 10082
Fabian Groffen [Fri, 2 May 2008 09:43:13 +0000 (09:43 -0000)]
Revert 9499, genone merged and improved it in 10082

svn path=/main/branches/prefix/; revision=10084

18 years agothis is /bin/sh so we need to quote the hell and beyond
Fabian Groffen [Thu, 1 May 2008 20:30:28 +0000 (20:30 -0000)]
this is /bin/sh so we need to quote the hell and beyond

svn path=/main/branches/prefix/; revision=10064

18 years agomore quoting to get spaces in username/groupname working right
Fabian Groffen [Thu, 1 May 2008 17:13:48 +0000 (17:13 -0000)]
more quoting to get spaces in username/groupname working right

svn path=/main/branches/prefix/; revision=10060

18 years agoproperly quote rootuser, since on Windows/Interix/SFU it can be a thing with spaces...
Fabian Groffen [Thu, 1 May 2008 17:10:11 +0000 (17:10 -0000)]
properly quote rootuser, since on Windows/Interix/SFU it can be a thing with spaces in it (yuk!)

svn path=/main/branches/prefix/; revision=10059

18 years agocorrect merge error
Fabian Groffen [Sun, 27 Apr 2008 15:38:38 +0000 (15:38 -0000)]
correct merge error

svn path=/main/branches/prefix/; revision=10000

18 years ago Merged from trunk 9962:9994
Fabian Groffen [Sun, 27 Apr 2008 14:56:09 +0000 (14:56 -0000)]
   Merged from trunk 9962:9994

   | 9963    | Rename the "consistent" depgraph parameter to "complete"     |
   | zmedico | since what it really means is that the graph will be         |
   |         | complete in the sense that no known dependencies are         |
   |         | neglected.                                                   |

   | 9964    | Update description of "complete" depgraph param.             |
   | zmedico |                                                              |

   | 9965    | Bug #172812 - If any Uninstall tasks need to be executed in  |
   | zmedico | order to avoid a conflict, complete the graph with any       |
   |         | dependencies that may have been initially neglected (to      |
   |         | ensure that unsafe Uninstall tasks are properly identified   |
   |         | and blocked from execution).                                 |

   | 9967    | remove unused function                                       |
   | genone  |                                                              |

   | 9968    | Add some more spinner.update() calls in possibly time        |
   | zmedico | consuming loops.                                             |

   | 9970    | as NEEDED files don't conain enough formation for e.g.       |
   | genone  | preserve-libsto work properly and we don't want to change    |
   |         | the format of existing files create another file including   |
   |         | additional information                                       |

   | 9971    | remove debug output                                          |
   | genone  |                                                              |

   | 9972    | s/be only/only be/                                           |
   | zmedico |                                                              |

   | 9976    | Bug #219251 - Fix typo in PORTDIR_OVERLAY when searching for |
   | zmedico | sets.conf files. Thanks to Manuel Nickschas                  |
   |         | <sputnick@quassel-irc.org> for fixing this.                  |

   | 9977    | Refactor the way that depgraph.altlist(), _complete_graph(), |
   | zmedico | and validate_blockers() interact with eachother. This        |
   |         | simplifies things by eliminating the need for recursive      |
   |         | calls to validate_blockers().                                |

   | 9978    | add LibraryPackageMap replacement using NEEDED.2 files       |
   | genone  |                                                              |

   | 9979    | * Add a Blocker class to use instead of tuples. * Fix the    |
   | zmedico | Task constructor to properly traverse __slots__ of all       |
   |         | inherited classes.                                           |

   | 9980    | Don't assume that altlist() will succeed inside              |
   | zmedico | display_problems().                                          |

   | 9981    | Use digraphs to clean up blocker reference counting in the   |
   | zmedico | depgraph.                                                    |

   | 9982    | Add a PackageVirtualDbapi.copy() method.                     |
   | zmedico |                                                              |

   | 9983    | Bug #172812 - When a package needs to be uninstalled in      |
   | zmedico | advance rather than through replacement, show the            |
   |         | corresponding [blocks] entries in the displayed list. In     |
   |         | order to show more structure in the --tree display, expand   |
   |         | Package -> Uninstall edges into Package -> Blocker ->        |
   |         | Uninstall edges. Also, create edges between a package's own  |
   |         | blockers and it's Uninstall task since it's blockers become  |
   |         | irrelevant as soon as it's uninstalled.                      |

   | 9990    | Remove unnecessary "mydbapi" variable in depgraph.display(). |
   | zmedico |                                                              |

   | 9992    | Create a digraph.difference_update() method and use it to    |
   | zmedico | amortize the cost of removing nodes from the digraph.order   |
   |         | list.                                                        |

   | 9994    | Take the classes that initialize variables in __slots__ with |
   | zmedico | keyword constructor arguments and make them all derive from  |
   |         | a new SlotObject class.                                      |
   Merged from trunk 9995:9996

   | 9996   | some minor code fixes                                         |
   | genone |                                                               |
   Merged from trunk 9996:9998

   | 9997   | actually use rpath for the internal lib check                 |
   | genone |                                                               |

   | 9998   | fix logic error                                               |
   | genone |                                                               |

svn path=/main/branches/prefix/; revision=9999

18 years ago Merged from trunk 9941:9959
Fabian Groffen [Thu, 24 Apr 2008 18:00:13 +0000 (18:00 -0000)]
   Merged from trunk 9941:9959

   | 9943    | Make dir_get_metadata() retry if a httplib.ResponseNotReady  |
   | zmedico | exception occurs.                                            |

   | 9945    | Bug #172812 - Add an Uninstall class derived from the        |
   | zmedico | Package class, for packages that may need to be uninstalled  |
   |         | to avoid conflicts.                                          |

   | 9946    | Bug #172812 - Automatically uninstall packages to avoid      |
   | zmedico | blocker conflicts. The intention is to only uninstall        |
   |         | packages that would be removed by --depclean (after the      |
   |         | updates) anyway. To prevent automatic uninstallation of      |
   |         | packages that the user probably wants to keep, the following |
   |         | types of packages will not be automatically unmerged: *      |
   |         | Installed packages that have been pulled into the current    |
   |         | dependency graph. Note that this check is not necessarily    |
   |         | complete unless the --complete-graph option is enabled,      |
   |         | making other sanity checks necessary. * Installed packages   |
   |         | matched by atoms from the system set. For safety, these are  |
   |         | unmerged after being replaced by another version. *          |
   |         | Installed packages matched by atoms from the world set, if   |
   |         | there is no matching replacement in the current dependency   |
   |         | graph.                                                       |

   | 9947    | s/unmerge/uninstall/ for consistency.                        |
   | zmedico |                                                              |

   | 9948    | Bug #172812 - Document new automatic uninstallation behavior |
   | zmedico | in the "Conflict Avoidance" section.                         |

   | 9949    | Bug #172812 - Protect packages from being removed from the   |
   | zmedico | world file during automatic uninstallation.                  |

   | 9950    | Reset the state variables for leaf node selection in         |
   | zmedico | depgraph.altlist() when appropriate.                         |

   | 9951    | Split out a _dequeue_uninstall_tasks() method.               |
   | zmedico |                                                              |

   | 9952    | Bug #172812 - When automatically uninstalling packages,      |
   | zmedico | build the next package in the merge list before executing    |
   |         | scheduled uninstall tasks.                                   |

   | 9953    | Combine --nodeps spinner logic.                              |
   | zmedico |                                                              |

   | 9954    | Fix broken mtimedb resume list handling for automatic        |
   | zmedico | uninstall tasks.                                             |

   | 9955    | Handle potential InvalidDependString exceptions when match   |
   | zmedico | packages to system and world atoms in depgraph.altlist().    |

   | 9956    | Fix interaction between automatic uninstall and options like |
   | zmedico | --pretend, --fetchonly, and --buildpkgonly.                  |

   | 9959    | Add a note about automatic uninstallation to solve blockers. |
   | zmedico |                                                              |

svn path=/main/branches/prefix/; revision=9962

18 years ago Merged from trunk 9909:9941
Fabian Groffen [Thu, 24 Apr 2008 17:58:14 +0000 (17:58 -0000)]
   Merged from trunk 9909:9941

   | 9910    | Inside dblink.unmerge(), call self.updateprotect() just in   |
   | zmedico | case anything has changed since the dblink instance was      |
   |         | constructed.                                                 |

   | 9912    | Handle potential InvalidDependString exceptions from         |
   | zmedico | visible().                                                   |

   | 9914    | Bug #217905 - Fix portdbapi.getfetchlist() to correctly      |
   | zmedico | calculate USE when the useflags parameter is not passed in.  |

   | 9916    | If the mysettings parameter is not passed in to              |
   | zmedico | portdbapi.getfetchlist() then substitue                      |
   |         | self.doebuild_settings since that one is mutable which is    |
   |         | necessary in case setcpv() needs to be called.               |

   | 9918    | Fix portdbapi.getfetchlist() so that it doesn't              |
   | zmedico | unnecessarily calculate USE when the "all" parameter is      |
   |         | True.                                                        |

   | 9920    | Remove redundant version sorting in _expand_new_virtuals()   |
   | zmedico | since the dbapi match results are already sorted.            |

   | 9922    | Make the ccache userpriv permission check from bug #162542   |
   | zmedico | less sensitive by skipping permission checks on files and    |
   |         | just checking the directories.                               |

   | 9924    | Bug #218202 - Make sure the spinner is quiet in --nodep      |
   | zmedico | mode.                                                        |

   | 9926    | Add a new part for "Dependency Resolution".                  |
   | zmedico |                                                              |

   | 9928    | Bug #218559 - Make portdbapi automatically add sandbox write |
   | zmedico | access to self.depcachedir when appropriate. This makes the  |
   |         | portageq blanket sandbox exemption unnecessary.              |

   | 9930    | * Make portdbapi.aux_get() automatically pull pre-generated  |
   | zmedico | metadata directly from the metadata/cache/ directory when    |
   |         | metadata-transfer is not enabled in FEATURES. This makes all |
   |         | cache modules behave similar to existing metadata_overlay    |
   |         | module, except when FEATURES="metadata-transfer" has been    |
   |         | explicitly enabled. * Remove metadata-transfer from FEATURES |
   |         | in make.globals so that it's no longer enabled by default.   |
   |         | Users will be happy about this since the "Updating Portage   |
   |         | cache" part of emerge --sync can be more time consuming than |
   |         | the rsync run itself. It's also nicer when when using        |
   |         | PORTDIR over nfs or bind mounted in a chroot since there's   |
   |         | no need to run emerge --metadata. * Update                   |
   |         | FEATURES="metadata-transfer" docs to warn users of the rsync |
   |         | tree to modify eclases in PORTDIR_OVERLAY if necessary       |
   |         | instead of doing it directly in the rsync tree. * Relevant   |
   |         | updates to /etc/portage/modules docs.                        |

   | 9932    | Fix portage version, should be >=2.1.5.                      |
   | zmedico |                                                              |

   | 9934    | Document FEATURES="metadata-transfer" changes some more.     |
   | zmedico |                                                              |

   | 9936    | In action_metadata(), properly put the source cache in       |
   | zmedico | readonly mode.                                               |

   | 9938    | In show_slot_collision_notice(), refer to the problem as a   |
   | zmedico | "slot conflict" since that's how I'm refering to it in the   |
   |         | docs.                                                        |

   | 9940    | Bug #218439 - Improve alignment in short emerge --help       |
   | zmedico | options output.                                              |

   | 9941    | Swap --nospinner and --oneshot for alphabetical ordering.    |
   | zmedico |                                                              |

svn path=/main/branches/prefix/; revision=9961

18 years ago Merged from trunk 9894:9906
Fabian Groffen [Tue, 15 Apr 2008 18:14:49 +0000 (18:14 -0000)]
   Merged from trunk 9894:9906

   | 9895    | Fix issues with an empty string being passed into            |
   | zmedico | PreservedLibsRegistry.register() now that COUNTER is not     |
   |         | loaded via config.load_infodir(). Thanks to grobian for      |
   |         | reporting.                                                   |

   | 9896    | In config.setcpv() and regenerate(), replace                 |
   | zmedico | str.startswith() calls with slice comparison. It's not       |
   |         | pretty but performance is critical in this section of code   |
   |         | and there is a measurable performance difference.            |

   | 9898    | Bug #217664 - Fix emerge 'by path' package argument handling |
   | zmedico | so that Package instances are properly cached (avoiding a    |
   |         | KeyError later).                                             |

   | 9900    | Revert part of atom selection consistency improvement from   |
   | zmedico | r9873 since it in some cases it triggers unresolvable direct |
   |         | circular dependencies. For example, this happens with        |
   |         | gwydion-dylan which depends on either itself or              |
   |         | gwydion-dylan-bin. In case gwydion-dylan is not yet          |
   |         | installed, gwydion-dylan-bin needs to be selected in order   |
   |         | to avoid a an unresolvable direct circular dependency.       |

   | 9901    | Add support to depgraph._select_atoms() to take a "parent"   |
   | zmedico | parameter and use that to try and avoid unresolvable direct  |
   |         | circular dependencies when necessary. Also, make atom        |
   |         | selection more consistent with the graph to solve some cases |
   |         | of bug #1343. This improves the fix from bug #141118 to work |
   |         | in cases when a virtual is not yet installed but it has been |
   |         | pulled into the graph. For example, see the case of in Bug   |
   |         | #163801#c17, where we want kaffe to satisfy virtual/jdk-1.4  |
   |         | without an extra jvm being pulled in unnecessarily.          |

   | 9904    | Comment some more on the significance of passing the         |
   | zmedico | graph_db and parent into depgraph._select_atoms() to solve   |
   |         | some cases of bug #1343 while avoiding unresolvable direct   |
   |         | circular dependencies.                                       |

   | 9906    | The dependency resolver now has a feedback mechanism that    |
   | zmedico | helps make atom selections more consistent with previous     |
   |         | selections that have been added to the graph. This solves    |
   |         | some common cases of bug #1343.                              |

svn path=/main/branches/prefix/; revision=9909

18 years agorevert -r9893:9894, zmedico checked in a correct fix
Fabian Groffen [Tue, 15 Apr 2008 18:12:42 +0000 (18:12 -0000)]
revert -r9893:9894, zmedico checked in a correct fix

svn path=/main/branches/prefix/; revision=9908

18 years agoIn the absence of expertise: layman's fix for the following error:
Fabian Groffen [Mon, 14 Apr 2008 18:04:12 +0000 (18:04 -0000)]
In the absence of expertise: layman's fix for the following error:

  File "pym/portage/dbapi/vartree.py", line 1189, in unmerge
    plib_registry.unregister(self.mycpv, self.settings["SLOT"], self.settings["COUNTER"])
  File "pym/portage/dbapi/vartree.py", line 100, in unregister
    self.register(cpv, slot, counter, [])
  File "pym/portage/dbapi/vartree.py", line 86, in register
    and self._data[cps][0] == cpv and int(self._data[cps][1]) == int(counter):
ValueError: invalid literal for int() with base 10: ''

COUNTER appears to be empty quite often, in this case it is often and
called by some preserved-libs stuff.  I just replace counter with an
explicit 0 in case counter == "".

svn path=/main/branches/prefix/; revision=9894

18 years ago Merged from trunk 9869:9891
Fabian Groffen [Mon, 14 Apr 2008 17:49:59 +0000 (17:49 -0000)]
   Merged from trunk 9869:9891

   | 9870    | Make _dep_check_composite_db match() return multiple slots   |
   | zmedico | so that it behaves more like other dbapi instances would,    |
   |         | and also make it inherit from dbapi.                         |

   | 9871    | Fix _dep_check_composite_db.match() so that it doesn't       |
   | zmedico | exempt the highest slot from visibility checks.              |

   | 9872    | Fix the _dep_check_composite_db visibility filtering some    |
   | zmedico | more.                                                        |

   | 9873    | Improve lookahead for new-style virtuals: * Substitue the    |
   | zmedico | graph tree for the vartree in dep_check() since we want atom |
   |         | selections to be consistent with package selections have     |
   |         | already been made. * Add the selected package to the graph   |
   |         | as soon as possible so that later dep_check() calls can use  |
   |         | it as feedback for making more consistent atom selections. * |
   |         | Expand all slots of new-style virtuals inside                |
   |         | _dep_check_composite_db so that lookahead examines a matched |
   |         | slots. This solves some cases of bug #1343, and extends the  |
   |         | fix for bug #141118 to work in cases when a virtual is not   |
   |         | yet installed but it has been pulled into the graph.         |

   | 9874    | To optimize consistency of atom selections, add all of the   |
   | zmedico | root packages to the graph before processing any             |
   |         | dependencies.                                                |

   | 9879    | * For optimal atom selection, use PackageVirtualDbapi        |
   | zmedico | instances in place of the vardb for all dep_check() calls. * |
   |         | Replace dep_check_trees in depgraph.validate_blockers() with |
   |         | the equivalent self._graph_trees reference.                  |

   | 9881    | Fix buggy logic in WorldSet.load() that causes it to discard |
   | zmedico | all of it's atoms in some cases (leading to loss of the      |
   |         | whole world file).                                           |

   | 9882    | Fix some more broken logic inside WorldSet.load().           |
   | zmedico |                                                              |

   | 9883    | s/timetasmp/timestamp/                                       |
   | zmedico |                                                              |

   | 9884    | Split out a depgraph._add_dep() method.                      |
   | zmedico |                                                              |

   | 9885    | Call depgraph._add_dep() to add package dependencies to the  |
   | zmedico | graph as soon as possible rather than pushing them onto the  |
   |         | stack.                                                       |

   | 9886    | Fix some breakage in the allow_unsatisfied handling.         |
   | zmedico |                                                              |

   | 9890    | When regenerating USE_EXPAND in config.setcpv(), improve     |
   | zmedico | performance by using regular expression instead of           |
   |         | str.startswith().                                            |

   | 9891    | Revert back to using startwith because I screwed up my       |
   | zmedico | benchmark and it turns out starswith is faster than using    |
   |         | regular expressions.                                         |

svn path=/main/branches/prefix/; revision=9893

18 years ago Merged from trunk 9865:9866
Fabian Groffen [Mon, 14 Apr 2008 17:48:19 +0000 (17:48 -0000)]
   Merged from trunk 9865:9866

   | 9866   | store sets in a different physical location than normal       |
   | genone | packages for 'world' (makes ferringb a bit happier, and might |
   |        | have other advantages in the future)                          |

   This is a risky sync, as it requires Portage's ebuild to do the sets
   split from world -> world_sets.

svn path=/main/branches/prefix/; revision=9892

18 years ago Merged from trunk 9862:9865
Fabian Groffen [Sun, 13 Apr 2008 10:44:49 +0000 (10:44 -0000)]
   Merged from trunk 9862:9865

   | 9864    | Make movefile() tolerant to EPERM errors that can be raised  |
   | zmedico | from utime() calls. Instead of failing, use stat() to return |
   |         | the mtime if possible.                                       |

   | 9865    | Convert st_mtime to long for movefile() return type.         |
   | zmedico |                                                              |

svn path=/main/branches/prefix/; revision=9869

18 years ago Merged from trunk 9831:9860
Fabian Groffen [Sun, 13 Apr 2008 09:42:21 +0000 (09:42 -0000)]
   Merged from trunk 9831:9860

   | 9832    | In config.setcpv() and load_infodir(), always set known good |
   | zmedico | values for CATEGORY and PF, since corruption of these can    |
   |         | cause problems.                                              |

   | 9834    | Remove all calls to config.load_infodir() since it doesn't   |
   | zmedico | seem to server any purpose now that the complete environment |
   |         | is loaded from environment.bz2.                              |

   | 9835    | Remove unused infodir variable.                              |
   | zmedico |                                                              |

   | 9837    | Make doebuild() bail out early with a PermissionDenied error |
   | zmedico | if there is no write access to $PKGDIR.                      |

   | 9839    | When dep_check() expands new-style virtuals, use USE flags   |
   | zmedico | from aux_get calls to evaluate any conditionals that the     |
   |         | depstrings might contain. This works properly for ebuilds    |
   |         | now that aux_get() is backed by Package instances containing |
   |         | the correct USE.                                             |

   | 9840    | Fix the code from the previous commit so that it doesn't try |
   | zmedico | to pull USE from a portdbapi instance (like when called by   |
   |         | repoman) since portdbapi doesn't return USE in aux_get()     |
   |         | calls.                                                       |

   | 9842    | Fix 'undefined name' errors found by pyflakes.               |
   | zmedico |                                                              |

   | 9844    | Make file_get() redirect FETCHCOMMAND output to stdout just  |
   | zmedico | like portage.fetch() does. Thanks to Ramereth for reporting. |

   | 9846    | Rename the undocumented --conistent option to                |
   | zmedico | --complete-graph and add some docs.                          |

   | 9848    | Add some notes for the parallel-fetch feature and the new    |
   | zmedico | --complete-graph option for emerge.                          |

   | 9850    | Make binarytree.prevent_collision() adjust permissions on    |
   | zmedico | directories and raise a PermissionDenied error if the        |
   |         | required directories is not writable.                        |

   | 9852    | Bug #215016 - When transforming of USE flags to USE_EXPAND   |
   | zmedico | variables, filter out flags that aren't considered to be     |
   |         | part of IUSE or implicit IUSE. This patch moves all IUSE     |
   |         | dependent code from config.regenerate() to config.setcpv().  |

   | 9854    | * Optimize config.setcpv() to return early if IUSE has not   |
   | zmedico | changed since the previous setcpv() call. * Add EBUILD_PHASE |
   |         | to the blacklisted variables list.                           |

   | 9856    | Bug #217444 - Send debug-print() output to stderr so that it |
   | zmedico | can't interfere with command substitution. Thanks to Fabio   |
   |         | Rossi <rossi.f@inwind.it> for this patch.                    |

   | 9858    | Fix the filtering for bug #215016: * fix broken comparison   |
   | zmedico | for he iuse filtering * filter out any duplicates that       |
   |         | variable may contain                                         |

   | 9860    | In --buildpkgonly mode, don't discard RDEPEND and PDEPEND if |
   | zmedico | --empty or --deep are enabled. The makes it possible to run  |
   |         | `emerge -eB world` and have every single package rebuilt     |
   |         | (without actually installing anything).                      |

svn path=/main/branches/prefix/; revision=9868

18 years ago- use EPREFIX_LSTRIP constant instead of dynamic EPREFIX.lstrip(os.path.sep)
Fabian Groffen [Sun, 13 Apr 2008 08:12:26 +0000 (08:12 -0000)]
- use EPREFIX_LSTRIP constant instead of dynamic EPREFIX.lstrip(os.path.sep)
- avoid bug #217481 from happening, but don't fix it for real
  by ignoring host-provided stuff on Darwin in this case, we also ignore
  the Carbon Framework which preserve-libs tries to preserve, basically
  because it selects its targets wrongly.

svn path=/main/branches/prefix/; revision=9867

18 years agoRevert commit -r972{7,8} in Prefix. It indeed fixes bug #215242, but by
Fabian Groffen [Fri, 11 Apr 2008 11:27:18 +0000 (11:27 -0000)]
Revert commit -r972{7,8} in Prefix.  It indeed fixes bug #215242, but by
entirely disabling preserve-libs, which is undesirable for me.

svn path=/main/branches/prefix/; revision=9831

18 years agoImplement sort of 'stub' for getlibpaths in Prefix. I'm still quite concerned that...
Fabian Groffen [Fri, 11 Apr 2008 10:59:35 +0000 (10:59 -0000)]
Implement sort of 'stub' for getlibpaths in Prefix.  I'm still quite concerned that this is used, and actually not convinced that it makes sense at all.

svn path=/main/branches/prefix/; revision=9830

18 years ago Merged from trunk 9814:9827
Fabian Groffen [Fri, 11 Apr 2008 10:13:26 +0000 (10:13 -0000)]
   Merged from trunk 9814:9827

   | 9815    | Bug #217122 - When waiting for a parallel-fetch download to  |
   | zmedico | complete, show a more friendly and informative message.      |

   | 9817    | Make the CHOST visibility check tolerant of missing CHOST    |
   | zmedico | metadata.                                                    |

   | 9819    | Fix "pkg" variable name collisions in depgraph.display().    |
   | zmedico |                                                              |

   | 9821    | Rename variable pkg_cpv to pkg_str.                          |
   | zmedico |                                                              |

   | 9823    | Nest the DepcheckCompositeDB class inside the depgraph class |
   | zmedico | since it's not intended for use elsewhere.                   |

   | 9825    | Tweak --buildpkgonly and fakeroot logic so that              |
   | zmedico | --buildpkgonly can be used by a non-root user to build       |
   |         | binary packages with fakeroot.                               |

   | 9827    | Copy group mode bits from $PKGDIR when creating              |
   | zmedico | subdirectories.                                              |

svn path=/main/branches/prefix/; revision=9829

18 years agofix the next backtrace
Fabian Groffen [Thu, 10 Apr 2008 18:12:26 +0000 (18:12 -0000)]
fix the next backtrace

svn path=/main/branches/prefix/; revision=9812

18 years ago Merged from trunk 9799:9810
Fabian Groffen [Thu, 10 Apr 2008 18:05:50 +0000 (18:05 -0000)]
   Merged from trunk 9799:9810

   | 9808    | Implement expansion of catgories in                          |
   | zmedico | DepcheckCompositeDB.match() for old installed packages that  |
   |         | may contain atoms that are not fully qualified.              |

   | 9810    | Remove an unused function.                                   |
   | zmedico |                                                              |

svn path=/main/branches/prefix/; revision=9811

18 years agoFix "!!! global name 'built' is not defined None" backtrace.
Fabian Groffen [Thu, 10 Apr 2008 18:02:57 +0000 (18:02 -0000)]
Fix "!!! global name 'built' is not defined None" backtrace.

svn path=/main/branches/prefix/; revision=9809

18 years ago Merged from trunk 9774:9799
Fabian Groffen [Thu, 10 Apr 2008 16:55:08 +0000 (16:55 -0000)]
   Merged from trunk 9774:9799

   | 9775    | Fix minor issues in the calculation of the number of parents |
   | zmedico | omitted from the slot collision display.                     |

   | 9777    | Fix the docstring for depgraph._dep_expand().                |
   | zmedico |                                                              |

   | 9779    | When checking atoms without categories against the installed |
   | zmedico | packages, just check for existence of the cat/pn rather that |
   |         | a full match.                                                |

   | 9785    | Add some docs for the DepcheckCompositeDB class.             |
   | zmedico |                                                              |

   | 9786    | Replace the fakdbapi class that is used to track depgraph    |
   | zmedico | state with a similar PackageVirtualDbapi class that uses     |
   |         | Package instances internally. This eliminates some           |
   |         | redundancy since the Package instances can be reused         |
   |         | elsewhere, unlike the internal data structures used by       |
   |         | fakedbapi.                                                   |

   | 9787    | Improve used of cached Package instances in                  |
   | zmedico | depgraph._select_pkg_from_graph().                           |

   | 9788    | Make FakeVartree use PackageVirtualDbapi instead of          |
   | zmedico | fakedbapi so that it can populate and utilize a cache of     |
   |         | Package instances.                                           |

   | 9789    | * Make depclean/prune use cached Package instances for       |
   | zmedico | visibility checks. * Make FakeVartree wrap dbapi.match() to  |
   |         | make sure the metadata in Package instances gets updated for |
   |         | any cpv that is returned from a match() call, since the      |
   |         | metadata can be accessed directly from the Package instance  |
   |         | instead of via aux_get().                                    |

   | 9794    | Use cached Package instances in depgraph.display().          |
   | zmedico |                                                              |

   | 9797    | Make sure that everything except Package nodes is ignored    |
   | zmedico | when doing the --buildpkgonly digraph.hasallzeros() check.   |

   | 9799    | Iterate over a copy of the digraph nodes so that removal     |
   | zmedico | can't break the iterator.                                    |

svn path=/main/branches/prefix/; revision=9807

18 years ago Merged from trunk 9741:9774
Fabian Groffen [Thu, 10 Apr 2008 16:52:27 +0000 (16:52 -0000)]
   Merged from trunk 9741:9774

   | 9742    | When reading and writing the Packages index file, translate  |
   | zmedico | metadata keys on the fly. Current translations: DESC         |
   |         | DESCRIPTION REPO repository                                  |

   | 9743    | For repoman, only cache the metadata necessary for           |
   | zmedico | visibility checks in order to reduce memory consumption.     |

   | 9744    | Remove unused iter_atoms() function.                         |
   | zmedico |                                                              |

   | 9745    | Remove the depgraph._get_arg_for_pkg() method since          |
   | zmedico | _iter_atoms_for_pkg() does the job.                          |

   | 9747    | Fix a little issue in the code from bug #197905 that causes  |
   | zmedico | some elog messages to get lost.                              |

   | 9755    | Fix --update greedy atoms logic so that it only pulls in     |
   | zmedico | packages that actually match the given atom.                 |

   | 9756    | Bug #197810 - Don't automatically downgrade packages for     |
   | zmedico | which available matching versions are masked by corruption,  |
   |         | but do automatically downgrade installed packages that       |
   |         | themselves have a valid mask such as from package.mask.      |

   | 9759    | Bug #162542 - When checking permissions inside CCACHE_DIR    |
   | zmedico | for compatibility with FEATURES=userpriv, check the          |
   |         | permissions on files inside the directory to decide whether  |
   |         | to fix the permissions.                                      |

   | 9761    | Split out a depgraph method to check if a specific new-style |
   | zmedico | virtual package exists.                                      |

   | 9762    | Make depgraph.select_files() detect when a package name      |
   | zmedico | given as an argument is ambiguous due to the existence of a  |
   |         | new-style virtual with the same name (cpv_expand() will not  |
   |         | always raise a ValueError in cases like this).               |

   | 9763    | Handle issues with newlines in elog messages that can        |
   | zmedico | trigger an unhandled ValueError to be raised from a split()  |
   |         | call inside collect_ebuild_messages(): * Use \0 to delimit   |
   |         | messages, so that that elog messages containing newlines are |
   |         | handled correctly. * Handle a potential ValueError when      |
   |         | splitting the message type.                                  |

   | 9765    | Create a new depgraph._dep_expand() method for               |
   | zmedico | select_files() to expand atoms that have no category.        |

   | 9769    | When depgraph.select_files() expands an atom category, in    |
   | zmedico | case of an old-style virtual, defer category expansion so    |
   |         | that the depgraph has more choices.                          |

   | 9771    | Make DepcheckCompositeDB cache Package instances for         |
   | zmedico | aux_get() calls.                                             |

   | 9774    | When pruning the list of parents for the slot collision      |
   | zmedico | display, always show parents that themselves have been       |
   |         | pulled into collision slots, since those are more relevant   |
   |         | that others. (branches/2.1.2 r9773)                          |

svn path=/main/branches/prefix/; revision=9806

18 years ago Merged from trunk 9725:9741
Fabian Groffen [Thu, 10 Apr 2008 16:50:06 +0000 (16:50 -0000)]
   Merged from trunk 9725:9741

   | 9726    | preserve order of ebuild messages even between different     |
   | genone  | message types (bug #197905)                                  |

   | 9727    | * Use type -P which does not produce messages to stderr.     |
   | zmedico | another option is to redirect both stderr and out. * Avoid   |
   |         | &> replace with > ... 2>&1 Thanks to Alon Bar-Lev for this   |
   |         | patch.                                                       |

   | 9728    | only preserve libraries if no copy exists in the libary      |
   | genone  | search path (bug #215242)                                    |

   | 9729    | Fix the CompositDbapi.match() logic wrt "selective" behavior |
   | zmedico | and installed packages so that it correctly handles false    |
   |         | argument matches due to PROVIDE when a corresponding         |
   |         | new-style virtual exists.                                    |

   | 9731    | Rename the CompositDbapi class to DepcheckCompositeDB since  |
   | zmedico | it's really a special pupose class just for dep_check() and  |
   |         | it doesn't implement the full dbapi interface.               |

   | 9732    | Fix java.eclassesnotused logic. Thanks to Betelgeuse.        |
   | zmedico |                                                              |

   | 9733    | In dump_trace(), fix BASH_ARGV and BASH_ARGC offsets so that |
   | zmedico | they are always correct wrt eachother. Thanks to Betelgeuse  |
   |         | for reporting.                                               |

   | 9734    | Fix BASH_ARGC and BASH_ARGV offsets some more.               |
   | zmedico |                                                              |

   | 9735    | Fix DepcheckCompositeDB.match() so that it doesn't assume    |
   | zmedico | that every DependencyArg instance has an "atom" attribute.   |

   | 9736    | Fix variable name collision in DepcheckCompositeDB.match().  |
   | zmedico |                                                              |

   | 9737    | Move virtuals logic from DepcheckCompositeDB.match() to      |
   | zmedico | depgraph._iter_atoms_for_pkg() since it's more generally     |
   |         | useful there.                                                |

   | 9738    | Move all the --update greedy slot logic to                   |
   | zmedico | depgraph.select_files().                                     |

   | 9739    | Fix broken IUSE defaults handling when filtering USE for the |
   | zmedico | Packages file.                                               |

   | 9740    | Handle empty KEYWORDS in the Packages file.                  |
   | zmedico |                                                              |

   | 9741    | * Optimize metadata caching in pordbapi and bindbapi so that |
   | zmedico | cache is never pulled for the same package twice. * Cache a  |
   |         | Package instances constructed during package selection and   |
   |         | reuse them during later package selections.                  |

svn path=/main/branches/prefix/; revision=9805

18 years ago Merged from trunk 9697:9725
Fabian Groffen [Thu, 10 Apr 2008 16:44:23 +0000 (16:44 -0000)]
   Merged from trunk 9697:9725

   | 9699    | When the user has given --depclean a list of atoms to clean, |
   | zmedico | pull all installed packages into the graph (not just those   |
   |         | traversable from system or world) to ensure that packages    |
   |         | can not be uninstalled unless nothing requires them.         |

   | 9700    | Fix a typo.                                                  |
   | zmedico |                                                              |

   | 9702    | Fix a typo in the depclean USE flag handling when populating |
   | zmedico | the digraph for bug #201045.                                 |

   | 9705    | Display the note referencing "masked packages" docs when     |
   | zmedico | there are installed masked packages to display.              |

   | 9706    | Adjust newlines whitespace masked packages display.          |
   | zmedico |                                                              |

   | 9708    | * In the event that a previously installed package has since |
   | zmedico | been masked, emerge will no longer perform an automatic      |
   |         | downgrade as part of a "world" update. You should either     |
   |         | unmask such packages or else explicitly re-merge them in     |
   |         | order to have them dowgraded to an unmasked version.         |

   | 9710    | Add missing "the" to fix grammar.                            |
   | zmedico |                                                              |

   | 9712    | In dbapi.move_ent(), never assume that any of the expected   |
   | zmedico | metadata entries exist (PF, CATEGORY, or *.ebuild).          |

   | 9713    | Replace the depgraph's fakedbapi of visible packages with a  |
   | zmedico | new CompositeDbapi that is implemented on top of the         |
   |         | depgraph's existing package selection logic.                 |

   | 9714    | Remove "selective" depgraph logic from dep_zapdeps() since   |
   | zmedico | it's now handled by CompositeDbapi.                          |

   | 9715    | Memoize package selection results in the depgraph for better |
   | zmedico | performance.                                                 |

   | 9716    | Fix a typo.                                                  |
   | zmedico |                                                              |

   | 9717    | Fix the depgraph package selection cache to update the       |
   | zmedico | "existing node" state of packages if they've been added to   |
   |         | the graph since the last call.                               |

   | 9718    | Bug #216328 - Fix broken --newuse reinstallation logic.      |
   | zmedico |                                                              |

   | 9720    | Handle a potential InvalidDependString exception inside      |
   | zmedico | CompositeDbapi.match().                                      |

   | 9723    | When necessary, make quickpkg add missing metadata to the    |
   | zmedico | vdb entry before creating the binary package.                |

   | 9725    | Clarify --with-bdeps behavior with example. Thanks to        |
   | zmedico | Griffon26 for this patch.                                    |

svn path=/main/branches/prefix/; revision=9804

18 years ago Merged from trunk 9668:9697
Fabian Groffen [Thu, 10 Apr 2008 16:41:19 +0000 (16:41 -0000)]
   Merged from trunk 9668:9697

   | 9669    | Remove some boolean logic that is obsolete now that the      |
   | zmedico | "selective" parameter is passed into dep_zapdeps().          |

   | 9672    | Use pkgcmp() instead of == and best() for correctness in     |
   | zmedico | case of implicit -r0.                                        |

   | 9674    | Bug #215673 - Make ebuild.sh leave IUSE defaults intact      |
   | zmedico | instead of filtering them out. The built_with_use() function |
   |         | in eutils.eclass needs to be updated for compatibility.      |

   | 9675    | Remove the digraph._parent_child_digraph since it's no       |
   | zmedico | longer needed. It's main purpose was to track PDEPEND        |
   |         | relationships but those are handled just like the other deps |
   |         | now.                                                         |

   | 9677    | Handle a potential FileNotFound exception in                 |
   | zmedico | new_protect_filename() when the last ._cfg* file happens to  |
   |         | be a broken symlink. Thanks to bonsaikitten for reporting.   |

   | 9678    | Eliminate a redundant os.path.join() call.                   |
   | zmedico |                                                              |

   | 9680    | Use Package.cp instead of dep_getkey(cpv).                   |
   | zmedico |                                                              |

   | 9681    | Fix the previous commit so that the Package instance is      |
   | zmedico | created in the correct scope.                                |

   | 9683    | In cpv_expand(), if the virtuals file contains a versioned   |
   | zmedico | atom (like the base profile currently has for virtual/pam),  |
   |         | properly remove the operator and version from the atom       |
   |         | before it is passed into dbapi.cp_list().                    |

   | 9685    | For old-style virtuals, we need to repeat the                |
   | zmedico | package.provided check against the selected package.         |

   | 9687    | Implement a PORTAGE_FETCH_RESUME_MIN_SIZE variable that is   |
   | zmedico | useful for helping to ensure that small garbage files such   |
   |         | as html 404 pages are properly discarded.                    |

   | 9689    | If PORTAGE_FETCH_RESUME_MIN_SIZE is undefined or empty,      |
   | zmedico | silently use the default.                                    |

   | 9691    | Add missing str.upper() call for                             |
   | zmedico | PORTAGE_FETCH_RESUME_MIN_SIZE.                               |

   | 9693    | Fix package selection logic so that it always properly finds |
   | zmedico | the highest available version in a new slot even though the  |
   |         | graph already contains a matching version in a lower slot.   |

   | 9695    | Eliminate a redundant atom from the --update greedy slot     |
   | zmedico | expansion code.                                              |

   | 9696    | Add missing DepPriority instances to the graph so that the   |
   | zmedico | --buildpkgonly hasallzeros() calculation works correctly     |
   |         | again.                                                       |

   | 9697    | Decrease priority on --onlydpes dependencies so that         |
   | zmedico | --buildpkgonly hasallzeros() works correctly.                |

svn path=/main/branches/prefix/; revision=9803

18 years agoFix a bug where hard links would cause imaginary paths due to not properly cleaning up
Fabian Groffen [Thu, 10 Apr 2008 12:53:50 +0000 (12:53 -0000)]
Fix a bug where hard links would cause imaginary paths due to not properly cleaning up

svn path=/main/branches/prefix/; revision=9801

18 years ago Merged from trunk 9637:9665
Fabian Groffen [Tue, 1 Apr 2008 18:27:32 +0000 (18:27 -0000)]
   Merged from trunk 9637:9665

   | 9643    | Pass Package instances into visible() so that the package    |
   | zmedico | instance can be used to cache relevant visibility            |
   |         | information such as whether or not the package is corrupt or |
   |         | otherwise invalid.                                           |

   | 9644    | Replace an package tuple with a real Package instance.       |
   | zmedico |                                                              |

   | 9645    | Make depgraph creation more tolerant of missing or masked    |
   | zmedico | packages when the relevant deps are satisfied by installed   |
   |         | packages. This kind of friendliness is especially desired in |
   |         | cases such as --emptytree where it might not be possible to  |
   |         | reinstall every single package. Also, it allows multislot    |
   |         | atoms from the world file (that are necessary to prevent     |
   |         | them from being removed by depclean) trigger warning         |
   |         | messages while still allowing a --emptytree to proceed.      |

   | 9646    | Bug #197810 - Fix package selection logic so that it will    |
   | zmedico | always fall back to an installed package when necessary.     |

   | 9648    | When selecting packages and there is a mixture of old-style  |
   | zmedico | and new-style virtual matches, filter out the old-style      |
   |         | virtual matches.                                             |

   | 9650    | Remove some redundant and obsolete code for warning about    |
   | zmedico | installed packages pulled into the graph.                    |

   | 9652    | Fix package selection logic to always properly reject the    |
   | zmedico | installed package when another is available and the user     |
   |         | wants to reinstall.                                          |

   | 9654    | In the package selection loop, move the installed package    |
   | zmedico | rejection code as early as possible.                         |

   | 9656    | When deps are forced to be satisfied by installed packages   |
   | zmedico | due to masking or unavailability, only tolerate it when the  |
   |         | atom comes from either the system or world set since         |
   |         | otherwise it's a good idea to bail so that the user can      |
   |         | correct the problem.                                         |

   | 9658    | Bug #215308 - Cache the paths of known bad manifests to      |
   | zmedico | ensure that the same broken manifest is never checked twice. |

   | 9660    | When identifying a sys-apps/portage node, compare category   |
   | zmedico | too (not just "portage".                                     |

   | 9662    | Handle missing LICENSE in the Packages index since that's    |
   | zmedico | allowed for virtual packages.                                |

   | 9665    | Exploid ascending order returned from dbapi.match() calls to |
   | zmedico | avoid the need to call best().                               |

svn path=/main/branches/prefix/; revision=9668

18 years ago Merged from trunk 9619:9637
Fabian Groffen [Tue, 1 Apr 2008 18:22:48 +0000 (18:22 -0000)]
   Merged from trunk 9619:9637

   | 9621    | Move the AUTOCLEAN code into dblink.treewalk since it's      |
   | zmedico | already partially supported there anyway (for replacement of |
   |         | identical cpv). This has the benefit of guaranteeing that    |
   |         | the order of installation and removal phases is always the   |
   |         | same.                                                        |

   | 9623    | Bug #211365 - Use catpkgsplit() instead of pkgsplit() for a  |
   | zmedico | cpv.                                                         |

   | 9625    | Bug #211365 - Use catpkgsplit() instead of pkgsplit() for a  |
   | zmedico | cpv.                                                         |

   | 9628    | Make doins clean up it's own temp files. This solves an odd  |
   | zmedico | issue in dyn_package() when portage 2.1.x is installing      |
   |         | portage-2.2 and temp python module files from doins are      |
   |         | imported instead of the expected ones.                       |

   | 9630    | Fix display code that can triger a 'Invalid category'        |
   | zmedico | exception when it is given a blocker. It's only supposed to  |
   |         | execute for normal packages.                                 |

   | 9632    | Fix typos. Thanks to Arfrever Frehtes Taifersar Arahesis     |
   | zmedico | <Arfrever.FTA@GMail.Com>.                                    |

   | 9634    | * Fix broken return value for doins. * Make newins cleanup   |
   | zmedico | temp files after itself.                                     |

   | 9636    | Make sure the all resume lists are deleted when a stale one  |
   | zmedico | is encountered.                                              |

   | 9637    | When dblink.treewalk() queries for other packages in the     |
   | zmedico | same slot, filter out old-style virtual matches since they   |
   |         | are not desired.                                             |

svn path=/main/branches/prefix/; revision=9667

18 years ago Merged from trunk 9583:9619
Fabian Groffen [Tue, 1 Apr 2008 18:13:57 +0000 (18:13 -0000)]
   Merged from trunk 9583:9619

   | 9584    | Bug #214691 - Move the "slot collision" display so that it   |
   | zmedico | is shown after the merge list where it is most likely to be  |
   |         | seen (along with other depgraph problems).                   |

   | 9585    | Add a new "java.eclassesnotused" check for cases where       |
   | zmedico | DEPEND contains virtual/jdk and and the appropriate java     |
   |         | eclass has not been inherited (a violation of the java       |
   |         | team's policy). Thanks to Betelgeuse for the initial patch.  |

   | 9586    | Don't trigger the 'java.eclassesnotused' on blocker atoms.   |
   | zmedico |                                                              |

   | 9587    | Add a new "ebuild.patches" check for the PATCHES variable    |
   | zmedico | that's used by base_src_unpack() from base.eclass. This      |
   |         | generates a warning if the variable is not defined as an     |
   |         | array, since this is required for white space safety. Thanks |
   |         | to Betelgeuse for the initial patch.                         |

   | 9588    | Bug #215240 - Use an alarm signal to implement a 60 second   |
   | zmedico | timeout in finalize() in case send_mail() blocks             |
   |         | indefinitely.                                                |

   | 9589    | When a resume list contains packages that are no longer      |
   | zmedico | available, automatically delete it.                          |

   | 9590    | Fix quoting for ${root} in install_mask().                   |
   | zmedico |                                                              |

   | 9591    | Add a note about PKG_INSTALL_MASK.                           |
   | zmedico |                                                              |

   | 9592    | Bug #214619 - Run dyn_package() and preinst_mask() from ${T} |
   | zmedico | instead of ${D} in order to avoid leaving gmon.out files in  |
   |         | ${D} in case any tools were built with -pf in CFLAGS. Also,  |
   |         | call preinst_mask() after all other functions so that        |
   |         | INSTALL_MASK can be used to wipe out any gmon.out files      |
   |         | created during previous functions.                           |

   | 9606    | When dyn_unpack() automatically cleans ${WORKDIR}, also      |
   | zmedico | remove things like .unpacked and .compiled so that the state |
   |         | is consistent.                                               |

   | 9607    | Bug #215308 - Simplify the greedy atoms logic so that it     |
   | zmedico | behaves more like StaticFileSet and won't pull in lower      |
   |         | slots.                                                       |

   | 9611    | For bugs #197810 and #215308, pass the depgraph's            |
   | zmedico | "selective" parameter down into dep_check() for better atom  |
   |         | preference selection when handling virtuals and other        |
   |         | disjunctive || dependencies. (branches/2.1.2 r9610)          |

   | 9613    | Use enumerate() it iterate over an array.                    |
   | zmedico |                                                              |

   | 9615    | Bug #211365 - Use catpkgsplit() instead of pkgsplit() for a  |
   | zmedico | cpv.                                                         |

   | 9616    | Make code a bit less prone to potentially hidden TypeError   |
   | zmedico | like bugs.                                                   |

   | 9619    | Do not allow commit mode together with the --without-mask    |
   | zmedico | options.                                                     |

svn path=/main/branches/prefix/; revision=9666

18 years ago Merged from trunk 9509:9538
Fabian Groffen [Fri, 28 Mar 2008 21:25:26 +0000 (21:25 -0000)]
   Merged from trunk 9509:9538

   | 9510    | Support ${HOST} substitution in "From" field. Thanks to      |
   | zmedico | wschlich.                                                    |

   | 9511    | Move the default empty compiler flag settings from ebuild.sh |
   | zmedico | to make.globals (bug #214499).                               |

   | 9512    | Bug #214879 - In fetch(), only parse the Manifest when       |
   | zmedico | FEATURES=strict is enabled.                                  |

   | 9513    | Make --noreplace take precedence over --newuse, as suggested |
   | zmedico | by wolf31o2.                                                 |

   | 9514    | Fix the noreplace logic to break out of the cpv loop early   |
   | zmedico | since there's no point in examining any lower versions from  |
   |         | the same repo.                                               |

   | 9519    | Bug #214879 - Fix FEATURES=-strict behavior so that          |
   | zmedico | distfiles digests are always checked.                        |

   | 9520    | Bug #212509 - Implement a new --without-mask option that     |
   | zmedico | causes repoman to behave as if there are no package.mask     |
   |         | entries.                                                     |

   | 9521    | Bug #212509 - Display a note about the --without-mask option |
   | zmedico | when there are masked packages.                              |

   | 9522    | Bug #209418 - Add a new KEYWORDS.dropped check that compares |
   | zmedico | keywords against the keywords of earlier ebuild versions     |
   |         | within a slot.                                               |

   | 9523    | Remove redundant info from the KEYWORDS.dropped message.     |
   | zmedico |                                                              |

   | 9524    | Bug #213629 - Create an EAPI.incompatible category and use   |
   | zmedico | it in cases where EAPI=0 and a slot atom is encountered.     |

   | 9525    | Bug #213629 - Use EAPI.incompatible in cases where EAPI=0    |
   | zmedico | and a default IUSE is encountered.                           |

   | 9526    | Bug #213698 - Make FEAUTURES=keepwork and keeptemp preserve  |
   | zmedico | ${T}/environment since it may contain essential state.       |

   | 9527    | Make dyn_clean() consistent wrt removal of                   |
   | zmedico | ${PORTAGE_BUILDDIR}/image and ${PORTAGE_BUILDDIR}/.installed |
   |         | since otherwise with FEATURES=keepwork dyn_install() will    |
   |         | not call src_install() as necessary to repopulate            |
   |         | ${PORTAGE_BUILDDIR}/image (resulting in install_qa_check     |
   |         | failure due to absence of ${PORTAGE_BUILDDIR}/image).        |

   | 9528    | Bug #214619 - Add support for a PORTAGE_BINPKG_TAR_OPTS      |
   | zmedico | variable that allows the user to specify tar command options |
   |         | for binary package creation.                                 |

   | 9537    | Disable tarsync when using lzma compression since it doesn't |
   | zmedico | seem to be supported.                                        |

   | 9538    | * Skip the recusive chown call if it fails on the top level  |
   | zmedico | directory since it's possible that emerge-webrsync is not    |
   |         | run by root. * Just chown to portage:portage instead of      |
   |         | using PORTAGE_INST_{UID,GID}.  Prefix: use PORTAGE_USER and  |
   |         | PORTAGE_GROUP instead.                                       |

svn path=/main/branches/prefix/; revision=9583

18 years agoFix cause of bug #215116. Properly read input from scanelf such that we don't interp...
Fabian Groffen [Fri, 28 Mar 2008 21:18:04 +0000 (21:18 -0000)]
Fix cause of bug #215116.  Properly read input from scanelf such that we don't interpret rpath info as needed info

svn path=/main/branches/prefix/; revision=9582

18 years agoNuke eselect compiler usage, since eselect compiler has been nuked from the tree...
Fabian Groffen [Tue, 25 Mar 2008 20:55:55 +0000 (20:55 -0000)]
Nuke eselect compiler usage, since eselect compiler has been nuked from the tree a while ago.  Should probably be merged with the trunk.

svn path=/main/branches/prefix/; revision=9509

18 years ago Merged from trunk 9501:9507
Fabian Groffen [Tue, 25 Mar 2008 20:33:41 +0000 (20:33 -0000)]
   Merged from trunk 9501:9507

   | 9502    | Check is os.statvfs() is implemented before trying to us it. |
   | zmedico | (branches/prefix r9500)                                      |

   | 9503    | Bug #214499 - When compiler flags are unset, many packages   |
   | zmedico | will substitute their own implicit flags. For uniformity,    |
   |         | use an empty string as the default.                          |

   | 9504    | Bug #211294 - Make repoman bail out if arch.list contains    |
   | zmedico | unrecognized lines since we don't want people to commit with |
   |         | old versions of portage that don't support the current       |
   |         | arch.list format.                                            |

   | 9505    | Bug #212152 - Account pre-existing files when calculating    |
   | zmedico | whether there is enough space for a download.                |

   | 9506    | Fix typo.                                                    |
   | zmedico |                                                              |

   | 9507    | Bug #212621 - Make the EbuildQuote check do quoting          |
   | zmedico | validation for misc variables from games.eclass.             |

svn path=/main/branches/prefix/; revision=9508

18 years ago Merged from trunk 9494:9496
Fabian Groffen [Mon, 24 Mar 2008 15:09:50 +0000 (15:09 -0000)]
   Merged from trunk 9494:9496

   | 9495    | Fix depgraph._select_package() to make sure the installed    |
   | zmedico | package is a real match before rejecting other available     |
   |         | packages.                                                    |

   | 9496    | Improve logic from the previous commit.                      |
   | zmedico |                                                              |

svn path=/main/branches/prefix/; revision=9501

18 years agoBefore using statvfs, check it is actually available on the current host (OS). This...
Fabian Groffen [Mon, 24 Mar 2008 14:36:16 +0000 (14:36 -0000)]
Before using statvfs, check it is actually available on the current host (OS).  This commit is eligable for merging with the trunk

svn path=/main/branches/prefix/; revision=9500

18 years agoIt took some time for me to figure this out, but yay!
Fabian Groffen [Mon, 24 Mar 2008 09:58:07 +0000 (09:58 -0000)]
It took some time for me to figure this out, but yay!

Fix preserve-libs immediately unmerging a just preserved (copied over)
lib, because it is no longer needed (!needed).

The problem was/is that the Darwin library naming is
lib<name>.<ver>.dylib instead of lib<name>.so.<ver>.  This results in
doing a simple sort() over the list a wrong order of the files, such
that the actual file (libneon.27.1.11.dylib) is seen before it's "soname"
symlink, which is recorded in the reverse NEEDED map.  Result, the code
thinks libneon.27.1.11.dylib is no longer needed, and unmerges it.

I now implemented a naive comparator which puts symlinks on top, as this
was implied order for the loop, which by coincidence works for .so
objects with sort().

I think this commit (or an improved version of it) is eligable for
merging in the trunk, as it is a safer (and more explicit) way of
ensuring that symlinks are seen before the actual files.

svn path=/main/branches/prefix/; revision=9499

18 years agoIt helps when you reference a correct object, this fix is eligable for merging to...
Fabian Groffen [Sun, 23 Mar 2008 23:19:09 +0000 (23:19 -0000)]
It helps when you reference a correct object, this fix is eligable for merging to trunk

svn path=/main/branches/prefix/; revision=9498

18 years agoGenone's preserve-libs is a bit Linux/ELF tuned, make sure the keys of the reverse...
Fabian Groffen [Sun, 23 Mar 2008 22:31:57 +0000 (22:31 -0000)]
Genone's preserve-libs is a bit Linux/ELF tuned, make sure the keys of the reverse map contain basenames only, so we get a little bit more functioning on Darwin.

svn path=/main/branches/prefix/; revision=9497

18 years agoI was too enthusiastic with adding dashes
Fabian Groffen [Thu, 20 Mar 2008 20:54:58 +0000 (20:54 -0000)]
I was too enthusiastic with adding dashes

svn path=/main/branches/prefix/; revision=9494

18 years agoAlign root user flag with portage user flag
Fabian Groffen [Thu, 20 Mar 2008 20:44:13 +0000 (20:44 -0000)]
Align root user flag with portage user flag

svn path=/main/branches/prefix/; revision=9493

18 years ago Merged from trunk 9468:9491
Fabian Groffen [Thu, 20 Mar 2008 20:32:23 +0000 (20:32 -0000)]
   Merged from trunk 9468:9491

   | 9469    | add a placeholder for repository paths in 'filename' and     |
   | genone  | 'directory' options for StaticFileSet                        |

   | 9470    | avoid importing portage to improve performance               |
   | genone  |                                                              |

   | 9471    | When in strict mode, make paren_reduce() detect missing      |
   | zmedico | whitespace around parenthesis tokens and raise an            |
   |         | InvalidDependString exception. Strict mode is not enabled    |
   |         | when handling installed packages, so this will only affect   |
   |         | repoman and packages that haven't been installed yet. Thanks |
   |         | to zlin for reporting.                                       |

   | 9472    | Bug #213540 - Make sure DESTTREE=/usr is set before inherit  |
   | zmedico | calls.                                                       |

   | 9473    | Bug #213592 - Fix --onlydeps breakage.                       |
   | zmedico |                                                              |

   | 9474    | Bug #212882 - For compatibility with ENOENT exceptions       |
   | zmedico | raised from fstat calls with CIFS, wrap fstat calls with an  |
   |         | appropriate exception handler.                               |

   | 9475    | Bug #174634 - Fix ebuild 'digest' and 'manifest' behave 100% |
   | zmedico | identically and update the docs to reflect this.             |

   | 9476    | Bug #149745 - Generate an eqawarn message if dohtml is       |
   | zmedico | called on a directory without the recursive option. Thanks   |
   |         | to brad walker <bradmwalker@cableone.net> for reporting.     |

   | 9477    | use a dict with CP keys in unmerge() to avoid double         |
   | genone  | unmerges if a package is matched by multiple atoms           |

   | 9478    | fix artifact from r9477                                      |
   | genone  |                                                              |

   | 9479    | add @ to the list of invalid atom chars so sets with prefix  |
   | genone  | aren't considered as atoms accidentally                      |

   | 9480    | add unmerge protection for packages still referenced by      |
   | genone  | installed package sets                                       |

   | 9481    | make filesets non-greedy by default                          |
   | genone  |                                                              |

   | 9482    | Bug #139023 - When the --digest option is enabled, advise    |
   | zmedico | the user that `repoman manifest` is the preferred way to     |
   |         | generate manifests.                                          |

   | 9483    | Bug #201045 - Fix unmerge() to preserve unmerge order so     |
   | zmedico | that dependencies are respected. Also, eliminate duplicate   |
   |         | package selections since the same package may be selected by |
   |         | multiple atoms but we can only unmerge it once.              |

   | 9484    | Only show the eqawarn from bug #149745 when nothing is found |
   | zmedico | to install. Also, exit successfully unless nothing is found  |
   |         | to install.                                                  |

   | 9485    | Bug #210575 - Optimize doins -r so that it doesn't call      |
   | zmedico | itself recursively, since it's faster to handle the          |
   |         | recursion internally. Thanks to Benedikt Böhm               |
   |         | <hollow@gentoo.org> for the initial patch.                   |

   | 9486    | Bug #210690 - Fix --help output to show the leading slash on |
   | zmedico | the path to the world file.                                  |

   | 9487    | Strip trailing slashes from directory paths if necessary.    |
   | zmedico |                                                              |

   | 9488    | display versions of other slots for new-slot installs (bug   |
   | genone  | #213790)                                                     |

   | 9489    | Fix quoting.                                                 |
   | zmedico |                                                              |

   | 9491    | readd digestentry.unused category as it's still relevant     |
   | genone  |                                                              |

svn path=/main/branches/prefix/; revision=9492

18 years ago Merged from trunk 9461:9467
Fabian Groffen [Sat, 15 Mar 2008 10:26:36 +0000 (10:26 -0000)]
   Merged from trunk 9461:9467

   | 9462    | * Optimize parallel-fetch to avoid redundant checksum        |
   | zmedico | verification. * Add parallel-fetch to the default FEATURES   |
   |         | since it is more efficient now.                              |

   | 9463    | Bug #42456 - When a checksum failure occurs during fetch,    |
   | zmedico | use a new PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS config variable |
   |         | to control how many mirrors should be tried before aborting  |
   |         | the download. This type of behavior used to be enabled only  |
   |         | in --fetchonly mode but now it's enabled for all fetch()     |
   |         | calls.                                                       |

   | 9466    | Fix grammar.                                                 |
   | zmedico |                                                              |

   | 9467    | Fix an UnboundLocalError for 'pkgindex'.                     |
   | zmedico |                                                              |

svn path=/main/branches/prefix/; revision=9468

18 years ago Merged from trunk 9450:9460
Fabian Groffen [Thu, 13 Mar 2008 18:12:17 +0000 (18:12 -0000)]
   Merged from trunk 9450:9460

   | 9451    | Make --prune and --depclean operate with missing             |
   | zmedico | dependencies when only asked to remove specific packages     |
   |         | since it's relatively safe in this case.                     |

   | 9452    | Convert PackageIndex.packages from a dict to a list so that  |
   | zmedico | in the future it will be possible to support multiple        |
   |         | packages with the same cpv.                                  |

   | 9453    | Make readpkgindex() and writepkgindex() private methods of   |
   | zmedico | PackageIndex.                                                |

   | 9455    | add some status messages, try to copy the tarball into       |
   | genone  | DISTDIR, use getopt for option parsing                       |

   | 9456    | Fix var_assign_re to recognize a call to the 'declare'       |
   | zmedico | builtin even when no options are given.                      |

   | 9457    | When all available ebuilds are masked, avoid producing       |
   | zmedico | warning message when the package does not need to be         |
   |         | reinstalled and the installed version is not masked.         |

   | 9458    | Bug #212882 - Fix lockfile() to handle errno.EACCES raised   |
   | zmedico | from the fcntl call since the spec says that it's equivalent |
   |         | to EAGAIN and it appears that CIFS returns EACCES in this    |
   |         | case.                                                        |

   | 9459    | - news bugfix from ferringb                                  |
   | solar   |                                                              |

   | 9460    | Make strip_empty() return a nedw list instead of working     |
   | zmedico | in-place. Thanks to René Neumann <rene.neumann@necoro.net>  |
   |         | for the suggestion.                                          |

svn path=/main/branches/prefix/; revision=9461

18 years ago Merged from trunk 9428:9448
Fabian Groffen [Fri, 7 Mar 2008 20:16:47 +0000 (20:16 -0000)]
   Merged from trunk 9428:9448

   | 9429    | Bug #211949 - Fix the regex so that it won't match the =     |
   | zmedico | character (equals sign).                                     |

   | 9431    | Add support for idendification of function definitions since |
   | zmedico | it's needed in some cases in order to prevent some odd       |
   |         | function contents from being mistakenly identified as        |
   |         | invalid variable assignments. For example, this line from    |
   |         | _gcc-specs-directive_raw() is commonly found in              |
   |         | environment.bz2 files: $1=="*"directive":" { pspec=spec;     |
   |         | spec=""; outside=0; next }                                   |

   | 9432    | Bug #211949 - Temporarily revert back to a less strict regex |
   | zmedico | in order to avoid false positives with multi-line variable   |
   |         | definitions that can be produced by the 'export' builtin.    |

   | 9433    | Tighten the funct_start_re so that it doesn't match leading  |
   | zmedico | whitespace since that's not needed.                          |

   | 9434    | Fix func_start_re so that it requires at least one           |
   | zmedico | alphanumeric character.                                      |

   | 9435    | Remove redundant CUSTOM_PROFILE_PATH from the PROFILE_PATHS  |
   | zmedico | variable so that /etc/portage/profile/profile.bashrc will    |
   |         | only be sourced once if it exists.                           |

   | 9436    | Implement variable assignment handling in python so that we  |
   | zmedico | can eventually make it more flexible and robust.             |

   | 9437    | Update description to reflect the new meaning of the PATTERN |
   | zmedico | argument.                                                    |

   | 9438    | TODO: Move variable name validation and declare -r filtering |
   | zmedico | into filter-bash-environment.py.                             |

   | 9439    | As requested by wolf31o2, use the ROOT setting from          |
   | zmedico | make.conf as long as it's not overridden by the calling      |
   |         | environment.                                                 |

   | 9440    | Handle multi-line quoted variable assignments.               |
   | zmedico |                                                              |

   | 9441    | Bug #211949 - Tighten the variable name filter to exclude    |
   | zmedico | any variables with names containing any non-alphanumeric     |
   |         | characters.                                                  |

   | 9442    | Fix have_end_quote() to compare the quote against the        |
   | zmedico | correct group.                                               |

   | 9443    | Pass a space-separated list of variables into                |
   | zmedico | filter-bash-environment.py and generate the final regex on   |
   |         | the python side instead of in bash. Also, properly anchor    |
   |         | the regex so that it actually works.                         |

   | 9444    | Update the description to reflect the new meaning of         |
   | zmedico | PATTERN.                                                     |

   | 9445    | Move the variable name validation regexes (for bug 211949)   |
   | zmedico | into filter-bash-environment.py instead of passing them in   |
   |         | from bash.                                                   |

   | 9446    | Implement the sed-based declare -r filter in python.         |
   | zmedico |                                                              |

   | 9447    | Remove egrep syntax emulation since it's not really needed.  |
   | zmedico |                                                              |

   | 9448    | Use os.environ["SANDBOX_ON"] = "0" to make portageq exempt   |
   | zmedico | from sandbox for things like writing metadata cache. Thanks  |
   |         | to ferringb for the suggestion.                              |

svn path=/main/branches/prefix/; revision=9450

18 years ago Merged from trunk 9405:9428
Fabian Groffen [Fri, 7 Mar 2008 20:13:48 +0000 (20:13 -0000)]
   Merged from trunk 9405:9428

   | 9406    | undo registrations of preserved libraries if the merge       |
   | genone  | fails, bug #210501                                           |

   | 9407    | ensure that global variables are used to prevent confusing   |
   | genone  | issues like bug #212055                                      |

   | 9408    | stack use flags from package.use for multiple matching atoms |
   | genone  | (bug #200385)                                                |

   | 9409    | remove FEATURES=livecvsportage                               |
   | genone  |                                                              |

   | 9410    | apply r9408 also for profile-base package.*use* files        |
   | genone  |                                                              |

   | 9411    | Fix typo.                                                    |
   | zmedico |                                                              |

   | 9412    | change stacking order of r9408 so more specific atoms        |
   | genone  | override generic ones                                        |

   | 9413    | fix indentation screwup from r9412                           |
   | genone  |                                                              |

   | 9414    | one more fix to restore correct order for usemask/useforce   |
   | genone  |                                                              |

   | 9415    | Make profile stacking of default USE and package.* slightly  |
   | zmedico | more efficient by skipping list.insert() calls when          |
   |         | possible.                                                    |

   | 9416    | Bug #211949 - As suggested by vapier, tighten the variable   |
   | zmedico | filter to also exclude variable names that begin with a      |
   |         | digit or that contain any non-alphanumeric characters that   |
   |         | are not be supported by bash.                                |

   | 9418    | Quote the file path and uri inside FETCHCOMMAND and          |
   | zmedico | RESUMECOMMAND. Thanks to igli for suggesting.                |

   | 9419    | Fix the regex for bug #211949 so that it correctly matches   |
   | zmedico | variable names that contain more than one non-alphanumeric   |
   |         | character.                                                   |

   | 9421    | Bug #211949 - Tweak the regex so that a leading whitespace   |
   | zmedico | character cannot match the required non-alphanumeric group.  |

   | 9423    | Buf #210372 - Fix FEATURES=suidctl so that it really works   |
   | zmedico | again.                                                       |

   | 9425    | check available space in DISTDIR before trying to fetch/copy |
   | genone  | a file, bug #212152                                          |

   | 9426    | don't list files as being merged when they are ignored due   |
   | genone  | to confmem, bug #212080                                      |

   | 9427    | fix message on ValueError to not sound like crap             |
   | genone  |                                                              |

   | 9428    | tell rpmbuild to clean it's working files after completion,  |
   | genone  | bug #97776                                                   |

svn path=/main/branches/prefix/; revision=9449

18 years agoAdd xterm-color and interix as legal termins such that title setting by Portage works...
Fabian Groffen [Sat, 1 Mar 2008 17:55:34 +0000 (17:55 -0000)]
Add xterm-color and interix as legal termins such that title setting by Portage works on those terminals.  For interix, bug #211875, thanks Markus Duft

svn path=/main/branches/prefix/; revision=9405

18 years ago Merged from trunk 9386:9402
Fabian Groffen [Sat, 1 Mar 2008 17:36:46 +0000 (17:36 -0000)]
   Merged from trunk 9386:9402

   | 9387    | Bug #211554 - Replace references to config["USE"] with       |
   | zmedico | references to config["PORTAGE_USE"] (which is filtered for   |
   |         | intersection with IUSE) so that dependency calculations at   |
   |         | installation time are consistent with those at depclean      |
   |         | time.                                                        |

   | 9388    | Don't filter USE flags in emerge --info output.              |
   | zmedico |                                                              |

   | 9389    | Bug #211294 - Make repoman ignore profiles labeled with      |
   | zmedico | anything other than "stable" or "dev" in profiles.desc so    |
   |         | that we can extend it with new labels such as "exp".         |

   | 9391    | Revert r9387 (the fix for bug #211554) until I figure out    |
   | zmedico | why it's messing up USE calculations for world updates.      |

   | 9392    | Bug #211554 - Replace references to config["USE"] with       |
   | zmedico | references to config["PORTAGE_USE"] (which is filtered for   |
   |         | intersection with IUSE) so that dependency calculations at   |
   |         | installation time are consistent with those at depclean      |
   |         | time.                                                        |

   | 9393    | Fix some references to config["PORTAGE_USE"] to prevent      |
   | zmedico | potential KeyErrors.                                         |

   | 9394    | separate different messages with newlines in post-emerge     |
   | genone  | output                                                       |

   | 9395    | remove obsolete information from preserve-libs post-emerge   |
   | genone  | message                                                      |

   | 9397    | supress stupid line echo in deprecation notices              |
   | genone  |                                                              |

   | 9398    | remove code for manifest1 support                            |
   | genone  |                                                              |

   | 9399    | In the suidctl code, move the addwrite call out of the loop. |
   | zmedico | Thanks to ferringb.                                          |

   | 9400    | Make 'import portage' statements more tolerant to broken     |
   | zmedico | source statements in make.conf since exceptions thrown       |
   |         | during 'import portage' statements can practically render    |
   |         | the api unusable for api consumers. Thanks to lxnay for the  |
   |         | suggestion.                                                  |

   | 9402    | Bug #211949 - Make filter_readonly_variables() remove any    |
   | zmedico | variables with names containing a hyphen since bash does not |
   |         | allow them.                                                  |

svn path=/main/branches/prefix/; revision=9404

18 years ago Merged from trunk 9383:9385
Fabian Groffen [Tue, 26 Feb 2008 08:25:02 +0000 (08:25 -0000)]
   Merged from trunk 9383:9385

   | 9384    | Bug #211365 - Use catpkgsplit() instead of pkgsplit() on the |
   | zmedico | cpv in the dblink constructor since otherwise weird          |
   |         | categories containing numbers can make pkgsplit() return     |
   |         | None (likely related to version regex handling).             |
   |         | (branches/2.1.2 r9383)                                       |

   | 9385    | For depclean/prune unmerge order, if there are no            |
   | zmedico | dependencies between package then just unmerge them          |
   |         | alphabetically.                                              |

svn path=/main/branches/prefix/; revision=9386

18 years ago Merged from trunk 9380:9381
Fabian Groffen [Mon, 25 Feb 2008 16:38:02 +0000 (16:38 -0000)]
   Merged from trunk 9380:9381

   | 9381      | Double import, thanks grobian :)                           |
   | WarnerBro |                                                            |

svn path=/main/branches/prefix/; revision=9382

18 years agoAnother getstatusoutput without 'commands.'
Fabian Groffen [Sun, 24 Feb 2008 09:43:50 +0000 (09:43 -0000)]
Another getstatusoutput without 'commands.'

svn path=/main/branches/prefix/; revision=9380

18 years ago Merged from trunk 9376:9377
Fabian Groffen [Sun, 24 Feb 2008 09:34:00 +0000 (09:34 -0000)]
   Merged from trunk 9376:9377

   | 9377      | Various repoman fixes, plus a weird lockfile tracekback in |
   | WarnerBro | news.                                                      |

svn path=/main/branches/prefix/; revision=9379

18 years agoAlign visible() with get_masking_status() as per zmedico's comment in bug #209538
Fabian Groffen [Sun, 24 Feb 2008 09:31:23 +0000 (09:31 -0000)]
Align visible() with get_masking_status() as per zmedico's comment in bug #209538

svn path=/main/branches/prefix/; revision=9378

18 years agogetstatusoutput comes from commands
Fabian Groffen [Sun, 24 Feb 2008 00:09:42 +0000 (00:09 -0000)]
getstatusoutput comes from commands

svn path=/main/branches/prefix/; revision=9376

18 years ago Merged from trunk 9351:9372
Fabian Groffen [Sat, 23 Feb 2008 23:46:25 +0000 (23:46 -0000)]
   Merged from trunk 9351:9372

   | 9352     | Revert back to some known working code from the 2.1.2       |
   | zmedico  | branch.                                                     |

   | 9353     | Use parse_use_local_desc() from the repoman.utilities       |
   | zmedico  | module.                                                     |

   | 9354     | Make PreservedLibsRegistry.store() use atomic_ofstream so   |
   | zmedico  | that we don't lose the whole registry if an error such as   |
   |          | 'out of space' occurs.                                      |

   | 9355     | Bug #210372 - Fix suidctl.conf parser to look for paths     |
   | zmedico  | with a leading slash.                                       |

   | 9357     | Bug #210449 - Reset exeinto(), docinto(), insinto(), and    |
   | zmedico  | into() state variables in case the user is running the      |
   |          | install phase multiple times consecutively via the ebuild   |
   |          | command.                                                    |

   | 9358     | - outsource logic for boolean options into a central        |
   | genone   | function - enable support for greedy behavior in            |
   |          | StaticFileSet                                               |

   | 9359     | For greedy slot behavior, in addition to any installed      |
   | zmedico  | slots also try to pull in the latest new slot that may be   |
   |          | available.                                                  |

   | 9360     | When showing an unsatisfied dep, never include installed    |
   | zmedico  | packages.                                                   |

   | 9361     | Make stack_dicts() treat an empty variable assignment just  |
   | zmedico  | like a non-empty assignment. This allows the profile to set |
   |          | and empty variable in make.defaults and have it override a  |
   |          | non-empty value as one would expect.                        |

   | 9362     | In the circular dependency display, drop PDEPEND (aka       |
   | zmedico  | MEDIUM_SOFT) from the graph so there's less noise.          |

   | 9363     | Optimize dblink.isowner() to use fewer stat calls by doing  |
   | zmedico  | a basename comparison to try and eliminate the file before  |
   |          | resorting to inode comparison. This speeds up the `portageq |
   |          | owners` command as well as the search that is done when     |
   |          | collision-protect finds a collision.                        |

   | 9364     | Make LibraryPackageMap.update() sort the contents of the    |
   | zmedico  | library_consumers cache so that it's nice and orderly.      |

   | 9365     | Bug #211067 - Make the "portdir_overlay" and "mydir"        |
   | zmedico  | variables contain paths that are consistent wrt eachother   |
   |          | regardless of any path irregularities that can be induced   |
   |          | by symlinks. Consistency is achieved by regenerating one of |
   |          | the paths to ensure that both paths have the exact same     |
   |          | mapping between inodes and paths. This consistency ensures  |
   |          | that the path manipulations used to calculate "repolevel"   |
   |          | will work as intended.                                      |

   | 9367     | Add support for file paths as arguments to emerge. If an    |
   | zmedico  | argument starts with / and it's not recognized as a tbz2 or |
   |          | ebuild then we try to find and owner in the vdb and         |
   |          | generate a slot atom from it. Thanks to solar for the       |
   |          | suggestion.                                                 |

   | 9368     | Revert portdbapi category auto-detection code since it's    |
   | zmedico  | not really needed and can cause problems if we need to add  |
   |          | new non-category directories in the future. We only really  |
   |          | need the category auto-detection for bindbapi and vardbapi  |
   |          | anyway.                                                     |

   | 9369     | cleanup main option parsing                                 |
   | SpankMan |                                                             |

   | 9370     | tighten up output from script                               |
   | SpankMan |                                                             |

   | 9371     | add support for lzma/gz snapshots                           |
   | SpankMan |                                                             |

   | 9372     | only try to fetch compression schemes which the host        |
   | SpankMan | supports                                                    |

svn path=/main/branches/prefix/; revision=9375

18 years ago Merged from trunk 9335:9351
Fabian Groffen [Sat, 23 Feb 2008 23:37:49 +0000 (23:37 -0000)]
   Merged from trunk 9335:9351

   | 9336    | Fix package selection logic in order to prevent downgrade in |
   | zmedico | cases when selective is True and the currently installed     |
   |         | version does not have a matching ebuild in the tree. For     |
   |         | example, this type of situation is likely to occur if the    |
   |         | user somehow obtains a binary package that has a newer       |
   |         | version than any of the ebuilds in the portage tree. If      |
   |         | package maintainers want to encourage a downgrade in a case  |
   |         | like this then they should use package.mask so that the user |
   |         | receives a warning about the installed package being masked. |

   | 9337    | Fix --newuse reinstall logic broken by the previous commit.  |
   | zmedico |                                                              |

   | 9338    | Update the DepPriority documentation so that the table shows |
   | zmedico | all the currently supported priorities and categories.       |

   | 9339    | Bug #201045 - Use a topological sort to create an unmerge    |
   | zmedico | order such that each package is unmerged before it's         |
   |         | dependencies. This is necessary to avoid breaking things     |
   |         | that may need to run during pkg_prerm or pkg_postrm phases.  |

   | 9340    | Make depclean code filter out blocker atoms where            |
   | zmedico | appropriate.                                                 |

   | 9341    | Fix depclean breakage so that it doesn't clean some packages |
   | zmedico | that shouldn't be cleaned.                                   |

   | 9342    | Add missing % x (bug #208946, comment #2).                   |
   | zmedico |                                                              |

   | 9343    | Fix reversed order of parent/child parameders to             |
   | zmedico | digraph.add().                                               |

   | 9344    | Remove IUSE.invalid from qawarnings since there's no reason  |
   | zmedico | for it not to be fatal. Thanks to Betelgeuse.                |

   | 9345    | In the action_depclean() topological sort, only add packages |
   | zmedico | to the graph if they are being removed.                      |

   | 9346    | Bug #201045 - Make unmerge() preserve the unmerge order of   |
   | zmedico | packages given to it by the user or depclean.                |

   | 9347    | Make sure all packages to be pruned or depcleaned are added  |
   | zmedico | to the graph, even when they don't have any dependencies.    |

   | 9348    | Now that unmerge() preserves the order that it's given, if   |
   | zmedico | two different slots of the same package are being unmerged   |
   |         | then they are not necessarily unmerged consecutively. To     |
   |         | make the display less confusing, never display packages as   |
   |         | "protected" or "omitted" when they actually belong to the    |
   |         | overall set of "selected" packages to be unmerged.           |

   | 9349    | Fix unmerge() breakage from due to pkgmap being changed from |
   | zmedico | a dict to a list.                                            |

   | 9350    | Fix the --depclean/--prune code to use visible() for         |
   | zmedico | visibility checks instead of the old portdbapi hack.         |

   | 9351    | Make LibraryConsumerSet.mapPathsToAtoms() produce slot atoms |
   | zmedico | so that atoms aren't restricted to the currently installed   |
   |         | version, making upgrades possible.                           |

svn path=/main/branches/prefix/; revision=9374

18 years ago Merged from trunk 9300:9333
Fabian Groffen [Sat, 23 Feb 2008 23:33:46 +0000 (23:33 -0000)]
   Merged from trunk 9300:9333

   | 9301      | Bug #208708 - Show informative warning messages for        |
   | zmedico   | installed packages that are masked.                        |

   | 9307      | removing obsolete cruft                                    |
   | genone    |                                                            |

   | 9308      | new script for creating release tarballs                   |
   | genone    | (Deleted in Prefix as we have a working tarball.sh)        |

   | 9309      | minor documentation updates                                |
   | genone    |                                                            |

   | 9310      | more minor doc updates regarding package sets              |
   | genone    |                                                            |

   | 9311      | add preserve-libs info to make.conf.example                |
   | genone    |                                                            |

   | 9312      | add tagging capabilities and cli options                   |
   | genone    |                                                            |

   | 9313      | Bug #208743 - Update dosed docs to indicate that           |
   | zmedico   | "s:${D}::g" is used as the default expression if none      |
   |           | other is given.                                            |

   | 9316      | fix nasty typo                                             |
   | genone    | (Prefix already had most of this fix)                      |

   | 9318      | Fix get_mask_info() to properly pass the "installed"       |
   | zmedico   | attribute into the Package constructor.                    |

   | 9320      | Fix the exitcode logic for bug #209144 so that when the    |
   | zmedico   | server is out of date it's not interpreted like an actual  |
   |           | rsync exitcode (to avoid a misleading exitcode             |
   |           | interpretation message).                                   |

   | 9321      | Bug #209144 - For emerge --sync, show an informative error |
   | zmedico   | and don't return 1 when PORTAGE_RSYNC_RETRIES is exceeded. |

   | 9324      | Fix CHOST masking logic wrt installed packages so that     |
   | zmedico   | it's consistent between visible() and                      |
   |           | get_masking_status().                                      |

   | 9326      | Fix rejects.                                               |
   | zmedico   |                                                            |

   | 9327      | Remove the killparent() function and associated SIGINT     |
   | zmedico   | trap since this should already be handled on the python    |
   |           | side and it won't work with dropped privileges anyway.     |

   | 9328      | fix more trivial issues breaking repoman                   |
   | genone    |                                                            |

   | 9330      | Bug #209538 - Disable annoying "masked by keyword"         |
   | zmedico   | warnings for installed packages. We can assume that if the |
   |           | user accepted the keywords at merge time then they never   |
   |           | want to be bothered again.                                 |

   | 9332      | Add bits about namespace pollution, add whitespacing       |
   | WarnerBro | comments after looking at some new code I wrote and        |
   |           | realizing I was not following the current style. Fix typos |

   | 9333      | Bug #209768 - Fix --search "Size of files:" handling so    |
   | zmedico   | that it properly shows the "Unknown (missing digest)"      |
   |           | message instead of a traceback.                            |

svn path=/main/branches/prefix/; revision=9373

18 years ago Merged from trunk 9280:9299
Fabian Groffen [Fri, 8 Feb 2008 16:00:54 +0000 (16:00 -0000)]
   Merged from trunk 9280:9299

   | 9281    | Bug #155993 - Update environment.bz2 after postinst in case  |
   | zmedico | installation phases need to pass some variables to           |
   |         | uninstallation phases.                                       |

   | 9283    | Bug #209144 - For emerge --sync, don't return 0 when the     |
   | zmedico | server is out of date.                                       |

   | 9285    | Bug #208782 - Consistently use double quotes rather than     |
   | zmedico | mixining in single quotes.                                   |

   | 9287    | Bug #208743 - Clarify dosed docs to indicate that sed is     |
   | zmedico | performed in place of a file in ${D}.                        |

   | 9289    | Bug #208708 - Fix warnings for system or world packages that |
   | zmedico | are masked.                                                  |

   | 9290    | Add DISTDIR to the EbuildQuote.var_names. Thanks to          |
   | zmedico | Betelgeuse.                                                  |

   | 9292    | Don't show unmasked packages (currently installed packages)  |
   | zmedico | in the masking display.                                      |

   | 9293    | Bug #208708 - Fix masked package display some more: - Warn   |
   | zmedico | if all matching ebuilds are masked or the installed package  |
   |         | itself is masked. - Do not warn if there are simply no       |
   |         | matching ebuilds since that would be annoying in some cases. |

   | 9299    | Fix some broken variable references found by pyflakes.       |
   | zmedico |                                                              |

svn path=/main/branches/prefix/; revision=9300

18 years ago Merged from trunk 9274:9279
Fabian Groffen [Wed, 6 Feb 2008 22:26:20 +0000 (22:26 -0000)]
   Merged from trunk 9274:9279

   | 9275    | don't record internal providers in NEEDED records as they    |
   | genone  | are pointless for all useful applications in portage and     |
   |         | complicate them instead (e.g. bug #205531)                   |

   | 9276    | display errors that occured during package set initalization |
   | genone  |                                                              |

   | 9277    | don't try to copy manually removed libraries (bug #208946)   |
   | genone  |                                                              |

   | 9278    | Make qa_source and qa_call save the return value and return  |
   | zmedico | it. Thanks to igli for suggesting.                           |

   | 9279    | For the useq() IUSE qa check, use [[ $u =~ $PORTAGE_IUSE ]]  |
   | zmedico | instead of egrep since apparently it's compatible in this    |
   |         | case. Thanks to igli for this.                               |

svn path=/main/branches/prefix/; revision=9280

18 years ago Merged from trunk 9272:9273
Fabian Groffen [Tue, 5 Feb 2008 18:01:06 +0000 (18:01 -0000)]
   Merged from trunk 9272:9273

   | 9273   | Use local time for elog summaries                             |
   | genone |                                                               |

svn path=/main/branches/prefix/; revision=9274

18 years agoVariables work pretty bad between subshells, so use a file instead
Fabian Groffen [Fri, 1 Feb 2008 22:22:20 +0000 (22:22 -0000)]
Variables work pretty bad between subshells, so use a file instead

svn path=/main/branches/prefix/; revision=9271

18 years agoSave full paths for needed objects on Darwin, and store prefixed path as well
Fabian Groffen [Fri, 1 Feb 2008 21:42:05 +0000 (21:42 -0000)]
Save full paths for needed objects on Darwin, and store prefixed path as well

svn path=/main/branches/prefix/; revision=9270

18 years agoStore the true path instead of the unprefixed path, such that the paths in NEEDED...
Fabian Groffen [Fri, 1 Feb 2008 21:37:05 +0000 (21:37 -0000)]
Store the true path instead of the unprefixed path, such that the paths in NEEDED match what's in CONTENTS, thanks vapier

svn path=/main/branches/prefix/; revision=9269

18 years ago Merged from trunk 9234:9264
Fabian Groffen [Fri, 1 Feb 2008 19:33:43 +0000 (19:33 -0000)]
   Merged from trunk 9234:9264

   | 9235    | - Remove ebuild.autotools repoman check since it produces    |
   | zmedico | lots of false positives (bug #207104) and its hard to parse  |
   |         | bash - Use QA_INTERCEPTORS in ebuild.sh to implement a       |
   |         | runtime 'QA Notice' when autotools is called directly        |

   | 9236    | Remove the last traces of the ebuild.autotools check.        |
   | zmedico |                                                              |

   | 9238    | * Bug #205966 - Don't show binhost password when displaying  |
   | zmedico | the uri. * Fix a cpv variable name typo.                     |

   | 9241    | Add 'local' to the list of non_category_dirs since it's      |
   | zmedico | commonly used for layman overlays.                           |

   | 9249    | Make the autotools.eclass functions exempt from the          |
   | zmedico | autotools QA Notice.                                         |

   | 9252    | Unconditionally disable manifest1 compatibility since it's   |
   | zmedico | been dropped from the main tree and nobody needs it anymore. |

   | 9254    | Disable manifest1_compat for ebuild --force digest.          |
   | zmedico |                                                              |

   | 9256    | Bug #205718 - Fix quoting of ${INSTALL_MASK} where           |
   | zmedico | appropriate. Thanks to Ed Catmur <ed@catmur.co.uk> for this  |
   |         | patch.                                                       |

   | 9258    | Make the manifest1_compat constructor parameter default to   |
   | zmedico | False to prevent potential interference from stale old       |
   |         | digest files in overlays.                                    |

   | 9260    | Remove the manifest1 digest filter from PORTAGE_RSYNC_OPTS   |
   | zmedico | since it's no longer needed.                                 |

   | 9262    | Remove the manifest1 digest file removal code since it's no  |
   | zmedico | longer needed.                                               |

   | 9264    | portage-2.1.4.1 ================================== * If you  |
   | zmedico | have an overlay then you should remove **/files/digest-*     |
   |         | files (Manifest1) because they are no longer supported. * If |
   |         | earlier versions of portage will be used to generate         |
   |         | manifests for your overlay then you should add a file named  |
   |         | manifest1_obsolete to the root of the repository in order to |
   |         | disable generation of the Manifest1 digest files.            |

svn path=/main/branches/prefix/; revision=9268

18 years agoFirst shot at storing NEEDED info for Darwin hosts. We simulate the scanelf output...
Fabian Groffen [Fri, 1 Feb 2008 19:25:49 +0000 (19:25 -0000)]
First shot at storing NEEDED info for Darwin hosts.  We simulate the scanelf output to the max, by stripping of (valuable) path information and storing the filenames of the dynamic libs only.

svn path=/main/branches/prefix/; revision=9267

18 years agoFix two small issues
Fabian Groffen [Wed, 30 Jan 2008 19:56:30 +0000 (19:56 -0000)]
Fix two small issues

svn path=/main/branches/prefix/; revision=9233

18 years agode-typo
Fabian Groffen [Wed, 30 Jan 2008 19:45:49 +0000 (19:45 -0000)]
de-typo

svn path=/main/branches/prefix/; revision=9232

18 years ago Merged from trunk 9225:9227
Fabian Groffen [Wed, 30 Jan 2008 19:28:08 +0000 (19:28 -0000)]
   Merged from trunk 9225:9227

   | 9226      | Pull more functions out of repoman proper and into         |
   | WarnerBro | repoman.utilities                                          |

   | 9227      | Pull more functions out of repoman proper and into         |
   | WarnerBro | repoman.utilities, correct a typo, clean up imports        |

svn path=/main/branches/prefix/; revision=9231

18 years ago Merged from trunk 9224:9225
Fabian Groffen [Wed, 30 Jan 2008 18:18:48 +0000 (18:18 -0000)]
   Merged from trunk 9224:9225

   | 9225      | import ordering, prevent errors from mucking up module     |
   | WarnerBro | namespace in checks, fix typo from last commit, rename 'm' |
   |           | to autotools_match, fix spacing between classes            |

svn path=/main/branches/prefix/; revision=9229

18 years agoThis commit should probably be merged into the trunk.
Fabian Groffen [Wed, 30 Jan 2008 18:13:29 +0000 (18:13 -0000)]
This commit should probably be merged into the trunk.

Fix a bug in preserve libs backtracing.

Issue: copy2 raised an error because the destination path didn't exist

Cause: os.path.join was used with absolute paths on the 2nd arguments,
which results in not a join, but the 2nd argument only.

Result: the os.path.exists/makedirs was only called based on the
existing installation (x), causing no directory ever to be made in the
image dir.  Because x is absolute the join always returned x, hence when
preserve libs was run for a lib in a dir not yet existing in the image
it bailed out.

I caught this issue on FreeBSD when upgrading binutils from
18.whatever.2 to 18.whatever.3, when preserve libs tried to preserve
libopcodes.18.whatever.2.so which is in a directory 18.whatever.2,
whereas only 18.whatever.3 existed.

svn path=/main/branches/prefix/; revision=9228

18 years ago Merged from trunk 9219:9222
Fabian Groffen [Sun, 27 Jan 2008 09:37:10 +0000 (09:37 -0000)]
   Merged from trunk 9219:9222

   | 9220      | Bug #206772 - Enable bashrc once again for the clean       |
   | zmedico   | phase.                                                     |

   | 9221      | Move random functions out of repoman and into utilties.py  |
   | WarnerBro |                                                            |

   | 9222      | Restore desktop.invalid as a warning; was an intergration  |
   | WarnerBro | error                                                      |

svn path=/main/branches/prefix/; revision=9224

18 years agoMove paths to the bottom, be more dense and print ${S} as it's often necessary when...
Fabian Groffen [Sun, 27 Jan 2008 09:29:43 +0000 (09:29 -0000)]
Move paths to the bottom, be more dense and print ${S} as it's often necessary when a package fails

svn path=/main/branches/prefix/; revision=9223

18 years ago Merged from trunk 9215:9217
Fabian Groffen [Mon, 21 Jan 2008 19:43:18 +0000 (19:43 -0000)]
   Merged from trunk 9215:9217

   | 9216    | Replace the current diefunc() and die alias with a single    |
   | zmedico | die() function. The previous arguments to diefunc() weren't  |
   |         | used anyway. The result is that the die message looks better |
   |         | because it doesn't show the alias and all of it's arguments  |
   |         | which are totally irrelevant. (branches/prefix r9212)        |

   | 9217    | We need to implement diefunc() since environment.bz2 files   |
   | zmedico | contain calls to it (due to alias expansion).                |

svn path=/main/branches/prefix/; revision=9219

18 years agoHaubi is with us now, sort by name
Fabian Groffen [Sun, 20 Jan 2008 21:03:57 +0000 (21:03 -0000)]
Haubi is with us now, sort by name

svn path=/main/branches/prefix/; revision=9215

18 years ago Merged from trunk 9208:9209
Fabian Groffen [Sun, 20 Jan 2008 19:51:10 +0000 (19:51 -0000)]
   Merged from trunk 9208:9209

   | 9209      | Add a note that PORTDIR is a repository of software and    |
   | WarnerBro | that users should not add random directories in it.        |

svn path=/main/branches/prefix/; revision=9214

18 years agoChange the die func to produce a readable message where the actual die message isn...
Fabian Groffen [Sun, 20 Jan 2008 19:05:05 +0000 (19:05 -0000)]
Change the die func to produce a readable message where the actual die message isn't hidden away between many other messages that don't add much.  This commit is based on my and others in #gentoo-alt their taste, so may very well not be eligable for merging in the trunk.

svn path=/main/branches/prefix/; revision=9213

18 years agoGet rid of die alias to diefunc, since diefunc does nothing with the first three...
Fabian Groffen [Sun, 20 Jan 2008 19:01:26 +0000 (19:01 -0000)]
Get rid of die alias to diefunc, since diefunc does nothing with the first three arguments that the die alias inserts.  This commit /might/ be merged in the trunk.

svn path=/main/branches/prefix/; revision=9212

18 years agoOnly calculate the space (width) for functions/line numbers that are actually going...
Fabian Groffen [Sun, 20 Jan 2008 18:58:37 +0000 (18:58 -0000)]
Only calculate the space (width) for functions/line numbers that are actually going to be printed in the stack.  This commit is eligable for merging in the trunk.

svn path=/main/branches/prefix/; revision=9211

18 years agoAdd support for svn+https:// and svn:// schemes
Fabian Groffen [Sat, 19 Jan 2008 12:44:51 +0000 (12:44 -0000)]
Add support for svn+https:// and svn:// schemes

svn path=/main/branches/prefix/; revision=9208

18 years ago Merged from trunk 9205:9206
Fabian Groffen [Sat, 19 Jan 2008 10:46:59 +0000 (10:46 -0000)]
   Merged from trunk 9205:9206

   | 9206    | Check for quoted ${A}. Thanks to maekke for this patch.      |
   | zmedico |                                                              |

svn path=/main/branches/prefix/; revision=9207

18 years agoFix inter-revision code that apparently has never been triggered before, all comparis...
Fabian Groffen [Sun, 13 Jan 2008 12:23:38 +0000 (12:23 -0000)]
Fix inter-revision code that apparently has never been triggered before, all comparisons were done using floats in pkgcmp...

svn path=/main/branches/prefix/; revision=9205

18 years agoFix the regexp with regard to detecting inter-revisions
Fabian Groffen [Sun, 13 Jan 2008 12:04:35 +0000 (12:04 -0000)]
Fix the regexp with regard to detecting inter-revisions

svn path=/main/branches/prefix/; revision=9204

18 years ago Merged from trunk 9179:9201
Fabian Groffen [Sun, 13 Jan 2008 11:07:32 +0000 (11:07 -0000)]
   Merged from trunk 9179:9201

   | 9184      | Fix a typo.                                                |
   | zmedico   |                                                            |

   | 9186      | Adjust the max DESCRIPTION.toolong length to 100           |
   | zmedico   | characters so that it's not too small and only about 3% of |
   |           | packages will trigger it.                                  |

   | 9188      | Bug #205318 - Handle errno.ENOTDIR thrown from the lstat   |
   | zmedico   | call inside dblink._security_check().                      |

   | 9190      | Bug #203887 - Make repoman recognize                       |
   | zmedico   | RESTRICT="installsources".                                 |

   | 9192      | Replace hardcoded value with max_desc_len.                 |
   | zmedico   |                                                            |

   | 9194      | In preprocess_ebuild_env(), move a                         |
   | zmedico   | filter_readonly_variables call out of a subshell since     |
   |           | FreeBSD and prefix users have reported apparent corruption |
   |           | of the PATH environment variable that triggers calls to    |
   |           | the wrong version of sed (one that does not support the -r |
   |           | option). An example of what users have observed: >>>       |
   |           | Source compiled. sed: illegal option -- r usage: sed       |
   |           | script [-Ealn] [-i extension] [file ...] sed [-Ealn] [-i   |
   |           | extension] [-e script] ... [-f script_file] ... [file ...] |
   |           | Traceback (most recent call last): File                    |
   |           | "/usr/lib/portage/bin/filter-bash-environment.py", line    |
   |           | 51, in compile_egrep_pattern(args[0]), file_in, file_out)  |
   |           | File "/usr/lib/portage/bin/filter-bash-environment.py",    |
   |           | line 34, in filter_bash_environment file_out.write(line)   |
   |           | IOError: [Errno 32] Broken pipe                            |

   | 9195      | Remove redundant return statement.                         |
   | zmedico   |                                                            |

   | 9197      | Add some notes about enhancements related to binary        |
   | zmedico   | package support that's now in 2.1.4.                       |

   | 9200      | style fixes (imports), add support for --version (bug      |
   | WarnerBro | 138159)                                                    |

   | 9201      | fix typo in emerge-webrsync from r9118                     |
   | WarnerBro |                                                            |

svn path=/main/branches/prefix/; revision=9203

18 years ago Merged from trunk 9159:9179
Fabian Groffen [Sun, 13 Jan 2008 11:05:32 +0000 (11:05 -0000)]
   Merged from trunk 9159:9179

   | 9160    | Bug #162542 - When dropping privileges for                   |
   | zmedico | FEATURES=userpriv, automatically detect permission problems  |
   |         | with CCACHE_DIR and recursively adjust permissions only when |
   |         | necessary.                                                   |

   | 9162    | Bug#204668 - Fix WORKDIR quoting in econf() when updating    |
   | zmedico | config.guess and config.sub.                                 |

   | 9163    | Bug #204425 - Remove --delete-after from the default         |
   | zmedico | PORTAGE_RSYNC_OPTS. This allows the rsync program to choose  |
   |         | the preferred --delete algorithm, or the user can choose one |
   |         | via PORTAGE_RSYNC_EXTRA_OPTS.                                |

   | 9164    | Make sure that portdb.findname() returns the correct ebuild. |
   | zmedico |                                                              |

   | 9165    | Fix the "Appending to PORTDIR_OVERLAY..." feature which was  |
   | zmedico | broken by the previous commit.                               |

   | 9166    | Bug #203316 - Fix isvalidatom() to properly detect invalid   |
   | zmedico | operators used together with slot atoms. Thanks to Arfrever  |
   |         | Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com> for the  |
   |         | patch.                                                       |

   | 9167    | Bug #203887 - Implement RESTRICT=installsources for binaries |
   | zmedico | that are not compatible with debugedit.                      |

   | 9176    | Bug #162450 - Try to avoid having so many bugs marked        |
   | zmedico | UPSTREAM by encouraging users to report 'poor programming    |
   |         | practices' QA issues upstream and show them the $HOMEPAGE    |
   |         | for convenience.                                             |

   | 9177    | Add a DESCRIPTION.toolong warning for when the DESCRIPTION   |
   | zmedico | line is over 80 characters long. Thanks to Betelgeuse for    |
   |         | the patch.                                                   |

   | 9178    | * Make pkgcmp() pass the ebuild revision directly into       |
   | zmedico | vercmp() since there is code there to handle it already.     |
   |         | This eliminates some redundant revision comparison code.     |
   |         | Thanks to peper for the patch. * Add some vercmp() test      |
   |         | cases for comparison of ebuild revisions.                    |

   | 9179    | Add a new "ebuild.autotools" check for when ebuilds call     |
   | zmedico | autotools directly instead of using autotools.eclass. Thanks |
   |         | to Betelgeuse for the initial patch.                         |

svn path=/main/branches/prefix/; revision=9202

18 years ago Merged from trunk 9154:9158
Fabian Groffen [Tue, 8 Jan 2008 17:09:54 +0000 (17:09 -0000)]
   Merged from trunk 9154:9158

   | 9155    | Bug #204753 - Add "distfiles" and "packages" to the list of  |
   | zmedico | non-category directories.                                    |

   | 9157    | When spawing the "depend" phase, use file descriptors from   |
   | zmedico | sys.std* streams.                                            |

   | 9158    | After loading the environment, make sure the color variables |
   | zmedico | are in sync with the current NOCOLOR setting.                |

svn path=/main/branches/prefix/; revision=9159

18 years ago Merged from trunk 9150:9151
Fabian Groffen [Mon, 7 Jan 2008 20:59:07 +0000 (20:59 -0000)]
   Merged from trunk 9150:9151

   | 9151    | Bug #204651 - Make repoman respect NOCOLOR=true.             |
   | zmedico |                                                              |

svn path=/main/branches/prefix/; revision=9154

18 years agoWhen installing a binpkg make sure we record our own prefix, not the one of the binpk...
Fabian Groffen [Mon, 7 Jan 2008 20:56:54 +0000 (20:56 -0000)]
When installing a binpkg make sure we record our own prefix, not the one of the binpkg, as we adjusted the package accordingly.  (rebinpkging should work, though not really sensible)

svn path=/main/branches/prefix/; revision=9153

18 years ago Merged from trunk 9143:9147
Fabian Groffen [Sat, 5 Jan 2008 22:34:14 +0000 (22:34 -0000)]
   Merged from trunk 9143:9147

   | 9144      | per bug 204468, remove old check from repoman (all ebuilds |
   | WarnerBro | in gentoo-x86 are migrated).                               |

   | 9145      | Filter PATH along with FEATURES when loading               |
   | zmedico   | environment.bz2.                                           |

   | 9147      | Make filter_readonly_variables() filter PATH in any case   |
   | zmedico   | since we never want to save of reload it.                  |

svn path=/main/branches/prefix/; revision=9150