public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] format of files in /var/cache/edb/dep
@ 2004-05-14  1:33 Andrew Gaffney
  2004-05-14  1:43 ` Ciaran McCreesh
  2004-05-14 16:27 ` Brian Harring
  0 siblings, 2 replies; 7+ messages in thread
From: Andrew Gaffney @ 2004-05-14  1:33 UTC (permalink / raw
  To: Gentoo Dev

I've looked around for a reference to the format of the files in 
/var/cache/edb/dep, but I can't seem to find anything. From looking at 
/var/cache/edb/dep/x11-base/xfree-4.3.0-r5, it seems that it is:

DEPEND
RDEPEND
SLOT
SRC_URI
RESTRICT
HOMEPAGE
LICENSE
DESCRIPTION
KEYWORDS
?
IUSE
?
?

Can someone verify what I have filled in and fill in my blanks? Thank you.

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


--
gentoo-dev@gentoo.org mailing list


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

* Re: [gentoo-dev] format of files in /var/cache/edb/dep
  2004-05-14  1:33 [gentoo-dev] format of files in /var/cache/edb/dep Andrew Gaffney
@ 2004-05-14  1:43 ` Ciaran McCreesh
  2004-05-14  2:19   ` Andrew Gaffney
  2004-05-14 16:27 ` Brian Harring
  1 sibling, 1 reply; 7+ messages in thread
From: Ciaran McCreesh @ 2004-05-14  1:43 UTC (permalink / raw
  To: gentoo-dev

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

On Thu, 13 May 2004 20:33:59 -0500 Andrew Gaffney
<agaffney@skylineaero.com> wrote:
| I've looked around for a reference to the format of the files in 
| /var/cache/edb/dep, but I can't seem to find anything. From looking at
| /var/cache/edb/dep/x11-base/xfree-4.3.0-r5, it seems that it is:
<snip>

Well that rather depends upon which backend you're using for the portage
cache. You can't really rely upon a particular format there.

-- 
Ciaran McCreesh, Gentoo XMLcracy Member G03X276
(Sparc, MIPS, Vim, si hoc legere scis nimium eruditionis habes)
Mail:    ciaranm at gentoo.org
Web:     http://dev.gentoo.org/~ciaranm


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [gentoo-dev] format of files in /var/cache/edb/dep
  2004-05-14  1:43 ` Ciaran McCreesh
@ 2004-05-14  2:19   ` Andrew Gaffney
  2004-05-14  2:30     ` Mike Frysinger
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Gaffney @ 2004-05-14  2:19 UTC (permalink / raw
  To: gentoo-dev

Ciaran McCreesh wrote:
> On Thu, 13 May 2004 20:33:59 -0500 Andrew Gaffney
> <agaffney@skylineaero.com> wrote:
> | I've looked around for a reference to the format of the files in 
> | /var/cache/edb/dep, but I can't seem to find anything. From looking at
> | /var/cache/edb/dep/x11-base/xfree-4.3.0-r5, it seems that it is:
> <snip>
> 
> Well that rather depends upon which backend you're using for the portage
> cache. You can't really rely upon a particular format there.

Are you serious? Why would the format of important files used by Portage change?

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


--
gentoo-dev@gentoo.org mailing list


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

* Re: [gentoo-dev] format of files in /var/cache/edb/dep
  2004-05-14  2:19   ` Andrew Gaffney
@ 2004-05-14  2:30     ` Mike Frysinger
  2004-05-14  2:37       ` Andrew Gaffney
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Frysinger @ 2004-05-14  2:30 UTC (permalink / raw
  To: gentoo-dev

On Thursday 13 May 2004 10:19 pm, Andrew Gaffney wrote:
> Are you serious? Why would the format of important files used by Portage
> change?

because the current system sucks horribly

ever wonder why portage can be so goddamn slow ? ;)
-mike

--
gentoo-dev@gentoo.org mailing list


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

* Re: [gentoo-dev] format of files in /var/cache/edb/dep
  2004-05-14  2:30     ` Mike Frysinger
@ 2004-05-14  2:37       ` Andrew Gaffney
  0 siblings, 0 replies; 7+ messages in thread
From: Andrew Gaffney @ 2004-05-14  2:37 UTC (permalink / raw
  To: gentoo-dev

Mike Frysinger wrote:
> On Thursday 13 May 2004 10:19 pm, Andrew Gaffney wrote:
> 
>>Are you serious? Why would the format of important files used by Portage
>>change?
> 
> 
> because the current system sucks horribly
> 
> ever wonder why portage can be so goddamn slow ? ;)

I was testing it earlier again my Perl dependency checker that I'm working on. 
After deleting the contents of /var/cache/edb/dep, Portage took 42s to do 
'emerge -ep xfree'. It then took 2.819s to run the same command again with the 
cache rebuilt. My program took 0.981s to do the same thing while generating 
dependency information directly from the ebuilds on the fly. Although, my 
dependency checker isn't yet as complete as Portage's.

For example, if one package has a dependency of '>=package2-2.0' and another has 
'<package2-2.3' and the newest version of package2 is 2.6, my program will 
choose to install package2-2.6.

It can currently handle USE flags, auto-USE flags, (un)masked packages, and 
virtuals (somewhat). It also saves time by not involving bash in the dependency 
process at all. Instead, it parses all the variable declarations straight out of 
the ebuild and does bash-style interpolation within the program.

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


--
gentoo-dev@gentoo.org mailing list


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

* Re: [gentoo-dev] format of files in /var/cache/edb/dep
  2004-05-14 16:27 ` Brian Harring
@ 2004-05-14 16:25   ` Andrew Gaffney
  0 siblings, 0 replies; 7+ messages in thread
From: Andrew Gaffney @ 2004-05-14 16:25 UTC (permalink / raw
  To: Brian Harring; +Cc: gentoo-dev

Brian Harring wrote:
> 
> On May 13, 2004, at 8:33 PM, Andrew Gaffney wrote:
> 
>>> I've looked around for a reference to the format of the files in 
>>> /var/cache/edb/dep, but I can't seem to find anything. From looking at 
>>> /var/cache/edb/dep/x11-base/xfree-4.3.0-r5, it seems that it is:
>>>
>>> DEPEND
>>> RDEPEND
>>> SLOT
>>> SRC_URI
>>> RESTRICT
>>> HOMEPAGE
>>> LICENSE
>>> DESCRIPTION
>>> KEYWORDS
>>> ?
>>> IUSE
>>> ?
>>> ?
>>>
>>> Can someone verify what I have filled in and fill in my blanks? Thank 
>>> you.
> 
> You're after the auxdbkeys list in portage.py- this is it, note that the 
> flatfile cache's use the same ordering for storage-
> auxdbkeys=[
> 'DEPEND',
> 'RDEPEND',
> 'SLOT',
> 'SRC_URI',
> 'RESTRICT',
> 'HOMEPAGE',
> 'LICENSE',
> 'DESCRIPTION',
> 'KEYWORDS',
> 'INHERITED',
> 'IUSE',
> 'CDEPEND',
> 'PDEPEND',
> 'PROVIDE',
> 'UNUSED_01',
> 'UNUSED_02',
> 'UNUSED_03',
> 'UNUSED_04',
> 'UNUSED_05',
> 'UNUSED_06',
> 'UNUSED_07',
> 'UNUSED_08'
> ]
> 
> (pull from portage-2.0.51_pre7)
> ~brian

Thanks. That's just what I needed. Someone also suggested to look at the end of 
ebuild.sh, which contains about the same information.

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


--
gentoo-dev@gentoo.org mailing list


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

* Re: [gentoo-dev] format of files in /var/cache/edb/dep
  2004-05-14  1:33 [gentoo-dev] format of files in /var/cache/edb/dep Andrew Gaffney
  2004-05-14  1:43 ` Ciaran McCreesh
@ 2004-05-14 16:27 ` Brian Harring
  2004-05-14 16:25   ` Andrew Gaffney
  1 sibling, 1 reply; 7+ messages in thread
From: Brian Harring @ 2004-05-14 16:27 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On May 13, 2004, at 8:33 PM, Andrew Gaffney wrote:

> I've looked around for a reference to the format of the files in 
> /var/cache/edb/dep, but I can't seem to find anything. From looking at 
> /var/cache/edb/dep/x11-base/xfree-4.3.0-r5, it seems that it is:
>
> DEPEND
> RDEPEND
> SLOT
> SRC_URI
> RESTRICT
> HOMEPAGE
> LICENSE
> DESCRIPTION
> KEYWORDS
> ?
> IUSE
> ?
> ?
>
> Can someone verify what I have filled in and fill in my blanks? Thank 
> you.
You're after the auxdbkeys list in portage.py- this is it, note that 
the flatfile cache's use the same ordering for storage-
auxdbkeys=[
'DEPEND',
'RDEPEND',
'SLOT',
'SRC_URI',
'RESTRICT',
'HOMEPAGE',
'LICENSE',
'DESCRIPTION',
'KEYWORDS',
'INHERITED',
'IUSE',
'CDEPEND',
'PDEPEND',
'PROVIDE',
'UNUSED_01',
'UNUSED_02',
'UNUSED_03',
'UNUSED_04',
'UNUSED_05',
'UNUSED_06',
'UNUSED_07',
'UNUSED_08'
]

(pull from portage-2.0.51_pre7)
~brian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFApPN7vdBxRoA3VU0RAnS4AJ4uTBuVzk8QhVB0pTgkq61Lka1HNACgwtTO
YateuPw6FS9Jv7Dz8z6QMc0=
=Djxc
-----END PGP SIGNATURE-----


--
gentoo-dev@gentoo.org mailing list


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

end of thread, other threads:[~2004-05-14 16:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-14  1:33 [gentoo-dev] format of files in /var/cache/edb/dep Andrew Gaffney
2004-05-14  1:43 ` Ciaran McCreesh
2004-05-14  2:19   ` Andrew Gaffney
2004-05-14  2:30     ` Mike Frysinger
2004-05-14  2:37       ` Andrew Gaffney
2004-05-14 16:27 ` Brian Harring
2004-05-14 16:25   ` Andrew Gaffney

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