From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1Hz3qZ-0005qp-97 for garchives@archives.gentoo.org; Fri, 15 Jun 2007 04:55:43 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l5F4siuI014120; Fri, 15 Jun 2007 04:54:44 GMT Received: from slimak.dkm.cz (smtp.dkm.cz [62.24.64.34]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l5F4qwZM011926 for ; Fri, 15 Jun 2007 04:52:58 GMT Received: (qmail 45746 invoked by uid 0); 15 Jun 2007 04:52:58 -0000 Received: from r141.net.upc.cz (HELO ?192.168.1.1?) (62.24.83.141) by smtp.dkm.cz with SMTP; 15 Jun 2007 04:52:58 -0000 Message-ID: <46721B29.10901@gentoo.org> Date: Fri, 15 Jun 2007 06:52:57 +0200 From: Vlastimil Babka User-Agent: Thunderbird 2.0.0.0 (X11/20070509) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] EAPI-1 (or >1, perhaps) Proposal: AND Dependencies References: <4671DCEF.7080009@gmail.com> In-Reply-To: <4671DCEF.7080009@gmail.com> X-Enigmail-Version: 0.95.0 OpenPGP: id=4E61DE84; url=subkeys.pgp.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: ee537735-e922-42a3-8488-cb12c1d7f30a X-Archives-Hash: c01722f6c459e4c306e7a152553b31ae -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John R. Graham 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 > > 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. If 4.1 and 4.2 are really SLOTs as you say, then this || syntax makes good sense. Of course would be better with real slot deps :) So your example is not so ideal. But nevermind. > 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.0 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? There's been bug 4315 for ages, so maybe just reassign it to PMS? - -- Vlastimil Babka (Caster) Gentoo/Java -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGchsotbrAj05h3oQRAjg8AJ46/ofZuK6EI+LnQcTivJDzOjgj4gCfWNRe a56SGjmxI16imQxdkfRRoQI= =bu3E -----END PGP SIGNATURE----- -- gentoo-dev@gentoo.org mailing list