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
Fabian Groffen [Tue, 9 Oct 2007 20:03:46 +0000 (20:03 -0000)]
Resolve merge error.
svn path=/main/branches/prefix/; revision=8027
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
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
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
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
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
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
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
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
Fabian Groffen [Mon, 8 Oct 2007 17:25:15 +0000 (17:25 -0000)]
Look /in/ the prefix
svn path=/main/branches/prefix/; revision=8006
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
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
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
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
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
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
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
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
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
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
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
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
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
Fabian Groffen [Sat, 29 Sep 2007 21:12:51 +0000 (21:12 -0000)]
Align with zmedico
svn path=/main/branches/prefix/; revision=7889
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
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
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
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
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
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
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
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
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
Fabian Groffen [Sun, 16 Sep 2007 14:26:26 +0000 (14:26 -0000)]
typo
svn path=/main/branches/prefix/; revision=7788
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Fabian Groffen [Sat, 25 Aug 2007 10:15:04 +0000 (10:15 -0000)]
Thanks to Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
| 7644 | remove "risky" message about -O2 |
| SpankMan | |
merged now. Subversion isn't nice to me.
svn path=/main/branches/prefix/; revision=7696
Fabian Groffen [Sun, 19 Aug 2007 09:56:50 +0000 (09:56 -0000)]
Merged from trunk 7644:7645
| 7644 | remove "risky" message about -O2 |
| SpankMan | |
| 7645 | filter out kernel modules from ELF QA checks #184443 |
| SpankMan | |
svn path=/main/branches/prefix/; revision=7646
Fabian Groffen [Fri, 17 Aug 2007 21:13:03 +0000 (21:13 -0000)]
Merged from trunk 7621:7639
| 7622 | Add some floating point vercmp cases. |
| zmedico | |
| 7625 | Always assign higher priority to dependencies on packages |
| zmedico | that are being rebuilt (except when --emptytree is enabled |
| | since all packages are merged in that case). This optimizes |
| | merge order so that dependencies are rebuilt/updated as |
| | soon as possible. |
| 7627 | Combine 2 locations in depgraph.create() where nodes are |
| zmedico | added to the digraph. This ensures that dependencies on |
| | "rebuild" nodes always have their priority increased. |
| 7628 | Fix existing_node logic inside depgraph.create(). |
| zmedico | |
| 7632 | make -f/-F distinction clearer |
| SpankMan | |
| 7636 | Make etc-update copy owner and group bits when it merges |
| zmedico | config files. |
| 7639 | For bug #189219, use pkgcmp() to sort versions in |
| zmedico | selected/protected/omitted unmerge display. |
svn path=/main/branches/prefix/; revision=7642
Fabian Groffen [Wed, 15 Aug 2007 16:58:26 +0000 (16:58 -0000)]
Merged from trunk 7601:7609
| 7602 | Make sure to skip info dir files with the .old extension. |
| zmedico | |
| 7604 | For bug #188782, dependencies on packages specified as |
| zmedico | arguments are given higher priority since the currently |
| | installed version has been rendered useless by ABI breakage. |
| | It's okay to increase the priority here even if the caller |
| | is not revdep-rebuild. |
| 7606 | For bug #188449, since python floats have limited range, we |
| zmedico | multiply both floating point representations by a constant |
| | so that they are transformed into whole numbers. This allows |
| | the practically infinite range of a python int to be |
| | exploited. The multiplication is done by padding both |
| | literal strings with zeros as necessary to ensure equal |
| | length. |
| 7609 | For bug #188807, add nocreate and delaycompress options for |
| zmedico | logrotate. |
svn path=/main/branches/prefix/; revision=7611
Fabian Groffen [Tue, 14 Aug 2007 19:04:00 +0000 (19:04 -0000)]
Merged from trunk 7598:7599
| 7599 | For bug #188782, keep "nomerge" nodes in the graph during |
| zmedico | the merge order calculation so that merge order is better in |
| | cases where installed packages have unsatisfied |
| | dependencies. |
svn path=/main/branches/prefix/; revision=7601
Fabian Groffen [Mon, 13 Aug 2007 20:09:59 +0000 (20:09 -0000)]
Merged from trunk 7595:7597
| 7596 | 'decent' CFLAGS should not feature -O3. Bug 188619 |
| solar | |
| 7597 | - revert a few -O2 when they should of remained -O3 in |
| solar | comments |
svn path=/main/branches/prefix/; revision=7598
Fabian Groffen [Sun, 12 Aug 2007 17:46:20 +0000 (17:46 -0000)]
Merged from trunk 7586:7593
| 7587 | Don't generate a QA Notice if the ${S} directory doesn't |
| zmedico | exist since it might be irrelevant for some ebuilds. |
| 7589 | Optimize config.setcpv() so that it doesn't call |
| zmedico | regenerate() unnecessarily when there are no USE wildcards |
| | to expand. |
| 7591 | For bug #188559, invalidate dblink._contents_inodes as |
| zmedico | necessary to prevent FEATURES=unmerge-orphans from unmerging |
| | anything that belongs to the package that has just been |
| | merged. |
| 7593 | For bug #33585, leave the old info dir file in place if |
| zmedico | there is nothing to generate. |
svn path=/main/branches/prefix/; revision=7595
Fabian Groffen [Fri, 10 Aug 2007 17:13:35 +0000 (17:13 -0000)]
Fix portage creating multiple levels of prefixes. PRIVATE_PATH etc are
already prefixed, so don't prefix them again.
svn path=/main/branches/prefix/; revision=7586
Fabian Groffen [Tue, 7 Aug 2007 08:37:13 +0000 (08:37 -0000)]
Merged from trunk 7571:7583
| 7572 | Make sure that portage always has all of it's RDEPENDs |
| zmedico | installed first. |
| 7574 | Use == for comparison of portage_node since |
| zmedico | digraph.clone() makes a deepcopy of the nodes. |
| 7576 | For bug #187806, use mkstemp to create |
| zmedico | tmpservertimestampfile (instead of using PORTAGE_TMPDIR). |
| 7578 | Fix from ferringb |
| WarnerBro | |
| 7579 | Merge rewrite by Alon Bar-Lev from bug #130039: - Verify |
| zmedico | gpg signature of snapshot if FEATURES="webrsync-gpg" is |
| | enabled. - Add a --revert=yyyymmdd option that alows a |
| | specific snapshot to be used. |
| 7580 | For bug #187795, remove pointless digest.disjointed and |
| zmedico | digest.notadded warnings since they are always added to |
| | cvs automatically anyway. |
| 7582 | Document FEATURES=webrsync-gpg. Thanks to Arfrever Frehtes |
| zmedico | Taifersar Arahesis in bug #130039. |
| 7583 | Update emerge --help and --info docs. Thanks to Arfrever |
| zmedico | Frehtes Taifersar Arahesis in bug #137483. |
svn path=/main/branches/prefix/; revision=7585
Fabian Groffen [Sat, 4 Aug 2007 21:38:32 +0000 (21:38 -0000)]
Merged from trunk 7569:7570
| 7570 | Move ecompressdir and ecompress --dequeue after prepall. |
| zmedico | |
svn path=/main/branches/prefix/; revision=7571
Fabian Groffen [Sat, 4 Aug 2007 21:32:14 +0000 (21:32 -0000)]
Merged from trunk 7567:7568
| 7568 | Call ecompressdir and ecompress --dequeue outside of prepall |
| zmedico | since ruby.eclass overrides prepall. |
svn path=/main/branches/prefix/; revision=7569
Fabian Groffen [Sat, 4 Aug 2007 21:26:58 +0000 (21:26 -0000)]
Merged from trunk 7563:7564
| 7564 | Make config updates get counted correctly for bug #187741. |
| zmedico | |
svn path=/main/branches/prefix/; revision=7567
Fabian Groffen [Sat, 4 Aug 2007 21:15:18 +0000 (21:15 -0000)]
add missing source statement (vimdiffed with trunk)
svn path=/main/branches/prefix/; revision=7566
Fabian Groffen [Sat, 4 Aug 2007 09:49:19 +0000 (09:49 -0000)]
Remove stupid hack to trigger --metadata after sync. Now I'm older I
understand that this is useless, since we don't have metadata cache in
the SVN tree (and neither will we have as this won't work due to
mtime+svn problems).
svn path=/main/branches/prefix/; revision=7563
Fabian Groffen [Sat, 4 Aug 2007 09:45:13 +0000 (09:45 -0000)]
Let's have something to read in README
svn path=/main/branches/prefix/; revision=7562
Fabian Groffen [Sat, 4 Aug 2007 09:40:10 +0000 (09:40 -0000)]
set Id keyword expansion
svn path=/main/branches/prefix/; revision=7561
Fabian Groffen [Sat, 4 Aug 2007 09:30:37 +0000 (09:30 -0000)]
Avoid double slashes.
svn path=/main/branches/prefix/; revision=7560
Fabian Groffen [Sat, 4 Aug 2007 09:25:30 +0000 (09:25 -0000)]
Remove the horizontal lines from the table output on request of leio,
such that the commit message looks a bit better/less annoying on #-commits.
svn path=/main/branches/prefix/; revision=7559
Fabian Groffen [Sat, 4 Aug 2007 09:18:10 +0000 (09:18 -0000)]
Merged from trunk 7552:7555
| 7553 | Make droppriv for the depend phase conditional on userpriv |
| zmedico | in FEATURES. |
| 7555 | Remove the depend phase from the doebuild actionmap since |
| zmedico | it's never used. |
svn path=/main/branches/prefix/; revision=7558
Fabian Groffen [Fri, 3 Aug 2007 19:27:13 +0000 (19:27 -0000)]
vimdiff against trunk
svn path=/main/branches/prefix/; revision=7552
Fabian Groffen [Fri, 3 Aug 2007 19:04:08 +0000 (19:04 -0000)]
Merged from trunk 7534:7550
+------------------------------------------------------------------------+
| 7535 | For bug #187375, handle an ImportError when portage is |
| zmedico | downgraded to a version without mod_echo. |
|---------+--------------------------------------------------------------|
| 7537 | Like older versions of portage, don't show the repo display |
| zmedico | if [0] is all that will be shown. |
|---------+--------------------------------------------------------------|
| 7541 | For bug #187480, fix writemsg args in portdbapi.gvisible(). |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7544 | For bug #187518, handle EISDIR thrown from mkdir when the |
| zmedico | directory already exists on FreeBSD. |
|---------+--------------------------------------------------------------|
| 7547 | s/portage.eclass_cache/eclass_cache/ since eclass_cache is |
| zmedico | actually a local variable here. |
|---------+--------------------------------------------------------------|
| 7548 | In portage.spawn() logging, put the read end of the pipe in |
| zmedico | O_NONBLOCK mode just once at the beginning. This avoids |
| | unnecessary fcntl calls and removes one more opportunity to |
| | trigger EAGAIN errors on FreeBSD. |
|---------+--------------------------------------------------------------|
| 7550 | Generate a QA Notice and cd to ${WORKDIR} if the ${S} |
| zmedico | directory does not exist. |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7551
Fabian Groffen [Tue, 31 Jul 2007 15:53:38 +0000 (15:53 -0000)]
Merged from trunk 7521:7528
+------------------------------------------------------------------------+
| 7522 | Make finalize() accept a parameter once again since older |
| zmedico | versions of portage import elog modules from newer versions |
| | of portage when they upgrade themselves. |
|---------+--------------------------------------------------------------|
| 7524 | For bug #187142, properly pass a dbapi instance into |
| zmedico | setcpv() so that USE_EXPAND wildcards work correctly. |
|---------+--------------------------------------------------------------|
| 7526 | As a workaround for bug #185305, make quickpkg break |
| zmedico | hardlinks during creation of the archive. |
|---------+--------------------------------------------------------------|
| 7528 | Change the numeric value of DepPriority.MIN to be equal to |
| zmedico | that of a satisfied PDEPEND since there is currently nothing |
| | with lower priority. |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7533
Fabian Groffen [Mon, 30 Jul 2007 20:39:58 +0000 (20:39 -0000)]
Merged from trunk 7429:7516
+------------------------------------------------------------------------+
| 7430 | For bug #137483, move the `emerge --help config` docs to the |
| zmedico | emerge man page. Thanks to Arfrever Frehtes Taifersar |
| | Arahesis for this patch. |
|---------+--------------------------------------------------------------|
| 7432 | For bug #139670, update the dohtml docs to show all |
| zmedico | supported file extensions. Thanks to Arfrever Frehtes |
| | Taifersar Arahesis for this patch. |
|---------+--------------------------------------------------------------|
| 7496 | Always pass a dbapi instance into a setcpv call. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7516 | For bug #186960, try to create a directory for $ROOT if it |
| zmedico | doesn't exist. |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7521
Fabian Groffen [Mon, 30 Jul 2007 20:36:30 +0000 (20:36 -0000)]
Merged from trunk 7399:7428
+------------------------------------------------------------------------+
| 7400 | When setting the size of the pty for logging, check if |
| zmedico | stdout isatty rather than stdin. |
|---------+--------------------------------------------------------------|
| 7402 | For bug #186610, use `find ` to scan for config updates |
| zmedico | since `cd ` could fail and cause the cwd to be scanned. |
|---------+--------------------------------------------------------------|
| 7405 | For --buildpkgonly, say "built" instead of "merged" in the |
| zmedico | "These are the packages that would be " message. |
|---------+--------------------------------------------------------------|
| 7407 | For bug #186826, always show --newuse flags that trigger |
| zmedico | reinstallation even when not in --verbose mode. |
|---------+--------------------------------------------------------------|
| 7410 | For bug #186480, while we transition to repository labels, |
| zmedico | avoid ? spam in the repository display by ignoring a missing |
| | repository label for an installed package. (branches/2.1.2 |
| | r7409) |
|---------+--------------------------------------------------------------|
| 7411 | For bug #186639, add more clarification about the |
| zmedico | relationship between /etc/make.profile/ and |
| | /etc/portage/profile/. |
|---------+--------------------------------------------------------------|
| 7413 | For bug #186639, note that /etc/portage/profile/ supports |
| zmedico | all of the same file types that /etc/make.profile/ does, |
| | except parent. |
|---------+--------------------------------------------------------------|
| 7415 | For bug #185048, make emerge-webrsync honor http_proxy and |
| zmedico | ftp_proxy from make.conf. |
|---------+--------------------------------------------------------------|
| 7417 | Handle 2 more cases where elog_process() needs to be called: |
| zmedico | - binary install via pkgmerge() fails before reaching the |
| | merge phase (pkg_setup dies) - doebuild() is called for the |
| | merge phase but it dies before reaching the merge phase |
|---------+--------------------------------------------------------------|
| 7419 | When the fetch phase fails inside doebuild(), create an |
| zmedico | eerror log since the mod_echo module might push the original |
| | message off of the top of the terminal and prevent the user |
| | from being able to see it. |
|---------+--------------------------------------------------------------|
| 7422 | For bug #186876, fall back it os.pipe() if pty.openpty() |
| zmedico | fails. |
|---------+--------------------------------------------------------------|
| 7424 | For pty logging, handle the EAGAIN error that is thrown from |
| zmedico | fcntl when the slave end of the pty is closed on FreeBSD. |
|---------+--------------------------------------------------------------|
| 7426 | Change "output" import to portage.output. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7427 | For bug #187016, and env.d to the default USE_ORDER. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7428 | Update USE_ORDER docs for bug #187016. |
| zmedico | |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7520
Fabian Groffen [Wed, 25 Jul 2007 21:35:50 +0000 (21:35 -0000)]
Prepend EPREFIX to relative paths, but keep them relative by stripping
the leading '/'.
Cleaned up path construction from root + EPREFIX to avoid double path
separators.
svn path=/main/branches/prefix/; revision=7399
Fabian Groffen [Wed, 25 Jul 2007 20:19:58 +0000 (20:19 -0000)]
Merged from trunk 7372:7396
+------------------------------------------------------------------------+
| 7373 | Drop privileges in the "depend" phase regardless of |
| zmedico | FEATURES and RESTRICT since that phase should never need |
| | special privileges. Thanks to swegener for the initial |
| | patch. |
|-----------+------------------------------------------------------------|
| 7375 | Enable FEATURES=userfetch by default. |
| zmedico | |
|-----------+------------------------------------------------------------|
| 7377 | Add sfperms and strict to the default FEATURES since |
| zmedico | they're already in the base profile's make.defaults. |
|-----------+------------------------------------------------------------|
| 7379 | Add FEATURES=fakeroot support which causes install and |
| zmedico | package phases to run inside fakeroot when a non-root user |
| | runs the ebuild command. Thanks to swegener for the |
| | initial patch. |
|-----------+------------------------------------------------------------|
| 7381 | For bug #186337, show an ewarn message if |
| zmedico | FEATURES=installsources is enabled but debugedit is not |
| | installed. Also document installsources and splitdebug in |
| | make.conf.example. |
|-----------+------------------------------------------------------------|
| 7383 | Fix make.conf.example rejects. |
| zmedico | |
|-----------+------------------------------------------------------------|
| 7385 | Add droppriv keyword for the depend phase. |
| zmedico | |
|-----------+------------------------------------------------------------|
| 7387 | Add droppriv keyword for the depend phase (last one). |
| zmedico | |
|-----------+------------------------------------------------------------|
| 7389 | Use a select loop for moving input and ouput when logging |
| zmedico | is enabled in portage.spawn(). |
|-----------+------------------------------------------------------------|
| 7390 | Use the hardcoded variables from portage.const rather than |
| WarnerBro | strings that are apt to change, fix spacing. |
|-----------+------------------------------------------------------------|
| 7391 | Use blocking mode for writes since we'd rather block than |
| zmedico | trigger a EWOULDBLOCK error. |
|-----------+------------------------------------------------------------|
| 7392 | CACHE_PATH starts with / and therefore isn't compatible |
| zmedico | with os.path.join(). |
|-----------+------------------------------------------------------------|
| 7393 | Set O_NONBLOCK just for read calls (uses fewer fcntl |
| zmedico | calls). |
|-----------+------------------------------------------------------------|
| 7394 | For bug #186386, pass stdin directly to spawned processes |
| zmedico | (even when their output goes through a pty) so that Ctrl+Z |
| | works as on would expect.) |
|-----------+------------------------------------------------------------|
| 7396 | use ${MAKE:-make} rather than make in einstall() |
| SpankMan | |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7398
Fabian Groffen [Wed, 25 Jul 2007 20:09:54 +0000 (20:09 -0000)]
Sync with trunk.
VDB_PATH and PRIVATE_PATH are relative, not absolute!
svn path=/main/branches/prefix/; revision=7397
Fabian Groffen [Mon, 23 Jul 2007 17:18:12 +0000 (17:18 -0000)]
Merged from trunk 7353:7371
+------------------------------------------------------------------------+
| 7354 | Run pychecker over everything, fix obvious thing slike |
| WarnerBro | modules not in use, variables not being used, or global |
| | exceptions not being deleted. Also fix imports for style |
| | (1 per line) |
|-----------+------------------------------------------------------------|
| 7355 | remove unused vars from xpak, fix bug in compose. Also fix |
| WarnerBro | tests for portage sets, fix misnamed variable. |
|-----------+------------------------------------------------------------|
| 7356 | Add notes about import statements (clarity) and fix |
| WarnerBro | spelling error in release-notes |
|-----------+------------------------------------------------------------|
| 7357 | Fix spacing issues, imports |
| WarnerBro | |
|-----------+------------------------------------------------------------|
| 7358 | For bug #184774, put lha's -q option last since otherwise |
| zmedico | the option parser now requires level 0, 1, or 2 to be |
| | specified. |
|-----------+------------------------------------------------------------|
| 7360 | add test for CommandOutputSet |
| WarnerBro | |
|-----------+------------------------------------------------------------|
| 7361 | add docstring, fix up imports (style), add keyword |
| WarnerBro | expansion |
|-----------+------------------------------------------------------------|
| 7362 | fix missing import, default value for value in case we try |
| WarnerBro | to .join on a variable that hasn't been assigned to yet |
|-----------+------------------------------------------------------------|
| 7363 | Fix hardcoded /usr/bin/echo to use |
| zmedico | portage.process.find_binary(). |
|-----------+------------------------------------------------------------|
| 7364 | fix spacing, comments, default args |
| WarnerBro | |
|-----------+------------------------------------------------------------|
| 7365 | Move common file functionality into a FileLoader class and |
| WarnerBro | delegate parsing to subclasses via a lineParser func, no |
| | idea how this will work performance wise. Fix errors in |
| | parser (blank lines are not errors ;)) |
|-----------+------------------------------------------------------------|
| 7366 | Move classes out of __init__.py, they do not belong there. |
| WarnerBro | Fix import style, and import statements broken by class |
| | moves. |
|-----------+------------------------------------------------------------|
| 7367 | Fix imports for style, deprecate grab*, what is |
| WarnerBro | foo.metadata and what does it contain |
|-----------+------------------------------------------------------------|
| 7368 | Validator should be a function, not a class, fix |
| WarnerBro | spacing/tab issues. Fix parsing errors for |
| | KeyValuePairLoader. Add a GenericFileLoader class that |
| | uses more than 1 loader in a vain attempt to figure out |
| | what kind of file it is. Fix inheritance by renaming |
| | UserConfigKlass |
|-----------+------------------------------------------------------------|
| 7369 | Fix imports for style, slight optimization for grab* |
| WarnerBro | function, doc fixups. |
|-----------+------------------------------------------------------------|
| 7370 | fix broken import |
| WarnerBro | |
|-----------+------------------------------------------------------------|
| 7371 | add more tests for keyvaluepairloader (it had a bug |
| WarnerBro | previously) and fix up other misc tests |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7372
Fabian Groffen [Sun, 22 Jul 2007 09:46:25 +0000 (09:46 -0000)]
Merged from trunk 7342:7351
+------------------------------------------------------------------------+
| 7343 | Make --prune pull in the system set since that could pull in |
| zmedico | some slots that wouldn't be pulled in otherwise. |
|---------+--------------------------------------------------------------|
| 7344 | Prevent a potential KeyError when removing world from the |
| zmedico | digraph for --prune display. |
|---------+--------------------------------------------------------------|
| 7345 | Document --depclean and --prune enhancements. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7349 | Make --update imply --oneshot since people often us it to |
| zmedico | update things when they don't want to add them to world. |
| | Thanks to jakub for the suggestion. |
|---------+--------------------------------------------------------------|
| 7351 | Fix the reverse dependency display for --prune when there is |
| zmedico | now real parent. |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7353
Fabian Groffen [Sat, 21 Jul 2007 19:19:50 +0000 (19:19 -0000)]
Merged from trunk 7307:7340
+------------------------------------------------------------------------+
| 7308 | With --prune and --depclean, if --verbose is enabled then |
| zmedico | show reverse dependencies for each package that is matched |
| | by an atom from the command line. This allows the user to |
| | see why a package will not be unmerged. |
|---------+--------------------------------------------------------------|
| 7309 | Make --prune bail out like depclean does if there are |
| zmedico | unresolved dependencies. Notify the user that they can use |
| | --nodeps in that case. |
|---------+--------------------------------------------------------------|
| 7310 | Make --prune try to prune all slotted packages if no atoms |
| zmedico | are given (that's how it already works with --nodeps). |
|---------+--------------------------------------------------------------|
| 7312 | For bug #151653, make --prune keep the highest version |
| zmedico | whenever possible (even when there is one with a higher |
| | counter installed). |
|---------+--------------------------------------------------------------|
| 7313 | Fix --prune so that it always correctly accounts for COUNTER |
| zmedico | when dealing with packages in the same slot. |
|---------+--------------------------------------------------------------|
| 7315 | Update --prune docs for bug #151653. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7317 | Document --prune and --depclean enhancements. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7319 | For bug #185504, document profiles/repo_name. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7321 | If the fetcher reported success and the file is too small, |
| zmedico | don't attempt to resume. Upstream probably changed the |
| | distfile and we need to show a digest verification failure |
| | so the user gets a clue. |
|---------+--------------------------------------------------------------|
| 7325 | When digest verification of a distfile fails, rename instead |
| zmedico | of unlinking it in case it's a large download and the user |
| | wants to salvage it due to a bad digest. |
|---------+--------------------------------------------------------------|
| 7327 | Hint about --nodeps if --prune doesn't find anything to |
| zmedico | prune. Also enable reverse dependency display for global |
| | depclean. |
|---------+--------------------------------------------------------------|
| 7329 | Optimize PackageSet._updateAtomMap() for the case where one |
| zmedico | or more atoms are added and none are removed. |
|---------+--------------------------------------------------------------|
| 7330 | For bug #185930, direct all FETCHCOMMAND output to stdout. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7332 | Just show [0] instead of [0=>0] in the repo display. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7334 | Prune really uses all installed instead of world. It's not a |
| zmedico | real reverse dependency so don't display it as such. |
|---------+--------------------------------------------------------------|
| 7336 | Make --prune and --depclean return before calculating |
| zmedico | dependencies if atoms are given but they don't match any |
| | packages. |
|---------+--------------------------------------------------------------|
| 7338 | For bug #185153, in commit mode do the "Fetching trivial |
| zmedico | updates" routine before the qa scan. |
|---------+--------------------------------------------------------------|
| 7340 | For bug #169500, detect when the cvs server puts /Attic/ |
| zmedico | inside the $Header path and automatically correct it. |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7342
Fabian Groffen [Fri, 20 Jul 2007 07:23:25 +0000 (07:23 -0000)]
Give more information that might help to identify the culprit.
svn path=/main/branches/prefix/; revision=7324
Fabian Groffen [Fri, 20 Jul 2007 07:20:53 +0000 (07:20 -0000)]
Remove typically Vim-typo.
svn path=/main/branches/prefix/; revision=7323
Fabian Groffen [Thu, 19 Jul 2007 17:11:37 +0000 (17:11 -0000)]
Merged from trunk 7284:7306
+------------------------------------------------------------------------+
| 7285 | Sort the atoms when writing the world file. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7286 | Always be sure to load the latest version of the world file |
| zmedico | while it's locked. |
|---------+--------------------------------------------------------------|
| 7287 | Revert PackageSet.containsCPV() calls back to |
| zmedico | findAtomForPackage() calls so that things like slot atoms |
| | and old-style virtuals are properly supported. |
|---------+--------------------------------------------------------------|
| 7288 | Make sure PackageSet._atoms is always a set. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7289 | Make sure the atoms are loaded when calling |
| zmedico | PackageSet.findAtomForPackage(). |
|---------+--------------------------------------------------------------|
| 7290 | Don't show the repo display when the package list is empty. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7292 | When dep_expand throws a ValueError due to an ambiguous |
| zmedico | atom, try to expand it against the installed packages in |
| | case it yields a unique match. |
|---------+--------------------------------------------------------------|
| 7294 | When expanding ambiguous atoms against the vardb, make sure |
| zmedico | the the expanded package is also available in the portage |
| | tree. |
|---------+--------------------------------------------------------------|
| 7296 | For bug #185670, make sure package.use.{mask,force} are |
| zmedico | properly displayed. |
|---------+--------------------------------------------------------------|
| 7298 | Unify USE handling in the depgraph with the other metadata. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7300 | Use PF in dyn_package. Thanks to swegener. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7301 | Make PackageSet._updateAtomMap() clear the map in case |
| zmedico | something was removed. |
|---------+--------------------------------------------------------------|
| 7302 | Use PackageSet.getAtoms() as a wrapper around load() since |
| zmedico | load() can trigger unnecessary stat calls. |
|---------+--------------------------------------------------------------|
| 7303 | Iterate over a list in order to avoid breaking the iterator |
| zmedico | when an atom is removed. |
|---------+--------------------------------------------------------------|
| 7305 | Use the --depclean algorithm to make --prune safe. The old |
| zmedico | unsafe --prune will be used if the --nodeps option is |
| | specified. |
|---------+--------------------------------------------------------------|
| 7306 | Allow atoms to be specified for --depclean so that it can be |
| zmedico | used to safely unmerge packages if nothing depends on them. |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7307
Fabian Groffen [Mon, 16 Jul 2007 17:34:24 +0000 (17:34 -0000)]
Merged from trunk 7269:7283
+------------------------------------------------------------------------+
| 7270 | sync MAILSUBJECT in make.conf with make.globals |
| genone | |
|--------+---------------------------------------------------------------|
| 7271 | s/node/atom/ and other minor updates |
| genone | |
|--------+---------------------------------------------------------------|
| 7272 | Make PackageSet to behave more like a real set, and change |
| genone | loading logic a bit to avoid unnecessary reloads for editable |
| | sets |
|--------+---------------------------------------------------------------|
| 7273 | use a more logical approach for editable sets |
| genone | |
|--------+---------------------------------------------------------------|
| 7274 | fix load logic for editable sets once more |
| genone | |
|--------+---------------------------------------------------------------|
| 7275 | ignore already applied glsas when loading the security set |
| genone | |
|--------+---------------------------------------------------------------|
| 7276 | add support for metadata |
| genone | |
|--------+---------------------------------------------------------------|
| 7277 | fix metadata parsing for file-based sets, add support for |
| genone | user-defined file sets in test code |
|--------+---------------------------------------------------------------|
| 7278 | disable FEATURES=gpg as it's unmaintained, useless and likely |
| genone | broken for many people |
|--------+---------------------------------------------------------------|
| 7279 | replace emerge.AtomSet with portage.sets.InternalPackageSet |
| genone | |
|--------+---------------------------------------------------------------|
| 7280 | break recursion cycle |
| genone | |
|--------+---------------------------------------------------------------|
| 7281 | Replace emerge.SystemSet with |
| genone | portage.sets.profiles.PackagesSystemSet |
|--------+---------------------------------------------------------------|
| 7282 | break another recursion cycle, add special subclass for |
| genone | "world" to handle locking |
|--------+---------------------------------------------------------------|
| 7283 | Replace emerge.WorldSet with portage.sets.files.WorldSet |
| genone | |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7284
Fabian Groffen [Sun, 15 Jul 2007 09:38:30 +0000 (09:38 -0000)]
Merged from trunk 7253:7267
+------------------------------------------------------------------------+
| 7254 | For bug #185278, make the verbose flag display show |
| zmedico | masked/forced flag status for binary packages too. |
|----------+-------------------------------------------------------------|
| 7256 | Make the repo display work for overlays that don't define |
| zmedico | repo_name (like it used to). |
|----------+-------------------------------------------------------------|
| 7257 | Always show PORTDIR with index 0 in the repo display. |
| zmedico | |
|----------+-------------------------------------------------------------|
| 7258 | Encapsulate the repo display code in a class. |
| zmedico | |
|----------+-------------------------------------------------------------|
| 7259 | Use sys.stdout instead of print to avoid an extra newline. |
| zmedico | |
|----------+-------------------------------------------------------------|
| 7260 | Remove unused repo_name code. |
| zmedico | |
|----------+-------------------------------------------------------------|
| 7263 | When deciding if a package is slotted inside |
| zmedico | create_world_atom(), check the vdb in case the package is |
| | multislot. |
|----------+-------------------------------------------------------------|
| 7265 | Fix typo. |
| zmedico | |
|----------+-------------------------------------------------------------|
| 7267 | split up the debug/sources steps as proposed by swegener |
| SpankMan | and give the whole file a cleanup |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7268
Fabian Groffen [Sat, 14 Jul 2007 09:32:14 +0000 (09:32 -0000)]
Merged from trunk 7246:7251
+------------------------------------------------------------------------+
| 7247 | Save the repo name along with the other metadata inside |
| zmedico | dyn_compile() so that it's saved inside binary packages for |
| | when they are finally merged. |
|---------+--------------------------------------------------------------|
| 7249 | Misc fixes for verbose repo output: - Support binary |
| zmedico | packages by using the 'repository' metadata that's stored in |
| | the package. - Support PORTAGE_CONFIGROOT, showing repos |
| | from both configs if necessary. - Dynamic allocation of repo |
| | indexes so only relevant repos are shown. |
|---------+--------------------------------------------------------------|
| 7250 | Fix it so that the 'repository could not be determined' |
| zmedico | message is shown when appropriate (issue with variable |
| | scope). |
|---------+--------------------------------------------------------------|
| 7251 | PDEPEND is now installed as soon as possible so that it |
| zmedico | behaves more like RDEPEND. |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7253
Fabian Groffen [Fri, 13 Jul 2007 19:35:55 +0000 (19:35 -0000)]
Fix problem that for now only I encountered as in
http://article.gmane.org/gmane.linux.gentoo.alt/2778
dbapi.getRepositoryPath returns an os.path.realpath-ified path of the
repository, which means in case of symlinks (my case) this is different
from what the PORTDIR variable gives. So before comparing,
os.path.realpath-ify the PORTDIR too.
svn path=/main/branches/prefix/; revision=7245
Fabian Groffen [Fri, 13 Jul 2007 17:59:44 +0000 (17:59 -0000)]
Merged from trunk 7209:7242
+------------------------------------------------------------------------+
| 7210 | - remove readable bits for debug files if the souce ELF is |
| solar | setXid |
|---------+--------------------------------------------------------------|
| 7211 | - be quiet about overlays profiles/repo_name entry when |
| solar | --quiet mode is used |
|---------+--------------------------------------------------------------|
| 7212 | Remove the repo_name warning in the portdbapi constructor |
| zmedico | since we don't want to see a warning every time the portage |
| | module is imported. |
|---------+--------------------------------------------------------------|
| 7214 | For bug #184806, account for the fact the metadata is not |
| zmedico | cached for slot_collision_nodes. |
|---------+--------------------------------------------------------------|
| 7216 | For bug #184604, make env-update write $ in front of quoted |
| zmedico | values when appropriate. |
|---------+--------------------------------------------------------------|
| 7218 | For bug #184843, allow USE_EXPAND variables to pass through |
| zmedico | if none of their flags are in IUSE. This allows packages |
| | that support LINGUAS but don't declare it in IUSE to use the |
| | variable outside of the USE_EXPAND context. |
|---------+--------------------------------------------------------------|
| 7220 | For bug #184679, handle ENOTDIR by finding the non-directory |
| zmedico | parent and testing that for collision instead. |
|---------+--------------------------------------------------------------|
| 7222 | For bug #184687, skip the huge --depclean warning when |
| zmedico | --quiet mode is enabled. |
|---------+--------------------------------------------------------------|
| 7224 | Fix typo. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7226 | Fix another case similar to bug #184806 that can occur with |
| zmedico | --onlydeps. |
|---------+--------------------------------------------------------------|
| 7228 | Fix typo. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7230 | Use set.discard() instead of remove() to avoid a potential |
| zmedico | KeyError. |
|---------+--------------------------------------------------------------|
| 7237 | For bug #184983, prevent USE_EXPAND_HIDDEN flags from being |
| zmedico | hidden if they are the only thing that triggered |
| | reinstallation. |
|---------+--------------------------------------------------------------|
| 7239 | Make depgraph._reinstall_for_flags() always return all |
| zmedico | revelant flags. |
|---------+--------------------------------------------------------------|
| 7241 | Fix the case where the currently installed package is from a |
| zmedico | repo that is no longer in the overlay (oldrepo is None |
| | rather than an empty string). |
|---------+--------------------------------------------------------------|
| 7242 | Add "reset" to the list of attributes. |
| zmedico | |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7244
Fabian Groffen [Mon, 9 Jul 2007 17:24:57 +0000 (17:24 -0000)]
Merged from trunk 7163:7207
+------------------------------------------------------------------------+
| 7164 | Don't store unslotted system packages in the world file. |
| zmedico | |
|----------+-------------------------------------------------------------|
| 7166 | Fix emerge by ebuild path so that it works properly. |
| zmedico | |
|----------+-------------------------------------------------------------|
| 7168 | add modified copy of gentoolkits glsa.py (r410) |
| genone | |
|----------+-------------------------------------------------------------|
| 7169 | Enable keyword expansion |
| genone | |
|----------+-------------------------------------------------------------|
| 7170 | Add first draft of PackageSet backend modules |
| genone | |
|----------+-------------------------------------------------------------|
| 7171 | Fix emerge by tbz2 path so that it works properly. |
| zmedico | |
|----------+-------------------------------------------------------------|
| 7172 | fix copyright year |
| genone | |
|----------+-------------------------------------------------------------|
| 7174 | Remove the PKG_*ARG* color classes in order to simplify |
| zmedico | things since it's questionable whether many people will |
| | want to use them. Also, make the PKG_*SYSTEM colors default |
| | to the traditional colors since people are generally most |
| | interested in world packages. |
|----------+-------------------------------------------------------------|
| 7176 | ignore generated docs |
| SpankMan | |
|----------+-------------------------------------------------------------|
| 7177 | tighten up --quiet output for --unmerge |
| SpankMan | |
|----------+-------------------------------------------------------------|
| 7178 | Count the number of merges processed by MergeTask and use |
| zmedico | that to determine whether or not post_merge() should run. |
|----------+-------------------------------------------------------------|
| 7180 | Don't exclude system virtuals from world since they can |
| zmedico | match multiple old-style virtuals but only one of them will |
| | be pulled in by update or depclean. |
|----------+-------------------------------------------------------------|
| 7183 | Misc color fixes. Thanks to Arfrever Frehtes Taifersar |
| zmedico | Arahesis <Arfrever.FTA@GMail.Com> for this patch from |
| | bug#183861, comment #9. |
|----------+-------------------------------------------------------------|
| 7185 | When depgraph updates preferences for old-style virtuals, |
| zmedico | also update them in the global config so that they are |
| | consistent everywhere. Optimize config.setinst() to |
| | minimize the work done. |
|----------+-------------------------------------------------------------|
| 7187 | Add a depgaph.loadResumeCommand() method to handle loading |
| zmedico | and validation of all resume data. |
|----------+-------------------------------------------------------------|
| 7189 | `find` can accept a list of paths so condense this nested |
| SpankMan | for loop, and dont split off debug information for ET_REL |
| | files as these are never pulled in via debug utilities (and |
| | can trigger weird behavior in binutils when linked into |
| | things, like glibcs crt1.o) |
|----------+-------------------------------------------------------------|
| 7191 | Now that the "white" color code really is white, alias it |
| zmedico | to bold where it's used by emerge since white looks bad on |
| | a terminal with a white background. |
|----------+-------------------------------------------------------------|
| 7193 | allow split debuf for kernel modules |
| SpankMan | |
|----------+-------------------------------------------------------------|
| 7195 | For bug #184412, make depclean more consistent with the |
| zmedico | update algorithm by keeping the highest version that as |
| | visible in the portage tree and pruning any versions that |
| | are either masked or no longer exist in the portage tree. |
|----------+-------------------------------------------------------------|
| 7197 | Allow system virtuals to be pruned from the world file in |
| zmedico | cases where the matched package is the only provider of |
| | that virtual. |
|----------+-------------------------------------------------------------|
| 7199 | Add color classes PROMPT_CHOICE_{DEFAULT,OTHER} for |
| zmedico | emerge's Yes/No prompt. |
|----------+-------------------------------------------------------------|
| 7201 | For bug #184566, enable the emerge --info action to run an |
| zmedico | option pkg_info() function from each installed ebuild. |
|----------+-------------------------------------------------------------|
| 7203 | Make dblink invalidate the vardbapi caches for each merge |
| zmedico | and unmerge. Don't use portage.listdir() since mtime |
| | granularity can prevent cachedir from invalidating it's |
| | cache properly and this redundant cache layer isn't needed |
| | anyway. This should solve the intermittent failure of |
| | AUTOCLEAN to properly clean packages. |
|----------+-------------------------------------------------------------|
| 7204 | Pass the file path into the PermissionDenied exception. |
| zmedico | |
|----------+-------------------------------------------------------------|
| 7206 | simplify logic a bit |
| genone | |
|----------+-------------------------------------------------------------|
| 7207 | Fix interaction of resume opts with spinner output handling |
| zmedico | so that output always looks correct. |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7209
Fabian Groffen [Thu, 5 Jul 2007 19:19:41 +0000 (19:19 -0000)]
Merged from trunk 7137:7161
+------------------------------------------------------------------------+
| 7138 | In depgraph.select_files(), unify favorites handling with |
| zmedico | the other args handling. |
|---------+--------------------------------------------------------------|
| 7139 | Fix --oneshot handling from the previous commit. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7140 | Use depgraph._args_nodes to simplify |
| zmedico | depgraph.saveNomergeFavorites(). |
|---------+--------------------------------------------------------------|
| 7142 | Record a slot atom in the world file for any atom that is |
| zmedico | precise enough to identify a specific slot. Make depclean |
| | clean unnecessary slots of system and world packages. For |
| | update and depclean, world atoms can be greedy with slots |
| | while system atoms can not. |
|---------+--------------------------------------------------------------|
| 7144 | Fix greedy atoms logic for system mode. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7146 | For bug #183861, allow a color class in color.map to specify |
| zmedico | a space separated list of attributes so that any combination |
| | of foreground, background, and other attributes is possible. |
| | Thanks to Arfrever Frehtes Taifersar Arahesis |
| | <Arfrever.FTA@GMail.Com> for this patch. |
|---------+--------------------------------------------------------------|
| 7147 | Add a "onerror" callback to parse_color_map() for handling |
| zmedico | each ParseError that would otherwise be raised. |
|---------+--------------------------------------------------------------|
| 7148 | Fix broken code concatenation logic in parse_color_map(). |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7149 | Make the color class handling for package sets more |
| zmedico | consistent as suggested in comment #2 of bug #183861. |
|---------+--------------------------------------------------------------|
| 7150 | Document the additional color classes for bug #183861. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7153 | Replace sys.exit() with return in depgraph.display() and |
| zmedico | action_build(). |
|---------+--------------------------------------------------------------|
| 7155 | Add note about repo name warnings |
| genone | |
|---------+--------------------------------------------------------------|
| 7157 | Remove fallback imports for set(), and note minimum |
| genone | requirement of python-2.4 |
|---------+--------------------------------------------------------------|
| 7159 | Remove redundant config update notification (bug #184116) |
| genone | |
|---------+--------------------------------------------------------------|
| 7161 | Move depgraph._args_atoms to depgraph._sets["args"] and move |
| zmedico | depgraph._args_nodes to self._set_nodes. |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7163
Fabian Groffen [Tue, 3 Jul 2007 16:31:36 +0000 (16:31 -0000)]
Merged from trunk 7130:7135
+------------------------------------------------------------------------+
| 7131 | Clean up system and world set handling. For forward |
| zmedico | compatibility, the world file handling now allows the world |
| | file to contain arbitrary atoms such as slot atoms. |
|---------+--------------------------------------------------------------|
| 7132 | Add USE to the list of metadata keys to pull. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7133 | Fix broken favorites handling with --usepkg. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7135 | Implement BlockerCache.keys() so that DictMixin.__repr__() |
| zmedico | works. |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7137
Fabian Groffen [Mon, 2 Jul 2007 20:52:02 +0000 (20:52 -0000)]
Cleaned up configure, removed unnecessary checks (greatly speeds up)
Cleaned up users/groups stuff with configure arguments
Removed python-missingos since we don't work with prehistoric pythons
for ages any more (prehistoric starts at < 2.2.3)
svn path=/main/branches/prefix/; revision=7130
Fabian Groffen [Mon, 2 Jul 2007 17:34:40 +0000 (17:34 -0000)]
Remove --wheelgid from configure, and wheelgid from const_autotool. The
wheel group isn't really used in portage and superseeded by the portage
group.
svn path=/main/branches/prefix/; revision=7129
Fabian Groffen [Mon, 2 Jul 2007 17:31:24 +0000 (17:31 -0000)]
Merged from trunk 7090:7126
+------------------------------------------------------------------------+
| 7091 | For bug #183639, give a more informative message with the |
| zmedico | package.provided warning. |
|---------+--------------------------------------------------------------|
| 7093 | Test for existence of the getRepositories method since |
| zmedico | bindbapi doesn't have it atm. |
|---------+--------------------------------------------------------------|
| 7094 | Add a 0xAAAA00 rgb color code to represent the darkyellow |
| zmedico | color that some terminals have instead of brown. |
|---------+--------------------------------------------------------------|
| 7096 | print a notice when a repository/overlay does not have a |
| genone | name |
|---------+--------------------------------------------------------------|
| 7097 | ewarn when merging a package and the source |
| genone | repository/overlay does not have a name |
|---------+--------------------------------------------------------------|
| 7098 | apply additional phase filters as otherwise some messages |
| genone | are logged in both unmerge and merge |
|---------+--------------------------------------------------------------|
| 7099 | Remove old wheel group warnings since portage stopped using |
| zmedico | this group long ago. |
|---------+--------------------------------------------------------------|
| 7100 | Add docs for /etc/portage/color.map and a few misc man page |
| zmedico | fixes. Thanks to Arfrever Frehtes Taifersar Arahesis |
| | <Arfrever.FTA@GMail.Com> in bug #183758. |
|---------+--------------------------------------------------------------|
| 7102 | Add a QA warning for invalid values of RESTRICT. Thanks to |
| zmedico | peper for the patch. |
|---------+--------------------------------------------------------------|
| 7104 | For bug #180045, try to merge PDEPEND as soon as possible so |
| zmedico | that it behaves more like RDEPEND. |
|---------+--------------------------------------------------------------|
| 7106 | Add medium-soft support to DepPriority.__str__(). |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7108 | Update --buildpkgonly logic to account for |
| zmedico | DepPriority.MEDIUM_SOFT. |
|---------+--------------------------------------------------------------|
| 7110 | Revert --buildpkgonly logic back because it was already |
| zmedico | correct. |
|---------+--------------------------------------------------------------|
| 7112 | For bug #131030, update the warning about potential for |
| zmedico | emerge --sync overwrite or delete files in ${PORTDIR}. Add |
| | references to the PKGDIR and DISTDIR docs. |
|---------+--------------------------------------------------------------|
| 7114 | s/PORTAGE_EXTRA_RSYNC_OPTS/PORTAGE_RSYNC_OPTS/ for |
| zmedico | correctness. |
|---------+--------------------------------------------------------------|
| 7116 | If necessary, resample the leaf nodes so that they include |
| zmedico | all nodes whose hard deps are satisfied. |
|---------+--------------------------------------------------------------|
| 7118 | Move medium priority out of ignore_priority_range and handle |
| zmedico | it separately. |
|---------+--------------------------------------------------------------|
| 7120 | Flatten restrict for the RESTRICT.invalid check. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7122 | Clean up the selected_nodes logic in depgraph.altlist(). |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7124 | Clone asap_nodes so that iteration is safe for node removal. |
| zmedico | |
|---------+--------------------------------------------------------------|
| 7126 | Prefer asap_nodes more aggressively over any other nodes |
| zmedico | whenever possible. If no asap_nodes can be selected for a |
| | given iteration, they will be ignored for the next |
| | iteration. |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7128
Fabian Groffen [Fri, 29 Jun 2007 09:49:07 +0000 (09:49 -0000)]
Merged from trunk 7086:7089
+------------------------------------------------------------------------+
| 7087 | Store name of source repository in vdb node for later |
| genone | comparison |
|--------+---------------------------------------------------------------|
| 7088 | Use better parseable format for list_preserved_libs |
| genone | |
|--------+---------------------------------------------------------------|
| 7089 | display source repository for installed package and target |
| genone | package (bug #67072) |
+------------------------------------------------------------------------+
svn path=/main/branches/prefix/; revision=7090