public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] building dependency tree
@ 2004-05-12  3:02 Andrew Gaffney
  2004-05-12  5:14 ` Pieter Van den Abeele
  2004-05-12 16:25 ` [gentoo-portage-dev] building dependency tree Jason Stubbs
  0 siblings, 2 replies; 21+ messages in thread
From: Andrew Gaffney @ 2004-05-12  3:02 UTC (permalink / raw
  To: gentoo-portage-dev

I am writing a Perl program that does the same thing as 'emerge'. Yes, I started 
a thread about this on -dev about 6 months back, but I'm better prepared to do 
this now. I've already written functions that:

   * Build a list of USE flags from /etc/make.profile/make.defaults, 
/etc/make.conf, and $ENV{USE}
   * Build a list of masked packages from /etc/make.profile/package.(un)mask and 
/etc/portage/package.(un)mask
   * Build a list of matching ebuild versions from a '>category/package-version' 
type string taking masked packages into account
   * Extract the DEPEND line from a particular ebuild
   * Parse a DEPEND line using active USE flags and build a list of needed packages

I'm starting work on the code that generates the actual dependency tree and then 
the list of packages to be installed. I don't have any Python skill, so I don't 
think that reading the code will help me much. Can anyone who deals with the 
Portage code a lot give me a general breakdown of the way that 'emerge' 
generates the dependency tree and then the list of packages to emerge?

-- 
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.
636-357-1548


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


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

end of thread, other threads:[~2004-05-15 15:36 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-12  3:02 [gentoo-portage-dev] building dependency tree Andrew Gaffney
2004-05-12  5:14 ` Pieter Van den Abeele
2004-05-12  6:42   ` Andrew Gaffney
2004-05-12  7:59     ` Pieter Van den Abeele
2004-05-12 14:43       ` Andrew Gaffney
2004-05-12 15:02         ` Pieter Van den Abeele
2004-05-12 15:14           ` [gentoo-portage-dev] /etc/make.profile/use.defaults (was: building dependency tree) Andrew Gaffney
2004-05-12 15:19             ` [gentoo-portage-dev] /etc/make.profile/use.defaults Andrew Gaffney
2004-05-12 15:43               ` Pieter Van den Abeele
2004-05-12 15:44                 ` Andrew Gaffney
2004-05-12 16:03                   ` Pieter Van den Abeele
2004-05-12 16:08                     ` Andrew Gaffney
2004-05-12 16:33                     ` Jason Stubbs
2004-05-12 16:39                       ` Andrew Gaffney
2004-05-12 17:28                         ` Jason Stubbs
2004-05-12 16:25 ` [gentoo-portage-dev] building dependency tree Jason Stubbs
2004-05-15  4:12   ` Andrew Gaffney
2004-05-15  6:14     ` Jason Stubbs
2004-05-15  6:50       ` Andrew Gaffney
2004-05-15  7:06         ` Jason Stubbs
2004-05-15 15:31           ` Andrew Gaffney

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