public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] emerge resume list
@ 2006-04-06  3:52 evader
  2006-04-06  4:55 ` Alec Warner
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: evader @ 2006-04-06  3:52 UTC (permalink / raw
  To: gentoo-dev

Hi,

I'm not sure if this is the correct list to send this too, but it is the  
only gentoo one I am currently subscribed to.

When I do an emerge -e world where is the list of files to be merged  
stored? For example if I break an emerge, and want to resume later from a  
different position, can I edit the packages to be emerged list so I don't  
have to do emerge --resume --skipfirst constantly?

Thanks,

evader
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] emerge resume list
  2006-04-06  3:52 [gentoo-dev] emerge resume list evader
@ 2006-04-06  4:55 ` Alec Warner
  2006-04-06  5:08   ` evader
  2006-04-06  5:26   ` evader
  2006-04-06 13:48 ` Jeroen Roovers
  2006-04-06 14:35 ` Albert W. Hopkins
  2 siblings, 2 replies; 6+ messages in thread
From: Alec Warner @ 2006-04-06  4:55 UTC (permalink / raw
  To: gentoo-dev

evader wrote:
> Hi,
> 
> I'm not sure if this is the correct list to send this too, but it is
> the  only gentoo one I am currently subscribed to.
> 
> When I do an emerge -e world where is the list of files to be merged 
> stored? For example if I break an emerge, and want to resume later from
> a  different position, can I edit the packages to be emerged list so I
> don't  have to do emerge --resume --skipfirst constantly?
> 
> Thanks,
> 
> evader

The list is stored in a small database file in /var/cache/edb/mtimedb

It is a binary file full of pickled python objects.  I was actually
poking around it and thought about writing a tool.  I will commit more
time to it if you are interested; although be warned that editing things
in that file is not particularly recommended.  The dependency resolution
 for the packages in the list is done and the list is created.  Removing
items from it could cause packages to not build, and the dependency tree
to essentially be broken for that list.

Also, portage questions are generally well received at
gentoo-portage-dev@gentoo.org, or on IRC: irc.freenode.net #gentoo-portage.

-Alec Warner
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] emerge resume list
  2006-04-06  4:55 ` Alec Warner
@ 2006-04-06  5:08   ` evader
  2006-04-06  5:26   ` evader
  1 sibling, 0 replies; 6+ messages in thread
From: evader @ 2006-04-06  5:08 UTC (permalink / raw
  To: gentoo-dev

Thanks for your prompt response.

It would be very useful I think to have a small tool to continue a merge  
 from a certain point, for example by selecting the package name you want  
to continue from.

Example:  eresume dev-db/mysql

Would just look in the /var/cache/edb/mtimedb file for 'dev-db/mysql' and  
continue.

It could be an emerge feature:

Example: emerge --resume --from dev-db/mysql

I might look in to coding something.

Thanks.

On Thu, 06 Apr 2006 14:55:53 +1000, Alec Warner <antarus@gentoo.org> wrote:

> evader wrote:
>> Hi,
>>
>> I'm not sure if this is the correct list to send this too, but it is
>> the  only gentoo one I am currently subscribed to.
>>
>> When I do an emerge -e world where is the list of files to be merged
>> stored? For example if I break an emerge, and want to resume later from
>> a  different position, can I edit the packages to be emerged list so I
>> don't  have to do emerge --resume --skipfirst constantly?
>>
>> Thanks,
>>
>> evader
>
> The list is stored in a small database file in /var/cache/edb/mtimedb
>
> It is a binary file full of pickled python objects.  I was actually
> poking around it and thought about writing a tool.  I will commit more
> time to it if you are interested; although be warned that editing things
> in that file is not particularly recommended.  The dependency resolution
>  for the packages in the list is done and the list is created.  Removing
> items from it could cause packages to not build, and the dependency tree
> to essentially be broken for that list.
>
> Also, portage questions are generally well received at
> gentoo-portage-dev@gentoo.org, or on IRC: irc.freenode.net  
> #gentoo-portage.
>
> -Alec Warner


-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] emerge resume list
  2006-04-06  4:55 ` Alec Warner
  2006-04-06  5:08   ` evader
@ 2006-04-06  5:26   ` evader
  1 sibling, 0 replies; 6+ messages in thread
