From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.3/8.13.3) with ESMTP id j23KL70j018362 for ; Thu, 3 Mar 2005 20:21:08 GMT Received: from mail.hq.newdream.net ([66.33.206.127]) by smtp.gentoo.org with esmtp (Exim 4.42) id 1D6wok-00030U-9m for gentoo-dev@robin.gentoo.org; Thu, 03 Mar 2005 20:21:06 +0000 Received: from [66.33.201.234] (front.ops.newdream.net [66.33.201.234]) by mail.hq.newdream.net (Postfix) with ESMTP id A88AC63385 for ; Thu, 3 Mar 2005 12:21:07 -0800 (PST) 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@gentoo.org Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <4226E662.7040307@gentoo.org> References: <198501d6050302194078646c8e@mail.gmail.com> <27b2889f22c6462c61aa43e8d5105d1a@hq.newdream.net> <4226E662.7040307@gentoo.org> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <71767f93c823c6a61340741706d66c11@hq.newdream.net> Content-Transfer-Encoding: 7bit From: Jeremy Hanmer Subject: Re: [gentoo-dev] ebuild question Date: Thu, 3 Mar 2005 12:23:14 -0800 To: gentoo-dev@robin.gentoo.org X-Mailer: Apple Mail (2.619.2) X-Archives-Salt: 086513e5-ed13-4c75-b28b-a3e173cd874f X-Archives-Hash: 768574fd05bde674d7c0edf4311b683d On Mar 3, 2005, at 2:26 AM, Aaron Walker wrote: > > has_version only returns 0 or 1 depending whether the package is > installed or > not, so it's useless in this case. best_version would be a better > alternative, > however that alone won't solve the problem. That's all that's really needed since all you'd care about in this instance is the existance of one of 2 or 3 major versions. Just look for >=sys-libs-4.0 then 3.0 and so-on, compiling for the first one you find. > Read about best_version in the ebuild(5) manual page. After you're > done with > that, read about the versionator eclass in the versionator.eclass(5) > manual > page (may have to emerge portage-manpages). You'll probably have to > use a > combination of both to do what you're trying to achieve. > > HTH > > - -- > printk(KERN_EMERG "PCI: Tell willy he's wrong > "); > linux-2.6.6/arch/parisc/kernel/pci.c > > Aaron Walker > [ BSD | cron | forensics | shell-tools | commonbox | netmon | vim | > web-apps ] > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.0 (GNU/Linux) > > iD8DBQFCJuZhC3poscuANHARAno+AJ0S4wl1FnzHKuKSeNj92CBKMsOpogCgmhrR > 9lSrUePKgaiEePdqlNVZpaM= > =bznu > -----END PGP SIGNATURE----- > -- > gentoo-dev@gentoo.org mailing list > -- gentoo-dev@gentoo.org mailing list