public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] Installed pkg list in dependency order ?
@ 2021-06-14 15:16 Joakim Tjernlund
  2021-06-14 16:11 ` Zac Medico
  2021-06-16  9:43 ` Michał Górny
  0 siblings, 2 replies; 4+ messages in thread
From: Joakim Tjernlund @ 2021-06-14 15:16 UTC (permalink / raw
  To: gentoo-portage-dev@lists.gentoo.org

Hi 

I need to generate a pkg list from an uptodate gentoo system too feed this list into qmerge
so qmerge can install these pkgs in correct order.

Tried emerge -e but that list is not in dep order, seems to be just a list with pkgs to rebuild.

 Jocke 

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

* Re: [gentoo-portage-dev] Installed pkg list in dependency order ?
  2021-06-14 15:16 [gentoo-portage-dev] Installed pkg list in dependency order ? Joakim Tjernlund
@ 2021-06-14 16:11 ` Zac Medico
  2021-06-16  9:27   ` Joakim Tjernlund
  2021-06-16  9:43 ` Michał Górny
  1 sibling, 1 reply; 4+ messages in thread
From: Zac Medico @ 2021-06-14 16:11 UTC (permalink / raw
  To: gentoo-portage-dev, Joakim Tjernlund


[-- Attachment #1.1: Type: text/plain, Size: 571 bytes --]

On 6/14/21 8:16 AM, Joakim Tjernlund wrote:
> Hi 
> 
> I need to generate a pkg list from an uptodate gentoo system too feed this list into qmerge
> so qmerge can install these pkgs in correct order.
> 
> Tried emerge -e but that list is not in dep order, seems to be just a list with pkgs to rebuild.
> 
>  Jocke 
> 

The problem with emerge -e is that is pull in the whole kitchen sink, so
all of the circular dependencies will be mixed into that order. What you
want is a smaller calculation that only updates the intended packages.
-- 
Thanks,
Zac


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 981 bytes --]

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

* Re: [gentoo-portage-dev] Installed pkg list in dependency order ?
  2021-06-14 16:11 ` Zac Medico
@ 2021-06-16  9:27   ` Joakim Tjernlund
  0 siblings, 0 replies; 4+ messages in thread
From: Joakim Tjernlund @ 2021-06-16  9:27 UTC (permalink / raw
  To: gentoo-portage-dev@lists.gentoo.org, zmedico@gentoo.org

On Mon, 2021-06-14 at 09:11 -0700, Zac Medico wrote:
> On 6/14/21 8:16 AM, Joakim Tjernlund wrote:
> > Hi 
> > 
> > I need to generate a pkg list from an uptodate gentoo system too feed this list into qmerge
> > so qmerge can install these pkgs in correct order.
> > 
> > Tried emerge -e but that list is not in dep order, seems to be just a list with pkgs to rebuild.
> > 
> >  Jocke 
> > 
> 
> The problem with emerge -e is that is pull in the whole kitchen sink, so
> all of the circular dependencies will be mixed into that order. What you
> want is a smaller calculation that only updates the intended packages.

Right, but I am fresh out of ides how to do that. Any pointers?

 Jocke

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

* Re: [gentoo-portage-dev] Installed pkg list in dependency order ?
  2021-06-14 15:16 [gentoo-portage-dev] Installed pkg list in dependency order ? Joakim Tjernlund
  2021-06-14 16:11 ` Zac Medico
@ 2021-06-16  9:43 ` Michał Górny
  1 sibling, 0 replies; 4+ messages in thread
From: Michał Górny @ 2021-06-16  9:43 UTC (permalink / raw
  To: gentoo-portage-dev

On Mon, 2021-06-14 at 15:16 +0000, Joakim Tjernlund wrote:
> Hi 
> 
> I need to generate a pkg list from an uptodate gentoo system too feed this list into qmerge
> so qmerge can install these pkgs in correct order.
> 
> Tried emerge -e but that list is not in dep order, seems to be just a list with pkgs to rebuild.
> 

You could try reusing the code I've written for nattka:

https://github.com/mgorny/nattka/blob/master/nattka/depgraph.py
https://github.com/mgorny/nattka/blob/master/nattka/__main__.py#L300

Note that it's a just a cheap effort, and it e.g. will order randomly
when it hits circular deps.

-- 
Best regards,
Michał Górny




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

end of thread, other threads:[~2021-06-16  9:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-14 15:16 [gentoo-portage-dev] Installed pkg list in dependency order ? Joakim Tjernlund
2021-06-14 16:11 ` Zac Medico
2021-06-16  9:27   ` Joakim Tjernlund
2021-06-16  9:43 ` Michał Górny

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