public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] sys-apps/kbd-1.12-r8
Date: Wed, 8 Nov 2006 11:11:26 +0000	[thread overview]
Message-ID: <20061108111126.5504dab8@hactar.digimed.co.uk> (raw)
In-Reply-To: <4551B50F.50801@shic.co.uk>

[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]

On Wed, 08 Nov 2006 10:44:31 +0000, Steve [Gentoo] wrote:

> The problem is that the configure script starts '#!/bin/sh' - but goes
> on to depend upon Bash specific features... specifically substitution. 
> I expect this would not be a problem for most users where /bin/sh is a
> sym-link to /bin/bash.... but, for me, /bin/sh was a sym-link to
> /bin/ash... and, for that shell, line 151 is invalid.  What is less
> clear is whether or not, in a Gentoo context, it is 'correct' to have
> /bin/sh being Borne-like but not Bash-like.  By preference I'd prefer
> /bin/sh to be the minimal shell that will execute Borne-shell scripts...
> but I recognise the Linux-world normality of /bin/sh actually being
> bash.

Bash behaves differently when called as sh, to avoid just this sort of
problem. However, if the script calls /bin/sh while requiring bash
features it is clearly broken and a bug should be files.

Unfortunately, this type of breakage is all too common; I tried using
dash as /bin/sh for a short while and found all sorts of things falling
over. In this case, it can be easily fixed, by the ebuild altering the
shebang line of configure before running it.


-- 
Neil Bothwick

Psychiatrists say that 1 of 4 people are mentally ill.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-11-08 11:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-06 11:53 [gentoo-user] sys-apps/kbd-1.12-r8 Steve [Gentoo]
2006-11-07  0:31 ` Bo Ørsted Andresen
2006-11-07 18:38   ` Steve [Gentoo]
2006-11-07 19:23     ` Bo Ørsted Andresen
2006-11-08 10:44       ` Steve [Gentoo]
2006-11-08 11:11         ` Neil Bothwick [this message]
2006-11-08 11:45         ` Bo Ørsted Andresen

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=20061108111126.5504dab8@hactar.digimed.co.uk \
    --to=neil@digimed.co.uk \
    --cc=gentoo-user@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