portage.git
18 years agoIt may be nice to have prefix around if the default datadir is defined on top of it.
Fabian Groffen [Wed, 24 Oct 2007 14:07:58 +0000 (14:07 -0000)]
It may be nice to have prefix around if the default datadir is defined on top of it.

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

18 years ago Merged from trunk 8265:8270
Fabian Groffen [Wed, 24 Oct 2007 14:03:00 +0000 (14:03 -0000)]
   Merged from trunk 8265:8270

   | 8266    | Replace sys.exit() calls with return statements in           |
   | zmedico | emerge_main().                                               |

   | 8267    | Add back support for handling missing system/world atoms     |
   | zmedico | that was removed with depgraph.xcreate(). This doesn't have  |
   |         | support for mapping atoms back to the original sets yet, but |
   |         | at least a masked or unavailable system/world atom won't     |
   |         | compeletely break the depgraph now.                          |

   | 8268    | Add back support for detecting if the world file contains    |
   | zmedico | atoms that match packages in package.provided.               |

   | 8269    | Add back support for helpful `emaint --check world`          |
   | zmedico | suggestions and also show package masking reasons when       |
   |         | appropriate.                                                 |

   | 8270    | Fix broken import.                                           |
   | zmedico |                                                              |

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

18 years ago Merged from trunk 8259:8265
Fabian Groffen [Wed, 24 Oct 2007 14:01:48 +0000 (14:01 -0000)]
   Merged from trunk 8259:8265

   | 8260    | Fix logic for the "selective" depgraph parameter so that it  |
   | zmedico | behaves correctly in cases where installed packages provide  |
   |         | old-style virtuals but none of the available packages do.    |

   | 8261    | Match packages against arguments earlier in                  |
   | zmedico | depgraph._select_package() so that corrupt PROVIDE is        |
   |         | detected sooner.                                             |

   | 8262    | Fix selective logic to work properly with masked packages.   |
   | zmedico |                                                              |

   | 8263    | remove 'system' and 'world' as actions, and remove most of   |
   | genone  | the special case code as well                                |

   | 8264    | Make world atoms non-greedy for SLOTs in action_depclean()   |
   | zmedico | since users can simply add SLOT atoms to world for any       |
   |         | specific SLOTs that they want to keep.                       |

   | 8265    | Remove --update greedy SLOTs code from                       |
   | zmedico | depgraph.select_files() so that any desired SLOTs have to be |
   |         | pulled in explicitly. Any SLOTs that are not explicitly      |
   |         | pulled in will be removed by --depclean.                     |

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

18 years ago Merged from trunk 8251:8259
Fabian Groffen [Wed, 24 Oct 2007 14:00:06 +0000 (14:00 -0000)]
   Merged from trunk 8251:8259

   | 8252    | protect variables specified in PROFILE_ONLY_VARIABLES from   |
   | genone  | being set by the user                                        |

   | 8253    | make PROFILE_ONLY_VARIABLES incremental                      |
   | genone  |                                                              |

   | 8254    | make 'world' and 'system' behave like their sets/            |
   | genone  | counterparts                                                 |

   | 8255    | Optimize PROFILE_ONLY_VARIABLES handling.                    |
   | zmedico |                                                              |

   | 8256    | just pass the SetConfig instance instead of only the         |
   | genone  | settings and trees attributes                                |

   | 8257    | move base classes for package sets into a separate module    |
   | genone  |                                                              |

   | 8258    | revert r8256 (plans changed)                                 |
   | genone  |                                                              |

   | 8259    | document PROFILE_ONLY_VARIABLES                              |
   | genone  |                                                              |

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

18 years ago Merged from trunk 8244:8251
Fabian Groffen [Wed, 24 Oct 2007 13:58:18 +0000 (13:58 -0000)]
   Merged from trunk 8244:8251

   | 8245      | Sigh, this integration did not go well, please check the   |
   | WarnerBro | diff (it seemed to add some weird ass code, but it looked  |
   |           | fine on sources.gentoo.org). Next time I'll try and either |
   |           | work in a branch or commit faster ;)                       |
   Prefix: resolved conflicts for SVN support.  Hope it still works...

   | 8246      | fix tabbing                                                |
   | WarnerBro |                                                            |

   | 8247      | aha, i knew that diff was screwy, the mail to              |
   | WarnerBro | portage-commits and grep made it obvious as to why; lets   |
   |           | try removing those dupe checks.                            |

   | 8248      | Don't show the "checking files for package collisions"     |
   | zmedico   | message when --quiet is enabled.                           |

   | 8250      | Begin to use python logging framework. Remove if quiet <   |
   | WarnerBro | bla logic and instead use loglevels (critical, error,      |
   |           | warn, info, debug). Default to WARN for repoman, which     |
   |           | will print CRITICAL, ERROR, and WARN messages. one -v will |
   |           | print INFO messages and two -v's will print DEBUG          |
   |           | messages, each -q will reduce the loglevel by one. -q and  |
   |           | -v can be given in any order.                              |

   | 8251      | add quickie logger function                                |
   | WarnerBro |                                                            |

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

18 years ago Merged from trunk 8226:8243
Fabian Groffen [Wed, 24 Oct 2007 13:49:24 +0000 (13:49 -0000)]
   Merged from trunk 8226:8243

   | 8233    | In depgraph.create(), if a direct circular dependency is not |
   | zmedico | an unsatisfied buildtime dependency then drop it here since  |
   |         | otherwise it can skew the merge order calculation in an      |
   |         | unwanted way.                                                |

   | 8235    | Fix broken imports.                                          |
   | zmedico |                                                              |

   | 8236    | Bug #196652 - Check for useless ABOUT-NLS|COPYING|LICENSE    |
   | zmedico | files in dodoc arguments.                                    |

   | 8238    | Remove a redundant self.treeVirtuals deepcopy from the       |
   | zmedico | config constructor.                                          |

   | 8240    | Fix config.setinst() to return early when the given package  |
   | zmedico | already provides the virtual.                                |

   | 8242    | Fix the version Id tag.                                      |
   | zmedico |                                                              |

   | 8243    | Print the Id tag an it's own line to avoid going over 80     |
   | zmedico | columns.                                                     |

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

18 years ago... and make it also compiling again on Solaris
Fabian Groffen [Mon, 22 Oct 2007 09:33:02 +0000 (09:33 -0000)]
... and make it also compiling again on Solaris

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

18 years agoPatch from haubi to also compile on HPUX/ia64
Fabian Groffen [Mon, 22 Oct 2007 09:10:10 +0000 (09:10 -0000)]
Patch from haubi to also compile on HPUX/ia64

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

18 years ago Merged from trunk 8217:8225
Fabian Groffen [Mon, 22 Oct 2007 07:48:26 +0000 (07:48 -0000)]
   Merged from trunk 8217:8225

   | 8218    | Don't catch a ValueError if it isn't the type that's         |
   | zmedico | expected from portage.cpv_expand().                          |

   | 8219    | Do a loop over each dependency type to simplify select_dep() |
   | zmedico | calls.                                                       |

   | 8220    | Always pass package metadata into depgraph.create() so it    |
   | zmedico | doesn't have to get it itself.                               |

   | 8221    | Combine depgraph._select_dep() into create() so that         |
   | zmedico | create() simply calls itself recursively. In order to        |
   |         | implement backtracking, create() will eventually operate on  |
   |         | a stack instead of calling itself.                           |

   | 8222    | Bug #196680 - Handle a CacheError inside mirror_cache() when |
   | zmedico | reading from the source cache.                               |

   | 8224    | Bug #184118 - Add an emaint "cleanresume" action that        |
   | zmedico | deletes any existing resume lists from the mtimedb. Thanks   |
   |         | to Arfrever Frehtes Taifersar Arahesis for the initial       |
   |         | patch.                                                       |

   | 8225    | In depgraph.create(), don't ignore direct circular           |
   | zmedico | dependencies anymore since altlist() is able to handle it    |
   |         | properly in cases where the dependency is satisfied. If the  |
   |         | dep is unsatisfied then it can not be ignored.               |

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

18 years ago Merged from trunk 8213:8215
Fabian Groffen [Sun, 21 Oct 2007 19:00:01 +0000 (19:00 -0000)]
   Merged from trunk 8213:8215

   | 8214    | Bug #196427 - Prevent various news related tracebacks from   |
   | zmedico | occuring when running emerge as an unprivileged user in      |
   |         | --pretend mode.                                              |

   | 8215    | Fix NewsManager.getUnreadItems() so that it works properly   |
   | zmedico | for an unprivileged user in readonly mode.                   |

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

18 years agoAllow to override EPREFIX, basically for the purpose of "cloning" a
Fabian Groffen [Sun, 21 Oct 2007 18:58:03 +0000 (18:58 -0000)]
Allow to override EPREFIX, basically for the purpose of "cloning" a
prefix install, or to facilitate a cross-compilation environment.

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

