public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] EAPI-1 (or >1, perhaps) Proposal:  AND Dependencies
@ 2007-06-15  0:27 John R. Graham
  2007-06-15  4:52 ` Vlastimil Babka
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: John R. Graham @ 2007-06-15  0:27 UTC (permalink / raw
  To: gentoo-dev

I occasionally run across a package version dependency issue that cannot
be elegantly solved by the current  dependency syntax.  Every time I've
come across this, it's boiled down to a range.  For example, package
some-cat/foo has the following versions in the tree
    some-cat/foo-4.0.0-r2
    some-cat/foo-4.1
    some-cat/foo-4.1.1
    some-cat/foo-4.1.2-r2
    some-cat/foo-4.2.1-r5
    some-cat/foo-4.3
    some-cat/foo-4.4

Now, package other-cat/bar has a runtime dependency on some-cat/foo but
it only works with the 4.1 and 4.2 slot.  The other-cat/bar ebuild was
originally composed before the some-cat/foo-4.3 package came out, so the
ebuild developer coded the runtime dependency as
    >=some-cat/foo-4.1

But, when some-cat/foo-4.3 came along, it got messy.  The only possible
solution today that I know of is
    ( || =some-cat/foo-4.1* =some-cat/foo-4.2* )
and this potentially grows over time as new versions stabilize.

What I'd really like to be able to code is a range with an AND operator,
something like this
    ( && >=some-cat/foo-4.0 <some-cat/foo-4.3 )

So, my question is, does this make sense?  Is something like this
planned for some EAPI>0?  Would it be appropriate for me (a non-dev) to
file a bug and link it to SpanKy's "EAPI-1 tracker" bug?


Thanks in advance.

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



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

end of thread, other threads:[~2007-06-22  7:44 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-15  0:27 [gentoo-dev] EAPI-1 (or >1, perhaps) Proposal: AND Dependencies John R. Graham
2007-06-15  4:52 ` Vlastimil Babka
2007-06-15 18:18   ` John R. Graham
2007-06-15  6:28 ` Kent Fredric
2007-06-15  8:02   ` Tobias Klausmann
2007-06-15  9:33 ` Marijn Schouten (hkBst)
2007-06-15  9:54   ` Vlastimil Babka
2007-06-15 11:08   ` John R. Graham
     [not found] ` <20070615120051.4f35ea2c@snowflake>
2007-06-15 11:45   ` Luca Barbato
2007-06-15 11:56     ` Ciaran McCreesh
2007-06-18  5:19       ` [gentoo-dev] " Steve Long
2007-06-18  6:47         ` Kent Fredric
2007-06-18 22:53           ` [gentoo-dev] " Steve Long
2007-06-19  6:38             ` Kent Fredric
2007-06-22  7:35               ` [gentoo-dev] " Steve Long

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