public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Steve Long <slong@rathaus.eclipse.co.uk>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev]  Re: POSIX shell and "portable"
Date: Sat, 03 Nov 2007 16:19:28 +0000	[thread overview]
Message-ID: <fgi6rd$fbk$1@ger.gmane.org> (raw)
In-Reply-To: 1194051966.16405.16.camel@uberpc.marples.name

Roy Marples wrote:

> On Sat, 2007-11-03 at 01:19 +0100, Fabian Groffen wrote:
>> Please stop calling it "more portable".  The shell code you see in
>> configure can in a way be called "portable".  Your POSIX compliant stuff
>> isn't.  In fact, by stating #!/bin/sh you actually make the code useless
>> on a number of platforms, where it would have been working fine if there
>> just were #!/bin/bash there.
>> 
>> It seems to me that you actually mean "more FreeBSD-able" or something,
>> which is a high price to pay for a relatively small part of Gentoo as a
>> whole.
> 
> Another way of looking at it is that you're forcing specific tools on
> people, where I am asking people to use standard POSIX tools.
>
No, you're waging a campaign to get all Gentoo ebuilds in sh, by pointing
out how certain constructs can be rewritten in sh. If your campaign is
successful, all Gentoo devs will be forced to write in sh. Saying it's
standard when the standard is a) pretty old and b) pretty minimalistic
doesn't make it a tool "that's up to the job".

> I guess it's because I'm an Engineer and you probably aren't. If the
> tool isn't up to the job, then fix the tool. If the tool doesn't claim
> any standards compliance then feel free to change it.
> 
Er there are two conflicting statements there. The *standard* isn't up to
the job, in that use of the sh syntax you promote leads to longer
maintenance times and increased likelihood of bugs, since the code is
counter-intuitive (aka fugly ;)

As Mr Copa said "bash itself is portable."

As a _software_ engineer I am vehemently opposed for the reasons given. The
reason for my vehemence is that I don't want to see Gentoo devs spending
extra time working around limitations in sh (which is a *base* standard)
when really there are /far/ better technical ways round getting, say,
ebuilds installed on a Linux Phone (and I have seen *no* other use-case
which merits use of sh in package management; it's hardly our core
user-base, is it?)


-- 
gentoo-dev@gentoo.org mailing list



  reply	other threads:[~2007-11-03 16:19 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-02 13:44 [gentoo-dev] More general interface to use flags Marijn Schouten (hkBst)
2007-11-02 14:04 ` Roy Marples
2007-11-02 14:27   ` Marijn Schouten (hkBst)
2007-11-02 14:52     ` Roy Marples
2007-11-02 14:59   ` Mike Frysinger
2007-11-02 15:30     ` Roy Marples
2007-11-02 15:38       ` Mike Frysinger
2007-11-02 15:48         ` Roy Marples
2007-11-02 15:58           ` Mike Frysinger
2007-11-02 16:10             ` Roy Marples
2007-11-02 16:30               ` Bo Ørsted Andresen
2007-11-02 16:52                 ` Roy Marples
2007-11-02 17:17                   ` Bo Ørsted Andresen
2007-11-02 17:35                     ` Roy Marples
2007-11-03  0:19                       ` [gentoo-dev] POSIX shell and "portable" Fabian Groffen
2007-11-03  0:47                         ` Roy Marples
2007-11-05  9:22                           ` Michael Haubenwallner
2007-11-05 10:13                             ` Roy Marples
2007-11-05 13:21                               ` Michael Haubenwallner
2007-11-05 20:21                                 ` Mike Frysinger
2007-11-05 23:18                                   ` Roy Marples
2007-11-06  7:12                                     ` Ciaran McCreesh
2007-11-06  7:40                                       ` Roy Marples
2007-11-06  8:03                                         ` Ciaran McCreesh
2007-11-06  8:25                                           ` Roy Marples
2007-11-06  9:04                                     ` Michael Haubenwallner
2007-11-05 20:32                                 ` Roy Marples
2007-11-05 20:55                                   ` Fabian Groffen
2007-11-05 22:27                                   ` Mike Frysinger
2007-11-03  0:57                         ` Natanael copa
2007-11-03  1:06                         ` Roy Marples
2007-11-03 16:19                           ` Steve Long [this message]
2007-11-03  1:10                         ` Roy Marples
     [not found]                       ` <b41005390711022225i4f30bb01jbf5a040c60c4b088@mail.gmail.com>
2007-11-03  5:26                         ` Fwd: [gentoo-dev] More general interface to use flags Alec Warner
2007-11-03 21:57                           ` Mike Frysinger
2007-11-04 10:54 ` [gentoo-dev] " Steve Long
2007-11-04 21:54   ` Alec Warner
2007-11-06 11:50     ` Steve Long

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='fgi6rd$fbk$1@ger.gmane.org' \
    --to=slong@rathaus.eclipse.co.uk \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox