Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118874 - Possibility to exclude packages from a list of pkgs to be processed
Summary: Possibility to exclude packages from a list of pkgs to be processed
Status: RESOLVED DUPLICATE of bug 16342
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 110308 134500 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-13 06:03 UTC by Nico Mahlo
Modified: 2007-01-11 11:54 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Mahlo 2006-01-13 06:03:04 UTC
(hopefully I'm at the correct address here ;))

In short:
CMD:
   emerge -De system --start-from gnome-base/orbit

Behavior:
Does the same as "emerge -De system" but begins with 'orbit' and then emerges what had followed (assuming, all packages that should be merged in before, are already merged successfully).


Long version:
I was doing an emerge -De system (~270 pkgs) and it hung at orbit (~30 pkgs left). But after emerging orbit, a resume was not possible anymore. So I had to use a ruby-script, posted in the forums, to continue without having to restart all over again.

But the script has some pitfalls
   ( http://forums.gentoo.org/viewtopic-t-422261-view-previous.html ),
so I wouldn't recommend it to 'normal users'. Such a --start-from option would be very nice. Also it would be possible to call

   emerge -D progA progB progC --start-with bar/foo

Assume you wanted to emerge these three programs. Each has several dependencies itself. In the middle the emerge hangs due to some error. You could fix it and just call the same emerge command with --start-from to continue without any problems.

'resume' is a very nice option I always looked for some years ago, but a --start-from would be absolutely perfect! :)

I am not used to perl, so I cannot send a patch. :(
But I hope someone will find this option as useful as I do and implements it. :)

THX

(sorry for my bad English)
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-01-15 23:15:34 UTC
emerge pkgA pkgB pkgC pkgD --start-with pkgD

pkgD depends on pkgC depends on pkgB depends on pkgA.

What do we do in this case, and how do we validate the dependency graph that you just cut in half with your --start-with <package>, in a general case.

Another thing that the new resolver may be able to do, definately not soon though.
Comment 2 Nico Mahlo 2006-01-16 03:46:15 UTC
> emerge pkgA pkgB pkgC pkgD --start-with pkgD
> pkgD depends on pkgC depends on pkgB depends on pkgA.
> What do we do in this case[...]

In this case "emerge pkgA pkgB pkgC pkgD" would emerge the packages in the following order:
pkgA
pkgB
pkgC
pkgD

so an "emerge pkgA pkgB pkgC pkgD --start-with pkgD" would start with:
pkgA
pkgB
pkgC
pkgD <---

Means: It just emerges pkgD, assuming A,B,C are already successfully merged and that's it. :)

HTH
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2006-04-15 07:43:14 UTC
*** Bug 110308 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-05-27 04:19:15 UTC
*** Bug 134500 has been marked as a duplicate of this bug. ***
Comment 5 Simon Stelling (RETIRED) gentoo-dev 2006-10-26 13:31:54 UTC
Let's generalize a bit:

I think what you really want is a more convenient way to exclude some packages from a list of packages to be acted upon in general, not just --start-from. So what we're really after is a more powerful selecting mechanism. --ask seems to be the right place for this, a bit more interactivity then just yes/no wouldn't hurt it IMO.
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 11:54:32 UTC

*** This bug has been marked as a duplicate of bug 16342 ***