Re: [gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-07 Thread Mike Frysinger
On Sunday 07 October 2007, Roy Marples wrote: > On Sun, 2007-10-07 at 01:09 -0400, Mike Frysinger wrote: > > On Tuesday 02 October 2007, George Shapovalov wrote: > > > Tuesday, 2. October 2007, Roy Marples Ви написали: > > > > And here it is > > > > > > - if [[ "${FORTRANC}" = "gfortran" ]];

Re: [gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-07 Thread Roy Marples
On Sun, 2007-10-07 at 01:09 -0400, Mike Frysinger wrote: > On Tuesday 02 October 2007, George Shapovalov wrote: > > Tuesday, 2. October 2007, Roy Marples Ви написали: > > > And here it is > > > > - if [[ "${FORTRANC}" = "gfortran" ]]; then > > + if [ "${FORTRANC}" = "gfortran" ]; then >

Re: [gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-06 Thread Mike Frysinger
On Tuesday 02 October 2007, George Shapovalov wrote: > Tuesday, 2. October 2007, Roy Marples Ви написали: > > And here it is > > - if [[ "${FORTRANC}" = "gfortran" ]]; then > + if [ "${FORTRANC}" = "gfortran" ]; then > > You know, it is funny to see these lines after all those cries abo

Re: [gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-03 Thread Fabian Groffen
On 03-10-2007 09:40:02 +0100, Roy Marples wrote: > > Although, I have to ask: what is so terrible about installing GNU findutils? > > Personally I'd just build in a chroot if the pollution were that bad. > > (AFAICT the whole point of GNU stuff is to have a consistent Free > > foundation. But like

Re: [gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-03 Thread Yuri Gagarin
On 10/2/07, Alex Tarkovsky <[EMAIL PROTECTED]> wrote: > On 10/2/07, Roy Marples <[EMAIL PROTECTED]> wrote: > > > I accept the argument for initscripts, since an embedded system is not > > > likely to have bash. But for compile-time (which shouldn't happen on an > > > embedded target) there simply i

Re: [gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-03 Thread Roy Marples
On Wed, 2007-10-03 at 01:55 +0100, Steve Long wrote: > If you have the patches and can make it work consistently on all gentoo > platforms, imo you should just do a custom find for gentoo. Distributing it > to users won't be an issue, and by standardising here you can prove the > benefits, while sa

Re: [gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-02 Thread Roy Marples
On Tue, 2007-10-02 at 19:29 -0600, Ryan Hill wrote: > Steve Long wrote: > > IMO the real reason you have such an issue with quoting is the redundant > > braces which are Gentoo house style; too many newbie scripters think that > > cd ${S} is safe when it should be cd "${S}" or more simply cd "$S".

[gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-02 Thread Ryan Hill
Steve Long wrote: > IMO the real reason you have such an issue with quoting is the redundant > braces which are Gentoo house style; too many newbie scripters think that > cd ${S} is safe when it should be cd "${S}" or more simply cd "$S". I don't > buy the legibility argument since most people use

[gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-02 Thread Steve Long
Roy Marples wrote: > On Tue, 2007-10-02 at 17:02 -0600, Joe Peterson wrote: >> Mike Frysinger wrote: >> > wrong. bash and GNU prevail because they provide useful extensions. >> > it may be worthwhile to force `find` in the portage environment to be >> > GNU find so we can stop wasting time tryin

Re: [gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-02 Thread Alex Tarkovsky
On 10/2/07, Roy Marples <[EMAIL PROTECTED]> wrote: > > I accept the argument for initscripts, since an embedded system is not > > likely to have bash. But for compile-time (which shouldn't happen on an > > embedded target) there simply isn't any real benefit to end-users that I > > can see. > > The

Re: [gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-02 Thread Roy Marples
On Tue, 2007-10-02 at 18:30 +0200, George Shapovalov wrote: > Tuesday, 2. October 2007, Roy Marples Ви написали: > > And here it is > - if [[ "${FORTRANC}" = "gfortran" ]]; then > + if [ "${FORTRANC}" = "gfortran" ]; then > > You know, it is funny to see these lines after all those cri

Re: [gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-02 Thread George Shapovalov
Tuesday, 2. October 2007, Roy Marples Ви написали: > And here it is - if [[ "${FORTRANC}" = "gfortran" ]]; then + if [ "${FORTRANC}" = "gfortran" ]; then You know, it is funny to see these lines after all those cries about how [ is evil and we should really never ever use it but rathe

Re: [gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-02 Thread Roy Marples
On Tue, 2007-10-02 at 15:18 +0100, Roy Marples wrote: > Attached is a patch to make it posix sh. And here it is Index: molden-4.6.ebuild === RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/molden/molden-4.6.ebuild,v retrieving revisio

Re: [gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-02 Thread Roy Marples
On Tue, 2007-10-02 at 13:36 +0100, Steve Long wrote: > ++ There's just too much nice stuff in BASH to drop down to sh to my mind. I > for one would go right off Gentoo if i were forced to write ebuilds in sh. I had this chat with Donnie last night and he pulled the molden ebuild of the top of his

Re: [gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-02 Thread Mike Frysinger
On Tuesday 02 October 2007, Duncan wrote: > Roy Marples <[EMAIL PROTECTED]> posted > [EMAIL PROTECTED], excerpted below, on > > Tue, 02 Oct 2007 12:28:30 +0100: > > On Tue, 2007-10-02 at 06:57 -0400, Mike Frysinger wrote: > >> i am convinced by superior standards and by good things. forcing the >

Re: [gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-02 Thread Alec Warner
On 10/2/07, Duncan <[EMAIL PROTECTED]> wrote: > Roy Marples <[EMAIL PROTECTED]> posted > [EMAIL PROTECTED], excerpted below, on > Tue, 02 Oct 2007 12:28:30 +0100: > > > On Tue, 2007-10-02 at 06:57 -0400, Mike Frysinger wrote: > >> i am convinced by superior standards and by good things. forcing th

[gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-02 Thread Duncan
Roy Marples <[EMAIL PROTECTED]> posted [EMAIL PROTECTED], excerpted below, on Tue, 02 Oct 2007 12:28:30 +0100: > On Tue, 2007-10-02 at 06:57 -0400, Mike Frysinger wrote: >> i am convinced by superior standards and by good things. forcing the >> standard from bash to POSIX is neither of these. i

[gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-02 Thread Steve Long
Mike Frysinger wrote: > On Tuesday 02 October 2007, Roy Marples wrote: >> I like consistency too, and I'll be pushing for using sh instead of >> forcing bash. > > pushing a new standard by slowly converting the tree is not the way to go. > >> My motivation? Simple. I don't believe that the porta

[gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-02 Thread Steve Long
Roy Marples wrote: > On Tue, 2007-10-02 at 08:35 +0200, Natanael Copa wrote: >> After a quick look I wonder how/if it deals with: >> >> 1.01 < 1.1 > > It treats them the same way > > [EMAIL PROTECTED] ~ $ bash -c '. /usr/portage/eclass/versionator.eclass; > version_compare 1.01 1.1; echo $?' >

[gentoo-dev] Re: RFC: sh versionator.eclass

2007-10-02 Thread Duncan
Roy Marples <[EMAIL PROTECTED]> posted [EMAIL PROTECTED], excerpted below, on Tue, 02 Oct 2007 07:26:39 +0100: >> > > but I find interesting that >> > > you ripped Ciaran's copyright while leaving the "Prod ciaranm if >> > > you find something it can't handle" comment. >> > >> > I copied and past