Fabian Groffen [Tue, 15 Apr 2008 18:14:49 +0000 (18:14 -0000)]
Merged from trunk 9894:9906
| 9895 | Fix issues with an empty string being passed into |
| zmedico | PreservedLibsRegistry.register() now that COUNTER is not |
| | loaded via config.load_infodir(). Thanks to grobian for |
| | reporting. |
| 9896 | In config.setcpv() and regenerate(), replace |
| zmedico | str.startswith() calls with slice comparison. It's not |
| | pretty but performance is critical in this section of code |
| | and there is a measurable performance difference. |
| 9898 | Bug #217664 - Fix emerge 'by path' package argument handling |
| zmedico | so that Package instances are properly cached (avoiding a |
| | KeyError later). |
| 9900 | Revert part of atom selection consistency improvement from |
| zmedico | r9873 since it in some cases it triggers unresolvable direct |
| | circular dependencies. For example, this happens with |
| | gwydion-dylan which depends on either itself or |
| | gwydion-dylan-bin. In case gwydion-dylan is not yet |
| | installed, gwydion-dylan-bin needs to be selected in order |
| | to avoid a an unresolvable direct circular dependency. |
| 9901 | Add support to depgraph._select_atoms() to take a "parent" |
| zmedico | parameter and use that to try and avoid unresolvable direct |
| | circular dependencies when necessary. Also, make atom |
| | selection more consistent with the graph to solve some cases |
| | of bug #1343. This improves the fix from bug #141118 to work |
| | in cases when a virtual is not yet installed but it has been |
| | pulled into the graph. For example, see the case of in Bug |
| | #163801#c17, where we want kaffe to satisfy virtual/jdk-1.4 |
| | without an extra jvm being pulled in unnecessarily. |
| 9904 | Comment some more on the significance of passing the |
| zmedico | graph_db and parent into depgraph._select_atoms() to solve |
| | some cases of bug #1343 while avoiding unresolvable direct |
| | circular dependencies. |
| 9906 | The dependency resolver now has a feedback mechanism that |
| zmedico | helps make atom selections more consistent with previous |
| | selections that have been added to the graph. This solves |
| | some common cases of bug #1343. |
svn path=/main/branches/prefix/; revision=9909
Fabian Groffen [Tue, 15 Apr 2008 18:12:42 +0000 (18:12 -0000)]
revert -r9893:9894, zmedico checked in a correct fix
svn path=/main/branches/prefix/; revision=9908
Fabian Groffen [Mon, 14 Apr 2008 18:04:12 +0000 (18:04 -0000)]
In the absence of expertise: layman's fix for the following error:
File "pym/portage/dbapi/vartree.py", line 1189, in unmerge
plib_registry.unregister(self.mycpv, self.settings["SLOT"], self.settings["COUNTER"])
File "pym/portage/dbapi/vartree.py", line 100, in unregister
self.register(cpv, slot, counter, [])
File "pym/portage/dbapi/vartree.py", line 86, in register
and self._data[cps][0] == cpv and int(self._data[cps][1]) == int(counter):
ValueError: invalid literal for int() with base 10: ''
COUNTER appears to be empty quite often, in this case it is often and
called by some preserved-libs stuff. I just replace counter with an
explicit 0 in case counter == "".
svn path=/main/branches/prefix/; revision=9894
Fabian Groffen [Mon, 14 Apr 2008 17:49:59 +0000 (17:49 -0000)]
Merged from trunk 9869:9891
| 9870 | Make _dep_check_composite_db match() return multiple slots |
| zmedico | so that it behaves more like other dbapi instances would, |
| | and also make it inherit from dbapi. |
| 9871 | Fix _dep_check_composite_db.match() so that it doesn't |
| zmedico | exempt the highest slot from visibility checks. |
| 9872 | Fix the _dep_check_composite_db visibility filtering some |
| zmedico | more. |
| 9873 | Improve lookahead for new-style virtuals: * Substitue the |
| zmedico | graph tree for the vartree in dep_check() since we want atom |
| | selections to be consistent with package selections have |
| | already been made. * Add the selected package to the graph |
| | as soon as possible so that later dep_check() calls can use |
| | it as feedback for making more consistent atom selections. * |
| | Expand all slots of new-style virtuals inside |
| | _dep_check_composite_db so that lookahead examines a matched |
| | slots. This solves some cases of bug #1343, and extends the |
| | fix for bug #141118 to work in cases when a virtual is not |
| | yet installed but it has been pulled into the graph. |
| 9874 | To optimize consistency of atom selections, add all of the |
| zmedico | root packages to the graph before processing any |
| | dependencies. |
| 9879 | * For optimal atom selection, use PackageVirtualDbapi |
| zmedico | instances in place of the vardb for all dep_check() calls. * |
| | Replace dep_check_trees in depgraph.validate_blockers() with |
| | the equivalent self._graph_trees reference. |
| 9881 | Fix buggy logic in WorldSet.load() that causes it to discard |
| zmedico | all of it's atoms in some cases (leading to loss of the |
| | whole world file). |
| 9882 | Fix some more broken logic inside WorldSet.load(). |
| zmedico | |
| 9883 | s/timetasmp/timestamp/ |
| zmedico | |
| 9884 | Split out a depgraph._add_dep() method. |
| zmedico | |
| 9885 | Call depgraph._add_dep() to add package dependencies to the |
| zmedico | graph as soon as possible rather than pushing them onto the |
| | stack. |
| 9886 | Fix some breakage in the allow_unsatisfied handling. |
| zmedico | |
| 9890 | When regenerating USE_EXPAND in config.setcpv(), improve |
| zmedico | performance by using regular expression instead of |
| | str.startswith(). |
| 9891 | Revert back to using startwith because I screwed up my |
| zmedico | benchmark and it turns out starswith is faster than using |
| | regular expressions. |
svn path=/main/branches/prefix/; revision=9893
Fabian Groffen [Mon, 14 Apr 2008 17:48:19 +0000 (17:48 -0000)]
Merged from trunk 9865:9866
| 9866 | store sets in a different physical location than normal |
| genone | packages for 'world' (makes ferringb a bit happier, and might |
| | have other advantages in the future) |
This is a risky sync, as it requires Portage's ebuild to do the sets
split from world -> world_sets.
svn path=/main/branches/prefix/; revision=9892
Fabian Groffen [Sun, 13 Apr 2008 10:44:49 +0000 (10:44 -0000)]
Merged from trunk 9862:9865
| 9864 | Make movefile() tolerant to EPERM errors that can be raised |
| zmedico | from utime() calls. Instead of failing, use stat() to return |
| | the mtime if possible. |
| 9865 | Convert st_mtime to long for movefile() return type. |
| zmedico | |
svn path=/main/branches/prefix/; revision=9869
Fabian Groffen [Sun, 13 Apr 2008 09:42:21 +0000 (09:42 -0000)]
Merged from trunk 9831:9860
| 9832 | In config.setcpv() and load_infodir(), always set known good |
| zmedico | values for CATEGORY and PF, since corruption of these can |
| | cause problems. |
| 9834 | Remove all calls to config.load_infodir() since it doesn't |
| zmedico | seem to server any purpose now that the complete environment |
| | is loaded from environment.bz2. |
| 9835 | Remove unused infodir variable. |
| zmedico | |
| 9837 | Make doebuild() bail out early with a PermissionDenied error |
| zmedico | if there is no write access to $PKGDIR. |
| 9839 | When dep_check() expands new-style virtuals, use USE flags |
| zmedico | from aux_get calls to evaluate any conditionals that the |
| | depstrings might contain. This works properly for ebuilds |
| | now that aux_get() is backed by Package instances containing |
| | the correct USE. |
| 9840 | Fix the code from the previous commit so that it doesn't try |
| zmedico | to pull USE from a portdbapi instance (like when called by |
| | repoman) since portdbapi doesn't return USE in aux_get() |
| | calls. |
| 9842 | Fix 'undefined name' errors found by pyflakes. |
| zmedico | |
| 9844 | Make file_get() redirect FETCHCOMMAND output to stdout just |
| zmedico | like portage.fetch() does. Thanks to Ramereth for reporting. |
| 9846 | Rename the undocumented --conistent option to |
| zmedico | --complete-graph and add some docs. |
| 9848 | Add some notes for the parallel-fetch feature and the new |
| zmedico | --complete-graph option for emerge. |
| 9850 | Make binarytree.prevent_collision() adjust permissions on |
| zmedico | directories and raise a PermissionDenied error if the |
| | required directories is not writable. |
| 9852 | Bug #215016 - When transforming of USE flags to USE_EXPAND |
| zmedico | variables, filter out flags that aren't considered to be |
| | part of IUSE or implicit IUSE. This patch moves all IUSE |
| | dependent code from config.regenerate() to config.setcpv(). |
| 9854 | * Optimize config.setcpv() to return early if IUSE has not |
| zmedico | changed since the previous setcpv() call. * Add EBUILD_PHASE |
| | to the blacklisted variables list. |
| 9856 | Bug #217444 - Send debug-print() output to stderr so that it |
| zmedico | can't interfere with command substitution. Thanks to Fabio |
| | Rossi <rossi.f@inwind.it> for this patch. |
| 9858 | Fix the filtering for bug #215016: * fix broken comparison |
| zmedico | for he iuse filtering * filter out any duplicates that |
| | variable may contain |
| 9860 | In --buildpkgonly mode, don't discard RDEPEND and PDEPEND if |
| zmedico | --empty or --deep are enabled. The makes it possible to run |
| | `emerge -eB world` and have every single package rebuilt |
| | (without actually installing anything). |
svn path=/main/branches/prefix/; revision=9868
Fabian Groffen [Sun, 13 Apr 2008 08:12:26 +0000 (08:12 -0000)]
- use EPREFIX_LSTRIP constant instead of dynamic EPREFIX.lstrip(os.path.sep)
- avoid bug #217481 from happening, but don't fix it for real
by ignoring host-provided stuff on Darwin in this case, we also ignore
the Carbon Framework which preserve-libs tries to preserve, basically
because it selects its targets wrongly.
svn path=/main/branches/prefix/; revision=9867
Fabian Groffen [Fri, 11 Apr 2008 11:27:18 +0000 (11:27 -0000)]
Revert commit -r972{7,8} in Prefix. It indeed fixes bug #215242, but by
entirely disabling preserve-libs, which is undesirable for me.
svn path=/main/branches/prefix/; revision=9831
Fabian Groffen [Fri, 11 Apr 2008 10:59:35 +0000 (10:59 -0000)]
Implement sort of 'stub' for getlibpaths in Prefix. I'm still quite concerned that this is used, and actually not convinced that it makes sense at all.
svn path=/main/branches/prefix/; revision=9830
Fabian Groffen [Fri, 11 Apr 2008 10:13:26 +0000 (10:13 -0000)]
Merged from trunk 9814:9827
| 9815 | Bug #217122 - When waiting for a parallel-fetch download to |
| zmedico | complete, show a more friendly and informative message. |
| 9817 | Make the CHOST visibility check tolerant of missing CHOST |
| zmedico | metadata. |
| 9819 | Fix "pkg" variable name collisions in depgraph.display(). |
| zmedico | |
| 9821 | Rename variable pkg_cpv to pkg_str. |
| zmedico | |
| 9823 | Nest the DepcheckCompositeDB class inside the depgraph class |
| zmedico | since it's not intended for use elsewhere. |
| 9825 | Tweak --buildpkgonly and fakeroot logic so that |
| zmedico | --buildpkgonly can be used by a non-root user to build |
| | binary packages with fakeroot. |
| 9827 | Copy group mode bits from $PKGDIR when creating |
| zmedico | subdirectories. |
svn path=/main/branches/prefix/; revision=9829
Fabian Groffen [Thu, 10 Apr 2008 18:12:26 +0000 (18:12 -0000)]
fix the next backtrace
svn path=/main/branches/prefix/; revision=9812
Fabian Groffen [Thu, 10 Apr 2008 18:05:50 +0000 (18:05 -0000)]
Merged from trunk 9799:9810
| 9808 | Implement expansion of catgories in |
| zmedico | DepcheckCompositeDB.match() for old installed packages that |
| | may contain atoms that are not fully qualified. |
| 9810 | Remove an unused function. |
| zmedico | |
svn path=/main/branches/prefix/; revision=9811
Fabian Groffen [Thu, 10 Apr 2008 18:02:57 +0000 (18:02 -0000)]
Fix "!!! global name 'built' is not defined None" backtrace.
svn path=/main/branches/prefix/; revision=9809
Fabian Groffen [Thu, 10 Apr 2008 16:55:08 +0000 (16:55 -0000)]
Merged from trunk 9774:9799
| 9775 | Fix minor issues in the calculation of the number of parents |
| zmedico | omitted from the slot collision display. |
| 9777 | Fix the docstring for depgraph._dep_expand(). |
| zmedico | |
| 9779 | When checking atoms without categories against the installed |
| zmedico | packages, just check for existence of the cat/pn rather that |
| | a full match. |
| 9785 | Add some docs for the DepcheckCompositeDB class. |
| zmedico | |
| 9786 | Replace the fakdbapi class that is used to track depgraph |
| zmedico | state with a similar PackageVirtualDbapi class that uses |
| | Package instances internally. This eliminates some |
| | redundancy since the Package instances can be reused |
| | elsewhere, unlike the internal data structures used by |
| | fakedbapi. |
| 9787 | Improve used of cached Package instances in |
| zmedico | depgraph._select_pkg_from_graph(). |
| 9788 | Make FakeVartree use PackageVirtualDbapi instead of |
| zmedico | fakedbapi so that it can populate and utilize a cache of |
| | Package instances. |
| 9789 | * Make depclean/prune use cached Package instances for |
| zmedico | visibility checks. * Make FakeVartree wrap dbapi.match() to |
| | make sure the metadata in Package instances gets updated for |
| | any cpv that is returned from a match() call, since the |
| | metadata can be accessed directly from the Package instance |
| | instead of via aux_get(). |
| 9794 | Use cached Package instances in depgraph.display(). |
| zmedico | |
| 9797 | Make sure that everything except Package nodes is ignored |
| zmedico | when doing the --buildpkgonly digraph.hasallzeros() check. |
| 9799 | Iterate over a copy of the digraph nodes so that removal |
| zmedico | can't break the iterator. |
svn path=/main/branches/prefix/; revision=9807
Fabian Groffen [Thu, 10 Apr 2008 16:52:27 +0000 (16:52 -0000)]
Merged from trunk 9741:9774
| 9742 | When reading and writing the Packages index file, translate |
| zmedico | metadata keys on the fly. Current translations: DESC |
| | DESCRIPTION REPO repository |
| 9743 | For repoman, only cache the metadata necessary for |
| zmedico | visibility checks in order to reduce memory consumption. |
| 9744 | Remove unused iter_atoms() function. |
| zmedico | |
| 9745 | Remove the depgraph._get_arg_for_pkg() method since |
| zmedico | _iter_atoms_for_pkg() does the job. |
| 9747 | Fix a little issue in the code from bug #197905 that causes |
| zmedico | some elog messages to get lost. |
| 9755 | Fix --update greedy atoms logic so that it only pulls in |
| zmedico | packages that actually match the given atom. |
| 9756 | Bug #197810 - Don't automatically downgrade packages for |
| zmedico | which available matching versions are masked by corruption, |
| | but do automatically downgrade installed packages that |
| | themselves have a valid mask such as from package.mask. |
| 9759 | Bug #162542 - When checking permissions inside CCACHE_DIR |
| zmedico | for compatibility with FEATURES=userpriv, check the |
| | permissions on files inside the directory to decide whether |
| | to fix the permissions. |
| 9761 | Split out a depgraph method to check if a specific new-style |
| zmedico | virtual package exists. |
| 9762 | Make depgraph.select_files() detect when a package name |
| zmedico | given as an argument is ambiguous due to the existence of a |
| | new-style virtual with the same name (cpv_expand() will not |
| | always raise a ValueError in cases like this). |
| 9763 | Handle issues with newlines in elog messages that can |
| zmedico | trigger an unhandled ValueError to be raised from a split() |
| | call inside collect_ebuild_messages(): * Use \0 to delimit |
| | messages, so that that elog messages containing newlines are |
| | handled correctly. * Handle a potential ValueError when |
| | splitting the message type. |
| 9765 | Create a new depgraph._dep_expand() method for |
| zmedico | select_files() to expand atoms that have no category. |
| 9769 | When depgraph.select_files() expands an atom category, in |
| zmedico | case of an old-style virtual, defer category expansion so |
| | that the depgraph has more choices. |
| 9771 | Make DepcheckCompositeDB cache Package instances for |
| zmedico | aux_get() calls. |
| 9774 | When pruning the list of parents for the slot collision |
| zmedico | display, always show parents that themselves have been |
| | pulled into collision slots, since those are more relevant |
| | that others. (branches/2.1.2 r9773) |
svn path=/main/branches/prefix/; revision=9806
Fabian Groffen [Thu, 10 Apr 2008 16:50:06 +0000 (16:50 -0000)]
Merged from trunk 9725:9741
| 9726 | preserve order of ebuild messages even between different |
| genone | message types (bug #197905) |
| 9727 | * Use type -P which does not produce messages to stderr. |
| zmedico | another option is to redirect both stderr and out. * Avoid |
| | &> replace with > ... 2>&1 Thanks to Alon Bar-Lev for this |
| | patch. |
| 9728 | only preserve libraries if no copy exists in the libary |
| genone | search path (bug #215242) |
| 9729 | Fix the CompositDbapi.match() logic wrt "selective" behavior |
| zmedico | and installed packages so that it correctly handles false |
| | argument matches due to PROVIDE when a corresponding |
| | new-style virtual exists. |
| 9731 | Rename the CompositDbapi class to DepcheckCompositeDB since |
| zmedico | it's really a special pupose class just for dep_check() and |
| | it doesn't implement the full dbapi interface. |
| 9732 | Fix java.eclassesnotused logic. Thanks to Betelgeuse. |
| zmedico | |
| 9733 | In dump_trace(), fix BASH_ARGV and BASH_ARGC offsets so that |
| zmedico | they are always correct wrt eachother. Thanks to Betelgeuse |
| | for reporting. |
| 9734 | Fix BASH_ARGC and BASH_ARGV offsets some more. |
| zmedico | |
| 9735 | Fix DepcheckCompositeDB.match() so that it doesn't assume |
| zmedico | that every DependencyArg instance has an "atom" attribute. |
| 9736 | Fix variable name collision in DepcheckCompositeDB.match(). |
| zmedico | |
| 9737 | Move virtuals logic from DepcheckCompositeDB.match() to |
| zmedico | depgraph._iter_atoms_for_pkg() since it's more generally |
| | useful there. |
| 9738 | Move all the --update greedy slot logic to |
| zmedico | depgraph.select_files(). |
| 9739 | Fix broken IUSE defaults handling when filtering USE for the |
| zmedico | Packages file. |
| 9740 | Handle empty KEYWORDS in the Packages file. |
| zmedico | |
| 9741 | * Optimize metadata caching in pordbapi and bindbapi so that |
| zmedico | cache is never pulled for the same package twice. * Cache a |
| | Package instances constructed during package selection and |
| | reuse them during later package selections. |
svn path=/main/branches/prefix/; revision=9805
Fabian Groffen [Thu, 10 Apr 2008 16:44:23 +0000 (16:44 -0000)]
Merged from trunk 9697:9725
| 9699 | When the user has given --depclean a list of atoms to clean, |
| zmedico | pull all installed packages into the graph (not just those |
| | traversable from system or world) to ensure that packages |
| | can not be uninstalled unless nothing requires them. |
| 9700 | Fix a typo. |
| zmedico | |
| 9702 | Fix a typo in the depclean USE flag handling when populating |
| zmedico | the digraph for bug #201045. |
| 9705 | Display the note referencing "masked packages" docs when |
| zmedico | there are installed masked packages to display. |
| 9706 | Adjust newlines whitespace masked packages display. |
| zmedico | |
| 9708 | * In the event that a previously installed package has since |
| zmedico | been masked, emerge will no longer perform an automatic |
| | downgrade as part of a "world" update. You should either |
| | unmask such packages or else explicitly re-merge them in |
| | order to have them dowgraded to an unmasked version. |
| 9710 | Add missing "the" to fix grammar. |
| zmedico | |
| 9712 | In dbapi.move_ent(), never assume that any of the expected |
| zmedico | metadata entries exist (PF, CATEGORY, or *.ebuild). |
| 9713 | Replace the depgraph's fakedbapi of visible packages with a |
| zmedico | new CompositeDbapi that is implemented on top of the |
| | depgraph's existing package selection logic. |
| 9714 | Remove "selective" depgraph logic from dep_zapdeps() since |
| zmedico | it's now handled by CompositeDbapi. |
| 9715 | Memoize package selection results in the depgraph for better |
| zmedico | performance. |
| 9716 | Fix a typo. |
| zmedico | |
| 9717 | Fix the depgraph package selection cache to update the |
| zmedico | "existing node" state of packages if they've been added to |
| | the graph since the last call. |
| 9718 | Bug #216328 - Fix broken --newuse reinstallation logic. |
| zmedico | |
| 9720 | Handle a potential InvalidDependString exception inside |
| zmedico | CompositeDbapi.match(). |
| 9723 | When necessary, make quickpkg add missing metadata to the |
| zmedico | vdb entry before creating the binary package. |
| 9725 | Clarify --with-bdeps behavior with example. Thanks to |
| zmedico | Griffon26 for this patch. |
svn path=/main/branches/prefix/; revision=9804
Fabian Groffen [Thu, 10 Apr 2008 16:41:19 +0000 (16:41 -0000)]
Merged from trunk 9668:9697
| 9669 | Remove some boolean logic that is obsolete now that the |
| zmedico | "selective" parameter is passed into dep_zapdeps(). |
| 9672 | Use pkgcmp() instead of == and best() for correctness in |
| zmedico | case of implicit -r0. |
| 9674 | Bug #215673 - Make ebuild.sh leave IUSE defaults intact |
| zmedico | instead of filtering them out. The built_with_use() function |
| | in eutils.eclass needs to be updated for compatibility. |
| 9675 | Remove the digraph._parent_child_digraph since it's no |
| zmedico | longer needed. It's main purpose was to track PDEPEND |
| | relationships but those are handled just like the other deps |
| | now. |
| 9677 | Handle a potential FileNotFound exception in |
| zmedico | new_protect_filename() when the last ._cfg* file happens to |
| | be a broken symlink. Thanks to bonsaikitten for reporting. |
| 9678 | Eliminate a redundant os.path.join() call. |
| zmedico | |
| 9680 | Use Package.cp instead of dep_getkey(cpv). |
| zmedico | |
| 9681 | Fix the previous commit so that the Package instance is |
| zmedico | created in the correct scope. |
| 9683 | In cpv_expand(), if the virtuals file contains a versioned |
| zmedico | atom (like the base profile currently has for virtual/pam), |
| | properly remove the operator and version from the atom |
| | before it is passed into dbapi.cp_list(). |
| 9685 | For old-style virtuals, we need to repeat the |
| zmedico | package.provided check against the selected package. |
| 9687 | Implement a PORTAGE_FETCH_RESUME_MIN_SIZE variable that is |
| zmedico | useful for helping to ensure that small garbage files such |
| | as html 404 pages are properly discarded. |
| 9689 | If PORTAGE_FETCH_RESUME_MIN_SIZE is undefined or empty, |
| zmedico | silently use the default. |
| 9691 | Add missing str.upper() call for |
| zmedico | PORTAGE_FETCH_RESUME_MIN_SIZE. |
| 9693 | Fix package selection logic so that it always properly finds |
| zmedico | the highest available version in a new slot even though the |
| | graph already contains a matching version in a lower slot. |
| 9695 | Eliminate a redundant atom from the --update greedy slot |
| zmedico | expansion code. |
| 9696 | Add missing DepPriority instances to the graph so that the |
| zmedico | --buildpkgonly hasallzeros() calculation works correctly |
| | again. |
| 9697 | Decrease priority on --onlydpes dependencies so that |
| zmedico | --buildpkgonly hasallzeros() works correctly. |
svn path=/main/branches/prefix/; revision=9803
Fabian Groffen [Thu, 10 Apr 2008 12:53:50 +0000 (12:53 -0000)]
Fix a bug where hard links would cause imaginary paths due to not properly cleaning up
svn path=/main/branches/prefix/; revision=9801
Fabian Groffen [Tue, 1 Apr 2008 18:27:32 +0000 (18:27 -0000)]
Merged from trunk 9637:9665
| 9643 | Pass Package instances into visible() so that the package |
| zmedico | instance can be used to cache relevant visibility |
| | information such as whether or not the package is corrupt or |
| | otherwise invalid. |
| 9644 | Replace an package tuple with a real Package instance. |
| zmedico | |
| 9645 | Make depgraph creation more tolerant of missing or masked |
| zmedico | packages when the relevant deps are satisfied by installed |
| | packages. This kind of friendliness is especially desired in |
| | cases such as --emptytree where it might not be possible to |
| | reinstall every single package. Also, it allows multislot |
| | atoms from the world file (that are necessary to prevent |
| | them from being removed by depclean) trigger warning |
| | messages while still allowing a --emptytree to proceed. |
| 9646 | Bug #197810 - Fix package selection logic so that it will |
| zmedico | always fall back to an installed package when necessary. |
| 9648 | When selecting packages and there is a mixture of old-style |
| zmedico | and new-style virtual matches, filter out the old-style |
| | virtual matches. |
| 9650 | Remove some redundant and obsolete code for warning about |
| zmedico | installed packages pulled into the graph. |
| 9652 | Fix package selection logic to always properly reject the |
| zmedico | installed package when another is available and the user |
| | wants to reinstall. |
| 9654 | In the package selection loop, move the installed package |
| zmedico | rejection code as early as possible. |
| 9656 | When deps are forced to be satisfied by installed packages |
| zmedico | due to masking or unavailability, only tolerate it when the |
| | atom comes from either the system or world set since |
| | otherwise it's a good idea to bail so that the user can |
| | correct the problem. |
| 9658 | Bug #215308 - Cache the paths of known bad manifests to |
| zmedico | ensure that the same broken manifest is never checked twice. |
| 9660 | When identifying a sys-apps/portage node, compare category |
| zmedico | too (not just "portage". |
| 9662 | Handle missing LICENSE in the Packages index since that's |
| zmedico | allowed for virtual packages. |
| 9665 | Exploid ascending order returned from dbapi.match() calls to |
| zmedico | avoid the need to call best(). |
svn path=/main/branches/prefix/; revision=9668
Fabian Groffen [Tue, 1 Apr 2008 18:22:48 +0000 (18:22 -0000)]
Merged from trunk 9619:9637
| 9621 | Move the AUTOCLEAN code into dblink.treewalk since it's |
| zmedico | already partially supported there anyway (for replacement of |
| | identical cpv). This has the benefit of guaranteeing that |
| | the order of installation and removal phases is always the |
| | same. |
| 9623 | Bug #211365 - Use catpkgsplit() instead of pkgsplit() for a |
| zmedico | cpv. |
| 9625 | Bug #211365 - Use catpkgsplit() instead of pkgsplit() for a |
| zmedico | cpv. |
| 9628 | Make doins clean up it's own temp files. This solves an odd |
| zmedico | issue in dyn_package() when portage 2.1.x is installing |
| | portage-2.2 and temp python module files from doins are |
| | imported instead of the expected ones. |
| 9630 | Fix display code that can triger a 'Invalid category' |
| zmedico | exception when it is given a blocker. It's only supposed to |
| | execute for normal packages. |
| 9632 | Fix typos. Thanks to Arfrever Frehtes Taifersar Arahesis |
| zmedico | <Arfrever.FTA@GMail.Com>. |
| 9634 | * Fix broken return value for doins. * Make newins cleanup |
| zmedico | temp files after itself. |
| 9636 | Make sure the all resume lists are deleted when a stale one |
| zmedico | is encountered. |
| 9637 | When dblink.treewalk() queries for other packages in the |
| zmedico | same slot, filter out old-style virtual matches since they |
| | are not desired. |
svn path=/main/branches/prefix/; revision=9667
Fabian Groffen [Tue, 1 Apr 2008 18:13:57 +0000 (18:13 -0000)]
Merged from trunk 9583:9619
| 9584 | Bug #214691 - Move the "slot collision" display so that it |
| zmedico | is shown after the merge list where it is most likely to be |
| | seen (along with other depgraph problems). |
| 9585 | Add a new "java.eclassesnotused" check for cases where |
| zmedico | DEPEND contains virtual/jdk and and the appropriate java |
| | eclass has not been inherited (a violation of the java |
| | team's policy). Thanks to Betelgeuse for the initial patch. |
| 9586 | Don't trigger the 'java.eclassesnotused' on blocker atoms. |
| zmedico | |
| 9587 | Add a new "ebuild.patches" check for the PATCHES variable |
| zmedico | that's used by base_src_unpack() from base.eclass. This |
| | generates a warning if the variable is not defined as an |
| | array, since this is required for white space safety. Thanks |
| | to Betelgeuse for the initial patch. |
| 9588 | Bug #215240 - Use an alarm signal to implement a 60 second |
| zmedico | timeout in finalize() in case send_mail() blocks |
| | indefinitely. |
| 9589 | When a resume list contains packages that are no longer |
| zmedico | available, automatically delete it. |
| 9590 | Fix quoting for ${root} in install_mask(). |
| zmedico | |
| 9591 | Add a note about PKG_INSTALL_MASK. |
| zmedico | |
| 9592 | Bug #214619 - Run dyn_package() and preinst_mask() from ${T} |
| zmedico | instead of ${D} in order to avoid leaving gmon.out files in |
| | ${D} in case any tools were built with -pf in CFLAGS. Also, |
| | call preinst_mask() after all other functions so that |
| | INSTALL_MASK can be used to wipe out any gmon.out files |
| | created during previous functions. |
| 9606 | When dyn_unpack() automatically cleans ${WORKDIR}, also |
| zmedico | remove things like .unpacked and .compiled so that the state |
| | is consistent. |
| 9607 | Bug #215308 - Simplify the greedy atoms logic so that it |
| zmedico | behaves more like StaticFileSet and won't pull in lower |
| | slots. |
| 9611 | For bugs #197810 and #215308, pass the depgraph's |
| zmedico | "selective" parameter down into dep_check() for better atom |
| | preference selection when handling virtuals and other |
| | disjunctive || dependencies. (branches/2.1.2 r9610) |
| 9613 | Use enumerate() it iterate over an array. |
| zmedico | |
| 9615 | Bug #211365 - Use catpkgsplit() instead of pkgsplit() for a |
| zmedico | cpv. |
| 9616 | Make code a bit less prone to potentially hidden TypeError |
| zmedico | like bugs. |
| 9619 | Do not allow commit mode together with the --without-mask |
| zmedico | options. |
svn path=/main/branches/prefix/; revision=9666
Fabian Groffen [Fri, 28 Mar 2008 21:25:26 +0000 (21:25 -0000)]
Merged from trunk 9509:9538
| 9510 | Support ${HOST} substitution in "From" field. Thanks to |
| zmedico | wschlich. |
| 9511 | Move the default empty compiler flag settings from ebuild.sh |
| zmedico | to make.globals (bug #214499). |
| 9512 | Bug #214879 - In fetch(), only parse the Manifest when |
| zmedico | FEATURES=strict is enabled. |
| 9513 | Make --noreplace take precedence over --newuse, as suggested |
| zmedico | by wolf31o2. |
| 9514 | Fix the noreplace logic to break out of the cpv loop early |
| zmedico | since there's no point in examining any lower versions from |
| | the same repo. |
| 9519 | Bug #214879 - Fix FEATURES=-strict behavior so that |
| zmedico | distfiles digests are always checked. |
| 9520 | Bug #212509 - Implement a new --without-mask option that |
| zmedico | causes repoman to behave as if there are no package.mask |
| | entries. |
| 9521 | Bug #212509 - Display a note about the --without-mask option |
| zmedico | when there are masked packages. |
| 9522 | Bug #209418 - Add a new KEYWORDS.dropped check that compares |
| zmedico | keywords against the keywords of earlier ebuild versions |
| | within a slot. |
| 9523 | Remove redundant info from the KEYWORDS.dropped message. |
| zmedico | |
| 9524 | Bug #213629 - Create an EAPI.incompatible category and use |
| zmedico | it in cases where EAPI=0 and a slot atom is encountered. |
| 9525 | Bug #213629 - Use EAPI.incompatible in cases where EAPI=0 |
| zmedico | and a default IUSE is encountered. |
| 9526 | Bug #213698 - Make FEAUTURES=keepwork and keeptemp preserve |
| zmedico | ${T}/environment since it may contain essential state. |
| 9527 | Make dyn_clean() consistent wrt removal of |
| zmedico | ${PORTAGE_BUILDDIR}/image and ${PORTAGE_BUILDDIR}/.installed |
| | since otherwise with FEATURES=keepwork dyn_install() will |
| | not call src_install() as necessary to repopulate |
| | ${PORTAGE_BUILDDIR}/image (resulting in install_qa_check |
| | failure due to absence of ${PORTAGE_BUILDDIR}/image). |
| 9528 | Bug #214619 - Add support for a PORTAGE_BINPKG_TAR_OPTS |
| zmedico | variable that allows the user to specify tar command options |
| | for binary package creation. |
| 9537 | Disable tarsync when using lzma compression since it doesn't |
| zmedico | seem to be supported. |
| 9538 | * Skip the recusive chown call if it fails on the top level |
| zmedico | directory since it's possible that emerge-webrsync is not |
| | run by root. * Just chown to portage:portage instead of |
| | using PORTAGE_INST_{UID,GID}. Prefix: use PORTAGE_USER and |
| | PORTAGE_GROUP instead. |
svn path=/main/branches/prefix/; revision=9583
Fabian Groffen [Fri, 28 Mar 2008 21:18:04 +0000 (21:18 -0000)]
Fix cause of bug #215116. Properly read input from scanelf such that we don't interpret rpath info as needed info
svn path=/main/branches/prefix/; revision=9582
Fabian Groffen [Tue, 25 Mar 2008 20:55:55 +0000 (20:55 -0000)]
Nuke eselect compiler usage, since eselect compiler has been nuked from the tree a while ago. Should probably be merged with the trunk.
svn path=/main/branches/prefix/; revision=9509
Fabian Groffen [Tue, 25 Mar 2008 20:33:41 +0000 (20:33 -0000)]
Merged from trunk 9501:9507
| 9502 | Check is os.statvfs() is implemented before trying to us it. |
| zmedico | (branches/prefix r9500) |
| 9503 | Bug #214499 - When compiler flags are unset, many packages |
| zmedico | will substitute their own implicit flags. For uniformity, |
| | use an empty string as the default. |
| 9504 | Bug #211294 - Make repoman bail out if arch.list contains |
| zmedico | unrecognized lines since we don't want people to commit with |
| | old versions of portage that don't support the current |
| | arch.list format. |
| 9505 | Bug #212152 - Account pre-existing files when calculating |
| zmedico | whether there is enough space for a download. |
| 9506 | Fix typo. |
| zmedico | |
| 9507 | Bug #212621 - Make the EbuildQuote check do quoting |
| zmedico | validation for misc variables from games.eclass. |
svn path=/main/branches/prefix/; revision=9508
Fabian Groffen [Mon, 24 Mar 2008 15:09:50 +0000 (15:09 -0000)]
Merged from trunk 9494:9496
| 9495 | Fix depgraph._select_package() to make sure the installed |
| zmedico | package is a real match before rejecting other available |
| | packages. |
| 9496 | Improve logic from the previous commit. |
| zmedico | |
svn path=/main/branches/prefix/; revision=9501
Fabian Groffen [Mon, 24 Mar 2008 14:36:16 +0000 (14:36 -0000)]
Before using statvfs, check it is actually available on the current host (OS). This commit is eligable for merging with the trunk
svn path=/main/branches/prefix/; revision=9500
Fabian Groffen [Mon, 24 Mar 2008 09:58:07 +0000 (09:58 -0000)]
It took some time for me to figure this out, but yay!
Fix preserve-libs immediately unmerging a just preserved (copied over)
lib, because it is no longer needed (!needed).
The problem was/is that the Darwin library naming is
lib<name>.<ver>.dylib instead of lib<name>.so.<ver>. This results in
doing a simple sort() over the list a wrong order of the files, such
that the actual file (libneon.27.1.11.dylib) is seen before it's "soname"
symlink, which is recorded in the reverse NEEDED map. Result, the code
thinks libneon.27.1.11.dylib is no longer needed, and unmerges it.
I now implemented a naive comparator which puts symlinks on top, as this
was implied order for the loop, which by coincidence works for .so
objects with sort().
I think this commit (or an improved version of it) is eligable for
merging in the trunk, as it is a safer (and more explicit) way of
ensuring that symlinks are seen before the actual files.
svn path=/main/branches/prefix/; revision=9499
Fabian Groffen [Sun, 23 Mar 2008 23:19:09 +0000 (23:19 -0000)]
It helps when you reference a correct object, this fix is eligable for merging to trunk
svn path=/main/branches/prefix/; revision=9498
Fabian Groffen [Sun, 23 Mar 2008 22:31:57 +0000 (22:31 -0000)]
Genone's preserve-libs is a bit Linux/ELF tuned, make sure the keys of the reverse map contain basenames only, so we get a little bit more functioning on Darwin.
svn path=/main/branches/prefix/; revision=9497
Fabian Groffen [Thu, 20 Mar 2008 20:54:58 +0000 (20:54 -0000)]
I was too enthusiastic with adding dashes
svn path=/main/branches/prefix/; revision=9494
Fabian Groffen [Thu, 20 Mar 2008 20:44:13 +0000 (20:44 -0000)]
Align root user flag with portage user flag
svn path=/main/branches/prefix/; revision=9493
Fabian Groffen [Thu, 20 Mar 2008 20:32:23 +0000 (20:32 -0000)]
Merged from trunk 9468:9491
| 9469 | add a placeholder for repository paths in 'filename' and |
| genone | 'directory' options for StaticFileSet |
| 9470 | avoid importing portage to improve performance |
| genone | |
| 9471 | When in strict mode, make paren_reduce() detect missing |
| zmedico | whitespace around parenthesis tokens and raise an |
| | InvalidDependString exception. Strict mode is not enabled |
| | when handling installed packages, so this will only affect |
| | repoman and packages that haven't been installed yet. Thanks |
| | to zlin for reporting. |
| 9472 | Bug #213540 - Make sure DESTTREE=/usr is set before inherit |
| zmedico | calls. |
| 9473 | Bug #213592 - Fix --onlydeps breakage. |
| zmedico | |
| 9474 | Bug #212882 - For compatibility with ENOENT exceptions |
| zmedico | raised from fstat calls with CIFS, wrap fstat calls with an |
| | appropriate exception handler. |
| 9475 | Bug #174634 - Fix ebuild 'digest' and 'manifest' behave 100% |
| zmedico | identically and update the docs to reflect this. |
| 9476 | Bug #149745 - Generate an eqawarn message if dohtml is |
| zmedico | called on a directory without the recursive option. Thanks |
| | to brad walker <bradmwalker@cableone.net> for reporting. |
| 9477 | use a dict with CP keys in unmerge() to avoid double |
| genone | unmerges if a package is matched by multiple atoms |
| 9478 | fix artifact from r9477 |
| genone | |
| 9479 | add @ to the list of invalid atom chars so sets with prefix |
| genone | aren't considered as atoms accidentally |
| 9480 | add unmerge protection for packages still referenced by |
| genone | installed package sets |
| 9481 | make filesets non-greedy by default |
| genone | |
| 9482 | Bug #139023 - When the --digest option is enabled, advise |
| zmedico | the user that `repoman manifest` is the preferred way to |
| | generate manifests. |
| 9483 | Bug #201045 - Fix unmerge() to preserve unmerge order so |
| zmedico | that dependencies are respected. Also, eliminate duplicate |
| | package selections since the same package may be selected by |
| | multiple atoms but we can only unmerge it once. |
| 9484 | Only show the eqawarn from bug #149745 when nothing is found |
| zmedico | to install. Also, exit successfully unless nothing is found |
| | to install. |
| 9485 | Bug #210575 - Optimize doins -r so that it doesn't call |
| zmedico | itself recursively, since it's faster to handle the |
| | recursion internally. Thanks to Benedikt Böhm |
| | <hollow@gentoo.org> for the initial patch. |
| 9486 | Bug #210690 - Fix --help output to show the leading slash on |
| zmedico | the path to the world file. |
| 9487 | Strip trailing slashes from directory paths if necessary. |
| zmedico | |
| 9488 | display versions of other slots for new-slot installs (bug |
| genone | #213790) |
| 9489 | Fix quoting. |
| zmedico | |
| 9491 | readd digestentry.unused category as it's still relevant |
| genone | |
svn path=/main/branches/prefix/; revision=9492
Fabian Groffen [Sat, 15 Mar 2008 10:26:36 +0000 (10:26 -0000)]
Merged from trunk 9461:9467
| 9462 | * Optimize parallel-fetch to avoid redundant checksum |
| zmedico | verification. * Add parallel-fetch to the default FEATURES |
| | since it is more efficient now. |
| 9463 | Bug #42456 - When a checksum failure occurs during fetch, |
| zmedico | use a new PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS config variable |
| | to control how many mirrors should be tried before aborting |
| | the download. This type of behavior used to be enabled only |
| | in --fetchonly mode but now it's enabled for all fetch() |
| | calls. |
| 9466 | Fix grammar. |
| zmedico | |
| 9467 | Fix an UnboundLocalError for 'pkgindex'. |
| zmedico | |
svn path=/main/branches/prefix/; revision=9468
Fabian Groffen [Thu, 13 Mar 2008 18:12:17 +0000 (18:12 -0000)]
Merged from trunk 9450:9460
| 9451 | Make --prune and --depclean operate with missing |
| zmedico | dependencies when only asked to remove specific packages |
| | since it's relatively safe in this case. |
| 9452 | Convert PackageIndex.packages from a dict to a list so that |
| zmedico | in the future it will be possible to support multiple |
| | packages with the same cpv. |
| 9453 | Make readpkgindex() and writepkgindex() private methods of |
| zmedico | PackageIndex. |
| 9455 | add some status messages, try to copy the tarball into |
| genone | DISTDIR, use getopt for option parsing |
| 9456 | Fix var_assign_re to recognize a call to the 'declare' |
| zmedico | builtin even when no options are given. |
| 9457 | When all available ebuilds are masked, avoid producing |
| zmedico | warning message when the package does not need to be |
| | reinstalled and the installed version is not masked. |
| 9458 | Bug #212882 - Fix lockfile() to handle errno.EACCES raised |
| zmedico | from the fcntl call since the spec says that it's equivalent |
| | to EAGAIN and it appears that CIFS returns EACCES in this |
| | case. |
| 9459 | - news bugfix from ferringb |
| solar | |
| 9460 | Make strip_empty() return a nedw list instead of working |
| zmedico | in-place. Thanks to René Neumann <rene.neumann@necoro.net> |
| | for the suggestion. |
svn path=/main/branches/prefix/; revision=9461
Fabian Groffen [Fri, 7 Mar 2008 20:16:47 +0000 (20:16 -0000)]
Merged from trunk 9428:9448
| 9429 | Bug #211949 - Fix the regex so that it won't match the = |
| zmedico | character (equals sign). |
| 9431 | Add support for idendification of function definitions since |
| zmedico | it's needed in some cases in order to prevent some odd |
| | function contents from being mistakenly identified as |
| | invalid variable assignments. For example, this line from |
| | _gcc-specs-directive_raw() is commonly found in |
| | environment.bz2 files: $1=="*"directive":" { pspec=spec; |
| | spec=""; outside=0; next } |
| 9432 | Bug #211949 - Temporarily revert back to a less strict regex |
| zmedico | in order to avoid false positives with multi-line variable |
| | definitions that can be produced by the 'export' builtin. |
| 9433 | Tighten the funct_start_re so that it doesn't match leading |
| zmedico | whitespace since that's not needed. |
| 9434 | Fix func_start_re so that it requires at least one |
| zmedico | alphanumeric character. |
| 9435 | Remove redundant CUSTOM_PROFILE_PATH from the PROFILE_PATHS |
| zmedico | variable so that /etc/portage/profile/profile.bashrc will |
| | only be sourced once if it exists. |
| 9436 | Implement variable assignment handling in python so that we |
| zmedico | can eventually make it more flexible and robust. |
| 9437 | Update description to reflect the new meaning of the PATTERN |
| zmedico | argument. |
| 9438 | TODO: Move variable name validation and declare -r filtering |
| zmedico | into filter-bash-environment.py. |
| 9439 | As requested by wolf31o2, use the ROOT setting from |
| zmedico | make.conf as long as it's not overridden by the calling |
| | environment. |
| 9440 | Handle multi-line quoted variable assignments. |
| zmedico | |
| 9441 | Bug #211949 - Tighten the variable name filter to exclude |
| zmedico | any variables with names containing any non-alphanumeric |
| | characters. |
| 9442 | Fix have_end_quote() to compare the quote against the |
| zmedico | correct group. |
| 9443 | Pass a space-separated list of variables into |
| zmedico | filter-bash-environment.py and generate the final regex on |
| | the python side instead of in bash. Also, properly anchor |
| | the regex so that it actually works. |
| 9444 | Update the description to reflect the new meaning of |
| zmedico | PATTERN. |
| 9445 | Move the variable name validation regexes (for bug 211949) |
| zmedico | into filter-bash-environment.py instead of passing them in |
| | from bash. |
| 9446 | Implement the sed-based declare -r filter in python. |
| zmedico | |
| 9447 | Remove egrep syntax emulation since it's not really needed. |
| zmedico | |
| 9448 | Use os.environ["SANDBOX_ON"] = "0" to make portageq exempt |
| zmedico | from sandbox for things like writing metadata cache. Thanks |
| | to ferringb for the suggestion. |
svn path=/main/branches/prefix/; revision=9450
Fabian Groffen [Fri, 7 Mar 2008 20:13:48 +0000 (20:13 -0000)]
Merged from trunk 9405:9428
| 9406 | undo registrations of preserved libraries if the merge |
| genone | fails, bug #210501 |
| 9407 | ensure that global variables are used to prevent confusing |
| genone | issues like bug #212055 |
| 9408 | stack use flags from package.use for multiple matching atoms |
| genone | (bug #200385) |
| 9409 | remove FEATURES=livecvsportage |
| genone | |
| 9410 | apply r9408 also for profile-base package.*use* files |
| genone | |
| 9411 | Fix typo. |
| zmedico | |
| 9412 | change stacking order of r9408 so more specific atoms |
| genone | override generic ones |
| 9413 | fix indentation screwup from r9412 |
| genone | |
| 9414 | one more fix to restore correct order for usemask/useforce |
| genone | |
| 9415 | Make profile stacking of default USE and package.* slightly |
| zmedico | more efficient by skipping list.insert() calls when |
| | possible. |
| 9416 | Bug #211949 - As suggested by vapier, tighten the variable |
| zmedico | filter to also exclude variable names that begin with a |
| | digit or that contain any non-alphanumeric characters that |
| | are not be supported by bash. |
| 9418 | Quote the file path and uri inside FETCHCOMMAND and |
| zmedico | RESUMECOMMAND. Thanks to igli for suggesting. |
| 9419 | Fix the regex for bug #211949 so that it correctly matches |
| zmedico | variable names that contain more than one non-alphanumeric |
| | character. |
| 9421 | Bug #211949 - Tweak the regex so that a leading whitespace |
| zmedico | character cannot match the required non-alphanumeric group. |
| 9423 | Buf #210372 - Fix FEATURES=suidctl so that it really works |
| zmedico | again. |
| 9425 | check available space in DISTDIR before trying to fetch/copy |
| genone | a file, bug #212152 |
| 9426 | don't list files as being merged when they are ignored due |
| genone | to confmem, bug #212080 |
| 9427 | fix message on ValueError to not sound like crap |
| genone | |
| 9428 | tell rpmbuild to clean it's working files after completion, |
| genone | bug #97776 |
svn path=/main/branches/prefix/; revision=9449
Fabian Groffen [Sat, 1 Mar 2008 17:55:34 +0000 (17:55 -0000)]
Add xterm-color and interix as legal termins such that title setting by Portage works on those terminals. For interix, bug #211875, thanks Markus Duft
svn path=/main/branches/prefix/; revision=9405
Fabian Groffen [Sat, 1 Mar 2008 17:36:46 +0000 (17:36 -0000)]
Merged from trunk 9386:9402
| 9387 | Bug #211554 - Replace references to config["USE"] with |
| zmedico | references to config["PORTAGE_USE"] (which is filtered for |
| | intersection with IUSE) so that dependency calculations at |
| | installation time are consistent with those at depclean |
| | time. |
| 9388 | Don't filter USE flags in emerge --info output. |
| zmedico | |
| 9389 | Bug #211294 - Make repoman ignore profiles labeled with |
| zmedico | anything other than "stable" or "dev" in profiles.desc so |
| | that we can extend it with new labels such as "exp". |
| 9391 | Revert r9387 (the fix for bug #211554) until I figure out |
| zmedico | why it's messing up USE calculations for world updates. |
| 9392 | Bug #211554 - Replace references to config["USE"] with |
| zmedico | references to config["PORTAGE_USE"] (which is filtered for |
| | intersection with IUSE) so that dependency calculations at |
| | installation time are consistent with those at depclean |
| | time. |
| 9393 | Fix some references to config["PORTAGE_USE"] to prevent |
| zmedico | potential KeyErrors. |
| 9394 | separate different messages with newlines in post-emerge |
| genone | output |
| 9395 | remove obsolete information from preserve-libs post-emerge |
| genone | message |
| 9397 | supress stupid line echo in deprecation notices |
| genone | |
| 9398 | remove code for manifest1 support |
| genone | |
| 9399 | In the suidctl code, move the addwrite call out of the loop. |
| zmedico | Thanks to ferringb. |
| 9400 | Make 'import portage' statements more tolerant to broken |
| zmedico | source statements in make.conf since exceptions thrown |
| | during 'import portage' statements can practically render |
| | the api unusable for api consumers. Thanks to lxnay for the |
| | suggestion. |
| 9402 | Bug #211949 - Make filter_readonly_variables() remove any |
| zmedico | variables with names containing a hyphen since bash does not |
| | allow them. |
svn path=/main/branches/prefix/; revision=9404
Fabian Groffen [Tue, 26 Feb 2008 08:25:02 +0000 (08:25 -0000)]
Merged from trunk 9383:9385
| 9384 | Bug #211365 - Use catpkgsplit() instead of pkgsplit() on the |
| zmedico | cpv in the dblink constructor since otherwise weird |
| | categories containing numbers can make pkgsplit() return |
| | None (likely related to version regex handling). |
| | (branches/2.1.2 r9383) |
| 9385 | For depclean/prune unmerge order, if there are no |
| zmedico | dependencies between package then just unmerge them |
| | alphabetically. |
svn path=/main/branches/prefix/; revision=9386
Fabian Groffen [Mon, 25 Feb 2008 16:38:02 +0000 (16:38 -0000)]
Merged from trunk 9380:9381
| 9381 | Double import, thanks grobian :) |
| WarnerBro | |
svn path=/main/branches/prefix/; revision=9382
Fabian Groffen [Sun, 24 Feb 2008 09:43:50 +0000 (09:43 -0000)]
Another getstatusoutput without 'commands.'
svn path=/main/branches/prefix/; revision=9380
Fabian Groffen [Sun, 24 Feb 2008 09:34:00 +0000 (09:34 -0000)]
Merged from trunk 9376:9377
| 9377 | Various repoman fixes, plus a weird lockfile tracekback in |
| WarnerBro | news. |
svn path=/main/branches/prefix/; revision=9379
Fabian Groffen [Sun, 24 Feb 2008 09:31:23 +0000 (09:31 -0000)]
Align visible() with get_masking_status() as per zmedico's comment in bug #209538
svn path=/main/branches/prefix/; revision=9378
Fabian Groffen [Sun, 24 Feb 2008 00:09:42 +0000 (00:09 -0000)]
getstatusoutput comes from commands
svn path=/main/branches/prefix/; revision=9376
Fabian Groffen [Sat, 23 Feb 2008 23:46:25 +0000 (23:46 -0000)]
Merged from trunk 9351:9372
| 9352 | Revert back to some known working code from the 2.1.2 |
| zmedico | branch. |
| 9353 | Use parse_use_local_desc() from the repoman.utilities |
| zmedico | module. |
| 9354 | Make PreservedLibsRegistry.store() use atomic_ofstream so |
| zmedico | that we don't lose the whole registry if an error such as |
| | 'out of space' occurs. |
| 9355 | Bug #210372 - Fix suidctl.conf parser to look for paths |
| zmedico | with a leading slash. |
| 9357 | Bug #210449 - Reset exeinto(), docinto(), insinto(), and |
| zmedico | into() state variables in case the user is running the |
| | install phase multiple times consecutively via the ebuild |
| | command. |
| 9358 | - outsource logic for boolean options into a central |
| genone | function - enable support for greedy behavior in |
| | StaticFileSet |
| 9359 | For greedy slot behavior, in addition to any installed |
| zmedico | slots also try to pull in the latest new slot that may be |
| | available. |
| 9360 | When showing an unsatisfied dep, never include installed |
| zmedico | packages. |
| 9361 | Make stack_dicts() treat an empty variable assignment just |
| zmedico | like a non-empty assignment. This allows the profile to set |
| | and empty variable in make.defaults and have it override a |
| | non-empty value as one would expect. |
| 9362 | In the circular dependency display, drop PDEPEND (aka |
| zmedico | MEDIUM_SOFT) from the graph so there's less noise. |
| 9363 | Optimize dblink.isowner() to use fewer stat calls by doing |
| zmedico | a basename comparison to try and eliminate the file before |
| | resorting to inode comparison. This speeds up the `portageq |
| | owners` command as well as the search that is done when |
| | collision-protect finds a collision. |
| 9364 | Make LibraryPackageMap.update() sort the contents of the |
| zmedico | library_consumers cache so that it's nice and orderly. |
| 9365 | Bug #211067 - Make the "portdir_overlay" and "mydir" |
| zmedico | variables contain paths that are consistent wrt eachother |
| | regardless of any path irregularities that can be induced |
| | by symlinks. Consistency is achieved by regenerating one of |
| | the paths to ensure that both paths have the exact same |
| | mapping between inodes and paths. This consistency ensures |
| | that the path manipulations used to calculate "repolevel" |
| | will work as intended. |
| 9367 | Add support for file paths as arguments to emerge. If an |
| zmedico | argument starts with / and it's not recognized as a tbz2 or |
| | ebuild then we try to find and owner in the vdb and |
| | generate a slot atom from it. Thanks to solar for the |
| | suggestion. |
| 9368 | Revert portdbapi category auto-detection code since it's |
| zmedico | not really needed and can cause problems if we need to add |
| | new non-category directories in the future. We only really |
| | need the category auto-detection for bindbapi and vardbapi |
| | anyway. |
| 9369 | cleanup main option parsing |
| SpankMan | |
| 9370 | tighten up output from script |
| SpankMan | |
| 9371 | add support for lzma/gz snapshots |
| SpankMan | |
| 9372 | only try to fetch compression schemes which the host |
| SpankMan | supports |
svn path=/main/branches/prefix/; revision=9375
Fabian Groffen [Sat, 23 Feb 2008 23:37:49 +0000 (23:37 -0000)]
Merged from trunk 9335:9351
| 9336 | Fix package selection logic in order to prevent downgrade in |
| zmedico | cases when selective is True and the currently installed |
| | version does not have a matching ebuild in the tree. For |
| | example, this type of situation is likely to occur if the |
| | user somehow obtains a binary package that has a newer |
| | version than any of the ebuilds in the portage tree. If |
| | package maintainers want to encourage a downgrade in a case |
| | like this then they should use package.mask so that the user |
| | receives a warning about the installed package being masked. |
| 9337 | Fix --newuse reinstall logic broken by the previous commit. |
| zmedico | |
| 9338 | Update the DepPriority documentation so that the table shows |
| zmedico | all the currently supported priorities and categories. |
| 9339 | Bug #201045 - Use a topological sort to create an unmerge |
| zmedico | order such that each package is unmerged before it's |
| | dependencies. This is necessary to avoid breaking things |
| | that may need to run during pkg_prerm or pkg_postrm phases. |
| 9340 | Make depclean code filter out blocker atoms where |
| zmedico | appropriate. |
| 9341 | Fix depclean breakage so that it doesn't clean some packages |
| zmedico | that shouldn't be cleaned. |
| 9342 | Add missing % x (bug #208946, comment #2). |
| zmedico | |
| 9343 | Fix reversed order of parent/child parameders to |
| zmedico | digraph.add(). |
| 9344 | Remove IUSE.invalid from qawarnings since there's no reason |
| zmedico | for it not to be fatal. Thanks to Betelgeuse. |
| 9345 | In the action_depclean() topological sort, only add packages |
| zmedico | to the graph if they are being removed. |
| 9346 | Bug #201045 - Make unmerge() preserve the unmerge order of |
| zmedico | packages given to it by the user or depclean. |
| 9347 | Make sure all packages to be pruned or depcleaned are added |
| zmedico | to the graph, even when they don't have any dependencies. |
| 9348 | Now that unmerge() preserves the order that it's given, if |
| zmedico | two different slots of the same package are being unmerged |
| | then they are not necessarily unmerged consecutively. To |
| | make the display less confusing, never display packages as |
| | "protected" or "omitted" when they actually belong to the |
| | overall set of "selected" packages to be unmerged. |
| 9349 | Fix unmerge() breakage from due to pkgmap being changed from |
| zmedico | a dict to a list. |
| 9350 | Fix the --depclean/--prune code to use visible() for |
| zmedico | visibility checks instead of the old portdbapi hack. |
| 9351 | Make LibraryConsumerSet.mapPathsToAtoms() produce slot atoms |
| zmedico | so that atoms aren't restricted to the currently installed |
| | version, making upgrades possible. |
svn path=/main/branches/prefix/; revision=9374
Fabian Groffen [Sat, 23 Feb 2008 23:33:46 +0000 (23:33 -0000)]
Merged from trunk 9300:9333
| 9301 | Bug #208708 - Show informative warning messages for |
| zmedico | installed packages that are masked. |
| 9307 | removing obsolete cruft |
| genone | |
| 9308 | new script for creating release tarballs |
| genone | (Deleted in Prefix as we have a working tarball.sh) |
| 9309 | minor documentation updates |
| genone | |
| 9310 | more minor doc updates regarding package sets |
| genone | |
| 9311 | add preserve-libs info to make.conf.example |
| genone | |
| 9312 | add tagging capabilities and cli options |
| genone | |
| 9313 | Bug #208743 - Update dosed docs to indicate that |
| zmedico | "s:${D}::g" is used as the default expression if none |
| | other is given. |
| 9316 | fix nasty typo |
| genone | (Prefix already had most of this fix) |
| 9318 | Fix get_mask_info() to properly pass the "installed" |
| zmedico | attribute into the Package constructor. |
| 9320 | Fix the exitcode logic for bug #209144 so that when the |
| zmedico | server is out of date it's not interpreted like an actual |
| | rsync exitcode (to avoid a misleading exitcode |
| | interpretation message). |
| 9321 | Bug #209144 - For emerge --sync, show an informative error |
| zmedico | and don't return 1 when PORTAGE_RSYNC_RETRIES is exceeded. |
| 9324 | Fix CHOST masking logic wrt installed packages so that |
| zmedico | it's consistent between visible() and |
| | get_masking_status(). |
| 9326 | Fix rejects. |
| zmedico | |
| 9327 | Remove the killparent() function and associated SIGINT |
| zmedico | trap since this should already be handled on the python |
| | side and it won't work with dropped privileges anyway. |
| 9328 | fix more trivial issues breaking repoman |
| genone | |
| 9330 | Bug #209538 - Disable annoying "masked by keyword" |
| zmedico | warnings for installed packages. We can assume that if the |
| | user accepted the keywords at merge time then they never |
| | want to be bothered again. |
| 9332 | Add bits about namespace pollution, add whitespacing |
| WarnerBro | comments after looking at some new code I wrote and |
| | realizing I was not following the current style. Fix typos |
| 9333 | Bug #209768 - Fix --search "Size of files:" handling so |
| zmedico | that it properly shows the "Unknown (missing digest)" |
| | message instead of a traceback. |
svn path=/main/branches/prefix/; revision=9373
Fabian Groffen [Fri, 8 Feb 2008 16:00:54 +0000 (16:00 -0000)]
Merged from trunk 9280:9299
| 9281 | Bug #155993 - Update environment.bz2 after postinst in case |
| zmedico | installation phases need to pass some variables to |
| | uninstallation phases. |
| 9283 | Bug #209144 - For emerge --sync, don't return 0 when the |
| zmedico | server is out of date. |
| 9285 | Bug #208782 - Consistently use double quotes rather than |
| zmedico | mixining in single quotes. |
| 9287 | Bug #208743 - Clarify dosed docs to indicate that sed is |
| zmedico | performed in place of a file in ${D}. |
| 9289 | Bug #208708 - Fix warnings for system or world packages that |
| zmedico | are masked. |
| 9290 | Add DISTDIR to the EbuildQuote.var_names. Thanks to |
| zmedico | Betelgeuse. |
| 9292 | Don't show unmasked packages (currently installed packages) |
| zmedico | in the masking display. |
| 9293 | Bug #208708 - Fix masked package display some more: - Warn |
| zmedico | if all matching ebuilds are masked or the installed package |
| | itself is masked. - Do not warn if there are simply no |
| | matching ebuilds since that would be annoying in some cases. |
| 9299 | Fix some broken variable references found by pyflakes. |
| zmedico | |
svn path=/main/branches/prefix/; revision=9300
Fabian Groffen [Wed, 6 Feb 2008 22:26:20 +0000 (22:26 -0000)]
Merged from trunk 9274:9279
| 9275 | don't record internal providers in NEEDED records as they |
| genone | are pointless for all useful applications in portage and |
| | complicate them instead (e.g. bug #205531) |
| 9276 | display errors that occured during package set initalization |
| genone | |
| 9277 | don't try to copy manually removed libraries (bug #208946) |
| genone | |
| 9278 | Make qa_source and qa_call save the return value and return |
| zmedico | it. Thanks to igli for suggesting. |
| 9279 | For the useq() IUSE qa check, use [[ $u =~ $PORTAGE_IUSE ]] |
| zmedico | instead of egrep since apparently it's compatible in this |
| | case. Thanks to igli for this. |
svn path=/main/branches/prefix/; revision=9280
Fabian Groffen [Tue, 5 Feb 2008 18:01:06 +0000 (18:01 -0000)]
Merged from trunk 9272:9273
| 9273 | Use local time for elog summaries |
| genone | |
svn path=/main/branches/prefix/; revision=9274
Fabian Groffen [Fri, 1 Feb 2008 22:22:20 +0000 (22:22 -0000)]
Variables work pretty bad between subshells, so use a file instead
svn path=/main/branches/prefix/; revision=9271
Fabian Groffen [Fri, 1 Feb 2008 21:42:05 +0000 (21:42 -0000)]
Save full paths for needed objects on Darwin, and store prefixed path as well
svn path=/main/branches/prefix/; revision=9270
Fabian Groffen [Fri, 1 Feb 2008 21:37:05 +0000 (21:37 -0000)]
Store the true path instead of the unprefixed path, such that the paths in NEEDED match what's in CONTENTS, thanks vapier
svn path=/main/branches/prefix/; revision=9269
Fabian Groffen [Fri, 1 Feb 2008 19:33:43 +0000 (19:33 -0000)]
Merged from trunk 9234:9264
| 9235 | - Remove ebuild.autotools repoman check since it produces |
| zmedico | lots of false positives (bug #207104) and its hard to parse |
| | bash - Use QA_INTERCEPTORS in ebuild.sh to implement a |
| | runtime 'QA Notice' when autotools is called directly |
| 9236 | Remove the last traces of the ebuild.autotools check. |
| zmedico | |
| 9238 | * Bug #205966 - Don't show binhost password when displaying |
| zmedico | the uri. * Fix a cpv variable name typo. |
| 9241 | Add 'local' to the list of non_category_dirs since it's |
| zmedico | commonly used for layman overlays. |
| 9249 | Make the autotools.eclass functions exempt from the |
| zmedico | autotools QA Notice. |
| 9252 | Unconditionally disable manifest1 compatibility since it's |
| zmedico | been dropped from the main tree and nobody needs it anymore. |
| 9254 | Disable manifest1_compat for ebuild --force digest. |
| zmedico | |
| 9256 | Bug #205718 - Fix quoting of ${INSTALL_MASK} where |
| zmedico | appropriate. Thanks to Ed Catmur <ed@catmur.co.uk> for this |
| | patch. |
| 9258 | Make the manifest1_compat constructor parameter default to |
| zmedico | False to prevent potential interference from stale old |
| | digest files in overlays. |
| 9260 | Remove the manifest1 digest filter from PORTAGE_RSYNC_OPTS |
| zmedico | since it's no longer needed. |
| 9262 | Remove the manifest1 digest file removal code since it's no |
| zmedico | longer needed. |
| 9264 | portage-2.1.4.1 ================================== * If you |
| zmedico | have an overlay then you should remove **/files/digest-* |
| | files (Manifest1) because they are no longer supported. * If |
| | earlier versions of portage will be used to generate |
| | manifests for your overlay then you should add a file named |
| | manifest1_obsolete to the root of the repository in order to |
| | disable generation of the Manifest1 digest files. |
svn path=/main/branches/prefix/; revision=9268
Fabian Groffen [Fri, 1 Feb 2008 19:25:49 +0000 (19:25 -0000)]
First shot at storing NEEDED info for Darwin hosts. We simulate the scanelf output to the max, by stripping of (valuable) path information and storing the filenames of the dynamic libs only.
svn path=/main/branches/prefix/; revision=9267
Fabian Groffen [Wed, 30 Jan 2008 19:56:30 +0000 (19:56 -0000)]
Fix two small issues
svn path=/main/branches/prefix/; revision=9233
Fabian Groffen [Wed, 30 Jan 2008 19:45:49 +0000 (19:45 -0000)]
de-typo
svn path=/main/branches/prefix/; revision=9232
Fabian Groffen [Wed, 30 Jan 2008 19:28:08 +0000 (19:28 -0000)]
Merged from trunk 9225:9227
| 9226 | Pull more functions out of repoman proper and into |
| WarnerBro | repoman.utilities |
| 9227 | Pull more functions out of repoman proper and into |
| WarnerBro | repoman.utilities, correct a typo, clean up imports |
svn path=/main/branches/prefix/; revision=9231
Fabian Groffen [Wed, 30 Jan 2008 18:18:48 +0000 (18:18 -0000)]
Merged from trunk 9224:9225
| 9225 | import ordering, prevent errors from mucking up module |
| WarnerBro | namespace in checks, fix typo from last commit, rename 'm' |
| | to autotools_match, fix spacing between classes |
svn path=/main/branches/prefix/; revision=9229
Fabian Groffen [Wed, 30 Jan 2008 18:13:29 +0000 (18:13 -0000)]
This commit should probably be merged into the trunk.
Fix a bug in preserve libs backtracing.
Issue: copy2 raised an error because the destination path didn't exist
Cause: os.path.join was used with absolute paths on the 2nd arguments,
which results in not a join, but the 2nd argument only.
Result: the os.path.exists/makedirs was only called based on the
existing installation (x), causing no directory ever to be made in the
image dir. Because x is absolute the join always returned x, hence when
preserve libs was run for a lib in a dir not yet existing in the image
it bailed out.
I caught this issue on FreeBSD when upgrading binutils from
18.whatever.2 to 18.whatever.3, when preserve libs tried to preserve
libopcodes.18.whatever.2.so which is in a directory 18.whatever.2,
whereas only 18.whatever.3 existed.
svn path=/main/branches/prefix/; revision=9228
Fabian Groffen [Sun, 27 Jan 2008 09:37:10 +0000 (09:37 -0000)]
Merged from trunk 9219:9222
| 9220 | Bug #206772 - Enable bashrc once again for the clean |
| zmedico | phase. |
| 9221 | Move random functions out of repoman and into utilties.py |
| WarnerBro | |
| 9222 | Restore desktop.invalid as a warning; was an intergration |
| WarnerBro | error |
svn path=/main/branches/prefix/; revision=9224
Fabian Groffen [Sun, 27 Jan 2008 09:29:43 +0000 (09:29 -0000)]
Move paths to the bottom, be more dense and print ${S} as it's often necessary when a package fails
svn path=/main/branches/prefix/; revision=9223
Fabian Groffen [Mon, 21 Jan 2008 19:43:18 +0000 (19:43 -0000)]
Merged from trunk 9215:9217
| 9216 | Replace the current diefunc() and die alias with a single |
| zmedico | die() function. The previous arguments to diefunc() weren't |
| | used anyway. The result is that the die message looks better |
| | because it doesn't show the alias and all of it's arguments |
| | which are totally irrelevant. (branches/prefix r9212) |
| 9217 | We need to implement diefunc() since environment.bz2 files |
| zmedico | contain calls to it (due to alias expansion). |
svn path=/main/branches/prefix/; revision=9219
Fabian Groffen [Sun, 20 Jan 2008 21:03:57 +0000 (21:03 -0000)]
Haubi is with us now, sort by name
svn path=/main/branches/prefix/; revision=9215
Fabian Groffen [Sun, 20 Jan 2008 19:51:10 +0000 (19:51 -0000)]
Merged from trunk 9208:9209
| 9209 | Add a note that PORTDIR is a repository of software and |
| WarnerBro | that users should not add random directories in it. |
svn path=/main/branches/prefix/; revision=9214
Fabian Groffen [Sun, 20 Jan 2008 19:05:05 +0000 (19:05 -0000)]
Change the die func to produce a readable message where the actual die message isn't hidden away between many other messages that don't add much. This commit is based on my and others in #gentoo-alt their taste, so may very well not be eligable for merging in the trunk.
svn path=/main/branches/prefix/; revision=9213
Fabian Groffen [Sun, 20 Jan 2008 19:01:26 +0000 (19:01 -0000)]
Get rid of die alias to diefunc, since diefunc does nothing with the first three arguments that the die alias inserts. This commit /might/ be merged in the trunk.
svn path=/main/branches/prefix/; revision=9212
Fabian Groffen [Sun, 20 Jan 2008 18:58:37 +0000 (18:58 -0000)]
Only calculate the space (width) for functions/line numbers that are actually going to be printed in the stack. This commit is eligable for merging in the trunk.
svn path=/main/branches/prefix/; revision=9211
Fabian Groffen [Sat, 19 Jan 2008 12:44:51 +0000 (12:44 -0000)]
Add support for svn+https:// and svn:// schemes
svn path=/main/branches/prefix/; revision=9208
Fabian Groffen [Sat, 19 Jan 2008 10:46:59 +0000 (10:46 -0000)]
Merged from trunk 9205:9206
| 9206 | Check for quoted ${A}. Thanks to maekke for this patch. |
| zmedico | |
svn path=/main/branches/prefix/; revision=9207
Fabian Groffen [Sun, 13 Jan 2008 12:23:38 +0000 (12:23 -0000)]
Fix inter-revision code that apparently has never been triggered before, all comparisons were done using floats in pkgcmp...
svn path=/main/branches/prefix/; revision=9205
Fabian Groffen [Sun, 13 Jan 2008 12:04:35 +0000 (12:04 -0000)]
Fix the regexp with regard to detecting inter-revisions
svn path=/main/branches/prefix/; revision=9204
Fabian Groffen [Sun, 13 Jan 2008 11:07:32 +0000 (11:07 -0000)]
Merged from trunk 9179:9201
| 9184 | Fix a typo. |
| zmedico | |
| 9186 | Adjust the max DESCRIPTION.toolong length to 100 |
| zmedico | characters so that it's not too small and only about 3% of |
| | packages will trigger it. |
| 9188 | Bug #205318 - Handle errno.ENOTDIR thrown from the lstat |
| zmedico | call inside dblink._security_check(). |
| 9190 | Bug #203887 - Make repoman recognize |
| zmedico | RESTRICT="installsources". |
| 9192 | Replace hardcoded value with max_desc_len. |
| zmedico | |
| 9194 | In preprocess_ebuild_env(), move a |
| zmedico | filter_readonly_variables call out of a subshell since |
| | FreeBSD and prefix users have reported apparent corruption |
| | of the PATH environment variable that triggers calls to |
| | the wrong version of sed (one that does not support the -r |
| | option). An example of what users have observed: >>> |
| | Source compiled. sed: illegal option -- r usage: sed |
| | script [-Ealn] [-i extension] [file ...] sed [-Ealn] [-i |
| | extension] [-e script] ... [-f script_file] ... [file ...] |
| | Traceback (most recent call last): File |
| | "/usr/lib/portage/bin/filter-bash-environment.py", line |
| | 51, in compile_egrep_pattern(args[0]), file_in, file_out) |
| | File "/usr/lib/portage/bin/filter-bash-environment.py", |
| | line 34, in filter_bash_environment file_out.write(line) |
| | IOError: [Errno 32] Broken pipe |
| 9195 | Remove redundant return statement. |
| zmedico | |
| 9197 | Add some notes about enhancements related to binary |
| zmedico | package support that's now in 2.1.4. |
| 9200 | style fixes (imports), add support for --version (bug |
| WarnerBro | 138159) |
| 9201 | fix typo in emerge-webrsync from r9118 |
| WarnerBro | |
svn path=/main/branches/prefix/; revision=9203
Fabian Groffen [Sun, 13 Jan 2008 11:05:32 +0000 (11:05 -0000)]
Merged from trunk 9159:9179
| 9160 | Bug #162542 - When dropping privileges for |
| zmedico | FEATURES=userpriv, automatically detect permission problems |
| | with CCACHE_DIR and recursively adjust permissions only when |
| | necessary. |
| 9162 | Bug#204668 - Fix WORKDIR quoting in econf() when updating |
| zmedico | config.guess and config.sub. |
| 9163 | Bug #204425 - Remove --delete-after from the default |
| zmedico | PORTAGE_RSYNC_OPTS. This allows the rsync program to choose |
| | the preferred --delete algorithm, or the user can choose one |
| | via PORTAGE_RSYNC_EXTRA_OPTS. |
| 9164 | Make sure that portdb.findname() returns the correct ebuild. |
| zmedico | |
| 9165 | Fix the "Appending to PORTDIR_OVERLAY..." feature which was |
| zmedico | broken by the previous commit. |
| 9166 | Bug #203316 - Fix isvalidatom() to properly detect invalid |
| zmedico | operators used together with slot atoms. Thanks to Arfrever |
| | Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com> for the |
| | patch. |
| 9167 | Bug #203887 - Implement RESTRICT=installsources for binaries |
| zmedico | that are not compatible with debugedit. |
| 9176 | Bug #162450 - Try to avoid having so many bugs marked |
| zmedico | UPSTREAM by encouraging users to report 'poor programming |
| | practices' QA issues upstream and show them the $HOMEPAGE |
| | for convenience. |
| 9177 | Add a DESCRIPTION.toolong warning for when the DESCRIPTION |
| zmedico | line is over 80 characters long. Thanks to Betelgeuse for |
| | the patch. |
| 9178 | * Make pkgcmp() pass the ebuild revision directly into |
| zmedico | vercmp() since there is code there to handle it already. |
| | This eliminates some redundant revision comparison code. |
| | Thanks to peper for the patch. * Add some vercmp() test |
| | cases for comparison of ebuild revisions. |
| 9179 | Add a new "ebuild.autotools" check for when ebuilds call |
| zmedico | autotools directly instead of using autotools.eclass. Thanks |
| | to Betelgeuse for the initial patch. |
svn path=/main/branches/prefix/; revision=9202
Fabian Groffen [Tue, 8 Jan 2008 17:09:54 +0000 (17:09 -0000)]
Merged from trunk 9154:9158
| 9155 | Bug #204753 - Add "distfiles" and "packages" to the list of |
| zmedico | non-category directories. |
| 9157 | When spawing the "depend" phase, use file descriptors from |
| zmedico | sys.std* streams. |
| 9158 | After loading the environment, make sure the color variables |
| zmedico | are in sync with the current NOCOLOR setting. |
svn path=/main/branches/prefix/; revision=9159
Fabian Groffen [Mon, 7 Jan 2008 20:59:07 +0000 (20:59 -0000)]
Merged from trunk 9150:9151
| 9151 | Bug #204651 - Make repoman respect NOCOLOR=true. |
| zmedico | |
svn path=/main/branches/prefix/; revision=9154
Fabian Groffen [Mon, 7 Jan 2008 20:56:54 +0000 (20:56 -0000)]
When installing a binpkg make sure we record our own prefix, not the one of the binpkg, as we adjusted the package accordingly. (rebinpkging should work, though not really sensible)
svn path=/main/branches/prefix/; revision=9153
Fabian Groffen [Sat, 5 Jan 2008 22:34:14 +0000 (22:34 -0000)]
Merged from trunk 9143:9147
| 9144 | per bug 204468, remove old check from repoman (all ebuilds |
| WarnerBro | in gentoo-x86 are migrated). |
| 9145 | Filter PATH along with FEATURES when loading |
| zmedico | environment.bz2. |
| 9147 | Make filter_readonly_variables() filter PATH in any case |
| zmedico | since we never want to save of reload it. |
svn path=/main/branches/prefix/; revision=9150
Fabian Groffen [Sat, 5 Jan 2008 22:32:51 +0000 (22:32 -0000)]
Fix a bug where we would get a stat failure on dead symlinks. (should
have used lstat all over the place)
Optimise performance by removing two needless stat calls.
svn path=/main/branches/prefix/; revision=9149
Fabian Groffen [Sat, 5 Jan 2008 13:49:22 +0000 (13:49 -0000)]
Merged from trunk 9139:9140
| 9140 | Send eerror and ewarn messages to stderr. This is important |
| zmedico | in case somebody calls portageq inside a global scope |
| | command substitution. The output needs to go to stderr so |
| | that the die message from the subshell is visible. |
svn path=/main/branches/prefix/; revision=9143
Fabian Groffen [Sat, 5 Jan 2008 13:44:18 +0000 (13:44 -0000)]
Implemented support for restoring hardlinks in chpathtool.
svn path=/main/branches/prefix/; revision=9142
Fabian Groffen [Thu, 3 Jan 2008 18:56:57 +0000 (18:56 -0000)]
Merged from trunk 9134:9137
| 9135 | Bug #204020 - Make grabfile() properly raise |
| zmedico | PermissionDenied when appropriate instead of silently |
| | ignoring permission errors. |
| 9137 | Recognize export statements when filtering the environment. |
| zmedico | This is needed for compatibility with environment.bz2 files |
| | generated by paludis. |
svn path=/main/branches/prefix/; revision=9139
Fabian Groffen [Wed, 2 Jan 2008 11:18:26 +0000 (11:18 -0000)]
Hundreds of die messages suck and completely jungle up the terminal, and actually obstruct the cause, use a file to 'talk' between parent and sub-processes
svn path=/main/branches/prefix/; revision=9134
Fabian Groffen [Tue, 1 Jan 2008 22:06:30 +0000 (22:06 -0000)]
Python doesn't like me, and I don't like Python
svn path=/main/branches/prefix/; revision=9133
Fabian Groffen [Tue, 1 Jan 2008 21:55:01 +0000 (21:55 -0000)]
Merged from trunk 9125:9128
| 9126 | Fix config.setcpv() to properly call config.regenerate() in |
| zmedico | cases when USE needs to be regenerated due to FEATURES=test |
| | to USE=test mapping. |
| 9128 | When searching for "test" in IUSE, account for IUSE |
| zmedico | defaults. |
svn path=/main/branches/prefix/; revision=9132
Fabian Groffen [Tue, 1 Jan 2008 21:53:02 +0000 (21:53 -0000)]
Ignore relative install_names. Since it's hard to figure out what the executable would be (for a lib) we can't easily check it, and hence ignore it for now.
svn path=/main/branches/prefix/; revision=9131
Fabian Groffen [Sun, 30 Dec 2007 19:16:00 +0000 (19:16 -0000)]
Zac's USERLAND guessing yields in big problems for Prefix. Prefix users
/always/ have a GNU userland. I could reliably make this the case in
portage/data.py. In isolated-functions.sh I couldn't. It looks strange
to me it's being set there as well.
I personally hope that USERLAND can go away some day. Prefix could
cater for this in the current FreeBSD case, by simply having an
alternative EPREFIX for a number of packages that Portage needs (bash,
coreutils, findutils, sed, gawk ...).
svn path=/main/branches/prefix/; revision=9125
Fabian Groffen [Sun, 30 Dec 2007 17:19:05 +0000 (17:19 -0000)]
Merged from trunk 9094:9118
| 9096 | Move XARGS initialization from portage.data to |
| zmedico | isolated-functions.sh. |
| 9097 | Move XARGS initialization from portage.data to |
| zmedico | isolated-functions.sh. |
| 9099 | Remove redundant lchown() compatibility code since the |
| zmedico | getattr(os, "lchown", None) call already handles it. |
| 9100 | Simplify the userland detection code in portage.data and add |
| zmedico | a bash version of it to isolated-functions.sh. |
| 9101 | Add back support for silent definition of the dummy lchown() |
| zmedico | function when ostype == Darwin. |
| 9103 | Remove redundant USERLAND sanity check code from doebuild() |
| zmedico | since it's handled in isolated-functions.sh now. |
| 9105 | Make the global counter file correspond to the total number |
| zmedico | of installation actions that have occurred in the history of |
| | this package database. |
| 9107 | Rely on USERLAND since it's automatically generated by |
| zmedico | isolated-functions.sh when necessary. |
| 9109 | Document that docinto works for dohtml. |
| zmedico | |
| 9111 | Make the ecompressdir vecho output show a leading / on the |
| zmedico | directory path. Thanks to armin76. |
| 9112 | Fix handling of leading / charactes some more. |
| zmedico | |
| 9114 | Add PKGDIR to the config.environ() whitelist so that |
| zmedico | people's bashrc's don't break. |
| 9116 | Fix broken Darwin USERLAND detection. |
| zmedico | |
| 9117 | Fix USERLAND references to handle Darwin like BSD. |
| zmedico | |
| 9118 | As suggested by grobian, treat Darwin just like USERLAND=gnu |
| zmedico | since they seem to be switching commands to gnu anyway. |
svn path=/main/branches/prefix/; revision=9124
Fabian Groffen [Sun, 30 Dec 2007 17:08:29 +0000 (17:08 -0000)]
Merged from trunk 9063:9094
| 9064 | Fixes for logic related to FEATURES=test to USE=test |
| zmedico | mapping: * Add EBUILD_FORCE_TEST to the environment |
| | whitelist and filter it from the saved environment in |
| | save_ebuild_env(). * Tweak logic inside the ebuild command |
| | and config.regenerate() so that EBUILD_FORCE_TEST works even |
| | in odd cases like when USE=test is masked. * Only make |
| | FEATURES=test map to USE=test when "test" is actually in |
| | IUSE. * Remove USE=test from the set of implicit IUSE so |
| | that useq() calls in ebuild.sh properly generate a QA Notice |
| | when "test" is missing from IUSE. |
| 9065 | Show the EBUILD_FORCE_TEST "Forcing test" message even when |
| zmedico | "test" is not in IUSE. |
| 9066 | In action_regen(), use writemsg() to send error messages to |
| zmedico | stderr. |
| 9078 | Just ignore it when the global counter file does not match |
| zmedico | the highest installed COUNTER since it's normal for them to |
| | differ in some cases. For example, the global counter file |
| | will contain a higher value if the user merges a package and |
| | then immediately unmerges it (unmerge does not update the |
| | global counter file, but merge does). |
| 9080 | Make dep_expand() stop relying on having a categories list: |
| zmedico | * Create and use a dbapi.categories property that is |
| | automatically generated from dbapi.cp_all(). * Make mutable |
| | dbapi instances delete the invalidate the cached categories |
| | when they need to be regenerated. |
| 9081 | Make key_expand() use dbapi.categories. |
| zmedico | |
| 9083 | Make the FEATURES=sfperms loops safe for whitespace in paths |
| zmedico | by using find -print0 | while read -d $'\0'. |
| 9085 | Bug #202697 - Add / to the default initial SANDBOX_READ in |
| zmedico | order to avoid a situation where attempts to read arbitrary |
| | files trigger sandbox violations. |
| 9087 | Bug #121584 - Make the automatic USERLAND detection code |
| zmedico | recognize GNU/kFreeBSD. |
| 9089 | Make the ARCH and USERLAND sanity check use the autodetected |
| zmedico | USERLAND from the portage.data module if necessary. |
| 9090 | Make doebuild() check XARGS together with ARCH and USERLAND. |
| zmedico | |
| 9092 | * Initialize dbapi._categories = None so that we can compare |
| zmedico | with None instead of using hasattr. * Remove unwanted |
| | self._categories initialization from the portdbapi |
| | constructor. |
| 9094 | Add support for showing binary package file sizes in emerge |
| zmedico | --search output. |
svn path=/main/branches/prefix/; revision=9123
Fabian Groffen [Sun, 30 Dec 2007 16:39:41 +0000 (16:39 -0000)]
Add some more missing man-pages, and sort the list.
svn path=/main/branches/prefix/; revision=9122
Fabian Groffen [Sun, 30 Dec 2007 16:37:54 +0000 (16:37 -0000)]
Also install this manpage :(
svn path=/main/branches/prefix/; revision=9121
Fabian Groffen [Sun, 30 Dec 2007 16:33:01 +0000 (16:33 -0000)]
Because pipping doesn't understand C-code, I wrote a man-page for chpathtool so he can also understand what the tool does (try to accomplish)
svn path=/main/branches/prefix/; revision=9120
Fabian Groffen [Fri, 28 Dec 2007 13:39:30 +0000 (13:39 -0000)]
Merged from trunk 9058:9062
| 9059 | Bug #201498 - Use desktop-file-validate to validate |
| zmedico | *.desktop files inside ${FILESDIR} and generate a |
| | "desktop.invalid" qa warning if an error is detected. Thanks |
| | to Betelgeuse for the initial patch. |
| 9060 | Minor code readablity enhancements: * Use relative_path and |
| zmedico | full_path variables for files being checked instead of |
| | spreading code like x+"/files/"+y all over the place. * Use |
| | stat.S_IMODE with octal 0111 instead of hex 0x0248 in the |
| | file.executable checks. |
| 9061 | Bug #203323 - Fix the FEATURES=sfperms code so that it |
| zmedico | doesn't chmod g-r on binaries that are both setuid and |
| | setgid. In that case, just chmod o-r. |
| 9062 | Always make sure that the depend phase triggers a source |
| zmedico | ${EBUILD} call, even if "${T}"/environment happens to exist |
| | for some reason. |
svn path=/main/branches/prefix/; revision=9063
Fabian Groffen [Thu, 27 Dec 2007 19:48:54 +0000 (19:48 -0000)]
Merged from trunk 9049:9056
| 9050 | - small UI cleanups. *should* not cause problems with lack |
| solar | of missing newlines. |
| 9051 | Bug #203239 - With FEATURES=noauto, always source ${EBUILD}. |
| zmedico | This will load the ${T}/environment file if available and |
| | then source ${EBUILD} to overwrite any functions that have |
| | changed. |
| 9052 | Bug #203090 - Do not trust the global counter file that can |
| zmedico | lead to invalid COUNTER generation. |
| 9053 | Fix "Initializing counter" message to show the correct |
| zmedico | value. |
| 9054 | In getconfig(), pass the infile attribute into the shlex |
| zmedico | constructor so that shlex.sourcehook() properly joins |
| | relative paths. |
| 9055 | Fix sync_local() to return 0 when a appropriate. Thanks to |
| zmedico | Alon Bar-Lev" <alonbl@gentoo.org> |
| 9056 | Fix broken handling of the tuple that's returned from |
| zmedico | verify_all(). Thanks to Betelgeuse. |
svn path=/main/branches/prefix/; revision=9058
Fabian Groffen [Thu, 27 Dec 2007 19:41:40 +0000 (19:41 -0000)]
properly end the string such that we don't get garbage in symlinks
svn path=/main/branches/prefix/; revision=9057
Fabian Groffen [Mon, 24 Dec 2007 13:57:12 +0000 (13:57 -0000)]
Python doesn't like imports after references ... even if the import was already done in global scope
svn path=/main/branches/prefix/; revision=9049
Fabian Groffen [Mon, 24 Dec 2007 13:42:43 +0000 (13:42 -0000)]
fix import logic, to hopefully not break this time
svn path=/main/branches/prefix/; revision=9048