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 j240gfG3010302 for ; Fri, 4 Mar 2005 00:42:41 GMT Received: from ms-smtp-01-smtplb.tampabay.rr.com ([65.32.5.131] helo=ms-smtp-01.tampabay.rr.com) by smtp.gentoo.org with esmtp (Exim 4.42) id 1D70tt-0000y6-3l for gentoo-dev@robin.gentoo.org; Fri, 04 Mar 2005 00:42:41 +0000 Received: from zeus.ka0ttic.dyndns.org (114.175.205.68.cfl.res.rr.com [68.205.175.114]) by ms-smtp-01.tampabay.rr.com (8.12.10/8.12.7) with ESMTP id j240gcNi020976 for ; Thu, 3 Mar 2005 19:42:38 -0500 (EST) Received: from [192.168.1.50] (bedlam [192.168.1.50]) by zeus.ka0ttic.dyndns.org (Postfix) with ESMTP id 1A8803400 for ; Thu, 3 Mar 2005 19:42:38 -0500 (EST) Message-ID: <4227AEFD.7090700@gentoo.org> Date: Thu, 03 Mar 2005 19:42:37 -0500 From: Aaron Walker User-Agent: Mozilla Thunderbird 1.0 (X11/20041207) X-Accept-Language: en-us, en 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 To: gentoo-dev@robin.gentoo.org Subject: Re: [gentoo-dev] ebuild question References: <198501d6050302194078646c8e@mail.gmail.com> <27b2889f22c6462c61aa43e8d5105d1a@hq.newdream.net> <4226E662.7040307@gentoo.org> <71767f93c823c6a61340741706d66c11@hq.newdream.net> In-Reply-To: <71767f93c823c6a61340741706d66c11@hq.newdream.net> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Archives-Salt: 1d929a03-0bcc-43d4-b844-b21be1b1c62f X-Archives-Hash: 088125c3a0235907914364ac4370f8f5 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jeremy Hanmer wrote: > > 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. That would be the incorrect way of going about it. As I said in my previous post, use versionator.eclass. One call to best_version and one call to get_major_version is all that's needed. - -- Love America -- or give it back. Aaron Walker [ BSD | cron | forensics | shell-tools | commonbox | netmon | vim | web-apps ] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCJ678C3poscuANHARAn1hAKDGWTixj9QVHjCMLgzLu75yLmywbgCfT1+h YlWOglosHIp5XrbfHE/u4XA= =VZ1q -----END PGP SIGNATURE----- -- gentoo-dev@gentoo.org mailing list