18 years ago Merged from trunk 8199:8207
Fabian Groffen [Sun, 21 Oct 2007 12:42:51 +0000 (12:42 -0000)]
   Merged from trunk 8199:8207

   | 8200   | Remove slashes that cause problems when unpacking files with  |
   | genone | relative paths (bug #196565)                                  |

   | 8201   | restore proper call logic                                     |
   | genone |                                                               |

   | 8202   | ignore "permission denied" errors when changing perms of news |
   | genone | skipfile that happen when running with user priviledges in    |
   |        | pretend mode                                                  |

   | 8204   | fix comment                                                   |
   | genone |                                                               |

   | 8206   | add some notes about restrictions wrt package sets            |
   | genone |                                                               |

   | 8207   | note that sets can't contain other sets                       |
   | genone |                                                               |

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

18 years ago Merged from trunk 8186:8199
Fabian Groffen [Sun, 21 Oct 2007 12:41:05 +0000 (12:41 -0000)]
   Merged from trunk 8186:8199

   | 8187    | Allow the depgraph to add old-style virtual providers but    |
   | zmedico | prefer any pre-existing providers over new ones that are     |
   |         | added.                                                       |

   | 8188    | Use a simple Package class to bundle package data for        |
   | zmedico | depgraph.create() calls.                                     |

   | 8189    | Split the masked packages display out of                     |
   | zmedico | depgraph.select_dep().                                       |

   | 8190    | Split the package selection logic out of                     |
   | zmedico | depgraph.select_dep().                                       |

   | 8191    | Split the atom selection logic out of depgraph.select_dep(). |
   | zmedico |                                                              |

   | 8192    | Rename variable for consistency.                             |
   | zmedico |                                                              |

   | 8193    | Raise an InvalidDependString exception if necessary when the |
   | zmedico | depgraph is populating the filtered repo so that we don't    |
   |         | have to check the return value.                              |

   | 8194    | Make depgraph.xcreate() use the filtered repo to determine   |
   | zmedico | availablility of system/world atoms so that the              |
   |         | raise_on_missing parameter can be removed from               |
   |         | depgraph.select_dep().                                       |

   | 8195    | Bug #196537 - Make portageq check that the parameter is an   |
   | zmedico | existing directory and exit gracefully if not.               |

   | 8197    | Split the "arg" parameter out of depgraph.select_dep() so    |
   | zmedico | that it's used purely for processing atoms that are pulled   |
   |         | in by parent packages.                                       |

   | 8198    | Use a "depth" parameter to track depth of recursion relative |
   | zmedico | to the nearest argument atom.                                |

   | 8199    | Remove uneeded "arg" and "addme" parameters where possible.  |
   | zmedico |                                                              |

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

18 years ago Merged from trunk 8175:8186
Fabian Groffen [Sun, 21 Oct 2007 12:31:53 +0000 (12:31 -0000)]
   Merged from trunk 8175:8186

   | 8176    | Use the python version of eerror                             |
   | genone  |                                                              |

   | 8177    | The ERROR color code is currently undefined, so make eerror  |
   | zmedico | use BAD like the bash version does.                          |

   | 8178    | Pass the whole cpv to elog instead of just ${PF}.            |
   | zmedico |                                                              |

   | 8179    | Bug #196427 - Don't display news notifications when in       |
   | zmedico | --pretend mode.                                              |

   | 8180    | Don't show each character of the log message on a new line   |
   | zmedico | when displaying messages that came from one of the           |
   |         | python-based elog functions. This might not be the correct   |
   |         | solution but it seems to work for now.                       |

   | 8181    | Fix broken call to renamed _combine_logentries().            |
   | zmedico |                                                              |

   | 8182    | Prevent _combine_logentries() from generating redundant      |
   | zmedico | consecutive 'TYPE: phase' lines that show in summary.log     |
   |         | when the python-based elog functions are used.               |

   | 8183    | Use a list to buffer strings in _combine_logentries() and do |
   | zmedico | a single concatenation at the end for better efficiency.     |

   | 8184    | Refactor _merge_logentries() to make it a little more        |
   | zmedico | efficient.                                                   |

   | 8185    | Bug #196435 - Add some more references to quickpkg(1) since  |
   | zmedico | sometimes people don't realize that it exists.               |

   | 8186    | Remove the config.setinst() call from depgraph.select_dep()  |
   | zmedico | since it's never really guaranteed to work as intended. It's |
   |         | supposed to help ensure that the correct old-style virtual   |
   |         | is preferred but it will often fail to do so, making it      |
   |         | necessary for the user to manually force the preference.     |
   |         | Proper backtracking (bug #1343) will solve the problem more  |
   |         | reliably.                                                    |

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

18 years ago Merged from trunk 8150:8174
Fabian Groffen [Sun, 21 Oct 2007 12:30:10 +0000 (12:30 -0000)]
   Merged from trunk 8150:8174

   | 8151    | In dblink.getcontents(), use a regular expression to detect  |
   | zmedico | when path normalization is required. Also, only join with    |
   |         | ${ROOT} when necessary. This allows unnecessary normpath and |
   |         | join calls to be optimized away in the general case,         |
   |         | reducing the cpu time for `equery belongs ` by about 50%. M  |
   |         | pym/portage/dbapi/vartree.py                                 |

   | 8152    | Only re.compile() the normalize_needed pattern once rather   |
   | zmedico | than for each dblink constructor call.                       |

   | 8153    | Optimize dblink.isowner() to use fewer stat calls by only    |
   | zmedico | collecting stat results for parent directories. This         |
   |         | provides equivalent accuracy to the previous approach but    |
   |         | will perform much better when used to scan all installed     |
   |         | packages for owners in the event of a file collision.        |

   | 8154    | Bug #196043 - Implement a `portageq owners []+` command that |
   | zmedico | is suitable for identifying all packages that own one or     |
   |         | more files when a file collision has occurred. This uses     |
   |         | dblink.isowner() so that the query works properly even when  |
   |         | paths are ambiguous due to symlinked directories.            |

   | 8155    | Bug #196043 - Update the file collision ewarn notice to try  |
   | zmedico | and clarify the cases when a bug should NOT be filed. Also,  |
   |         | recommend the new `portageq owners / ` command since it      |
   |         | works properly even when paths are ambiguous due to          |
   |         | symlinked directories.                                       |

   | 8161    | Add missing "to" to fix grammer.                             |
   | zmedico |                                                              |

   | 8163    | Bug #196043 - Unify the ouput handling for file collisions   |
   | zmedico | so that similar eerror messages are generated whether or not |
   |         | collision-protect is enabled.                                |

   | 8166    | Fix the normalize_needed regex to properly match // anywhere |
   | zmedico | in the path. Also add support for detection of . or .. where |
   |         | appropriate.                                                 |

   | 8168    | Fix collision-protect so that it properly cancels the        |
   | zmedico | preinst phase like it used to.                               |

   | 8170    | Adjust quote usage in collision-protect eerror output.       |
   | zmedico |                                                              |

   | 8172    | Bug #195375 - Make dblink.treewalk() read inforoot/SLOT      |
   | zmedico | since it differs from the expected SLOT value when when      |
   |         | USE=multislot is enabled. A warning message will be shown if |
   |         | the slot differs and --quiet mode is not enabled.            |

   | 8174    | Handle EnvironmentError instead of OSError since open()      |
   | zmedico | actually raises IOError. Also, treat a missing SLOT file as  |
   |         | SLOT="" since it is currently possible to install an ebuild  |
   |         | with an undefined SLOT even though repoman generates a       |
   |         | SLOT.missing error with such an ebuild.                      |

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

18 years ago Merged from trunk 8141:8142 (Manually applied)
Fabian Groffen [Sun, 21 Oct 2007 12:24:56 +0000 (12:24 -0000)]
   Merged from trunk 8141:8142  (Manually applied)

   | 8142    | Move the emerge module to _emerge to make it private since   |
   | zmedico | it's mostly unsuitable for api consumers at this time.       |

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

18 years ago Merged from trunk 8141:8142 (Manually applied)
Fabian Groffen [Sun, 21 Oct 2007 12:22:39 +0000 (12:22 -0000)]
   Merged from trunk 8141:8142  (Manually applied)

   | 8142    | Move the emerge module to _emerge to make it private since   |
   | zmedico | it's mostly unsuitable for api consumers at this time.       |

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

18 years agoReplay the move from revision 8142, because svn does not properly do it.
Fabian Groffen [Sun, 21 Oct 2007 10:44:21 +0000 (10:44 -0000)]
Replay the move from revision 8142, because svn does not properly do it.

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

18 years ago Merged from trunk 8123:8140
Fabian Groffen [Sun, 21 Oct 2007 10:34:42 +0000 (10:34 -0000)]
   Merged from trunk 8123:8140

   | 8124    | Add a note to clarify os.walk() behavior with respect to     |
   | zmedico | symlinks to directories.                                     |

   | 8125    | Sort the modes in the repoman --help output.                 |
   | zmedico |                                                              |

   | 8126    | Document the "manifest" mode.                                |
   | zmedico |                                                              |

   | 8128    | remove unused tmpfs variable                                 |
   | genone  |                                                              |

   | 8129    | Bug #195949 - Use a different diff_command sanity check when |
   | zmedico | using_editor is true.                                        |

   | 8130    | Bug #195949 - Add one more using_editor conditional for      |
   | zmedico | diff_command.                                                |

   | 8136    | Update NOTE_2 to document proper use of the using_editor     |
   | zmedico | config option.                                               |

   | 8138    | Update emacs and vim docs to reference NOTE_2.               |
   | zmedico |                                                              |

   | 8140    | Fix --help summary so that "commit" mode shows.              |
   | zmedico |                                                              |

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

18 years agoShow that we are checking things, and add check for S_ISWHT to allow for compilation...
Fabian Groffen [Mon, 15 Oct 2007 08:23:25 +0000 (08:23 -0000)]
Show that we are checking things, and add check for S_ISWHT to allow for compilation on Linux

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

18 years agoI missed a D.
Fabian Groffen [Sun, 14 Oct 2007 09:27:51 +0000 (09:27 -0000)]
I missed a D.

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

18 years ago Merged from trunk 8113:8121
Fabian Groffen [Sun, 14 Oct 2007 09:26:44 +0000 (09:26 -0000)]
   Merged from trunk 8113:8121

   | 8114    | In the file collision eerror output, don't colorize the file |
   | zmedico | paths since the escape codes look ugly in the log.           |

   | 8115    | Remove unused import.                                        |
   | zmedico |                                                              |

   | 8117    | Avoid an error message from find when "${D}"/usr/share does  |
   | zmedico | not exist.                                                   |

   | 8119    | In some cases, openpty can be slow when it fails. Therefore, |
   | zmedico | stop trying to use it after the first failure.               |

   | 8121    | Remove the checks for files in symlinked directories from    |
   | zmedico | the collision protect code since it hasn't been needed ever  |
   |         | since the followSymlinks parameter was disabled for          |
   |         | portage.listdir() calls in order to prevent infinite         |
   |         | recursion loops.                                             |

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

18 years agoGreatly speed-up creating a tarball by omitting .svn directories during
Fabian Groffen [Sat, 13 Oct 2007 15:57:33 +0000 (15:57 -0000)]
Greatly speed-up creating a tarball by omitting .svn directories during
copying.

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

18 years agoSolaris is slightly different, use configure to find out what we need.
Fabian Groffen [Sat, 13 Oct 2007 14:29:13 +0000 (14:29 -0000)]
Solaris is slightly different, use configure to find out what we need.
We compile on Darwin, Solaris and FreeBSD now.  Probably Linux breaks.

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

18 years agoMake FreeBSD happy, and fix inverted guard.
Fabian Groffen [Sat, 13 Oct 2007 13:58:51 +0000 (13:58 -0000)]
Make FreeBSD happy, and fix inverted guard.

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

18 years agoIt helps a lot when you merge the actual "fixed" files by chpathtool
Fabian Groffen [Sat, 13 Oct 2007 13:26:01 +0000 (13:26 -0000)]
It helps a lot when you merge the actual "fixed" files by chpathtool
instead of those in the temporary unpack location.

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

18 years agoSuppress chpathtool's warnings with -q
Fabian Groffen [Sat, 13 Oct 2007 12:58:04 +0000 (12:58 -0000)]
Suppress chpathtool's warnings with -q

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

18 years agosmall but essential : forgotten
Fabian Groffen [Sat, 13 Oct 2007 12:43:11 +0000 (12:43 -0000)]
small but essential : forgotten

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

18 years agomy autojungle knowledge sucks, fix complaints by autoconf
Fabian Groffen [Sat, 13 Oct 2007 12:36:51 +0000 (12:36 -0000)]
my autojungle knowledge sucks, fix complaints by autoconf

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

18 years ago Merged from trunk 8085:8102
Fabian Groffen [Sat, 13 Oct 2007 12:29:59 +0000 (12:29 -0000)]
   Merged from trunk 8085:8102

   | 8086    | Bug #195527 - Unconditionally detect file collisions and log |
   | zmedico | them as eerror messages via elog. This will allow us to      |
   |         | collect more file collision data but it won't be quite as    |
   |         | annoying as enabling collision-protect by default would be.  |

   | 8087    | Bug #195527 - Add some more information to the file          |
   | zmedico | collision eerror message to try and prevent user confusion:  |
   |         | - Hint that `equery belongs ` can be used to find the        |
   |         | installed package that owns a file. - Advise then NOT to     |
   |         | file a bug without reporting exactly which two packages      |
   |         | install the same file(s).                                    |

   | 8089    | s:this package wants:this package will:                      |
   | zmedico |                                                              |

   | 8091    | Remove a redundant call to elog_process().                   |
   | zmedico |                                                              |

   | 8093    | Bug #195370 - Filter some more bogus matches due to          |
   | zmedico | old-style virtuals.                                          |

   | 8096    | In dblink.treewalk(), use os.walk() instead of               |
   | zmedico | portage.listdir() in order to avoid cacheddir() bloat when   |
   |         | listing the files to be merged from ${D}.                    |

   | 8097    | Use os.listdir() instead of portage.listdir() in             |
   | zmedico | dblink.mergeme().                                            |

   | 8098    | Remove a chdir() call that's no longer needed for the        |
   | zmedico | collision-protect symlink code.                              |

   | 8100    | Make the file collision eerror message less verbose when in  |
   | zmedico | --quiet mode.                                                |

   | 8102    | Handle the PortageException that can be raised from          |
   | zmedico | portage.mail.send_mail().                                    |

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

18 years agoUse the new chpathtool.
Fabian Groffen [Sat, 13 Oct 2007 12:26:58 +0000 (12:26 -0000)]
Use the new chpathtool.

If we install on a system with a different prefix, unpack in the
workdir, instead of the image dir.  We "copy" from the workdir to the
image using chpathtool, which behaves as a cp -a.

chpathtool was changed to copy file by file, changing paths it finds in
files to overcome the following problem.  chpathtool was used in a piped
fashion, like this:

bzip2 -d file | chpathtool | tar -x

in this way, chpathtool operated on the raw tar-stream, changing paths
it saw over the stream.  This has the following advantages:
- not only rpaths, library locations, or hardcoded paths to conf files
  were changed, but also the location of the files in the filesystem
  themselves, as chpathtool also changed the tar envelope
- just one run over the stream, simple, easy and cheap from an fork/exec
  perspective
- no need to deal with file attributes, creation modes, etc, tar dealt
  with that, chpathtool only changed paths where appropriate

However, when doing the path changements, chpathtool inserts padding
bytes at the end of each string it sees, in order not to break offsets
stored in e.g. programs to point in the TEXT or DATA spaces.  Because
text files are in the tar stream, chpathtool sees the end of string at
the end of such text file, and inserts the padding null-bytes there.
However, tar still has an administration for each file of its size, so
as result, tar writes the padding null-bytes to the text files.  In most
cases this doesn't hurt, however, some applications, such as GHC get
confused by it, because EOF isn't found, but null-bytes don't make sense
for them.

The only way to fix this, without interpreting the tar envelope, is to
use chpathtool per file.  chpathtool doesn't write padding bytes if it
doesn't find an end of string, which in textfiles doesn't exist (instead
you get the EOF).  Running find -exec, or with xargs results in a
serious performance problem due to numerous fork/exec calls.  Instead,
chpathtool was changed to recursively walk directories, and process all
what is in there.

Because chpathtool operates on files in this case, it needs to properly
behave, such that it doesn't change the properties of each file it
replicates.  For this reason, chpathtool's implementation grew twice its
original size in order to retain the original file's permissions,
owners, and times.

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

18 years agoRetain access and modification times for files and directories.
Fabian Groffen [Sat, 13 Oct 2007 11:55:50 +0000 (11:55 -0000)]
Retain access and modification times for files and directories.

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

18 years agoIntermediate commit.
Fabian Groffen [Fri, 12 Oct 2007 22:44:38 +0000 (22:44 -0000)]
Intermediate commit.

Finished stage1 of chpathtool pimp-up.

The idea is that chpathtool copies a directory into another, doing its
job, retaining the files' properties, like cp -a (ok, cp -pPR) would do.
The implementation is now up to copying, setting the permission bits and
owner stuff.  TODO: the *times, and then it should be done.

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

18 years agosend warnings to stdout instead of stderr
Fabian Groffen [Fri, 12 Oct 2007 14:13:41 +0000 (14:13 -0000)]
send warnings to stdout instead of stderr

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

18 years agoPortage and quickpkg generate slightly different tarballs (the former
Fabian Groffen [Fri, 12 Oct 2007 13:39:30 +0000 (13:39 -0000)]
Portage and quickpkg generate slightly different tarballs (the former
makes paths like ./usr/bin/bla whereas the latter makes paths like
usr/bin/bla), hack Portage such that it can deal with its own format as
well.  (quickpkg format used to work before)

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

18 years agoUse PORTAGE_BINHOST as repo_path(_real) such that instead of a ? for
Fabian Groffen [Fri, 12 Oct 2007 11:36:32 +0000 (11:36 -0000)]
Use PORTAGE_BINHOST as repo_path(_real) such that instead of a ? for
repository, we show it's url to the binhost in use.

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

18 years agoI have some rotten binpkgs floating around, they don't have a EPREFIX
Fabian Groffen [Fri, 12 Oct 2007 11:04:52 +0000 (11:04 -0000)]
I have some rotten binpkgs floating around, they don't have a EPREFIX
key, avoid Python KeyErroring out on them.

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

18 years agoSolve bug where portage would not "see" my binhost because
Fabian Groffen [Fri, 12 Oct 2007 10:54:02 +0000 (10:54 -0000)]
Solve bug where portage would not "see" my binhost because
PORTAGE_BINHOST didn't end with a /.  This is actually caused by urljoin
not operating like os.path.join would do.

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

18 years agoOptimise some more: take the EAPI from portage.const, as most packages
Fabian Groffen [Fri, 12 Oct 2007 10:11:01 +0000 (10:11 -0000)]
Optimise some more: take the EAPI from portage.const, as most packages
will probably be that EAPI (at least that is what we would like).  At
least in Prefix there are no packages with EAPI != portage.const.EAPI

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

18 years agoWith the help of zmedico Prefix binary support should be working fully optimal and...
Fabian Groffen [Fri, 12 Oct 2007 09:32:39 +0000 (09:32 -0000)]
With the help of zmedico Prefix binary support should be working fully optimal and correct now

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

18 years agoFix syntax error
Fabian Groffen [Fri, 12 Oct 2007 09:20:04 +0000 (09:20 -0000)]
Fix syntax error

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

18 years ago Merged from trunk 8051:8058
Fabian Groffen [Fri, 12 Oct 2007 09:07:41 +0000 (09:07 -0000)]
   Merged from trunk 8051:8058

   | 8052    | Split USE evaluation code out of binarytree.inject() so that |
   | zmedico | it can be reused in populate().                              |

   | 8053    | Sync code between binarytree.inject() and populate().        |
   | zmedico |                                                              |

   | 8054    | Pass default package metadata values into the PackageIndex   |
   | zmedico | constructor for optional things like EAPI and SLOT.          |

   | 8055    | Pass into the PackageIndex constructor a list of package     |
   | zmedico | metadata keys that inherit a default value from the header.  |

   | 8058    | Use writemsg() to send exception string to stderr.           |
   | zmedico |                                                              |

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

18 years ago Merged from trunk 8043:8051
Fabian Groffen [Fri, 12 Oct 2007 09:02:45 +0000 (09:02 -0000)]
   Merged from trunk 8043:8051

   | 8044    | implement new set to group all consumers of preserved        |
   | genone  | libraries                                                    |

   | 8045    | Make depgraph.select_dep() reject installed packages in the  |
   | zmedico | same cases that it used to so that a warning message is      |
   |         | properly generated in depgraph.xcreate() when a package is   |
   |         | unavailable but installed.                                   |

   | 8046    | Add a set to group all consumers of missing libraries as a   |
   | genone  | simple revdep-rebuild replacement                            |

   | 8047    | Update todo list                                             |
   | genone  |                                                              |

   | 8048    | Do not use aux_get to parse the NEEDED file as we need to    |
   | genone  | distinguish spaces and newlines                              |

   | 8049    | typo fix                                                     |
   | genone  |                                                              |

   | 8050    | In depgraph.select_dep(), check for existing nodes in        |
   | zmedico | installed packages when necessary.                           |

   | 8051    | Strip the leading path separator from USER_CONFIG_PATH so    |
   | zmedico | that os.path.join works correctly.                           |

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

18 years ago Merged from trunk 8036:8043
Fabian Groffen [Fri, 12 Oct 2007 09:00:46 +0000 (09:00 -0000)]
   Merged from trunk 8036:8043

   | 8037    | Refactor depgraph.select_dep() to eliminate redundant code   |
   | zmedico | that was duplicated for each package type.                   |

   | 8038    | Comment about avoiding expensive metadata pulls in           |
   | zmedico | depgraph.select_dep().                                       |

   | 8039    | Prevent bogus upgrade display when a new-style virtual is    |
   | zmedico | first installed and it replaces an old-style virtual.        |

   | 8040    | Remove ambiguous "you should edit this file" warning. Thanks |
   | zmedico | to Cardoe.                                                   |

   | 8041    | Make portdbapi and bindbapi cache PROVIDE in order to        |
   | zmedico | optimize matching of old-style virtuals.                     |

   | 8042    | Move some package selection code from depgraph.create() to   |
   | zmedico | select_dep() so that all package selection is done in the    |
   |         | same place.                                                  |

   | 8043    | Raise a PackageNotFound exception instead of a ValueError in |
   | zmedico | order to avoid ambiguity if an unexpected ValueError occurs. |

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

18 years ago Merged from trunk 8032:8036
Fabian Groffen [Fri, 12 Oct 2007 08:48:20 +0000 (08:48 -0000)]
   Merged from trunk 8032:8036

   | 8033    | Unify the masking reasons output so that the same code path  |
   | zmedico | is used for both ebuilds and binary packages.                |

   | 8034    | Initialize the list of package repos inside the depgraph     |
   | zmedico | constructor so it's always available.                        |

   | 8035    | Migrate depgraph.select_files() to use the filtered repo for |
   | zmedico | expansion of greedy atoms. Also, use the list of repos to    |
   |         | clean up the category expansion code.                        |

   | 8036    | Cache IUSE in bindbapi to optimize --newuse calculations.    |
   | zmedico | Also, fix filtering code for reading/writing USE and IUSE    |
   |         | from/to the metadata index.                                  |

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

18 years ago Merged from trunk 8024:8032
Fabian Groffen [Fri, 12 Oct 2007 07:59:56 +0000 (07:59 -0000)]
   Merged from trunk 8024:8032

   | 8025   | Start documentation of set handler classes                    |
   | genone |                                                               |

   | 8028   | document all options                                          |
   | genone |                                                               |

   | 8029   | security sets actually have one option                        |
   | genone |                                                               |

   | 8030   | add description to security set handlers                      |
   | genone |                                                               |

   | 8031   | add descriptions for dbapi set classes                        |
   | genone |                                                               |

   | 8032   | document default sets                                         |
   | genone |                                                               |

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

18 years agoResolve merge error.
Fabian Groffen [Tue, 9 Oct 2007 20:03:46 +0000 (20:03 -0000)]
Resolve merge error.

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

18 years agoFix up installing of sets.conf
Fabian Groffen [Tue, 9 Oct 2007 19:59:11 +0000 (19:59 -0000)]
Fix up installing of sets.conf

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

18 years agoAlso create the target directory
Fabian Groffen [Tue, 9 Oct 2007 19:19:56 +0000 (19:19 -0000)]
Also create the target directory

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

18 years ago Merged from trunk 8020:8021
Fabian Groffen [Tue, 9 Oct 2007 19:09:00 +0000 (19:09 -0000)]
   Merged from trunk 8020:8021

   | 8021   | Exclude .metadata files in multi set configurations for       |
   | genone | StaticFileSet                                                 |

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

18 years agoIt helps a lot if you define a variable you use lateron
Fabian Groffen [Tue, 9 Oct 2007 19:05:24 +0000 (19:05 -0000)]
It helps a lot if you define a variable you use lateron

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

18 years agoInstall sets.conf in datarootdir/portage.
Fabian Groffen [Tue, 9 Oct 2007 18:17:36 +0000 (18:17 -0000)]
Install sets.conf in datarootdir/portage.

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

18 years ago Merged from trunk 8016:8017
Fabian Groffen [Tue, 9 Oct 2007 18:04:01 +0000 (18:04 -0000)]
   Merged from trunk 8016:8017

   | 8017    | Fix USE logic for built packages when populating the         |
   | zmedico | filtered repo.                                               |

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

18 years ago Merged from trunk 8007:8016
Fabian Groffen [Tue, 9 Oct 2007 18:01:51 +0000 (18:01 -0000)]
   Merged from trunk 8007:8016

   | 8008    | Optimize away a match_from_list() call inside                |
   | zmedico | portdbapi.xmatch("match-all") when given atom has no         |
   |         | operator or version. Also, make cp_list() use the            |
   |         | xmatch("match-all") cache when possible.                     |

   | 8009    | Remove a redundant os.access() call in portdbapi.aux_get()   |
   | zmedico | and handle the potential OSError instead.                    |

   | 8010    | Properly exclude old-style virtuals from the                 |
   | zmedico | portdbapi.cp_list() cache.                                   |

   | 8011    | Make portdbapi.aux_get() cache more often.                   |
   | zmedico |                                                              |

   | 8012    | Bug #149816 - Implement visibility filtering support for     |
   | zmedico | binary packages. This works by creating a virtual filtered   |
   |         | repository that can be composed of multiple package types,   |
   |         | including ebuilds, binary packages, and installed packages.  |

   | 8013    | In depgraph.xcreate(), installed packages are excluded from  |
   | zmedico | the filtered tree. Clear out the history of atoms so that    |
   |         | they can be processed again to satisfy dependencies with     |
   |         | installed packages if necessary.                             |

   | 8014    | When an ebuild has conditionals in it's LICENSE, calculate   |
   | zmedico | USE before the visibility check.                             |

   | 8015    | Fix InvalidDependString namespace and initialize USE before  |
   | zmedico | visibility check.                                            |

   | 8016    | Replace hardcoded path with new constant                     |
   | genone  |                                                              |

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

18 years ago Merged from trunk 7994:8001
Fabian Groffen [Mon, 8 Oct 2007 17:33:36 +0000 (17:33 -0000)]
   Merged from trunk 7994:8001

   | 7995    | Move the "commit" mode manifest generation earlier in order  |
   | zmedico | to avoid digest verification issues when FEATURES="strict"   |
   |         | is enabled.                                                  |

   | 7996    | Remove duplicate call to digestgen().                        |
   | zmedico |                                                              |

   | 7997    | Factor the KEYWORDS masking logic out of portdbapi.visible() |
   | zmedico | and move it to config.getMissingEeywords(). This will allow  |
   |         | the code to be reused for binary packages.                   |

   | 7998    | Allow config.setcpv() to take a dictionary of package        |
   | zmedico | metadata in place of a dbapi instance so that extra cache    |
   |         | pulls can be avoided.                                        |

   | 7999    | Restore profile masking support to getmaskingstatus().       |
   | zmedico |                                                              |

   | 8000    | Cache IUSE for portdbapi.gvisible() calls.                   |
   | zmedico |                                                              |

   | 8001    | Factor package.mask and profile masking logic out of         |
   | zmedico | portdbapi.visible() and move it to config.getMaskAtom() and  |
   |         | getProfileMaskAtom(). This will allow the code to be reused  |
   |         | for binary packages.                                         |

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

18 years agoLook /in/ the prefix
Fabian Groffen [Mon, 8 Oct 2007 17:25:15 +0000 (17:25 -0000)]
Look /in/ the prefix

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

18 years agoDon't spit out ${D}
Fabian Groffen [Mon, 8 Oct 2007 17:24:06 +0000 (17:24 -0000)]
Don't spit out ${D}

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

18 years ago Merged from trunk 7984:7994
Fabian Groffen [Mon, 8 Oct 2007 17:23:10 +0000 (17:23 -0000)]
   Merged from trunk 7984:7994

   | 7985     | Fix package.license support so that SLOT atoms will work.   |
   | zmedico  |                                                             |

   | 7986     | Bug #194552 - Include EAPI in the binary package metadata   |
   | zmedico  | index.                                                      |

   | 7987     | In PackageIndex.readBody(), make each package entry inherit |
   | zmedico  | CHOST from the header.                                      |

   | 7988     | In PackageIndex.write(), skip writing the CHOST for a       |
   | zmedico  | package entry if it's CHOST matches the header.             |

   | 7989     | Fix binarytree.populate() so that it properly caches all    |
   | zmedico  | the metadata necessary for visibility filtering.            |

   | 7990     | add QA check for .pyc/.pyo files in /usr/share              |
   | SpankMan |                                                             |

   | 7991     | add support for .lzma / .tar.lzma to unpack                 |
   | SpankMan |                                                             |

   | 7992     | unify diff_command handling                                 |
   | SpankMan |                                                             |

   | 7993     | add standard --help/--version options                       |
   | SpankMan |                                                             |

   | 7994     | add --debug option and display a message about skipping     |
   | SpankMan | non-files so we dont get confusing loops where portage      |
   |          | claims there are things to update but etc-update claims     |
   |          | there are not                                               |

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

18 years ago Merged from trunk 7976:7984
Fabian Groffen [Mon, 8 Oct 2007 17:17:39 +0000 (17:17 -0000)]
   Merged from trunk 7976:7984

   | 7977   | default set configuration, should probably go into            |
   | genone | /usr/share/portage                                            |

   | 7978   | Add some documentation about set configuration                |
   | genone |                                                               |

   | 7979   | Also look for sets.conf in overlays                           |
   | genone |                                                               |

   | 7980   | Also clean portage.txt                                        |
   | genone |                                                               |

   | 7981   | clean up module namespace                                     |
   | genone |                                                               |

   | 7982   | Add @localhost to default PORTAGE_ELOG_MAILFROM to account    |
   | genone | for mail servers that don't accept mails without a domainname |

   | 7983   | let dohtml handle weird filenames, patch by TGL (bug #171272) |
   | genone |                                                               |

   | 7984   | Handle Exceptions in mod_mail_summary.finalize() and check if |
   | genone | the server actually supports TLS, bug #183808                 |

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

18 years ago Merged from trunk 7965:7975
Fabian Groffen [Mon, 8 Oct 2007 17:06:07 +0000 (17:06 -0000)]
   Merged from trunk 7965:7975

   | 7966    | Document IUSE defaults.                                      |
   | zmedico |                                                              |

   | 7967    | Shorten the reference to IUSE defaults since it's now        |
   | zmedico | documented in ebuild(5).                                     |

   | 7974    | handle empty sets properly                                   |
   | genone  |                                                              |

   | 7975    | Strip the - prefix from EAPI in getmaskingstatus() if        |
   | zmedico | necessary.                                                   |

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

19 years ago Merged from trunk 7961:7963
Fabian Groffen [Fri, 5 Oct 2007 21:07:29 +0000 (21:07 -0000)]
   Merged from trunk 7961:7963

   | 7962    | Document SLOT dependencies.                                  |
   | zmedico |                                                              |

   | 7963    | include sets in emerge --search                              |
   | genone  |                                                              |

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

19 years agoVimdiff with trunk to make python happy
Fabian Groffen [Fri, 5 Oct 2007 21:05:42 +0000 (21:05 -0000)]
Vimdiff with trunk to make python happy

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

19 years ago Merged from trunk 7951:7959
Fabian Groffen [Fri, 5 Oct 2007 20:35:51 +0000 (20:35 -0000)]
   Merged from trunk 7951:7959

   | 7952    | Add set configuration framework in preparation for emerge    |
   | genone  | integration                                                  |

   | 7956    | first version of set integration in emerge                   |
   | genone  |                                                              |

   | 7957    | only add short names for sets if they begin with 'sets/'     |
   | genone  |                                                              |

   | 7958    | Generalize the first paragraph of the MASKED PACKAGES        |
   | zmedico | section and document binary package CHOST masking.           |

   | 7959    | replace category sets in test configuration with user sets   |
   | genone  |                                                              |

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

19 years ago Merged from trunk 7918:7951
Fabian Groffen [Fri, 5 Oct 2007 20:23:50 +0000 (20:23 -0000)]
   Merged from trunk 7918:7951

   | 7919    | In portdbapi.aux_get(), simplify code by using string        |
   | zmedico | manipulation instead of int conversion to manipulate         |
   |         | negative EAPI when deciding whether or not regen is          |
   |         | necessary.                                                   |

   | 7942    | Make the EbuildQuote check ignore lines beginning with local |
   | zmedico | or export builtins since unquoted assignments are okay       |
   |         | there.                                                       |

   | 7944    | Bug #194764 - All the match* functions can raise a           |
   | zmedico | ValueError if cpv_expand() receives an ambiguous atom.       |
   |         | Therefore, move the ValueError handling code out of match()  |
   |         | and use it to handle all such errors when appropriate.       |

   | 7946    | copy of gentoolkit r451                                      |
   | genone  |                                                              |

   | 7947    | add TODO list for portage-2.2                                |
   | genone  |                                                              |

   | 7948    | ignore missing files                                         |
   | genone  |                                                              |

   | 7949    | Document the EAPI variable.                                  |
   | zmedico |                                                              |

   | 7950    | Fix spelling of backward.                                    |
   | zmedico |                                                              |

   | 7951    | Documnet EAPI in the MASKED PACKAGES section.                |
   | zmedico |                                                              |

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

19 years ago Merged from trunk 7913:7918
Fabian Groffen [Fri, 5 Oct 2007 18:58:31 +0000 (18:58 -0000)]
   Merged from trunk 7913:7918

   | 7914    | Make repoman bail out if it is unable to properly access     |
   | zmedico | ebuild metadata for some reason. In this case it's           |
   |         | impossible to generate a Manifest and therefore the --force  |
   |         | option has to be disabled.                                   |

   | 7915    | Fix logic for the message that's show when --force is        |
   | zmedico | disabled.                                                    |

   | 7916    | Make portdbapi.getfetchlist() bail out if the EAPI is        |
   | zmedico | unsupported. This makes it impossible for an unsupported     |
   |         | EAPI to result in invalid Manifest generation.               |

   | 7917    | Include the package name in all exceptions raised from       |
   | zmedico | portdbapi.getfetchlist() so that a redundant and sometimes   |
   |         | inaccurate message doesn't have to be shown when the error   |
   |         | is caught in digestgen().                                    |

   | 7918    | Handle UnsupportedAPIException when running the ebuild(1)    |
   | zmedico | command.                                                     |

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

19 years ago Merged from trunk 7908:7913
Fabian Groffen [Fri, 5 Oct 2007 18:43:13 +0000 (18:43 -0000)]
   Merged from trunk 7908:7913

   | 7909    | Bump EAPI from 0 to 1 and fix eapi_is_supported() so that it |
   | zmedico | works properly with both 0 and 1.                            |

   | 7910    | When the metadata cache contains a negative EAPI, it means   |
   | zmedico | that the cache entry was generated by a version of portage   |
   |         | that did not support the eapi. When the user upgrades to a   |
   |         | version that now supports the previously unsupported EAPI,   |
   |         | those cache entries need to be regenerated. Therefore, when  |
   |         | a cache entry has a negative EAPI, check if the EAPI would   |
   |         | be supported and trigger a regen if appropriate.             |

   | 7911    | Non-integer EAPI isn't supported. In case it's supported in  |
   | zmedico | the future, assume that it's valid (rather than trigger a    |
   |         | regen).                                                      |

   | 7912    | Fix UnsupportedAPIException.__str__() to strip the leading   |
   | zmedico | negative sign (-) from the EAPI, to prevent confusion.       |

   | 7913    | Add EAPI masking support for binary packages.                |
   | zmedico |                                                              |

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

19 years ago Merged from trunk 7903:7908
Fabian Groffen [Fri, 5 Oct 2007 18:22:18 +0000 (18:22 -0000)]
   Merged from trunk 7903:7908

   | 7904     | In the EbuildQuote check, combine the var_assignment regex  |
   | zmedico  | together with the ignore_line regex. This also fixes an     |
   |          | issue with the var_assignment regex allowing violations     |
   |          | like `make DESTDIR=${D}` to slip through.                   |

   | 7905     | Eliminate confusing false positive error messages for       |
   | zmedico  | SRC_URI.syntax and digestentry.unused that are reported     |
   |          | when the SRC_URI for one or more ebuilds can't be parsed    |
   |          | for some reason. There's no point in producing a false      |
   |          | error here since the root cause will produce a valid error  |
   |          | elsewhere, such as "SRC_URI.syntax" or "ebuild.sytax".      |
   |          | Also, update the docs for the "ebuild.syntax" error to      |
   |          | indicate that a digest verification failure can trigger it. |

   | 7907     | this isnt part of gentoolkit anymore                        |
   | SpankMan |                                                             |

   | 7908     | no need to use "function" when defining a function          |
   | SpankMan |                                                             |

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

19 years ago1 tab -> 4 spaces.
Fabian Groffen [Tue, 2 Oct 2007 16:04:40 +0000 (16:04 -0000)]
1 tab -> 4 spaces.

Mixing those upsets python.  It appears this file is using spaces
instead of tabs, i.e. it is not consistent with the other python files
which use tabs.

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

19 years ago Merged from trunk 7890:7901
Fabian Groffen [Tue, 2 Oct 2007 15:56:54 +0000 (15:56 -0000)]
   Merged from trunk 7890:7901

|7891     |Document interaction between config.setinst() and old-style virtuals         |
|zmedico  |preferences.                                                                 |

|7892     |Reimplement portdbapi.visible() so that is works without using self.xmatch().|
|zmedico  |This should be 100% compatible with the previous implementation and have     |
|         |comparable performance. By eliminating the xmatch() dependency, the code     |
|         |becomes more generically usable, like for visibility filtering of binary     |
|         |packages. It seems that it will be necessary to move this code outside of the|
|         |dbapi since visiblity filtering is really a resolver level function and to   |
|         |solve things like bug #88613 will require a more flexible approach. since the|
|         |current internal                                                             |

|7893     |Bug #142508 - Clear the screen each time before calling the "diff" command so|
|zmedico  |that any remnants of the previous config are now shown with the current one. |
|         |command so that                                                              |

|7894     |Add new repoman check classes using StringIO; possibly need some testing,    |
|WarnerBro|obviously the old code was faster (1 iteration over the file), here we do one|
|         |iteration per check, StringIO was to try and negate this by doing the checks |
|         |in memory...how much of a price do we pay here?                              |

|7895     |Add Donnie's quote check, refactor other ebuild-content checks into classes  |
|WarnerBro|and get them out of repoman in an attempt to start moving other checks out as|
|         |well. Again wonder at the price of StringIO and N passes, is the readability |
|         |worth it?                                                                    |

|7896     |keep old repoman names so we don't confuse people                            |
|WarnerBro|                                                                             |

|7897     |Delete some extra leaky vars, also after some testing I discovered read() is |
|WarnerBro|much faster than readlines(), see                                            |
|         |http://dev.gentoo.org/~antarus/projects/portage/stats/StringIOVsFiles.txt    |

|7898     |Rename checks as the naming was overkill (they are all obviously checks being|
|WarnerBro|in the check module), add nesteddie check                                    |

|7899     |Apply new checks, minor cleanup                                              |
|WarnerBro|                                                                             |

|7900     |Bug #194398 - Do not log "exiting successfully" in emerge.log unless the     |
|zmedico  |status really is successful. Otherwise, log "exiting unsuccessfully". Thanks |
|         |to David Watzke.                                                             |

|7901     |Filter some false positives out of the EbuildQuote check. It might work well |
|zmedico  |enough now so that we don't have to degrade it to a warning.                 |

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

19 years agoAlign with zmedico
Fabian Groffen [Sat, 29 Sep 2007 21:12:51 +0000 (21:12 -0000)]
Align with zmedico

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

19 years ago- only use PORTAGE_TMPDIR /after/ it is set
Fabian Groffen [Sat, 29 Sep 2007 21:11:52 +0000 (21:11 -0000)]
- only use PORTAGE_TMPDIR /after/ it is set
- don't chown ${TMP} to what in theory should be our own, especially
  since GID isn't set.

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

19 years agoPortage generates ED (and D) with a trailing /, this means that at least
Fabian Groffen [Sat, 29 Sep 2007 20:55:38 +0000 (20:55 -0000)]
Portage generates ED (and D) with a trailing /, this means that at least
internally we can do things right and avoid double slashes.  This solves
at least gtk+-2.12.0 compilation which uses einstall.  libtool isn't
charmed by the double slashes.

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

19 years agoMoved EPREFIX check from late-die when installing a binary package to
Fabian Groffen [Sat, 29 Sep 2007 20:47:55 +0000 (20:47 -0000)]
Moved EPREFIX check from late-die when installing a binary package to
resolving phase, like the CHOST check.

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

19 years ago Merged from trunk 7877:7879
Fabian Groffen [Sat, 29 Sep 2007 20:31:29 +0000 (20:31 -0000)]
   Merged from trunk 7877:7879

   | 7878      | Fix quoting as reported by Drac in bug 194169              |
   | WarnerBro |                                                            |

   | 7879      | revert useless quoting                                     |
   | SpankMan  |                                                            |

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

19 years ago Merged from trunk 7838:7877
Fabian Groffen [Sat, 29 Sep 2007 20:29:54 +0000 (20:29 -0000)]
   Merged from trunk 7838:7877

   | 7839     | someone seriously screwed the pooch on whitespacing here so |
   | SpankMan | clean it all up                                             |

   | 7840     | Fix a typo.                                                 |
   | zmedico  |                                                             |

   | 7842     | align the filename and line numbers in the output of the    |
   | SpankMan | stack dump so that it is much easier to read                |

   | 7844     | Display a short notification when an existing               |
   | zmedico  | ${T}/environment sourced since it is easy to ignore and     |
   |          | ignorance of it often leads to mysterious problems and      |
   |          | general confusion. This message should not show in cases    |
   |          | where it is obviously irrelevant, FEATURES=noauto, or       |
   |          | PORTAGE_QUIET=1.                                            |

   | 7846     | Do the stale env check/warning after the digest/manifest    |
   | zmedico  | phase when necessary.                                       |

   | 7848     | Bug #193486 - Use xargs to avoid 'bash: /bin/rm: Argument   |
   | zmedico  | list too long' errors. This patch uses a weird tr '\001'    |
   |          | '\000' workaround since bash doesn't echo null bytes like   |
   |          | one might expect.                                           |

   | 7850     | Bug #193486 - Use echo -n and properly quote the array      |
   | zmedico  | argument.                                                   |

   | 7852     | with help from Donnie and Ulrich, use sed to extract the    |
   | SpankMan | statement that led to the call to die so we can print it    |
   |          | out in our error message                                    |

   | 7853     | Bug #194025 - Lock /var/db/pkg in post_merge() during the   |
   | zmedico  | "Regenerating GNU info directory index" routine.            |

   | 7856     | Ignore ENOTDIR from unmerge unlink calls.                   |
   | zmedico  |                                                             |

   | 7858     | Move a newline to fix formatting.                           |
   | zmedico  |                                                             |

   | 7861     | Simplify update_eclasses() a little.                        |
   | zmedico  |                                                             |

   | 7864     | Move prelink tempfile cleanup to the finally block and      |
   | zmedico  | remove unused locking code.                                 |

   | 7866     | Handle KeyError thrown from aux_get().                      |
   | zmedico  |                                                             |

   | 7869     | Bug #194081 - Add EBUSY to the list of ignored errnos for   |
   | zmedico  | unlink and rmdir calls during unmerge.                      |

   | 7871     | Bug #193548 - When emerge spawns find to search for config  |
   | zmedico  | updates, show the find output if there is an error.         |

   | 7873     | When scanning for config updates, treat a symlink to an     |
   | zmedico  | existing directory as if it's just a normal directory.      |

   | 7875     | Bug #193548 - When scanning for config updates and an error |
   | zmedico  | occurs, send find's stdout to /dev/null so that only an     |
   |          | error message is shown.                                     |

   | 7877     | Bug #194095 - Validate dispatch-conf input in order to      |
   | zmedico  | prevent spurious input characters from being interpreted as |
   |          | user input (which can be quite confusing and gives an "out  |
   |          | of control" feeling).                                       |

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

19 years ago Merged from trunk 7792:7838
Fabian Groffen [Sat, 29 Sep 2007 20:25:12 +0000 (20:25 -0000)]
   Merged from trunk 7792:7838

   | 7793     | When --with-bdeps=y is enabled for built packages, pull in  |
   | zmedico  | build time deps as requested, but marked them as            |
   |          | "satisfied" since they are not strictly required. This      |
   |          | allows more freedom in the merge order calculation for      |
   |          | solving circular dependencies. Don't convert to PDEPEND     |
   |          | since that could make --with-bdeps=y less effective if it   |
   |          | is used to adjust merge order to prevent built_with_use()   |
   |          | calls from failing.                                         |

   | 7794     | Flush stdout before calling pkg_info() to ensure that       |
   | zmedico  | output always shows in the correct order.                   |

   | 7795     | Flush stderr and stdout if their file descriptors are in    |
   | zmedico  | fd_pipes at the beginning of spawn().                       |

   | 7796     | In spawn(), initialize default fd_pipes before doing the    |
   | zmedico  | stdout/stderr flush.                                        |

   | 7797     | When --deep is not enabled, many dependencies are dicarded  |
   | zmedico  | and left out of the digraph. This patch prevents            |
   |          | dependencies from being discarded in some cases where the   |
   |          | are needed in order to optimize merge order. It also        |
   |          | modifies the DepPriority.rebuild attribute so that it only  |
   |          | applies to build time dependencies. This leads to better    |
   |          | merge order in some cases when --deep is not enabled. For   |
   |          | example, `emerge xf86-input-keyboard xorg-server` will now  |
   |          | properly merge xorg-server before xf86-input-keyboard       |
   |          | (problem from bug #192254, comment #5).                     |

   | 7798     | tweak get_config() so that it only executes one external    |
   | SpankMan | binary (sed) instead of chaining multiple ones              |

   | 7799     | fix possible information leak vulnerability when doing a    |
   | SpankMan | merge of configuration files and be better about handling   |
   |          | of whitespace in $TMP in a few places                       |

   | 7800     | s/note/not/ reported by p-y.                                |
   | zmedico  |                                                             |

   | 7801     | Bug #190179 - Use `prelink --verify filename` to write the  |
   | zmedico  | temp file via stdout since --undo fails when run as a       |
   |          | normal non-superuser because it tries to chown the output   |
   |          | file. Also, use mkstemp() to eliminate the need for locking |
   |          | the temp file. Thanks to Israel G. Lugo                     |
   |          | <israel.lugo@lugosys.com> for the initial patch.            |

   | 7802     | Initialize ${TMP} before registering the die trap so that   |
   | zmedico  | we're sure which directory die will clean up.               |

   | 7803     | Bug #74615 - Quote all file paths inside dispatch-conf      |
   | zmedico  | shell commands.                                             |

   | 7804     | Bugs #168772 and #193695 - During unmerge, only ignore      |
   | zmedico  | specific exceptions raised from unlink() and rmdir() calls. |

   | 7805     | Bug #193695 - Add support for FreeBSD chflags during        |
   | zmedico  | unmerge. This code is adapted from the code that already    |
   |          | exists in movefile() for the merge phase.                   |

   | 7806     | In movefile() FreeBSD chflags handling, use chflags instead |
   | zmedico  | of lchflags when temporarily adjusting the flags on the     |
   |          | parent directory since we want to follow any symlinks to    |
   |          | the real parent directory.                                  |

   | 7807     | Bug #193695 - Add FreeBSD chflags support for rmdir() calls |
   | zmedico  | during unmerge.                                             |

   | 7808     | Bug #192341 - Eliminate the dependency on py-freebsd by     |
   | zmedico  | implementing it's chflags() and lchflags() functions as     |
   |          | wrappers around the chflags command (which should always be |
   |          | available in any case). The functions are only called when  |
   |          | merging/unmerging files that actually have flags set so the |
   |          | performance difference should be negligible.                |

   | 7834     | Bug #192341 - When the chflags command does not exit        |
   | zmedico  | successfully, try to generate an informative error. First,  |
   |          | use stat or lstat to try and generate an ENOENT error. It   |
   |          | the path exists, verify that the chflags binary exists and  |
   |          | raise CommandNotFound if necessary. Finally, simply         |
   |          | generate an EPERM OSError with the output of the command    |
   |          | since we're not sure exactly why it failed or what the real |
   |          | errno was.                                                  |

   | 7835     | Set non-blocking mode on the pty master file descriptor     |
   | zmedico  | while the slave file descriptor is still held open since    |
   |          | otherwise the fcntl call can fail on FreeBSD (the child     |
   |          | process might have already exited and closed the slave file |
   |          | descriptor so we have to keep it open in order to avoid     |
   |          | FreeBSD potentially generating an EAGAIN exception). This   |
   |          | appoach is cleaner than triggering the exception and being  |
   |          | forced to handle it somehow.                                |

   | 7838     | Bug #192706 - Do not print a summary at the end of          |
   | zmedico  | --depclean if there is nothing to clean and --quiet is      |
   |          | enabled.                                                    |

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

19 years agoRemove CHOST mismatch logic since zmedico now implemented CHOST matching
Fabian Groffen [Sat, 29 Sep 2007 20:19:29 +0000 (20:19 -0000)]
Remove CHOST mismatch logic since zmedico now implemented CHOST matching
during the dependency calculation phase.

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

19 years ago Merged from trunk 7791:7792
Fabian Groffen [Sat, 29 Sep 2007 20:09:31 +0000 (20:09 -0000)]
   Merged from trunk 7791:7792

   | 7792    | Mask binary packages if their CHOST does not match the one   |
   | zmedico | defined in make.conf.                                        |

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

19 years ago Merged from trunk 7788:7790
Fabian Groffen [Tue, 18 Sep 2007 19:55:53 +0000 (19:55 -0000)]
   Merged from trunk 7788:7790

   | 7789    | Use ensure_dirs() and apply_permissions() to avoid redundant |
   | zmedico | chown/chmod calls. This helps avoid 'Permission denied'      |
   |         | errors during elog_process() when the ebuild command is run  |
   |         | by normal user (issue reported by graaff).                   |

   | 7790    | Bug #190781 - Don't include --oneshot in the options that    |
   | zmedico | --update implies.                                            |

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

19 years agotypo
Fabian Groffen [Sun, 16 Sep 2007 14:26:26 +0000 (14:26 -0000)]
typo

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

19 years agoVimdiffed with trunk to reduce differences to a minimum.
Fabian Groffen [Sun, 16 Sep 2007 14:23:56 +0000 (14:23 -0000)]
Vimdiffed with trunk to reduce differences to a minimum.

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

19 years ago Merged from trunk 7784:7785
Fabian Groffen [Sat, 15 Sep 2007 21:29:26 +0000 (21:29 -0000)]
   Merged from trunk 7784:7785

   | 7785    | Revert the workaround for bug #192341 since it will be much  |
   | zmedico | cleaner if we fall back to spawning the chflags command when |
   |         | the freebsd module is unavailable.                           |

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

19 years ago Merged from trunk 7773:7780
Fabian Groffen [Fri, 14 Sep 2007 20:21:37 +0000 (20:21 -0000)]
   Merged from trunk 7773:7780

   | 7774    | Bug #192321 - Clean dir.old cruft so that they don't prevent |
   | zmedico | unmerge of otherwise empty directories.                      |

   | 7775    | Bug #110443 - Add a KEYWORDS.stable check for ebuilds that   |
   | zmedico | are added directly with stable KEYWORDS.                     |

   | 7776    | Bug #191645 - Document the --force option.                   |
   | zmedico |                                                              |

   | 7777    | Add some additional notes about the behavior of              |
   | zmedico | FEATURES=assume-digests under various conditions.            |

   | 7778    | Bug #191645 - Cross-reference the `ebuild --force digest`    |
   | zmedico | docs with the FEATURES=assume-digests docs.                  |

   | 7779    | Bug #192346 - The emerge --help shows a -i option that does  |
   | zmedico | not exist.                                                   |

   | 7780    | Bug #192341 - Make emerge bail out on FreeBSD if the freebsd |
   | zmedico | python module fails to import. Display a notification that   |
   |         | "ignore-missing-freebsd-module" can be added to FEATURES in  |
   |         | order to bypass the error. If that feature is enabled but    |
   |         | the freebsd python module imported successfully, show a      |
   |         | warning message since the user should remove if from         |
   |         | FEATURES asap.                                               |

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

19 years ago Merged from trunk 7758:7773
Fabian Groffen [Fri, 14 Sep 2007 20:16:01 +0000 (20:16 -0000)]
   Merged from trunk 7758:7773

   | 7759      | Bug #190268 - Avoid unwanted sandbox violations in         |
   | zmedico   | src_test(). - Allow SANDBOX_* variables to pass through. - |
   |           | Don't try to create an sandbox instance inside a test case |
   |           | in order to interaction with SANDBOX_* variables in        |
   |           | src_test().                                                |

   | 7761      | Fix a typo.                                                |
   | zmedico   |                                                            |

   | 7763      | In depgraph.altlist(), try to merge asap_nodes sooner by   |
   | zmedico   | giving them an exemption from the accept_root_node flag.   |
   |           | (branches/2.1.2 r7762)                                     |

   | 7764      | compress two loop iterations into one                      |
   | WarnerBro |                                                            |

   | 7765      | sigh, or, not and                                          |
   | WarnerBro |                                                            |

   | 7766      | or I was right the first time :(                           |
   | WarnerBro |                                                            |

   | 7767      | Remove name from PackageSet, it's pointless as the caller  |
   | genone    | has to keep track of the name himself anyway               |

   | 7768      | Adjust for r7767                                           |
   | genone    |                                                            |

   | 7769      | Bug #192298 - Handle PermissionDenied error in             |
   | zmedico   | cache.update_eclasses().                                   |

   | 7770      | Catch errno.ENOTDIR instead of using os.path.isdir().      |
   | zmedico   |                                                            |

   | 7771      | Bug #192195 - In dir_get_list(), append a trailing / to    |
   | zmedico   | the address when necessary in order to avoid getting a 400 |
   |           | error from the http server.                                |

   | 7772      | Bug #187795 - remove pointless digest.disjointed and       |
   | zmedico   | digest.notadded warnings since they are always added to    |
   |           | cvs automatically anyway.                                  |

   | 7773      | Bug #191645 - Document the --force option.                 |
   | zmedico   |                                                            |

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

19 years ago Merged from trunk 7725:7758
Fabian Groffen [Fri, 14 Sep 2007 20:09:24 +0000 (20:09 -0000)]
   Merged from trunk 7725:7758

   | 7726      | Move the note about not needing pycrypto with python-2.5   |
   | zmedico   | to the 2.1.3 section.                                      |

   | 7728      | In the topological sort for merge order, try to avoid      |
   | zmedico   | selecting root nodes whenever possible. This helps ensure  |
   |           | that the maximimum possible number of soft dependencies    |
   |           | have been removed from the graph before their parent nodes |
   |           | have been selected. This is especially important when      |
   |           | those dependencies are going to be rebuilt by              |
   |           | revdep-rebuild or `emerge -e system` after the CHOST has   |
   |           | been changed (like when building a stage3 from a stage2).  |
   |           | With this patch, `emerge -e system` properly rebuilds      |
   |           | dev-lang/python before sys-apps/file, which helps to avoid |
   |           | a potential build failure.                                 |

   | 7729      | Fix a typo.                                                |
   | zmedico   |                                                            |

   | 7746      | For bug #190268, filter SANDBOX_* from the calling         |
   | zmedico   | environment so that they can't interfere with ebuild.sh.   |

   | 7748      | Rewrite testing to use __test__ instead of hardcoded dirs  |
   | WarnerBro |                                                            |

   | 7749      | fighting with svn over weirdness                           |
   | WarnerBro |                                                            |

   | 7750      | Last commit added more tests for sets and taught me what I |
   | WarnerBro | was doing wrong ;) This commit adds yet more tests         |

   | 7751      | test news item filtering                                   |
   | WarnerBro |                                                            |

   | 7752      | dbapi currently depends on being subclassed and having the |
   | WarnerBro | subclasses impelement certain functions (that aren't even  |
   |           | implemented IN dbapi, so a particular child has no idea    |
   |           | what functions are actually required). Try to make this    |
   |           | cleared by adding stubs in dbapi. There should be no       |
   |           | behavior change here because these cases would be          |
   |           | Attribute errors in the current scheme. Also add a         |
   |           | horribly bad testdbapi with stub funcs to use in testing   |
   |           | code. Remove regexes with possibly faster string           |
   |           | comparisons.                                               |

   | 7753      | Fix minor issues with loaders in the static file loader,   |
   | WarnerBro | fix quoting and import style in news.py. Add               |
   |           | TextFileLoader and EnvLoader loaders                       |

   | 7754      | fix errors in call logic                                   |
   | genone    |                                                            |

   | 7755      | return the full path, not just the filename                |
   | genone    |                                                            |

   | 7756      | Undo some unwanted changes                                 |
   | genone    |                                                            |

   | 7757      | Fix incorrect parse check as value lists in                |
   | genone    | KeyListFileLoader might be empty, add support for value    |
   |           | validators in relevant Loaders                             |

   | 7758      | Implement/fix testcases for some PackageSet subclasses     |
   | genone    |                                                            |

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

19 years agoAvoid warnings on Linux (only tested Darwin and Solaris, sigh...)
Fabian Groffen [Sun, 2 Sep 2007 11:46:33 +0000 (11:46 -0000)]
Avoid warnings on Linux (only tested Darwin and Solaris, sigh...)

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

19 years agoImplement QA check for install_names (libraries linked to, and their
Fabian Groffen [Sun, 2 Sep 2007 10:02:06 +0000 (10:02 -0000)]
Implement QA check for install_names (libraries linked to, and their
location) on Darwin, such that we can detect upfront if something is
going to error out during runtime.  Try to correct invalid install_names
if they are in the image, which can be a result of gen_usr_ldscript
library movements and breaks any tool shipped with that library itself,
e.g. libiconv's `iconv` utility.

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

19 years ago<zmedico> grobian: in python, there are built-in constants True and False
Fabian Groffen [Sat, 1 Sep 2007 18:25:35 +0000 (18:25 -0000)]
<zmedico> grobian: in python, there are built-in constants True and False
(must be capitalized). you wanted to use True in r7721.

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

19 years ago Merged from trunk 7719:7720
Fabian Groffen [Sat, 1 Sep 2007 14:55:12 +0000 (14:55 -0000)]
   Merged from trunk 7719:7720

   | 7720    | Reformat collision-protect output so that the list of file   |
   | zmedico | collisions is shown below the banner. This puts more         |
   |         | distance between the collision list and the list of files    |
   |         | that prepstrip often displays just above, hopefully          |
   |         | preventing user confusion about which files had collisions.  |

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

19 years agoQuote, such that python doesn't bail out
Fabian Groffen [Sat, 1 Sep 2007 14:50:20 +0000 (14:50 -0000)]
Quote, such that python doesn't bail out

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

19 years ago Merged from trunk 7717:7718
Fabian Groffen [Wed, 29 Aug 2007 16:59:46 +0000 (16:59 -0000)]
   Merged from trunk 7717:7718

   | 7718    | Move some of the less expensive QA checks before dep_check() |
   | zmedico | so that they're still done even in --force mode.             |

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

19 years agoIt looks nicer if we just say
Fabian Groffen [Tue, 28 Aug 2007 08:35:56 +0000 (08:35 -0000)]
It looks nicer if we just say

>>> Emerging (1 of 1) sys-devel/autoconf-wrapper-4-r3 to /
>>> Extracting info
!!! Incompatible binary package: made for x86_64-pc-linux-gnu, you are
on i386-pc-solaris2.10

instead of some backtrace because formatter arguments do not match the
expected number.

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

19 years ago Merged from trunk 7708:7714
Fabian Groffen [Tue, 28 Aug 2007 08:16:35 +0000 (08:16 -0000)]
   Merged from trunk 7708:7714

   | 7709    | Add a --force option that forces commit to proceed. This is  |
   | zmedico | useful for cases like bug #110443 where the commit normally  |
   |         | isn't allowed but there are exceptional circumstances where  |
   |         | it may be acceptable.                                        |

   | 7710    | Bug #110443 - Add a KEYWORDS.stable check for ebuilds that   |
   | zmedico | are added directly with stable KEYWORDS.                     |
   |         | Prefix: I don't know how to apply this to SVN.               |

   | 7711    | Fix RepoMan's grammar.                                       |
   | zmedico |                                                              |

   | 7712    | Make the commit message indicate when the --force option is  |
   | zmedico | used.                                                        |

   | 7713    | Skip the most expensive QA tests when --force in enabled     |
   | zmedico | since there's no point in wasting time on them when the user |
   |         | is intent on forcing the commit anyway.                      |

   | 7714    | Convert myoptions from a list to a dict.                     |
   | zmedico |                                                              |

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

19 years agoApparently it was a bit too late yesterday. I meant to add EPREFIX, not
Fabian Groffen [Tue, 28 Aug 2007 08:08:00 +0000 (08:08 -0000)]
Apparently it was a bit too late yesterday.  I meant to add EPREFIX, not
EAPI.

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

19 years agoAdd EPREFIX as env setting, such that we can retrieve it as file from
Fabian Groffen [Mon, 27 Aug 2007 20:44:19 +0000 (20:44 -0000)]
Add EPREFIX as env setting, such that we can retrieve it as file from
the binary package.  If it's absent, abort mission.  Drop EAPI check, as
that should be dealt with in other code already.  (But having an EPREFIX
file implicitly says we have EAPI=prefix anyway...)

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

19 years ago Merged from trunk 7698:7705
Fabian Groffen [Mon, 27 Aug 2007 19:41:03 +0000 (19:41 -0000)]
   Merged from trunk 7698:7705

   | 7699     | remove $Id$ as it gives us nothing useful                   |
   | SpankMan |                                                             |

   | 7700     | Bug #190214 - Make the rpm phase use /usr/src/rpm instead   |
   | zmedico  | of /usr/src/redhat. Bug #190144 - Use the realpath of       |
   |          | DISTDIR so that things like subversion.eclass are           |
   |          | compatible with sandbox.                                    |

   | 7701     | Move blocker handling from depgraph.create() to             |
   | zmedico  | select_dep().                                               |

   | 7702     | change directory to / in case $PWD doesnt exist             |
   | SpankMan |                                                             |

   | 7705     | Bug #190406 - Filter the myheaders list so that it doesn't  |
   | zmedico  | include binary blobs added to cvs with the -kb option.      |

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

19 years agoA first shot at binary packages support for prefix. In itself, binary
Fabian Groffen [Mon, 27 Aug 2007 19:21:53 +0000 (19:21 -0000)]
A first shot at binary packages support for prefix.  In itself, binary
packages work fine of course, but once you want to share the binary
package between users with different prefixes (like from a binhost),
then you need to cope with that.  After some testing chpathtool appears
to be able to successfully change paths encoded in binaries, in order to
adjust to the proper prefix.  For a binhost setting, binary packages
need to have an artificially long and annoying prefix to make it work
the most people.

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

19 years agoDon't remove files which the ebuild lateron tries to install
Fabian Groffen [Sun, 26 Aug 2007 17:35:44 +0000 (17:35 -0000)]
Don't remove files which the ebuild lateron tries to install

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

19 years ago Merged from trunk 7646:7695
Fabian Groffen [Sat, 25 Aug 2007 10:50:06 +0000 (10:50 -0000)]
   Merged from trunk 7646:7695

   | 7647      | Fix ACCEPT_KEYWORDS validation so that ** is valid.        |
   | zmedico   |                                                            |

   | 7651      | Just use os.listdir() since portage.listdir() is           |
   | zmedico   | unnecessary.                                               |

   | 7652      | Try harder to figure out what OS we are running            |
   | WarnerBro |                                                            |

   | 7653      | Bug #189743 - Add .jpeg to the list of extensions          |
   | zmedico   | supported by dohtml.                                       |

   | 7655      | Show cache miss/hit counts all on one line, using \r to    |
   | zmedico   | return to the beginning of he line and rewrite it each     |
   |           | time that a counter is updated. Thanks to Mike "Fuzzy"     |
   |           | Partin <fuzzy@smoke.dope.org> for this patch (submitted on |
   |           | the gentoo-portage-dev mailing list).                      |

   | 7656      | Send cache hit/miss status updates to stdout instead of    |
   | zmedico   | stderr and add some more flush() calls.                    |

   | 7659      | Make --info detect more /etc/*-release files as suggested  |
   | zmedico   | by grobian.                                                |

   | 7661      | Bug #188703 - Don't adjust permissions in ${T} unless      |
   | zmedico   | userpriv is enabled.                                       |

   | 7663      | Pass complete package metadata from depgraph.select_dep()  |
   | zmedico   | into create() in order to minimize aux_get calls.          |

   | 7664      | Make best() return early when it's only given one          |
   | zmedico   | packages.                                                  |

   | 7665      | Fix update_dbentry() to process version components         |
   | zmedico   | properly before passing them into ververify().             |

   | 7666      | Make depgraph.select_dep() reuse cached metadata from      |
   | zmedico   | nodes that have already been added to the graph.           |

   | 7671      | Skip --newuse checks for nodes that have already been      |
   | zmedico   | added to the graph as "merge" nodes.                       |

   | 7672      | Prevent output from being flushed to the console too       |
   | zmedico   | frequently in dir_get_metadata().                          |

   | 7674      | Use INFORM to colorize the package name.                   |
   | zmedico   |                                                            |

   | 7676      | Fix a typo from r7663.                                     |
   | zmedico   |                                                            |

   | 7678      | Bug #189791 - Send errors to /dev/null when debug-print()  |
   | zmedico   | fails to write to ${T}/eclass-debug.log.                   |

   | 7680      | Make depgraph.create() avoid metadata lookups for binary   |
   | zmedico   | packages and ebuilds in cases where an installed package   |
   |           | has already been added to the graph. This greatly improves |
   |           | performance when the graph contains a large number of      |
   |           | installed packages.                                        |

   | 7682      | In config.regenerate(), skip loading /etc/profile.env if   |
   | zmedico   | it's mtime hasn't changed.                                 |

   | 7684      | Bug #189791 - Define EBUILD_PHASE=unpack during the        |
   | zmedico   | nofetch phase since otherwise we get EBUILD_PHASE=merge    |
   |           | which isn't in our list of valid EBUILD_PHASES recognized  |
   |           | by elog.                                                   |

   | 7686      | Make depgraph.select_dep() node reuse work when in         |
   | zmedico   | --usepkgonly mode.                                         |

   | 7688      | Add * and ~* to the list of valid values for               |
   | zmedico   | ACCEPT_KEYWORDS.                                           |

   | 7690      | Fix a typo.                                                |
   | zmedico   |                                                            |

   | 7691      | Fix another typo.                                          |
   | zmedico   |                                                            |

   | 7692      | Use a config.reload() method to explicitly reload          |
   | zmedico   | /etc/profile.env when setting up the ebuild environment.   |

   | 7693      | Call config.regenerate() after config.reload() so that the |
   | zmedico   | incrementals are restacked.                                |

   | 7694      | Don't cache results from match_from_list() since           |
   | zmedico   | *dbapi.match() caches do the job.                          |

   | 7695      | Remove pointless information from --info output            |
   | genone    |                                                            |

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

19 years agoFix up svnlogmsg.awk such that it generates only the log entries for the
Fabian Groffen [Sat, 25 Aug 2007 10:39:58 +0000 (10:39 -0000)]
Fix up svnlogmsg.awk such that it generates only the log entries for the
revisions that svn merge merged.  Bleh.

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