From: "Kent Fredric" <kentfredric@gmail.com>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] EAPI-1 (or >1, perhaps) Proposal: AND Dependencies
Date: Fri, 15 Jun 2007 18:28:45 +1200 [thread overview]
Message-ID: <8cd1ed20706142328n868db6x397fa63744233530@mail.gmail.com> (raw)
In-Reply-To: <4671DCEF.7080009@gmail.com>
On 6/15/07, John R. Graham <n3440d@gmail.com> wrote:
> 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
>
/me votes for rubyesqe range syntax
some-cat/foo-( s:4.1 .. s:4.2) // start at slot 4.1 , and go upto
and including 4.2
some-cat/foo-( s:4.1 ... s:4.2) // start at slot 4.1 and go upto, but
not including 4.2
some-cat/foo-( v:4.1.0 .. v:4.2.0 ) // start at version 4.1.0 and go
upto and including 4.2.0
some-cat/foo-( v:4.1.0 ... v:4.2.0 ) // start at version 4.1.0 and go
upto , but excluding 4.2.0
I know thats probably not possible in a bash env tho, but hopefully
the 'range' concept will give some inspiration, as IMO, having to
specify the ebuild atom name for both upper and lower values is
redundant, and easily missused as lamented by Vlastimil Babka
/me hides in his corner to avoid abuse from people despising ruby lovers
/me goes and joins ruby addicts anonymous
--
Kent
ruby -e '[1, 2, 4, 7, 0, 9, 5, 8, 3, 10, 11, 6, 12, 13].each{|x|
print "enNOSPicAMreil kdrtf@gma.com"[(2*x)..(2*x+1)]}'
--
gentoo-dev@gentoo.org mailing list
next prev parent reply other threads:[~2007-06-15 6:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8cd1ed20706142328n868db6x397fa63744233530@mail.gmail.com \
--to=kentfredric@gmail.com \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox