From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IcdzU-0004RO-3J for garchives@archives.gentoo.org; Tue, 02 Oct 2007 09:24:32 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l929E5FO024905; Tue, 2 Oct 2007 09:14:05 GMT Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l929Ahdo019604 for ; Tue, 2 Oct 2007 09:10:44 GMT Received: by nf-out-0910.google.com with SMTP id f5so2967086nfh for ; Tue, 02 Oct 2007 02:10:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=mWuEEw7mHFQ21SV+ZrYxT7LmgkMsQrCirr76qIXbHw8=; b=uQLqbg74lte6YUNAC08O6P9Y3MKKyMa8q3wTe/h/6wcv3G3DkVEFx9EWqNjfji5ZuX+DRdzPQ9x2CMtH6kkSVNyqnUi/EKd/wibIMsmxhwrKqAduKfGRVDHenLTgptrFmP4YtVAM0TShx50uj0F153/fAam/LULDfkaObsa+Sfk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=QxHo5FgISy7nMCK7EZGTxxsuNW456ZFY1IhMoq/sDHdDe0y5/v+7cGR4gaEbgCYBZamNJSAv2T3sCTzQx6qS+u1eHJ2KcU3klTb0rg8nxuLamZKrf7hRPs1buqQVnhALwaOhs0+mbJI+c3z4eYBH5+fy5A6SjyZ3d2GfICxu5LI= Received: by 10.78.193.5 with SMTP id q5mr4078346huf.1191316242716; Tue, 02 Oct 2007 02:10:42 -0700 (PDT) Received: from ?192.168.65.211? ( [213.234.126.134]) by mx.google.com with ESMTPS id f3sm1598063nfh.2007.10.02.02.10.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 02 Oct 2007 02:10:41 -0700 (PDT) Subject: Re: [gentoo-dev] RFC: sh versionator.eclass From: Natanael Copa To: gentoo-dev@lists.gentoo.org In-Reply-To: <20071002072922.GC24867@gentoo.org> References: <200710012259.40589.uberlord@gentoo.org> <20071002072922.GC24867@gentoo.org> Content-Type: text/plain Date: Tue, 02 Oct 2007 11:10:38 +0200 Message-Id: <1191316238.17531.21.camel@nc.nor.wtbts.org> 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 X-Mailer: Evolution 2.10.3 Content-Transfer-Encoding: 7bit X-Archives-Salt: 9cdb1e87-e63c-445b-b274-6b34c2c8dd95 X-Archives-Hash: 31842a836750a261df883499b00d0f7b On Tue, 2007-10-02 at 09:29 +0200, Fabian Groffen wrote: > On 01-10-2007 22:59:40 +0100, Roy Marples wrote: > > I would like to propse a new versionator.eclass for consideration (attached). > > > > This version, I believe, is more readable and maintainable then the one > > currently in portage. It also uses a lot less code and has the bonus of being > > pure sh. > > What is your rationale to say that "pure sh" is a "bonus"? Especially > given the environment this is used in as ferdy already pointed out? > > I personally like consistency. So if we use bash in ebuilds, then I'd > like to use bash in eclasses too. I'm interested in your motivation to > make this eclass "pure sh", whatever that may mean. Code is GPL. It can be reused. shell code that can compare versions is very attarctive. It can be used to write shellscripts that removes all tbz2 but the last version. It can be re-used in runtime-only environemnts. It can be reused on non-gentoo hosts hosting distfiles/tbz2. Or it can be reused in a binary only package manager like http://apk-tools.sf.net (yep, i reinveted the wheel there, just because my uclibc runtime environments dont include python) If it make sense to POSIX compliant shell code in any eclass, it would be version handling code. Thanks Roy! -nc -- gentoo-dev@gentoo.org mailing list