Fabian Groffen [Fri, 14 Aug 2009 20:53:24 +0000 (20:53 -0000)]
Merged from trunk -r13998:14008
| 13999 | Update imports to import portage.os (with unicode wrappers), |
| zmedico | and use _unicode_encode() and _unicode_decode() where |
| | appropriate. |
| 14000 | Filter ACCEPT_PROPERTIES from the ebuild environment, since |
| zmedico | unlike ACCEPT_LICENSE (used by check_license in |
| | eutils.eclass), ACCEPT_PROPERTIES should never be needed in |
| | the ebuild environment. |
| 14001 | Wrap portage.data.lchown() for unicode support in |
| zmedico | python-2.x. |
| 14002 | Update imports to import portage.os (with unicode wrappers), |
| zmedico | and use _unicode_encode() and _unicode_decode() where |
| | appropriate. |
| 14003 | Update imports to import portage.os (with unicode wrappers), |
| zmedico | and use _unicode_encode() and _unicode_decode() where |
| | appropriate. |
| 14004 | Update imports to import portage.os (with unicode wrappers), |
| zmedico | and use _unicode_encode() and _unicode_decode() where |
| | appropriate. |
| 14005 | Show a traceback when spawn() fails. |
| zmedico | |
| 14006 | Implement ObjectProxy.__int__(). |
| zmedico | |
| 14007 | Update imports to import portage.os (with unicode wrappers), |
| zmedico | and use _unicode_encode() and _unicode_decode() where |
| | appropriate. |
| 14008 | Use a single sys.hexversion conditional for both |
| zmedico | _unicode_func_wrapper() and _unicode_module_wrapper(). |
svn path=/main/branches/prefix/; revision=14044
Fabian Groffen [Fri, 14 Aug 2009 20:51:39 +0000 (20:51 -0000)]
Merged from trunk -r13988:13998
| 13989 | Bug #280460 - Wrap portage.os with unicode encode/decode |
| zmedico | wrappers. |
| 13990 | Fix unicode support for compatibility with the new wrapped |
| zmedico | os module, and use _unicode_decode() and _unicode_encode() |
| | where appropriate. |
| 13991 | Fix breakage from previous commit. |
| zmedico | |
| 13992 | Avoid using the wrapped os.read(), in order to avoid |
| zmedico | differing behavior between python-2.x (with wrapper) and |
| | py3k (without wrapper). This sort of mismatch only applies |
| | to os functions that return raw bytes under py3k, rather |
| | than unicode. |
| 13993 | Update imports to import portage.os (with unicode wrappers), |
| zmedico | and use _unicode_encode() and _unicode_decode() where |
| | appropriate. |
| 13994 | Update imports to import portage.os (with unicode wrappers), |
| zmedico | and use _unicode_encode() and _unicode_decode() where |
| | appropriate. |
| 13995 | Update imports to import portage.os (with unicode wrappers), |
| zmedico | and use _unicode_encode() and _unicode_decode() where |
| | appropriate. |
| 13996 | Update imports to import portage.os and portage.shutil (with |
| zmedico | unicode wrappers), and use _unicode_encode() where |
| | appropriate. |
| 13997 | Add ACCEPT_PROPERTIES variable which has default value * and |
| volkmar | can be set in make.conf or /etc/portage/package.properties. |
| | If ACCEPT_PROPERTIES doesn't match ebuild PROPERTIES, the |
| | ebuild is masked. |
| 13998 | Temporarily delete the os and shutil imports, to ensure that |
| zmedico | only the wrapped versions are imported by portage internals. |
svn path=/main/branches/prefix/; revision=14043
Fabian Groffen [Fri, 14 Aug 2009 20:28:31 +0000 (20:28 -0000)]
no longer try to install xpack, it was removed
svn path=/main/branches/prefix/; revision=14041
Fabian Groffen [Fri, 14 Aug 2009 20:26:56 +0000 (20:26 -0000)]
Merged from trunk -r13978:13988
| 13979 | Add portage ImportError sys.path insertion. |
| zmedico | |
| 13980 | This is an old emerge profiling script that probably doesn't |
| zmedico | work. |
| 13981 | This is a commandline interface to pkgsplit() that probably |
| zmedico | isn't used by anyone. We can add a function like this to |
| | portageq. |
| 13982 | This old script does checksums on installed files. People |
| zmedico | use equery for this now. |
| 13983 | This script is obsolete since manifest 2. |
| zmedico | |
| 13984 | This is an obsolete shell script for applying package moves |
| zmedico | vardb entry. |
| 13985 | This definitely obsolete. |
| zmedico | |
| 13986 | This is an uneeded script for parsing ldd output. |
| zmedico | |
| 13987 | Add portage ImportError sys.path insertion. |
| zmedico | |
| 13988 | This is an unused commandline interface to xpak.xpak(). |
| zmedico | |
svn path=/main/branches/prefix/; revision=14040
Fabian Groffen [Fri, 14 Aug 2009 20:24:14 +0000 (20:24 -0000)]
Merged from trunk -r13968:13978
| 13969 | Tweak $ROOT handling inside depgraph._add_pkg_deps() for |
| zmedico | removal actions, so --with-bdeps works correctly with |
| | --depclean and --prune. |
| 13970 | In calc_depclean(), sort packages that are displayed due to |
| zmedico | being pulled in by link level dependencies. |
| 13971 | Don't trigger the --root-deps code for removal actions such |
| zmedico | as --prune and --depclean. |
| 13972 | Fix PreservedLibsRegistry.pruneNonExisting() to work with |
| zmedico | $ROOT. |
| 13973 | Use writemsg_stdout() for safe unicode output of |
| zmedico | --list-sets. |
| 13974 | Bug #280962 - Fix broken path normalization inside |
| zmedico | StaticFileSet.multiBuilder(). |
| 13975 | Open new items in text mode (unicode), and safely handle |
| zmedico | unicode in news item names. |
| 13977 | Bug #280998 - Misc selinux fixes. Thanks to Chris PeBenito |
| zmedico | <pebenito@gentoo.org> for this patch. |
| 13978 | Bug #280460 - Wrap os and os.path modules with unicode |
| zmedico | encode/decode wrappers for python-2.x. |
svn path=/main/branches/prefix/; revision=14039
Fabian Groffen [Fri, 14 Aug 2009 20:22:25 +0000 (20:22 -0000)]
Merged from trunk -r13967:13968
| 13968 | Inside calc_depclean(), use LinkageMap.findConsumers() for |
| zmedico | checking intersection of files being removed with providers |
| | in the LinkageMap (a KeyError is raised when there is no |
| | intersection). |
svn path=/main/branches/prefix/; revision=14038
Fabian Groffen [Fri, 14 Aug 2009 20:21:04 +0000 (20:21 -0000)]
Merged from trunk -r13957:13967
| 13958 | Inside collect_ebuild_messages(), open elog files in text |
| zmedico | mode (unicode). Thanks to jlec for reporting. |
| 13959 | Bug #280690 - Fix incorrect idendification of start quote as |
| zmedico | end quote when the start quote is immediately followed by a |
| | newline. |
| 13960 | Always use encoding='utf_8' for unicode() calls. |
| zmedico | |
| 13961 | Write log files in text mode (unicode). Thanks to Arfrever |
| zmedico | for reporting. |
| 13962 | Encode unicode messages as bytes in order to avoid TypeError |
| zmedico | from syslog.syslog() with python-2.x. |
| 13963 | Fix typo in comment. Thanks to Arfrever. |
| zmedico | |
| 13964 | Fix EOutput to safely write unicode to stderr/stdout. Thanks |
| zmedico | to Arfrever for reporting. |
| 13965 | Make everything safe for unicode (this should fix the elog |
| zmedico | modules that send mail). |
| 13966 | Remove unused import. |
| zmedico | |
svn path=/main/branches/prefix/; revision=14037
Fabian Groffen [Fri, 14 Aug 2009 20:19:16 +0000 (20:19 -0000)]
Convert scanmacho/readpecoff output to unicode inside LinkageMapXXXXXX.rebuild().
svn path=/main/branches/prefix/; revision=14036
Fabian Groffen [Fri, 14 Aug 2009 20:16:55 +0000 (20:16 -0000)]
Merged from trunk -r13956:13957
| 13957 | Convert scanelf output to unicode inside |
| zmedico | LinkageMap.rebuild(). |
svn path=/main/branches/prefix/; revision=14035
Fabian Groffen [Fri, 14 Aug 2009 20:14:21 +0000 (20:14 -0000)]
Merged from trunk -r13949:13956
| 13950 | In Task.__str__(), emulate tuple.__str__, but don't show |
| zmedico | 'foo' as u'foo' for unicode strings. |
| 13951 | Simplify command introspection inside usage(). |
| zmedico | |
| 13952 | Move global portage import to the top and add writemsg and |
| zmedico | writemsg_stdout imports for safe unicode output. |
| 13953 | Use writemsg_stdout() for safe unicode output. |
| zmedico | |
| 13954 | Add missing noiselevel argument in writemsg_stdout() calls. |
| zmedico | |
| 13955 | Use writemsg_stdout() for safe unicode output. |
| zmedico | |
| 13956 | Use writemsg_stdout() for safe display of unicode overlay |
| zmedico | paths. |
svn path=/main/branches/prefix/; revision=14033
Fabian Groffen [Fri, 14 Aug 2009 20:05:47 +0000 (20:05 -0000)]
Merged from trunk -r13939:13949
| 13940 | Fix filter_loglevels() and filter_phases() to work with |
| zmedico | unicode. |
| 13941 | Make getconfig() return unicode type and remove |
| zmedico | corresponding env_update() workaround from bug #280460. |
| 13942 | In shlex_split(), don't encode unicode for py3k. Thanks to |
| zmedico | Arfrever. |
| 13943 | In getconfig(), specify utf_8 encoding for py3k. |
| zmedico | |
| 13944 | Make spawn decode unicode in order to avoid a potential |
| zmedico | UnicodeEncodeError from os.execve(). |
| 13945 | Convert environment variables to unicode inside the config |
| zmedico | constructor, in order to avoid potential UnicodeDecodeError |
| | exceptions later. |
| 13946 | In config.__setitem__(), convert keys/values to unicode in |
| zmedico | order to avoid potential UnicodeDecodeError exceptions |
| | later. |
| 13947 | Open repo_name in text mode (unicode). |
| zmedico | |
| 13948 | Use writemsg_stdout() for safe unicode output. |
| zmedico | |
| 13949 | Account for hardlinks when computing SIZE metadata. |
| zmedico | |
svn path=/main/branches/prefix/; revision=14032
Fabian Groffen [Fri, 14 Aug 2009 20:03:05 +0000 (20:03 -0000)]
Merged from trunk -r13929:13939
| 13930 | Convert paths to unicode when working with CONTENTS. |
| zmedico | |
| 13931 | Add unicode conversions in various logging code. |
| zmedico | |
| 13932 | Convert unicode if necessary before writing to stdout. |
| zmedico | |
| 13933 | Inside _post_src_install_uid_fix() (since we're already |
| zmedico | walking the files here), compute total size of installed |
| | files and save it as SIZE in the vardb. This will be useful |
| | for the packagekit backend. |
| 13934 | Bug #277544 - Add missing -c switch in bzip2 arguments. |
| zmedico | Thanks to Michał Górny <gentoo@mgorny.alt.pl> for the |
| | patch. |
| 13935 | Bug #277537 - Synchronize order of PATH elements with the |
| zmedico | order defined by /etc/profile (promote paths under /usr to |
| | the front). Thanks to Michał Górny |
| | <gentoo@mgorny.alt.pl>. |
| 13936 | Implement nonfatal(). |
| arfrever | |
| 13937 | Bug #280521 - Update selinux support to use the libselinux |
| zmedico | swig wrapper api instead of python-selinux. Thanks to Chris |
| | PeBenito <pebenito@gentoo.org> for the initial patch which |
| | I've tweaked with whitespace changes and unicode support. |
| 13938 | Filter PORTAGE_NONFATAL from the environment where |
| zmedico | appropriate. |
| 13939 | Add a new portage.util.shlex_split() function to wrap all |
| zmedico | shlex.split() calls, since shlex.split() doesn't behave |
| | well with unicode strings. |
svn path=/main/branches/prefix/; revision=14031
Fabian Groffen [Fri, 14 Aug 2009 19:52:13 +0000 (19:52 -0000)]
Merged from trunk -r13919:13929
| 13920 | correct pointer, as pointed out by darkside in IRC |
| grobian | |
| 13921 | Bug #280460 - Fix UnicodeDecodeError in env_update() due to |
| zmedico | non-unicode strings from getconfig(). TODO: Make getconfig() |
| | return unicode. |
| 13924 | Fix UnicodeEncodeError in |
| zmedico | vardbapi._owners_cache._hash_str(), reported by jlec on irc. |
| 13925 | Fix transposition of CodecInfo streamreader and streamwriter |
| zmedico | attributes inside _gen_missing_encodings(). This solves |
| | 'TypeError: an integer is required' exceptions from |
| | codecs.open().readlines([sizehint]), triggered when python |
| | is built with USE=build (stage 1). Thanks to Daniel Robbins |
| | for reporting. |
| 13926 | Do not pass unicode strings into os.walk calls, since it can |
| zmedico | cause internal os.path.join calls to raise |
| | UnicodeDecodeError. |
| 13927 | Remove odd os.getcwd() call used inside main() when |
| zmedico | searching for tests. |
| 13928 | Use realpath to resolve __file__ when searching for test |
| zmedico | inside main(). |
| 13929 | Fix broken os.walk call in _post_src_install_uid_fix(). |
| zmedico | |
svn path=/main/branches/prefix/; revision=14030
Fabian Groffen [Wed, 5 Aug 2009 18:11:44 +0000 (18:11 -0000)]
Merged from trunk -r13909:13919
| 13910 | Avoid UnicodeEncodeError with unicode package.mask comments. |
| zmedico | Thanks to Thanks to Scott Moreau (soreau) for reporting. |
| 13911 | Fix bindbapi.aux_get and aux_update to work with |
| zmedico | py3k/unicode. |
| 13912 | Open all files in binary mode for py3k compatibility. |
| zmedico | |
| 13913 | Open file in text mode (unicode) where appropriate. |
| zmedico | |
| 13914 | In _check_build_log(), open the log in text mode (unicode). |
| zmedico | |
| 13915 | Open ld.so.conf as text (unicode). |
| zmedico | |
| 13916 | Fix the FEATURES=parse-eapi-ebuild-head regex to handle |
| zmedico | comments on the same line, like this: EAPI=2 #foo Thanks to |
| | Markus Meier <maekke@gentoo.org> for reporting. |
| 13917 | s/utf8/utf_8/ for consistency |
| zmedico | |
| 13919 | Fix insert_optional_args() to properly handle thinks like |
| zmedico | -Dk which require multiple substitutions of default |
| | arguments. |
svn path=/main/branches/prefix/; revision=13923
Fabian Groffen [Wed, 5 Aug 2009 18:10:06 +0000 (18:10 -0000)]
Merged from trunk -r13895:13909
| 13898 | Bug #280275 - Fix exception: AttributeError: 'config' object |
| zmedico | has no attribute '_license_groups'. |
| 13900 | Avoid UnicodeEncodeError in writemsg(). Thanks to Markos |
| zmedico | Chandras <hwoarang@gentoo.org> for reporting. |
| 13901 | Open log files in text mode (to avoid UnicodeEncodeError). |
| zmedico | Thanks to Markos Chandras <hwoarang@gentoo.org> for |
| | reporting. |
| 13902 | Open CONTENTS in text mode (to avoid UnicodeEncodeError). |
| zmedico | Thanks to Markos Chandras <hwoarang@gentoo.org> for |
| | reporting. |
| 13903 | Bug #280269 - Fix StaticFileSet.multiBuilder() to handle |
| zmedico | unicode filenames. |
| 13904 | Bug #280269 - Decode commandline arguments to unicode when |
| zmedico | necessary. |
| 13905 | Bug #280269 - Fix Atom.__str__ so that it doesn't try to |
| zmedico | encode a unicode string (resulting in UnicodeEncodeError). |
| | If an Atom instance is passed into the constructor, just |
| | return the given instance. |
| 13906 | Decode arguments to unicode if necessary (needed at least |
| zmedico | for unicode file names passed to the owners command). |
| 13907 | Always return unicode from vardbapi.aux_get(). |
| zmedico | |
| 13908 | Fix tar_contents() to open files in binary mode for py3k |
| zmedico | compatibility. |
| 13909 | Fix vardbapi._aux_get() to always return unicode. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13922
Fabian Groffen [Tue, 4 Aug 2009 17:00:19 +0000 (17:00 -0000)]
Merged from trunk -r13887:13895
| 13888 | Fix a regression caused by the code from bug #278729, which |
| zmedico | causes incorrect preference evaluation for cases like |
| | kde-base/nepomuk: || ( |
| | >=dev-libs/soprano-2.3.0[clucene,dbus,raptor,redland] |
| | >=dev-libs/soprano-2.3.0[clucene,dbus,raptor,java] ) In |
| | cases like this we need to prefer the choice which is |
| | already satisfied by current USE configuration. Thanks to |
| | Maciej Mrozowski <reavertm@poczta.fm> for reporting. |
| 13889 | Bug #280259 - Use codecs.open() when reading the Packages |
| zmedico | file inside binarytree.inject(), in order to avoid a |
| | UnicodeDecodeError when the file is later written as a |
| | unicode stream (via atomic_ofstream). |
| 13890 | Bug #280259 - Fix binarytree to always open the Packages |
| zmedico | file as unicode. |
| 13891 | Bug #280259 - Fix emaint to call binarytree._load_pkgindex() |
| zmedico | for unicode handling. |
| 13892 | Fix dep_zapdeps exception 'ValueError: need more than 3 |
| zmedico | values to unpack' from r13888. |
| 13893 | In the dep_zapdeps() code from bug #278729, set |
| zmedico | all_use_satisfied = False if the choice includes an |
| | unavailable package. |
| 13894 | Revert the code from bug #278729 for now since it need to be |
| zmedico | redone in order to account for the issue described in |
| | comment #3. |
| 13895 | Bug #280320 - Fix broken _emerge.main ImportError handler.. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13899
Fabian Groffen [Tue, 4 Aug 2009 16:29:35 +0000 (16:29 -0000)]
Merged from trunk -r13874:13887
| 13879 | Remove the code from bug #278895 since we're going to need |
| zmedico | a daemon process in the ebuild's login session in order to |
| | pass signals from the controlling terminal to the detached |
| | session. A simple fifo-based approach in ebuild.sh does not |
| | seem to work since bash's read builtin occasionally loses |
| | the fifo data when it's 'Interrupted system call'. Maybe a |
| | python script will work better for the session |
| | leader/daemon. NOTE: The daemon will also be useful for |
| | implementing a fifo-based die helper (to replace the |
| | current signal- based approach). |
| 13880 | Bug #278729 - Add an Atom.without_use attribute which is |
| zmedico | identical to the atom itself, except without any USE |
| | dependencies. |
| 13881 | Bug #278729 - Inside dep_zapdeps(), ignore USE dependencies |
| zmedico | since we don't want USE settings to adversely affect || |
| | preference evaluation. Drop invalid atoms inside |
| | _expand_new_virtuals() since we only want real Atom |
| | instances inside dep_zapdeps(). |
| 13882 | Make the USE=test RDEPEND check (bug #236786) also apply to |
| zmedico | PDEPEND. |
| 13883 | Fix NameError from r13880. Thanks to Arfrever for |
| zmedico | reporting. |
| 13884 | Add a PDEPEND.suspect category. |
| zmedico | |
| 13887 | Set "emerge" xterm title at the beginning of running |
| arfrever | emerge. |
svn path=/main/branches/prefix/; revision=13897
Fabian Groffen [Tue, 4 Aug 2009 16:24:14 +0000 (16:24 -0000)]
allow retrieval of rootuser through the environment
svn path=/main/branches/prefix/; revision=13896
Fabian Groffen [Mon, 3 Aug 2009 17:48:09 +0000 (17:48 -0000)]
try to introduce some readability/efficiency, and try to fix backtrace when no make.profile is there or it is invalid
svn path=/main/branches/prefix/; revision=13878
Fabian Groffen [Mon, 3 Aug 2009 15:51:47 +0000 (15:51 -0000)]
use OUR python, not some python that might not even exist
svn path=/main/branches/prefix/; revision=13877
Fabian Groffen [Sun, 2 Aug 2009 14:32:04 +0000 (14:32 -0000)]
Merged from trunk -r13865:13874
|13870 |In the _check_build_log(), exclude output from dev-libs/yaz-3.0.47 |
|zmedico|which looks like this: Configuration: Automake: ${SHELL} |
| |/var/tmp/portage/dev-libs/yaz-3.0.47/work/yaz-3.0.47/config/missing |
| |--run automake-1.10 Thanks to Robin H. Johnson <robbat2@gentoo.org> for|
| |reporting. |
|13872 |Add support for --complete-graph=n so that it's possible to disable it |
|zmedico|on the command line after it's been enabled in EMERGE_DEFAULT_OPTS. |
|13873 |Add support for --usepkg=n so that it's possible to disable it on the |
|zmedico|command line after it's been enabled in EMERGE_DEFAULT_OPTS. Also do |
| |the same for --usepkgonly, --getbinpkg, and --getbinpkgonly. |
|13874 |Only treat non-negative integers as valid in insert_optional_args(). |
|zmedico| |
svn path=/main/branches/prefix/; revision=13876
Fabian Groffen [Sun, 2 Aug 2009 14:27:30 +0000 (14:27 -0000)]
fix bad substitution in pym/portage/const_autotool.py (disappearing backslashes), bug #279550
svn path=/main/branches/prefix/; revision=13875
Fabian Groffen [Sat, 1 Aug 2009 10:01:19 +0000 (10:01 -0000)]
Depersonalise this a bit
svn path=/main/branches/prefix/; revision=13871
Fabian Groffen [Fri, 31 Jul 2009 07:41:14 +0000 (07:41 -0000)]
Merged from trunk -r13857:13865
| 13858 | Add get_updated_config_files in portage API |
| volkmar | chk_updated_cfg_files in _emerge API is now using |
| | get_updated_config_files It lets other app to get updated |
| | config files without ouputs |
| 13859 | Rename get_updated_config_files() to |
| zmedico | find_updated_config_files() and make it an iterator of |
| | tuples. |
| 13860 | Updating find_updated_config_files function description |
| volkmar | |
| 13861 | Move the setsid code (from bug #278895) as early as |
| zmedico | possible. |
| 13862 | Fix breakage in owners() handling of abs paths. |
| zmedico | |
| 13863 | Add a python-based setsid script for use with USERLAND=BSD. |
| zmedico | |
| 13864 | Bug #276264 - Advise manual removal of the metadata/cache/ |
| zmedico | direcory when using eclass-overrides. |
| 13865 | In depgraph._show_slot_collision_notice(), display $ROOT (if |
| zmedico | not /) with each slot atom. |
svn path=/main/branches/prefix/; revision=13869
Fabian Groffen [Fri, 31 Jul 2009 07:38:05 +0000 (07:38 -0000)]
Merged from trunk -r13854:13857
| 13855 | Fix depgraph._show_missed_update() to keep each $ROOT |
| zmedico | separate. |
| 13856 | Bug #278895 - Make ebuild.sh clean up orphaned processes |
| zmedico | that may have been left behind by ebuild phases. This works |
| | by using setsid to create a new login session for the |
| | ebuild.sh process, and `kill -s SIGHUP 0` to send a SIGHUP |
| | signal to all processes in the session. The setsid is |
| | currently not done on the python side since that would cause |
| | the sandbox process in the session, and sandbox produces a |
| | warning message if it catches a SIGHUP signal. |
| 13857 | Inside die(), only send the signal for subshell die support |
| zmedico | when we are actually in a subshell. |
svn path=/main/branches/prefix/; revision=13868
Fabian Groffen [Fri, 31 Jul 2009 07:36:27 +0000 (07:36 -0000)]
Merged from trunk -r13849:13854
| 13850 | Bug #270040 - Make repoman parse the categories file from |
| zmedico | the overlay. |
| 13851 | Fix --onlydeps breakage. Thanks to Arfrever for reporting. |
| zmedico | |
| 13852 | When backtracking due to an unsatisfied dependency, show a |
| zmedico | normal unsatisfied dependency message for the given atom. |
| | Thanks to Thomas Sachau <tommy@gentoo.org> for reporting. |
| 13853 | Remove redundant loop inside |
| zmedico | depgraph._show_missed_update_slot_conflicts(). |
| 13854 | Account for $ROOT inside |
| zmedico | depgraph._show_missed_update_unsatisfied_dep(). |
svn path=/main/branches/prefix/; revision=13867
Fabian Groffen [Fri, 31 Jul 2009 07:34:04 +0000 (07:34 -0000)]
Try to fix bug #279550 (the backtrace that is), apparently we still use some old syntax. Disable the normal gentoo error message for now as two is a bit too much.
svn path=/main/branches/prefix/; revision=13866
Fabian Groffen [Wed, 22 Jul 2009 18:08:31 +0000 (18:08 -0000)]
Add preserve-libs support for Interix and Windows. Original patch by Markus Duft.
svn path=/main/branches/prefix/; revision=13849
Fabian Groffen [Wed, 22 Jul 2009 17:35:55 +0000 (17:35 -0000)]
Merged from trunk -r13839:13846
| 13840 | Use a lazy reference to sys.stdout, in case the API consumer |
| zmedico | has temporarily overridden stdout. |
| 13841 | Move mtimedb resume list code from action_build() to |
| zmedico | Scheduler._save_resume_list(). |
| 13842 | Skip Blocker instances inside _add_prefetchers(). |
| zmedico | |
| 13843 | Remove empty log files inside dblink.unmerge(). Thanks to |
| zmedico | Diego Pettenò <flameeyes@gentoo.org> for reporting. |
| 13844 | FEATURES=unmerge-logs Keep logs from successful unmerge |
| zmedico | phases. This is relevant only when PORT_LOGDIR is set. |
| | Thanks to Diego Pettenò <flameeyes@gentoo.org> for the |
| | suggestion. |
| 13845 | Always pass encodings='utf_8' to codecs.open(), since |
| zmedico | otherwise it can return non-unicode strings (at least in |
| | some cases, observed with python-2.6.2). Don't use unicode |
| | in portage.util.getconfig() for now, since shlex doesn't |
| | seem to support it (spurious \0 characters). If we use |
| | unicode for config variables, it breaks shlex.split() calls |
| | on those variables due to the same issue (spurious \0 |
| | characters). |
| 13846 | Add comment in calc_depclean() about topological sort |
| zmedico | optimization that minimizes issues with implicit deps. |
svn path=/main/branches/prefix/; revision=13848
Fabian Groffen [Wed, 22 Jul 2009 17:32:51 +0000 (17:32 -0000)]
Merged from trunk -r13831:13839
| 13832 | For unsatisfied USE dependencies, do not backtrack if only |
| zmedico | USE have to change in order to be satisfied. Thanks to |
| | Thomas Sachau <tommy@gentoo.org> fo reporting. |
| 13833 | For consistency with emake, add ${MAKEOPTS} ${EXTRA_EMAKE} |
| zmedico | to make arguments inside einstall. Also, force -j1 in order |
| | to override any --jobs settings from MAKEOPTS. Thanks to |
| | Diego Pettenò <flameeyes@gentoo.org> for the suggestion. |
| 13834 | Use readlines() to optimize performance. Thanks to Marat |
| zmedico | Radchenko <slonopotamusorama@gmail.com> for this patch from |
| | bug #276813. |
| 13835 | In _check_manifests(), skip uninstall operations. |
| zmedico | |
| 13836 | Use codecs.open for unicode support in FileLoader.load(). |
| zmedico | |
| 13837 | In grablines(), specify encoding=sys.getdefaultencoding() in |
| zmedico | the codecs.open() parameters, since otherwise readlines |
| | doesn't return unicode (at least in some cases, observed |
| | with python-2.6.2). Also, fix grabfile() to return unicode |
| | when it normalizes whitespace. |
| 13838 | Fix Scheduler bug: the scheduler was adding prefetcher even |
| volkmar | for uninstall tasks |
| 13839 | Make portage.listdir() and dbapi.cp_list() return unicode. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13847
Fabian Groffen [Thu, 16 Jul 2009 19:59:14 +0000 (19:59 -0000)]
Merged from trunk -r13827:13828
| 13828 | add hppa64 to the 64bit list as pointed out by Michael |
| SpankMan | Haubenwallner |
svn path=/main/branches/prefix/; revision=13830
Fabian Groffen [Thu, 16 Jul 2009 19:56:43 +0000 (19:56 -0000)]
most probably fix bug #278014 (some stupidity)
svn path=/main/branches/prefix/; revision=13829
Fabian Groffen [Tue, 14 Jul 2009 19:57:50 +0000 (19:57 -0000)]
better use rsync from the Prefix, instead of from the host, it may be something totally different, if it exists at all, bug #277011
svn path=/main/branches/prefix/; revision=13827
Fabian Groffen [Tue, 14 Jul 2009 15:27:45 +0000 (15:27 -0000)]
make sure our src_install default is actually run, bug #277815
svn path=/main/branches/prefix/; revision=13826
Fabian Groffen [Mon, 13 Jul 2009 19:41:18 +0000 (19:41 -0000)]
Merged from trunk -r13813:13824
| 13814 | Assign 'cfgprot' before referencing it. Reported by Thomas |
| arfrever | Sachau. |
| 13815 | Optimize USE_EXPAND -> USE code inside config.setcpv(). |
| zmedico | Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for |
| | this patch from bug #276813. |
| 13816 | Bug #137562 - Implement backtracking for missing |
| zmedico | dependencies. Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for the initial patch which only needed |
| | minor changes. |
| 13817 | Eliminate duplicate code inside |
| zmedico | depgraph._show_missed_update(). |
| 13818 | Move the backtracking code from action_build() to a new |
| zmedico | backtrack_depgraph() function. |
| 13819 | In depgraph._show_missed_update(), don't show installed |
| zmedico | packages since we only want to show available updates. |
| 13820 | Improve description of QA_DT_HASH. |
| arfrever | |
| 13821 | Remove leading slash from appropriate paths inside |
| zmedico | portage.const, so that lstrip(os.sep) is not needed for |
| | os.path.join() calls. Thanks to Fabian Groffen |
| | <grobian@g.o> for this patch. |
| 13822 | Allow search and depgraph to avoid spinner by using |
| volkmar | spinner=None |
| 13823 | Optimize USE_EXPAND -> USE code inside config.setcpv(). |
| zmedico | Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for |
| | the initial patch from bug #276813. |
| 13824 | fix up spacing, remove commented out code, fix copyright |
| grobian | (sort of see-if-I-can-commit test) |
svn path=/main/branches/prefix/; revision=13825
Fabian Groffen [Sat, 11 Jul 2009 13:02:15 +0000 (13:02 -0000)]
Merged from trunk -r13804:13812
| 13805 | Bug #276957 - Fix dropped "in graph" choice for runtime deps |
| zmedico | inside dep_zapdeps. |
| 13806 | Fix --selective so it works. |
| zmedico | |
| 13807 | Document the --selective option. |
| zmedico | |
| 13808 | Add a --debug warning message inside _add_pkg in case a |
| zmedico | potentially infinite backtracking loop is detected (it |
| | should never happen). |
| 13809 | Use a dict for depgraph params, so we can use it to store |
| zmedico | key/value pairs and fix the depgraph so it doesn't use |
| | emerge options directly. |
| 13810 | Make -j argument handling more generic, so it's easy to add |
| zmedico | similar arguments (planning to add support for integer |
| | -D/--deep arguments). |
| 13811 | Tweak arguments for <python-2.6 compat. |
| zmedico | |
| 13812 | Allow --deep to take an optional integer parameter, to |
| zmedico | specify how deep it should go. Also make --update so it no |
| | longer implies the equivalent of --deep=1. To get the old |
| | --update behavior, use --update --deep=1. |
svn path=/main/branches/prefix/; revision=13813
Fabian Groffen [Tue, 7 Jul 2009 15:10:15 +0000 (15:10 -0000)]
Merged from trunk -r13794:13803
| 13798 | Bug #273631 - Add default src_install implementation for |
| zmedico | EAPI 3. Thanks to Markus Meier <maekke@gentoo.org> for this |
| | patch (and people in #gentoo-portage for bash syntax |
| | tweaks). |
| 13799 | Bug #273622 - Add pkg_pretend support for the ebuild(1) |
| zmedico | command (emerge support not implemented yet). Thanks to |
| | Markus Meier <maekke@gentoo.org> for this patch. |
| 13800 | Bug #273640 - Add --disable-dependency-tracking to econf |
| zmedico | arguments for EAPI 3. Thanks to Markus Meier |
| | <maekke@gentoo.org> for this patch. |
| 13801 | Optimize dbapi._iter_match_use() so that it shares a single |
| zmedico | compiled regex for all implicit iuse checks. This avoids |
| | lots of expensibe re.compile() calls. Thanks to Marat |
| | Radchenko <slonopotamusorama@gmail.com> for the initial |
| | patch. |
| 13802 | Bug #276866 - --binpkg-respect-use < y | n > Tells emerge to |
| zmedico | ignore binary packages if their use flags don't match the |
| | current configuration. (default: ´n´) Thanks to Sebastian |
| | Mingramm (few) <s.mingramm@gmx.de> for this patch (small |
| | tweaks by me). |
| 13803 | Shorten the preserved libs message when in --quiet mode. |
| zmedico | Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for |
| | this patch. |
svn path=/main/branches/prefix/; revision=13804
Fabian Groffen [Mon, 6 Jul 2009 18:38:26 +0000 (18:38 -0000)]
Merged from trunk -r13784:13794
| 13785 | Assume utf_8 encoding when reading raw ebuild metadata. |
| zmedico | |
| 13786 | Make dblink.setfile() write environment.bz2 in binary mode. |
| zmedico | |
| 13787 | Remove set operator support since the current implementation |
| zmedico | does not meet user expectations, as mentioned in bug |
| | #253802, comment #5: Package set operators currently operate |
| | on atoms, but what users really need is for them to operate |
| | on the packages themselves. This will allow one set to add |
| | or subtract packages from another even though the sets to |
| | not use the exact same atoms to refer to the given packages. |
| | I imagine the way this should be done is to create a mapping |
| | of atom -> package for each set, perform the intersection |
| | using the packages, and then map the package intersection |
| | back into a set of atoms. |
| 13788 | Bug #276264 - Note that eclass-overrides may make it |
| zmedico | necessary to set |
| | PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/metadata/cache" in |
| | make.conf. |
| 13789 | Make sure avoid_update always returns existing_node if |
| zmedico | available. |
| 13790 | Fix broken reference to possible_upgrades inside |
| zmedico | dep_zapdeps(). |
| 13791 | Assume utf_8 encoding in alls reads/writes (unicode handling |
| zmedico | required for py3k). |
| 13792 | Hardcode utf_8 encoding inside _setitem(). |
| zmedico | |
| 13793 | Always exit unsuccessfully if there are any failures. |
| zmedico | |
| 13794 | Use PackageSet.findAtomForPackage() when matching the |
| zmedico | existing node against the atom inside |
| | _select_pkg_highest_available_imp(), for PROVIDE support. |
svn path=/main/branches/prefix/; revision=13797
Fabian Groffen [Mon, 6 Jul 2009 18:33:42 +0000 (18:33 -0000)]
Merged from trunk -r13764:13774
| 13765 | Move "import copy" to the top of the file. |
| zmedico | |
| 13766 | Make --help into an action, and move --help --sync output |
| zmedico | to the actions section. Thanks to Marat Radchenko |
| | <slonopotamusorama@gmail.com> for this patch. |
| 13767 | Implement LazyItemsDict.pop() since dict.pop() bypasses our |
| zmedico | overridden __getitem__ implementation. This fixes a problem |
| | with config.setcpv() failing to set PORTAGE_REPO_NAME when |
| | appropriate. Thanks to Arfrever for reporting. |
| 13768 | Don't set RDEPEND=${RDEPEND-${DEPEND}} for EAPI=3 and |
| arfrever | simplify setting it for lower EAPIs. |
| 13769 | Bug #275217 - Part 5 - When a slot conflict occurs, mask |
| zmedico | the first package that got pulled in and restart the |
| | calculation. Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for the initial patch which I added |
| | some additional features to: * display message about missed |
| | updates * cache frozen_config instance, to optimize |
| | performance * disable backtracking if it fails, fall back |
| | to a normal dep calculation + error message. |
| 13770 | Cleanup spinner before calling depgraph.display_problems(). |
| zmedico | |
| 13771 | Disable depgraph._show_missed_update() when --quiet is |
| zmedico | enabled and --debug is not enabled. |
| 13772 | Remove the --avoid-update option and make it the default |
| zmedico | behavior when --update is not specified, as suggested by |
| | Allen Brooker (AllenJB) <gentoo-bugs@allenjb.me.uk> in bug |
| | #275945, comment #2. |
| 13773 | Make LazyItemsDict derive from UserDict instead of dict so |
| zmedico | that we don't have to implement the pop method (and |
| | possibly others such as setdefault). |
| 13774 | Delete runtime_pkg_mask to avoid memory leak. |
| zmedico | |
Merged from trunk -r13774:13784
| 13775 | Don't pass myopts into profile_check() since it's no longer |
| zmedico | needed. Thanks to Radchenko <slonopotamusorama@gmail.com> |
| | for this patch. |
| 13776 | Update help() usage since the myopts parameter is gone. |
| zmedico | Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for |
| | this patch. |
| 13777 | Correct --help usage since it no longer takes system, world, |
| zmedico | or --sync as input. Thanks to Marat Radchenko |
| | <slonopotamusorama@gmail.com> for this patch. |
| 13778 | Correct --help usage since it no longer takes system, world, |
| zmedico | or --sync as input. Thanks to Marat Radchenko |
| | <slonopotamusorama@gmail.com> for this patch. |
| 13779 | As a performance optimization, use StringIO instead of |
| zmedico | _insert_newline_eof to solve bug #228117. Thanks to Marat |
| | Radchenko <slonopotamusorama@gmail.com> for this patch. |
| 13780 | Make getconfig() use codecs.option() for py3k compatible |
| zmedico | unicode handling. |
| 13781 | Make code from previous commit safe for empty files. |
| zmedico | |
| 13782 | Make grablines() use codecs.open() for py3k compatible |
| zmedico | unicode handling. |
| 13783 | Make atomic_ofstream() use codecs.open() for py3k compatible |
| zmedico | unicode handling when mode does not contain 'b'. |
| 13784 | Remove the workaround from bug #263081 since most strings |
| zmedico | should be unicode now. |
svn path=/main/branches/prefix/; revision=13796
Fabian Groffen [Mon, 6 Jul 2009 18:29:28 +0000 (18:29 -0000)]
Merged from trunk -r13754:13764
| 13756 | Bug #275947 - Enable build.log when FEATURES=sesandbox is |
| zmedico | enabled, since it works when a pty is available (but not |
| | through a normal pipe, due to bug #162404). |
| 13757 | Fix reversal in --nodeps merge order. Thanks to Michael |
| zmedico | Haubenwallner <haubi@gentoo.org> for reporting. |
| 13758 | Move RootConfig.visible_pkgs to |
| zmedico | dynamic_config._visible_pkgs, so RootConfig can be |
| | considered entirely "frozen". |
| 13759 | Use depgraph._pkg() whenever possible. |
| zmedico | |
| 13760 | Add a frozen_config parameter to the depgraph constructor, |
| zmedico | so that multiple depgraph instances created for backtracking |
| | purposes can reuse the same frozen_config instance. |
| 13761 | Use the new frozen_config depgraph constructor parameter to |
| zmedico | optimize resume_depgraph(). |
| 13762 | Fix broken reference to self.myopts in the dynamic_config |
| zmedico | constructor. |
| 13763 | Fix broken reference to _graph_trees. |
| zmedico | |
| 13764 | Skip PROVIDE conditional evaluation in |
| zmedico | PackageSet.iterAtomsForPackage(), since Package.metadata |
| | handles that automatically now. |
svn path=/main/branches/prefix/; revision=13795
Fabian Groffen [Wed, 1 Jul 2009 19:09:15 +0000 (19:09 -0000)]
Merged from trunk -r13743:13754
| 13745 | Bug #275945 - Add a new --avoid-update which tries to avoid |
| zmedico | updating packages which possible. Thanks to Sebastian |
| | Mingramm (few) <s.mingramm@gmx.de> for this patch. |
| 13746 | Tweak depgraph._select_pkg_highest_available_imp to avoid |
| zmedico | more updates when in --avoid-update, by ignoring masked |
| | installed packages and packages for which the ebuild is no |
| | longer available. |
| 13747 | Bug #275217 - Part 4 - Move all member variables of |
| zmedico | _emerge.depgraph into frozen_config or dynamic_config. |
| | Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for |
| | this patch. |
| 13748 | Fix _expand_new_virtuals to expand old-style virtuals for |
| zmedico | package.provided entries when there is no other choice. |
| 13749 | Fix depgraph._resolve to do old-style virtual matches |
| zmedico | against package.provided when there is no other choice. |
| 13750 | Always use dep_getkey() when using profile virtuals values, |
| zmedico | since at least /profiles/base/virtuals contains an atom with |
| | an operator (virtual/pam maps to >=sys-libs/pam-0.78). |
| 13751 | Remove obsolete blocker expansion code from |
| zmedico | _expand_new_virtuals. |
| 13752 | Fix depgraph._serialize_tasks so it never performa a |
| zmedico | needless uninstall task when a package in the same slot is |
| | scheduled to replace it. |
| 13753 | Fix typo from previous commit. |
| zmedico | |
| 13754 | Fix broken references to depgraph._dynamic_config and |
| zmedico | _frozen_config in calc_depclean(). |
svn path=/main/branches/prefix/; revision=13755
Fabian Groffen [Tue, 30 Jun 2009 09:24:08 +0000 (09:24 -0000)]
Merged from trunk -r13733:13743
| 13735 | Move code from bug #258773 to dep_zapdeps, since the parent |
| zmedico | always needs to be passed in for atom validation in order to |
| | solve bug #275821. |
| 13736 | Bug #275821 - Make emerge reject !!atom blockers for EAPI 0 |
| zmedico | and 1. |
| 13737 | Bug #275796 - Prefer packages selected for install over |
| zmedico | installed packages. This helps automatically solve cases |
| | such as the upgrade to the new bluez package which requires |
| | uninstallation of the older bluez-libs and bluez-utils |
| | packages. Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for this patch. |
| 13738 | Use a finally blocker to ensure _expand_new_virtuals |
| zmedico | properly resets eapi state when an exception is raised. |
| 13739 | Fix virtual blocker code inside _expand_new_virtuals to |
| zmedico | correctly handle !!atom blockers. |
| 13740 | Remove the upgrade selection code inside dep_zapdeps (from |
| zmedico | bug #171840 and bug #159360) since the code in |
| | depgraph._dep_check_composite_db._visible() from bug #253904 |
| | now masks choices that do not match the highest available |
| | version in the slot. This means that such undesirable |
| | choices automatically go into the dep_zapdeps "other" |
| | category. |
| 13741 | In _expand_new_virtuals, don't expand old-style virtuals |
| zmedico | when there is a new-style match. |
| 13742 | Bug #82488 - In _expand_new_virtuals(), check PROVIDE before |
| zmedico | expanding old-style virtuals. |
| 13743 | Bug #275901 - Make emerge bail out for USE deps in EAPI 0 |
| zmedico | and 1. |
svn path=/main/branches/prefix/; revision=13744
Fabian Groffen [Mon, 29 Jun 2009 19:09:45 +0000 (19:09 -0000)]
Merged from trunk -r13717:13733
| 13723 | make sure etc-update sorts updates in the order (1) leading |
| SpankMan | dir path (2) filename (3) cfg update |
| 13724 | Bug #236786 - Warn about 'test?' USE conditionals in |
| zmedico | RDEPEND. Thanks to Markus Meier <maekke@gentoo.org> for |
| | this patch. |
| 13725 | Check for redundant blank lines. Thanks to Markus Meier |
| zmedico | <maekke@gentoo.org> for this patch. |
| 13726 | Make Package.invalid suitable for use by repoman. |
| zmedico | |
| 13728 | Use Package.invalid to generate *.syntax repoman errors for |
| zmedico | LICENSE, PROPERTIES, PROVIDE, and RESTRICT. |
| 13729 | Fix Package.metadata USE conditional evaluation so that |
| zmedico | it's delayed until after config.setcpv() has calculated |
| | PORTAGE_USE. Thanks to Arfrever for reporting. |
| 13730 | Bug #253467 - Fix regression in config._env_blacklist |
| zmedico | handling. |
| 13731 | Fix constructor to avoid TypeError when the "perms" keyword |
| zmedico | parameter is given. |
| 13732 | Add missing resume_depgraph import, and remove unused |
| zmedico | imports. |
| 13733 | Prepare 41 messages to localization. |
| arfrever | |
svn path=/main/branches/prefix/; revision=13734
Fabian Groffen [Sun, 28 Jun 2009 19:17:51 +0000 (19:17 -0000)]
it helps when EPREFIX is known
svn path=/main/branches/prefix/; revision=13727
Fabian Groffen [Sun, 28 Jun 2009 14:48:34 +0000 (14:48 -0000)]
logging /inside/ the prefix is much more fun
svn path=/main/branches/prefix/; revision=13722
Fabian Groffen [Sun, 28 Jun 2009 13:41:26 +0000 (13:41 -0000)]
Merged from trunk -r13703:13717
| 13716 | Bug #270953 - New !!atom blockers do not allow temporary |
| zmedico | simulaneous installation, so unlike !atom blockers, !!atom |
| | blockers aren't ignored when they match other packages |
| | occupying the same slot. Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for the initial patch. |
| 13717 | * Add new abstract PhaseCheck class for ebuild |
| zmedico | phase-specific checks. * Reimplement SrcUnpackPatches using |
| | PhaseCheck. * Add new SrcCompileEconf, |
| | Eapi3IncompatibleFuncs, and Eapi3GoneVars checks. Thanks to |
| | Markus Meier <maekke@gentoo.org> for this patch. |
svn path=/main/branches/prefix/; revision=13721
Fabian Groffen [Sun, 28 Jun 2009 13:40:14 +0000 (13:40 -0000)]
Merged from trunk -r13697:13703
| 13698 | Move __init__.py to main.py. |
| zmedico | |
| 13699 | Bug #275532 - In action_depclean(), free memory from the dep |
| zmedico | calculation before calling unmerge(). |
| 13700 | Use clear_caches() to free memory inside action_depclean(). |
| zmedico | |
| 13701 | Make portdbapi define self.settings, for conformity with |
| zmedico | other dbapi classes. |
| 13702 | Fix PROVIDE code since the Package class automatically |
| zmedico | evaluates USE conditionals now. |
| 13703 | Use a property to implement portdbapi.settings. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13720
Fabian Groffen [Sun, 28 Jun 2009 13:36:35 +0000 (13:36 -0000)]
manually replay r13697 and pray that nothing was changed in the file at the same time
svn path=/main/branches/prefix/; revision=13719
Fabian Groffen [Sun, 28 Jun 2009 13:10:08 +0000 (13:10 -0000)]
Merged from trunk -r13690:13696
| 13691 | * Add a Package.invalid attribute to store messages about |
| zmedico | invalid LICENSE, PROPERTIES, PROVIDE, and RESTRICT metadata. |
| | Use it to mask invalid packages when necessary. * Evaluate |
| | USE conditional values in Package.metadata when the are |
| | accessed. |
| 13692 | Add a Package.metadata.properties attribute containing a |
| zmedico | list of enabled PROPERTIES values. |
| 13693 | Add a Package.metadata.restrict attribute containing a list |
| zmedico | of enabled RESTRICT values. |
| 13694 | Make config.regenerate() detect api-level updates to |
| zmedico | ACCEPT_LICENSE, for use in implementing the "free" filter |
| | for the packagekit backend. |
| 13695 | Make dbapi.cp_list() raise NotImplementedError. |
| zmedico | |
| 13696 | Use @property instead of __getattribute__ to implement lazy |
| zmedico | Package.iuse.regex initialization. |
svn path=/main/branches/prefix/; revision=13718
Fabian Groffen [Sat, 27 Jun 2009 14:44:56 +0000 (14:44 -0000)]
Merged from trunk -r13688:13690
| 13689 | Split out a depgraph._iter_match_pkgs() method from |
| zmedico | _select_pkg_highest_available_imp(). |
| 13690 | Add/update copyright headers. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13715
Fabian Groffen [Sat, 27 Jun 2009 14:32:58 +0000 (14:32 -0000)]
Merged from trunk -r13677:13688
| 13678 | Fix imports for _emerge submodules. |
| zmedico | |
| 13679 | Bug #275237 - If a directory exists in a location where a |
| zmedico | normal file is to be merged, generate a config-protect |
| | filename for the file and merge it that way. Thanks to Jonas |
| | Bernoulli <jonas@bernoulli.cc> for this patch. |
| 13680 | In binarytree.inject(), when a symlink is created for the |
| zmedico | current package and it overwrites another package, delete |
| | the corresponding metadata from the Packages file. Thanks to |
| | Eitan Mosenkis <eitan@mosenkis.net> for reporting. |
| 13681 | Add support to `portageq owners` for querying paths matching |
| zmedico | a given basename. It is natural to support this since the |
| | vartree already maintains a basename -> owner index anyway. |
| | There are plans for the packagekit backend is to support |
| | this type of search. |
| 13685 | Bug #275217 - Part 3 - Splits depgraph.select_files into |
| zmedico | select_files and _resolve. Thanks to Sebastian Mingramm |
| | (few) <s.mingramm@gmx.de> for this patch. |
| 13686 | * Make Package.metadata['USE'] access trigger USE |
| zmedico | calculation for unbuilt ebuilds. * Make |
| | Package.metadata['LICENSE'] access trigger USE conditional |
| | evaluation. * Make Package.metadata['PROVIDE'] access |
| | trigger USE conditional evaluation. * Initialize |
| | Package.metadata['CHOST'] in the Package constructor for |
| | unbuilt ebuilds. |
| 13687 | Remove obsolete Package.metadata['CHOST'] initialization. |
| zmedico | |
| 13688 | Use depgraph._pkg() to construct Package instances inside |
| zmedico | _select_pkg_highest_available_imp(). |
svn path=/main/branches/prefix/; revision=13714
Fabian Groffen [Sat, 27 Jun 2009 14:31:19 +0000 (14:31 -0000)]
Merged from trunk -r13675:13677
| 13676 | Bu #275217 - Part 1 - Resolve the circular dep between |
| zmedico | Scheduler and depgraph; mark all functions as local that |
| | aren't used outside of depgraph. Thanks to Sebastian |
| | Mingramm (few) <s.mingramm@gmx.de> for this patch. |
| 13677 | Bug #275217 - Part 2 - Move changelog stuff stuff out of |
| zmedico | depgraph. Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for this patch. |
svn path=/main/branches/prefix/; revision=13713
Fabian Groffen [Sat, 27 Jun 2009 14:28:34 +0000 (14:28 -0000)]
Merged from trunk -r13673:13675
| 13674 | Make the global "actions" variable a local inside |
| zmedico | parse_opts() since the name collision with the |
| | _emerge.actions module triggers this traceback with |
| | epydoc-3.0.1: Traceback (most recent call last): File |
| | "/usr/bin/epydoc", line 13, in cli() File |
| | "/usr/lib/python2.6/site-packages/epydoc/cli.py", line 965, |
| | in cli main(options, names) File |
| | "/usr/lib/python2.6/site-packages/epydoc/cli.py", line 757, |
| | in main exclude_parse=exclude_parse) File |
| | "/usr/lib/python2.6/site-packages/epydoc/docbuilder.py", |
| | line 235, in build_doc_index docindex = DocIndex(docs) File |
| | "/usr/lib/python2.6/site-packages/epydoc/apidoc.py", line |
| | 1715, in __init__ raise ValueError("All APIdocs passed to |
| | DocIndexer " ValueError: All APIdocs passed to DocIndexer |
| | must already have canonical names. |
| 13675 | Fix import for split _emerge.MetadataRegen module. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13712
Fabian Groffen [Sat, 27 Jun 2009 14:24:48 +0000 (14:24 -0000)]
Merged from trunk -r13672:13673
| 13673 | Bug #275047 - Split _emerge/__init__.py into smaller pieces |
| zmedico | (part 6). Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for this patch. |
svn path=/main/branches/prefix/; revision=13711
Fabian Groffen [Sat, 27 Jun 2009 14:07:14 +0000 (14:07 -0000)]
Merged from trunk -r13671:13672
| 13672 | Bug #275047 - Split _emerge/__init__.py into smaller pieces |
| zmedico | (part 5). Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for this patch. |
svn path=/main/branches/prefix/; revision=13710
Fabian Groffen [Sat, 27 Jun 2009 13:36:49 +0000 (13:36 -0000)]
Merged from trunk -r13669:13671
|13670 |Change ACCEPT_LICENSE evaluation so that things like ACCEPT_LICENSE="* -@EULA" |
|zmedico|will work as expected. The ACCEPT_LICENSE variable is now treated as a lazily |
| |evaluated incremental, so that * can be used to match all licenses without every |
| |having to explicitly expand it to all licenses. It should now behave as approved |
| |by the council in response to the "RFC: ACCEPT_LICENSE default value (GLEP 23)" |
| |discussion: |
| |http://archives.gentoo.org/gentoo-dev/msg_d5c1e7285399ebc27a74bdd02cb4d037.xml |
|13671 |Fix config._lazy_vars._accept_license() to exclude irrelevant licenses. |
|zmedico| |
svn path=/main/branches/prefix/; revision=13709
Fabian Groffen [Sat, 27 Jun 2009 13:35:38 +0000 (13:35 -0000)]
Merged from trunk -r13668:13669
| 13669 | Bug #275047 - Split _emerge/__init__.py into smaller pieces |
| zmedico | (part 4). Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for this patch. |
svn path=/main/branches/prefix/; revision=13708
Fabian Groffen [Sat, 27 Jun 2009 13:19:35 +0000 (13:19 -0000)]
Merged from trunk -r13667:13668
| 13668 | Bug #275047 - Split _emerge/__init__.py into smaller pieces |
| zmedico | (part 3). Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for this patch. |
svn path=/main/branches/prefix/; revision=13707
Fabian Groffen [Sat, 27 Jun 2009 13:12:24 +0000 (13:12 -0000)]
Merged from trunk -r13666:13667
| 13667 | Bug #275047 - Split _emerge/__init__.py into smaller pieces |
| zmedico | (part 2). Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for this patch. |
svn path=/main/branches/prefix/; revision=13706
Fabian Groffen [Sat, 27 Jun 2009 13:02:34 +0000 (13:02 -0000)]
Merged from trunk -r13663:13666
| 13664 | Fix imports broken by splitting of _emerge/__init__.py. |
| zmedico | |
| 13665 | Use lazy imports for submodules where possible. |
| zmedico | |
| 13666 | Revert lazy imports from r13665 for now, since pyflakes |
| zmedico | doesn't understand them, and pyflakes helps check stuff |
| | while we're splitting this file up. |
svn path=/main/branches/prefix/; revision=13705
Fabian Groffen [Sat, 27 Jun 2009 12:51:25 +0000 (12:51 -0000)]
Merged from trunk -r13662:13663, tried to re-apply all Prefix patches,
but unfortunately the code was changed next to just being split.
| 13663 | Bug #275047 - Split _emerge/__init__.py into smaller pieces. |
| zmedico | Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for |
| | this patch. |
svn path=/main/branches/prefix/; revision=13704
Fabian Groffen [Wed, 24 Jun 2009 12:45:17 +0000 (12:45 -0000)]
Greetings from LinuxTag 2009 too :)
Merged from trunk -r13654:13662
| 13655 | Bug #264434 - Delay evaluation of all disjunctive (virtual |
| zmedico | and ||) dependencies. Evaluting disjuctions as late as |
| | possible allows better decisions since the graph is more |
| | complete when the decisions are made. Thanks to Sebastian |
| | Mingramm (few) <s.mingramm@gmx.de> for the initial patch. |
| 13656 | Don't set KV for EAPI >=3. |
| arfrever | |
| 13657 | Factor duplicate code out of depgraph._add_pkg and |
| zmedico | _pop_disjunction. |
| 13658 | In doebuild_environment, ensure that cached $KV from the |
| zmedico | backupenv does not leak into the environment for EAPI >= 3. |
| 13659 | Bug #274742 - Exempt $dir from quoting checks since it's a |
| zmedico | likely candidate for false positives. |
| 13660 | Tweak depcache permission handling so egencache can be run |
| zmedico | by a user who's not in the portage group, allowing for |
| | better privilege isolation. |
| 13661 | Reorganize $KV logic in doebuild_environment. |
| zmedico | |
| 13662 | Use portage.util.apply_permissions() inside |
| zmedico | _ensure_access(). |
svn path=/main/branches/prefix/; revision=13684
Fabian Groffen [Wed, 24 Jun 2009 08:45:19 +0000 (08:45 -0000)]
bad svn for not barking at me for checking in conflicts
svn path=/main/branches/prefix/; revision=13683
Fabian Groffen [Wed, 24 Jun 2009 08:36:19 +0000 (08:36 -0000)]
make postsync scripts work, thanks haubi for the patch
svn path=/main/branches/prefix/; revision=13682
Fabian Groffen [Fri, 19 Jun 2009 19:34:38 +0000 (19:34 -0000)]
be a bit more precise
svn path=/main/branches/prefix/; revision=13654
Fabian Groffen [Fri, 19 Jun 2009 19:25:10 +0000 (19:25 -0000)]
Merged from trunk -r13640:13652
| 13641 | Misc fixes and updates. Thanks to Sebastian Mingramm (few) |
| zmedico | <s.mingramm@gmx.de> for this patch from bug #274279. |
| 13642 | Escape hyphens from previous commit. |
| zmedico | |
| 13643 | Bug #274279 - Add color.map support for mapping a color to a |
| zmedico | different color (rather than just mapping a class/style to a |
| | different color). Thanks to Sebastian Mingramm (few) |
| | <s.mingramm@gmx.de> for this patch. |
| 13644 | Use map_code_to_color_code() where appropriate inside |
| zmedico | ConsoleStyleFile.write(). |
| 13645 | Add epydoc docstrings fro codes and color_codes variables. |
| zmedico | |
| 13646 | Rename map_code_to_color_code() to style_to_ansi_code(). |
| zmedico | |
| 13647 | Rename codes to _styles. |
| zmedico | |
| 13648 | Rename color_codes back to codes. |
| zmedico | |
| 13649 | Add NOCOLOR to the environment whitelist. This fixes |
| zmedico | inappropriate colors produced by elog functions. Thanks to |
| | Luis F. Araujo <araujo@gentoo.org> for reporting. |
| 13650 | When --pretend overrides --ask, don't show any output. |
| zmedico | |
| 13651 | Allow missing ChangeLog when using git. We don't use |
| zmedico | ChangeLogs in distributed SCMs. It will be generated on |
| | server side from scm log, before package moves to the rsync |
| | server. This is needed because we try to avoid merge |
| | collisions. Thanks to Tomas Chvatal <scarabeus@gentoo.org> |
| | for this patch. |
| 13652 | Add a EMERGE_LOG_DIR variable to control the location of |
| zmedico | emerge.log and emerge-fetch.log. This was requested by Eitan |
| | Mosenkis <eitan@mosenkis.net> for use in his 'online image |
| | builder' soc project. |
svn path=/main/branches/prefix/; revision=13653
Fabian Groffen [Sun, 14 Jun 2009 08:33:46 +0000 (08:33 -0000)]
Merged from trunk -r13629:13639
| 13630 | Bug #272063 - Use elements inside elements. |
| zmedico | |
| 13631 | Remove element in invalid location. |
| zmedico | |
| 13632 | Fix non-empty elements. |
| zmedico | |
| 13633 | Bug #272063 - Remove elements that don't validate. |
| zmedico | |
| 13634 | Fix more elements to contain elements. |
| zmedico | |
| 13635 | propset svn:rev ON |
| zmedico | |
| 13636 | Remove unused newdepend(), newrdepend(), newpdepend(), and |
| zmedico | do_newdepend() functions. Thanks to ABCD for reporting. |
| 13637 | Bug #273020 - Document FEATURES=multilib-strict. Thanks to |
| zmedico | Samuli Suominen <ssuominen@gentoo.org> for the patch. |
| 13638 | Document FEATURES=python-trace. |
| zmedico | |
| 13639 | Prepare 117 messages to localization. |
| arfrever | |
svn path=/main/branches/prefix/; revision=13640
Fabian Groffen [Sun, 7 Jun 2009 06:40:12 +0000 (06:40 -0000)]
Merged from trunk -r13625:13628
| 13626 | Bug #268929 - Add grep for 'dereferencing pointer' messages |
| zmedico | produced by gcc 4.4. Thanks to ABCD <en.ABCD@gmail.com> for |
| | this patch. |
| 13627 | drop sandbox settings that sandbox itself takes care of |
| SpankMan | #258684 |
| 13628 | Make usev() strip ! prefix in echoed output as specified in |
| zmedico | bug #270658, comment #16. |
svn path=/main/branches/prefix/; revision=13629
Fabian Groffen [Tue, 19 May 2009 19:10:35 +0000 (19:10 -0000)]
also ignore @loader_path entries when checking install_names
svn path=/main/branches/prefix/; revision=13625
Fabian Groffen [Tue, 19 May 2009 19:07:16 +0000 (19:07 -0000)]
Merged from trunk -r13621:13623
| 13622 | Enable FEATURES=assume-digests by default. |
| zmedico | |
| 13623 | Add some really big integers to the vercmp tests. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13624
Fabian Groffen [Sat, 9 May 2009 09:43:41 +0000 (09:43 -0000)]
Right time to wake up
svn path=/main/branches/prefix/; revision=13621
Fabian Groffen [Sat, 9 May 2009 09:28:35 +0000 (09:28 -0000)]
Merged from trunk -r13595:13618
| 13596 | Fix inverted logic in superuser logic for bug #267104. |
| zmedico | |
| 13597 | Skip useq() IUSE QA Notices during the "depend" phase |
| zmedico | because lots of ebuilds/eclasses have stuff in global scope |
| | that really belongs somewhere like pkg_setup or |
| | src_configure. Thanks to Arfrever for reporting. |
| 13598 | Make useq() die if called during the "depend" phase in |
| zmedico | newer EAPIs. |
| 13599 | Simplify DepPriority.__int__() and make it consistent with |
| zmedico | __str__(). |
| 13600 | Bug #268398 - Document econf's automatic die behavior. |
| zmedico | |
| 13608 | Fix "arguments" spelling. |
| zmedico | |
| 13612 | Fix misleading/outdated info in the DESCRIPTION section. |
| zmedico | |
| 13613 | Make portdbapi.getfetchlist() return an equal number of |
| zmedico | uris/file names so that no information is lost. |
| 13615 | When generating ACCEPT_LICENSE for the ebuild environment, |
| zmedico | do not expand *, since that would make it appear to the |
| | check_license() function as if the user has accepted |
| | licenses which have not really been explicitly accepted. |
| 13616 | tweak output when diff access rights are needed |
| SpankMan | |
| 13617 | Fix SrcUnpackPatches to ignore comment lines. Thanks to |
| zmedico | Christian Ruppert <idl0r@g.o> for reporting. |
| 13618 | Fix digestcheck() to handle missing distfiles digests |
| zmedico | correctly. Thanks to Petteri Räty <betelgeuse@g.o> for |
| | reporting. |
svn path=/main/branches/prefix/; revision=13620
Fabian Groffen [Sat, 9 May 2009 09:09:25 +0000 (09:09 -0000)]
require our bash everywhere, perhaps that solves some weird issues (during bootstrap)
svn path=/main/branches/prefix/; revision=13619
Fabian Groffen [Tue, 5 May 2009 14:02:29 +0000 (14:02 -0000)]
clarify my intentions
svn path=/main/branches/prefix/; revision=13614
Fabian Groffen [Sat, 2 May 2009 09:31:29 +0000 (09:31 -0000)]
Merged from trunk -r13580:13589
| 13582 | Make elog functions use read -r when splitting lines, so |
| zmedico | that backslashes intended for display will not be eaten. |
| 13584 | Bug #267175 - Instead of "poor code kills airplanes", say |
| zmedico | "install aborted due to poor programming practices shown |
| | above" in order to help the user link the die message to the |
| | related "poor programming practices" messages. Thanks to |
| | Jeremy Olexa <darkside@g.o> for the suggestion. |
| 13589 | Fix DepPriority.__int__() to return distinguishable values, |
| zmedico | for use when measuring hardness for the circular dependency |
| | display. This fixes a problem visible in bug #268038, |
| | comment #0, where buildtime dependencies are incorrectly |
| | displayed as runtime dependencies. |
svn path=/main/branches/prefix/; revision=13595
Fabian Groffen [Sat, 2 May 2009 09:30:11 +0000 (09:30 -0000)]
Merged from trunk -r13575:13580
| 13578 | Fix logic error which prevents repos.conf [DEFAULT] section |
| zmedico | from applying to repos that don't have their own section. |
| | Thanks to Markos Chandras <hwoarang@g.o> for reporting. |
| 13580 | Only generate KV when setting up the environment for a real |
| zmedico | ebuild phase. This should preven "Permission Denied: |
| | /usr/src/linux/.config" errors reported by repoman users |
| | (repoman may trigger the error when it calls the fetch |
| | phase). |
svn path=/main/branches/prefix/; revision=13594
Fabian Groffen [Sat, 2 May 2009 09:23:14 +0000 (09:23 -0000)]
Merged from trunk -r13563:13575
| 13565 | Fix _lazy_accept_license to discard || from the set of |
| zmedico | licenses. |
| 13567 | Bug #267104 - When appropriate, advise the user that they |
| zmedico | may set FEATURES= -userfetch in order to use remaining |
| | space. |
| 13569 | Move PORTAGE_RESTRICT calculation to config.setcpv() (lazy |
| zmedico | evaluation) and fix it to work correctly for pre-built |
| | packages. |
| 13570 | Enable use() qa checks via PORTAGE_IUSE for all ebuild |
| zmedico | phases and for binary packages since it should work fine |
| | now. |
| 13573 | In config.setcpv() reuse split USE from built packages |
| zmedico | instead of splitting them again. |
| 13575 | Remove unnecessary doebuild_environment() call from |
| zmedico | EbuildFetchonly.execute() since PORTAGE_RESTRICT is |
| | calculated by config.setcpv() now. |
svn path=/main/branches/prefix/; revision=13593
Fabian Groffen [Sat, 2 May 2009 09:20:39 +0000 (09:20 -0000)]
Merged from trunk -r13414:13563
| 13415 | Exclude 'backupenv' from config.configlist and lookuplist |
| zmedico | since it doesn't make size to have it in there when |
| | configdict['env'] already serves that purpose. This allows |
| | values to be temporarily removed from configdict['env'] and |
| | have them not appear in the environment until reset() is |
| | called to restore those values from the backupenv. |
| 13416 | In config.regenerate(), explicitly include self.backupenv |
| zmedico | when processing incrementals, since it's no longer included |
| | in self.configlist. |
| 13417 | Generate a pruned version of ACCEPT_LICENSE, by intersection |
| zmedico | with LICENSE. This is required since otherwise |
| | ACCEPT_LICENSE might be too big (bigger than ARG_MAX), |
| | causing execve() calls to fail with E2BIG errors as in bug |
| | #262647. |
| 13418 | In config.setcpv(), move the code that makes sure "pkg" |
| zmedico | values override "env" values _after_ the reset() call. |
| 13419 | Fix error in calculations from bug #267104. |
| zmedico | |
| 13560 | Fix ACCEPT_LICENSE handling for binary packages, so that the |
| zmedico | build-time USE settings are used calculate an appropriate |
| | ACCEPT_LICENSE value. |
| 13562 | Add note about repos.conf eclass overrides. |
| zmedico | |
| 13563 | Fix typo in version from previous commit. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13592
Fabian Groffen [Sat, 2 May 2009 09:18:01 +0000 (09:18 -0000)]
Merged from trunk -r13405:13414
| 13406 | Bug #267104 - If the statvfs f_bavail field shows |
| zmedico | insufficient free space and userfetch is not enabled, |
| | recalculate using the f_bfree field. |
| 13407 | Bug #267810 - Don't sort C/CXX/LDFLAGS in emerge --info |
| zmedico | output since these variables aren't really sortable in that |
| | way. |
| 13408 | Fix the code from bug #267104 to account non-root users. |
| zmedico | |
| 13409 | Bug #267860 - Make JobStatusDisplay respect |
| zmedico | FEATURES=notitles. |
| 13410 | Make xtermTitle() use a global variable to cache the result |
| zmedico | of the TERM check. |
| 13411 | Make EbuildWhitespace ignore here-documents. Thanks to Diego |
| zmedico | Pettenò <flameeyes@g.o> for reporting. |
| 13412 | Move the here-document code from the EbuildWhitespace check |
| zmedico | to the run_checks() function, so that all checks ignore the |
| | content of here-documents. |
| 13413 | Warn about sed and epatch calls which should be moved from |
| zmedico | src_unpack to src_prepare. Thanks to Markus Meier |
| | <maekke@g.o> for the initial patch. |
| 13414 | Clarify RESTRICT=bindist docs by referring to 'built' |
| zmedico | packages. Thanks to Thomas Sachau <tommy@g.o> for reporting. |
svn path=/main/branches/prefix/; revision=13591
Fabian Groffen [Sat, 2 May 2009 09:16:10 +0000 (09:16 -0000)]
Kill the dreaded mtree/chflags errors on FreeBSD, don't have it and don't want it in Prefix with non-root
svn path=/main/branches/prefix/; revision=13590
Fabian Groffen [Tue, 28 Apr 2009 19:03:01 +0000 (19:03 -0000)]
Merged from trunk -r13400:13404
| 13401 | Add a new EAPI.definition check for cases in which EAPI is |
| zmedico | defined after an inherit call. Thanks to Markus Meier |
| | <maekke@g.o> for the initial patch. |
| 13402 | fix e-mail munging and add see also section |
| SpankMan | |
| 13403 | Bug #71646 - Don't allow the HISTFILE variable into the |
| zmedico | ebuild environment since it triggers sandbox violations. |
| 13404 | Put ebuild helpers at the absolute front of the PATH. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13405
Fabian Groffen [Sun, 26 Apr 2009 15:51:56 +0000 (15:51 -0000)]
old code that hasn't been triggered for a while, metadata is in pkg nowadays, bug #267556
svn path=/main/branches/prefix/; revision=13400
Fabian Groffen [Sun, 26 Apr 2009 11:20:28 +0000 (11:20 -0000)]
remove more echos
svn path=/main/branches/prefix/; revision=13399
Fabian Groffen [Sun, 26 Apr 2009 11:15:05 +0000 (11:15 -0000)]
Revamped the entire buildsystem to become somewhat cleaner, at least more readable and faster. Still can't run make check after make, as we still only expand in the install phase. It needs excessive investments with incompatabilities with trunk to get this right.
svn path=/main/branches/prefix/; revision=13398
Fabian Groffen [Sat, 25 Apr 2009 11:06:17 +0000 (11:06 -0000)]
Remove --enable-just-compiled-sources, its implementation was commented
out anyway.
svn path=/main/branches/prefix/; revision=13397
Fabian Groffen [Sat, 25 Apr 2009 09:07:18 +0000 (09:07 -0000)]
- consistently use @PORTAGE_BASE@ instead of path
- fix for Prefix by not calling /bin/bash
- fix for Prefix by not defaulting to non-Prefixed paths
- fix second export PATH for Prefix, make note on difference with trunk
svn path=/main/branches/prefix/; revision=13396
Fabian Groffen [Sat, 25 Apr 2009 08:40:48 +0000 (08:40 -0000)]
Merged from trunk -r13387:13391
| 13388 | Set executable. |
| zmedico | |
| 13389 | Add dohard and doset helper which die for EAPI 3. TODO: Make |
| zmedico | the die helper use pipe or socket IPC instead of a signal, |
| | to avoid a potential race condition in signal delivery. |
| | Thanks to to Tiziano Müller <dev-zero@g.o> for the initial |
| | patch. |
| 13390 | Add dummy dosed and dohard functions for EAPI 3, so that a |
| zmedico | trace can be displayed (not possible with the helper |
| | binaries). |
| 13391 | Revert r13390 (dosed and dohard functions) since a stack |
| zmedico | trace isn't really important this particular QA feature. |
| | Thanks to Tiziano Müller <dev-zero@g.o> for the suggestion. |
svn path=/main/branches/prefix/; revision=13395
Fabian Groffen [Sat, 25 Apr 2009 08:38:51 +0000 (08:38 -0000)]
Merged from trunk -r13383:13387
| 13384 | Use declare -F to check existence of function definitions, |
| zmedico | instead of type -t, in order to avoid use of subshells. |
| 13385 | Remove ccache and distcc remove_path_entry code since PATH |
| zmedico | is always initialized from scratch so there's no danger of |
| | accumulation. |
| 13386 | Fix breakage in PREROOTPATH logic from the EAPI 3 code. |
| zmedico | |
| 13387 | Automatically define errno.ESTALE if it doesn't exist (like |
| zmedico | on interix). Thanks to Markus Duft <mduft@g.o> for |
| | reporting. |
svn path=/main/branches/prefix/; revision=13394
Fabian Groffen [Sat, 25 Apr 2009 08:37:23 +0000 (08:37 -0000)]
Merged from trunk -r13375:13383
| 13377 | When in --nodeps mode, make depgraph._serialize_tasks() |
| zmedico | preserve the package order given on the command line. Thanks |
| | to Markus Duft <mduft@g.o> for reporting. |
| 13378 | Clarify language in repos.conf reference to repoman and |
| zmedico | egencache. |
| 13379 | Exit unsuccessfully when in commit mode and nothing is found |
| zmedico | to commit. Thanks to Jeremy Olexa <darkside@g.o> for the |
| | suggestion. |
| 13380 | Add ${PORTAGE_BIN_PATH}/ebuild-helpers/3 directory to PATH |
| zmedico | for EAPI 3. Thanks to Tiziano Müller <dev-zero@g.o> for |
| | this patch. |
| 13381 | In ebuild_main(), unset ebuild_helpers_path when finished |
| zmedico | with it, since bash exposes local variables to 'children'. |
| 13382 | Add new dodoc implementation for EAPI 3. Thanks to to |
| zmedico | Tiziano Müller <dev-zero@g.o> for this patch. |
| 13383 | Use ret|=1 instead of ++ret, to avoid possible overflow. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13393
Fabian Groffen [Sat, 25 Apr 2009 08:35:39 +0000 (08:35 -0000)]
Merged from trunk -r13369:13375
| 13370 | Add notes about eclass precedence for metadata/layout.conf. |
| zmedico | |
| 13371 | Emphasize precedence of repos.conf over layout.conf. |
| zmedico | |
| 13372 | Tweak _eclasses_ logic inside action_metadata(). |
| zmedico | |
| 13373 | Add missing del when cleansing cache in action_metadata(). |
| zmedico | |
| 13374 | Drop from --ask to --pretend for uninstall all actions. |
| zmedico | |
| 13375 | Add note about 'use' in the Atom.intersects() docstring. |
| zmedico | |
svn path=/main/branches/prefix/; revision=13392
Fabian Groffen [Sun, 19 Apr 2009 07:15:02 +0000 (07:15 -0000)]
Merged from trunk -r13355:13366
| 13356 | Add support to emerge --metadata for transfering cache from |
| zmedico | overlays that have a metadata/cache directory. |
| 13357 | Use a new ProfileDesc class to handle the data for each |
| zmedico | profile listed in profiles.desc. |
| 13358 | Support use.desc from overlays. |
| zmedico | |
| 13359 | Support profiles.desc from overlays. |
| zmedico | |
| 13360 | Handle IOError from codecs.open(). |
| zmedico | |
| 13361 | If a repo doesn't have metadata/layout.conf then use either |
| zmedico | missing eclass directory or missing profiles/profiles.desc |
| | to trigger assignment of a default master. |
| 13362 | Fix default master code so that it doesn't trigger when |
| zmedico | PORTDIR is empty. |
| 13363 | Add a new --deselect action which removes atoms from the |
| zmedico | world file. This action is implied by uninstall actions, |
| | including --depclean, --prune and --unmerge. Use |
| | --deselect=n in order to prevent uninstall actions from |
| | removing atoms from the world file. This solves bug #259994 |
| | and bug #265206. |
| 13364 | Fix bugs in action_deselect() and add --pretend support. |
| zmedico | |
| 13365 | Add --ask support to action_deselect(). |
| zmedico | |
| 13366 | In action_deselect(), use the installed packages to expand |
| zmedico | atoms into slot atoms. |
svn path=/main/branches/prefix/; revision=13369
Fabian Groffen [Sun, 19 Apr 2009 07:12:23 +0000 (07:12 -0000)]
Merged from trunk -r13350:13355
| 13351 | Fix typo from previous commit. |
| zmedico | |
| 13352 | Add support for repos.conf 'aliases' attribute which allows |
| zmedico | alias substitution in metadata/layout.conf repository |
| | references. |
| 13353 | Bug #266493 - Never return a long from vercmp() since that |
| zmedico | can trigger an OverflowError if it's returned by a __cmp__ |
| | implementation. Thanks to Douglas Anderson <dja@gendja.com> |
| | for the initial patch. I've modified it to use the (a > b) - |
| | (a < b) construct as suggested in the py3k docs, since cmp() |
| | is no longer supported in py3k. |
| 13354 | Simplify pkgcmp(). Thanks to Douglas Anderson |
| zmedico | <dja@gendja.com> for this patch from bug #266493. |
| 13355 | Fix lockfile() docstring to correctly document the |
| zmedico | wantnewlockfile behavior. Thanks to Arfrever for reporting. |
svn path=/main/branches/prefix/; revision=13368
Fabian Groffen [Sun, 19 Apr 2009 07:05:16 +0000 (07:05 -0000)]
Merged from trunk -r13346:13350
| 13347 | Bug #266211 - Handle ESTALE like ENOENT in fetch and locking |
| zmedico | code. Thanks to Krzysztof Olędzki <ole+gentoo@ans.pl> for |
| | the initial patch. |
| 13348 | Bug #265909 - Make emerge display a warning message if any |
| zmedico | overlays are ignored due to duplicate profiles/repo_name |
| | entries. The warning can be disabled by setting |
| | PORTAGE_REPO_DUPLICATE_WARN=0 in /etc/make.conf. |
| 13349 | Call realpath(repodir) so it's conistent with the value that |
| zmedico | pordbapi uses. Thanks to Fabian Groffen <grobian@g.o> for |
| | reporting. |
| 13350 | Add support in repos.conf to override the "masters" setting |
| zmedico | from layout.conf. |
svn path=/main/branches/prefix/; revision=13367
Fabian Groffen [Wed, 15 Apr 2009 16:59:19 +0000 (16:59 -0000)]
Merged from trunk -r13339:13345
| 13340 | Create the myreporoot variable from portdir_overlay before |
| zmedico | doing realpath(portdir_overlay) since otherwise symlinks |
| | break the assumptions. Thanks to Thomas Sachau <tommy@g.o> |
| | for reporting and troubleshooting. |
| 13342 | Make portage.bsd_chflags correspond to FEATURES=chflags so |
| zmedico | that it can be used for related conditionals in shell code. |
| 13343 | Convert portage.bsd_chflags into a class with chflags() and |
| zmedico | lchflags() class methods. |
| 13344 | Split out an action_uninstall() function to handle argument |
| zmedico | validation for clean, depclean, prune, and unmerge actions. |
| 13345 | Add support in action_uninstall() for file -> package |
| zmedico | lookup. |
svn path=/main/branches/prefix/; revision=13346
Fabian Groffen [Mon, 13 Apr 2009 18:58:56 +0000 (18:58 -0000)]
don't use hardcoded /usr/bin/python
svn path=/main/branches/prefix/; revision=13341
Fabian Groffen [Sun, 12 Apr 2009 19:44:22 +0000 (19:44 -0000)]
Rearrange symlinks for usr/bin and usr/sbin to match portage-2.2_rc29 ebuild
svn path=/main/branches/prefix/; revision=13339
Fabian Groffen [Sun, 12 Apr 2009 19:03:00 +0000 (19:03 -0000)]
Merged from trunk -r13331:13335
| 13333 | Add a LibraryFileConsumerSet class that can be used to |
| zmedico | rebuild all packages that consume one or more given files. |
| | Note: This does not detect libtool archive (*.la) files that |
| | consume the specified files (revdep-rebuild is able to |
| | detect them). |
| 13334 | Add a note about dlopen and libtool archives in the |
| zmedico | LinkageMap.findConsumers() docstring. |
| 13335 | Ensure that the correct PORTDIR setting is passed into the |
| zmedico | profile-specific config constructors. |
svn path=/main/branches/prefix/; revision=13338
Fabian Groffen [Sun, 12 Apr 2009 17:47:15 +0000 (17:47 -0000)]
Merged from trunk -r13322:13331
| 13323 | Set local_config=False in config constructor calls, since |
| zmedico | egencache is similar to repoman in the way that it's used to |
| | distribute something to other users and thus site-specific |
| | local configuration is irrelevant. |
| 13324 | Move the /etc/portage categories and mirrors docs into |
| zmedico | alphabetical order. |
| 13325 | Bug #265747 - Add a new /etc/portage/repos.conf config file |
| zmedico | which can be used to configure site-specific eclass override |
| | behavior. Note that configuration settings which are |
| | specified here do not apply to tools such as repoman(1) and |
| | egencache(1) since their operations are inherently not |
| | site-specific. Beware that use of eclass-overrides is |
| | generally not recommended and that it may trigger |
| | performance issues under some circumstances (see bug |
| | #124041). Example: # make all repositories inherit eclasses |
| | from the java-overlay and # java-experimental repositories, |
| | with eclasses from java-experimental # taking precedence |
| | over those from java-overlay [DEFAULT] eclass-overrides = |
| | java-overlay java-experimental # disable all eclass |
| | overrides for the gentoo repository [gentoo] |
| | eclass-overrides = |
| 13326 | Pass the correct PORTDIR_OVERLAY value into the |
| zmedico | profile-specific config constructor calls. |
| 13327 | Inside the portdbapi constructor, handle repositories with |
| zmedico | the same repo_name by discarding the ones that were |
| | encountered earlier. |
| 13328 | Bug #265768 - When initializing the eclass cache, use the |
| zmedico | correct location. |
| 13329 | Bug #265768 - If the user happens to be using the |
| zmedico | metadata_overlay module then initialize it's eclass cache |
| | with an appropriate instance inside the portdbapi |
| | constructor. |
| 13330 | Add a note about egencache to the --regen docs. |
| zmedico | |
| 13331 | Bug #265768 - Handle CacheError when deleting currupt cache |
| zmedico | inside portdbapi._pull_valid_cache(). |
svn path=/main/branches/prefix/; revision=13337
Fabian Groffen [Sun, 12 Apr 2009 17:45:26 +0000 (17:45 -0000)]
remove prefix handling/parsing in eapi_is_supported, revert to trunk version
svn path=/main/branches/prefix/; revision=13336
Fabian Groffen [Sat, 11 Apr 2009 11:41:41 +0000 (11:41 -0000)]
Merged from trunk -r13313:13316
| 13314 | Filter virtuals when expanding atoms if it helps to avoid an |
| zmedico | ambiguity. |
| 13315 | Show an error message when deletion of stale cache fails. |
| zmedico | |
| 13316 | Avoid leaking some variables from ebuild_main() into the |
| zmedico | environment (local variables are exposed to 'children'). |
svn path=/main/branches/prefix/; revision=13322