From: evader @ 2006-04-06  5:26 UTC (permalink / raw
  To: gentoo-dev

Hi,

Further to my email before, a quick hack in the emerge script somewhere  
here should fix it:
# We're resuming.
                         print green("*** Resuming merge...")
                         emergelog(" *** Resuming merge...")
                         mymergelist=portage.mtimedb["resume"]["mergelist"][:]
                         if ("--skipfirst" in myopts) and mymergelist:
                                 del  
portage.mtimedb["resume"]["mergelist"][0]
                                 del mymergelist[0]
                         for bigkey in mymergelist:
                                 (pkgtype, root, cpv, action) = bigkey
                                 if pkgtype == "binary" and not  
portage.db["/"]["bintree"].dbapi.match("="+cpv) or \
                                    pkgtype == "ebuild" and not  
portage.db["/"]["porttree"].dbapi.xmatch("match-all", "="+cpv):

This is the first time I've looked at so I'll see how I go. Any tips?

evader



On Thu, 06 Apr 2006 14:55:53 +1000, Alec Warner <antarus@gentoo.org> wrote:

> evader wrote:
>> Hi,
>>
>> I'm not sure if this is the correct list to send this too, but it is
>> the  only gentoo one I am currently subscribed to.
>>
>> When I do an emerge -e world where is the list of files to be merged
>> stored? For example if I break an emerge, and want to resume later from
>> a  different position, can I edit the packages to be emerged list so I
>> don't  have to do emerge --resume --skipfirst constantly?
>>
>> Thanks,
>>
>> evader
>
> The list is stored in a small database file in /var/cache/edb/mtimedb
>
> It is a binary file full of pickled python objects.  I was actually
> poking around it and thought about writing a tool.  I will commit more
> time to it if you are interested; although be warned that editing things
> in that file is not particularly recommended.  The dependency resolution
>  for the packages in the list is done and the list is created.  Removing
> items from it could cause packages to not build, and the dependency tree
> to essentially be broken for that list.
>
> Also, portage questions are generally well received at
> gentoo-portage-dev@gentoo.org, or on IRC: irc.freenode.net  
> #gentoo-portage.
>
> -Alec Warner


-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] emerge resume list
  2006-04-06  3:52 [gentoo-dev] emerge resume list evader
  2006-04-06  4:55 ` Alec Warner
@ 2006-04-06 13:48 ` Jeroen Roovers
  2006-04-06 14:35 ` Albert W. Hopkins
  2 siblings, 0 replies; 6+ messages in thread
From: Jeroen Roovers @ 2006-04-06 13:48 UTC (permalink / raw
  To: gentoo-dev

On Thu, 06 Apr 2006 13:52:48 +1000
evader <evader.aether@gmail.com> wrote:

> When I do an emerge -e world where is the list of files to be merged  
> stored? For example if I break an emerge, and want to resume later
> from a different position, can I edit the packages to be emerged list
> so I don't have to do emerge --resume --skipfirst constantly?

Useful as this may seem, having to "do do emerge --resume --skipfirst
constantly" implies that that you need to clean out dependencies of 
packages you once used and then unmerged, or that your system is
broken on a more basic level. Skipping packages that fail leaves the
unneeded, probably broken older builds in place and may cause
other packages to (partly) not build as well, and so on.


Kind regards,
     JeR
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] emerge resume list
  2006-04-06  3:52 [gentoo-dev] emerge resume list evader
  2006-04-06  4:55 ` Alec Warner
  2006-04-06 13:48 ` Jeroen Roovers
@ 2006-04-06 14:35 ` Albert W. Hopkins
  2 siblings, 0 replies; 6+ messages in thread
From: Albert W. Hopkins @ 2006-04-06 14:35 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 604 bytes --]

On Thu, 2006-04-06 at 13:52 +1000, evader wrote:
> Hi,
> 
> I'm not sure if this is the correct list to send this too, but it is the  
> only gentoo one I am currently subscribed to.
> 
> When I do an emerge -e world where is the list of files to be merged  
> stored? For example if I break an emerge, and want to resume later from a  
> different position, can I edit the packages to be emerged list so I don't  
> have to do emerge --resume --skipfirst constantly?

I have a script (attached) that, more or less does the --skipfirst
automatically.  You may need to change it to suit your tastes.

-m


[-- Attachment #2: emptytree --]
[-- Type: application/x-shellscript, Size: 2423 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-04-06 14:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-06  3:52 [gentoo-dev] emerge resume list evader
2006-04-06  4:55 ` Alec Warner
2006-04-06  5:08   ` evader
2006-04-06  5:26   ` evader
2006-04-06 13:48 ` Jeroen Roovers
2006-04-06 14:35 ` Albert W. Hopkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox