| « Handling File Collisions Between Blocking Packages | Portage Dependency Resolution - Decision Making » |
Using Blockers to Automatically Uninstall Unwanted Packages
A while ago I wrote a blog entry about
using blockers to adjust merge order. Now, in
portage-2.1.5,
blockers are also resolved automatically in cases when it makes
sense to uninstall a conflicting package (bug #172812).
This feature should allow automatic resolution of
blocker conflicts in many more cases than previously possible, so Gentoo
users won't be inconvenienced with the task of resolving them manually.
gtk-doc-am vs. gtk-doc-1.8-r2
These are the packages that would be merged, in reverse order: Calculating dependencies... done! [nomerge ] x11-libs/gtk+-2.12.9-r2 USE="X cups jpeg tiff xinerama -debug -doc -vim-syntax" [ebuild N ] dev-util/gtk-doc-am-1.10-r1 0 kB [blocks b ] dev-util/gtk-doc-am (is blocking dev-util/gtk-doc-1.8-r2) [uninstall ] dev-util/gtk-doc-1.8-r2 USE="emacs -debug -doc" Total: 1 package (1 new, 1 uninstall), Size of downloads: 0 kB Conflict: 1 block
coreutils vs. mktemp
These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild U ] sys-apps/coreutils-6.11 [6.9-r1] USE="acl nls xattr (-selinux) -static -vanilla%" 0 kB [blocks b ] sys-apps/mktemp (is blocking sys-apps/coreutils-6.11) [blocks b ] >=sys-apps/coreutils-6.10 (is blocking sys-apps/mktemp-1.5) [uninstall ] sys-apps/mktemp-1.5 Total: 1 package (1 upgrade, 1 uninstall), Size of downloads: 0 kB Conflict: 2 blocks
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
10 comments
You should also blog about the /etc/portage/modules thing where it makes sync really quick.
Actually, with portage-2.1.5 you don't need to do any /etc/portage/modules configuration to avoid the "Updating Portage cache" thing after sync. Now the default behavior is to use cache directly from the $PORTDIR/metadata/cache/ directory. As mentioned in the release notes, you have to add FEATURES=metadata-transfer to make.conf if you want the old behavior (which you probably don't).
About unmerging mktemp before coreutils, maybe portage could make a package before unmerging it with quickpkg for preventing a great breakage :-/
Excellent feature! Most welcome!