All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Olzheim <zlo@zlo.nu>
To: openembedded-devel@lists.openembedded.org
Subject: Re: Commit 2e0fa4918d643ce6ec0299cd31cfe1c346e4bce3 breaks	libtool's do_configure [PATCH]
Date: Thu, 30 Jul 2009 16:48:31 +0200	[thread overview]
Message-ID: <20090730144831.GA30445@zlo.nu> (raw)
In-Reply-To: <c384c5ea0907300622k5ab4bc15yeae9f448312fb887@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 625 bytes --]

On Thu, Jul 30, 2009 at 03:22:19PM +0200, Leon Woestenberg wrote:
> > My /bin/sh is a dash, I should have known, my apologies.  I have a patch
> >
> Testing with dash rather than bash is GOOD due to it adhering to POSIX
> without much of the bash-specifics.

Well, I agree, but judging by commit
e0ed375a8dfb292bdd72f5891917ef81f361f15c to classes/sanity.bbclass, I
assumed the policy was to require /bin/bash for /bin/sh instead of
fixing bashisms.

To not be obligated to use bash, I added the attached patch.

> So please do not introduce 'bashisms'  (dependencies on bash behaviour).

I agree ;-)

Marc

[-- Attachment #1.2: dash.patch --]
[-- Type: text/x-diff, Size: 1039 bytes --]

commit d37e8ae3fb24b589793ae92062d665cc6384151e
Author: Marc Olzheim <marc@iphion.nl>
Date:   Thu Jun 11 12:44:34 2009 +0200

    Make allowing dash as /bin/sh a configuration option.

diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index 29624c3..3ee9a0a 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -112,11 +112,12 @@ def check_sanity(e):
 		missing = missing.rstrip(',')
 		messages = messages + "Please install following missing utilities: %s\n" % missing
 
-	try:
-	    if os.path.basename(os.readlink('/bin/sh')) == 'dash':
-		    messages = messages + "Using dash as /bin/sh causes various subtle build problems, please use bash instead.\n"
-	except:
-		pass
+	if not data.getVar( 'ALLOW_DASH_SH', e.data, True ):
+		try:
+		    if os.path.basename(os.readlink('/bin/sh')) == 'dash':
+			    messages = messages + "Using dash as /bin/sh causes various subtle build problems, please use bash instead.\n"
+		except:
+			pass
 
 	omask = os.umask(022)
 	if omask & 0755:

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 204 bytes --]

  reply	other threads:[~2009-07-30 15:03 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-01 10:39 How to convert OE hardware platform from ARM into X86 刘芳华
2009-06-04 19:38 ` GNUtoo
2009-06-05  2:12   ` 刘芳华
2009-06-05 12:37     ` GNUtoo
2009-06-05 12:53     ` GNUtoo
2009-06-10  6:48       ` OE Build :error configure failed to discover size of unix socket path 刘芳华
2009-06-10 11:34         ` Lin_Lynn
2009-06-10 12:00         ` Stanislav Brabec
2009-07-30 10:57           ` Commit 2e0fa4918d643ce6ec0299cd31cfe1c346e4bce3 breaks libtool's do_configure [PATCH] Marc Olzheim
2009-07-30 11:14             ` Stanislav Brabec
2009-07-30 11:49               ` Marc Olzheim
2009-07-30 12:14                 ` Stanislav Brabec
2009-07-30 12:50                   ` Marc Olzheim
2009-07-30 13:22                     ` Leon Woestenberg
2009-07-30 14:48                       ` Marc Olzheim [this message]
2009-07-30 14:57                         ` Philip Balister
2009-07-30 15:12                           ` Marc Olzheim
2009-07-30 15:01                         ` Graeme Gregory
2009-07-30 16:39                           ` Koen Kooi
2009-08-01  5:32               ` Mike Westerhof
2009-08-02  1:32                 ` Mike Westerhof
2009-08-02  3:56                   ` Mike Westerhof
2009-08-02  9:21                     ` Koen Kooi
2009-08-03  8:26                     ` Marc Olzheim
2009-08-02  8:49                   ` Koen Kooi

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=20090730144831.GA30445@zlo.nu \
    --to=zlo@zlo.nu \
    --cc=openembedded-devel@lists.openembedded.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.