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 1Hz6qs-0006MY-IE for garchives@archives.gentoo.org; Fri, 15 Jun 2007 08:08:15 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l5F86RDx013470; Fri, 15 Jun 2007 08:06:27 GMT Received: from eric.schwarzvogel.de (eric.schwarzvogel.de [194.97.4.250]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l5F82Oeo006288 for ; Fri, 15 Jun 2007 08:02:24 GMT Received: from klausman by eric.schwarzvogel.de with local (Exim 4.67) (envelope-from ) id 1Hz6lE-0000zF-Ff for gentoo-dev@lists.gentoo.org; Fri, 15 Jun 2007 10:02:24 +0200 Date: Fri, 15 Jun 2007 10:02:24 +0200 From: Tobias Klausmann To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] EAPI-1 (or >1, perhaps) Proposal: AND Dependencies Message-ID: <20070615080224.GA9570@eric.schwarzvogel.de> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <4671DCEF.7080009@gmail.com> <8cd1ed20706142328n868db6x397fa63744233530@mail.gmail.com> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8cd1ed20706142328n868db6x397fa63744233530@mail.gmail.com> User-Agent: Mutt/1.5.15 (2007-04-06) X-Archives-Salt: afd39572-31b8-4217-9004-e3ccd14961bd X-Archives-Hash: e5bf6e55d04efe7d84b1ed03a766fb26 Hi! On Fri, 15 Jun 2007, Kent Fredric wrote: > On 6/15/07, 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 > > > > /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 As a side note, while we're talking ranged dependencies. It would also be really, really nice to be able to (un)mask ranges in /etc/portage/package.(un)mask. Just my 1.953 Eurocent (adjusted for inflation). Rgards, Tobias -- In the future, everyone will be anonymous for 15 minutes. -- gentoo-dev@gentoo.org mailing list