Patchwork [1/3] pciutils: fix configure script for dash

login
register
mail settings
Submitter Joshua Lock
Date Feb. 1, 2012, 12:58 a.m.
Message ID <0de11fff1e41291501f20a26e4611142aa17a94d.1328057677.git.josh@linux.intel.com>
Download mbox | patch
Permalink /patch/20469/
State Accepted
Commit ad72484a2783afa948966263629006558fbde476
Headers show

Comments

Joshua Lock - Feb. 1, 2012, 12:58 a.m.
configure.patch was missing a closing quote in a sed expression which
causes script execution to error on less forgiving shells such as dash.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
---
 .../pciutils/pciutils-3.1.9/configure.patch        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Khem Raj - Feb. 1, 2012, 4:08 p.m.
On Tue, Jan 31, 2012 at 4:58 PM, Joshua Lock <josh@linux.intel.com> wrote:
> configure.patch was missing a closing quote in a sed expression which
> causes script execution to error on less forgiving shells such as dash.
>
> Signed-off-by: Joshua Lock <josh@linux.intel.com>

coincidently I have same patch locally and it works :)

> ---
>  .../pciutils/pciutils-3.1.9/configure.patch        |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/meta/recipes-bsp/pciutils/pciutils-3.1.9/configure.patch b/meta/recipes-bsp/pciutils/pciutils-3.1.9/configure.patch
> index 658e597..66c9f91 100644
> --- a/meta/recipes-bsp/pciutils/pciutils-3.1.9/configure.patch
> +++ b/meta/recipes-bsp/pciutils/pciutils-3.1.9/configure.patch
> @@ -67,7 +67,7 @@ diff -r af2b10cc3c14 lib/configure
>                cpu=`/usr/sbin/lsattr -F value -l $proc -a type | sed 's/_.*//'`
>        else
>  -              cpu=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/'`
> -+              cpu=${4:-`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/`}
> ++              cpu=${4:-`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/'`}
>        fi
>        if [ "$sys" = "GNU/kFreeBSD" -o "$sys" = "DragonFly" ]
>        then
> --
> 1.7.7.6
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Patch

diff --git a/meta/recipes-bsp/pciutils/pciutils-3.1.9/configure.patch b/meta/recipes-bsp/pciutils/pciutils-3.1.9/configure.patch
index 658e597..66c9f91 100644
--- a/meta/recipes-bsp/pciutils/pciutils-3.1.9/configure.patch
+++ b/meta/recipes-bsp/pciutils/pciutils-3.1.9/configure.patch
@@ -67,7 +67,7 @@  diff -r af2b10cc3c14 lib/configure
  		cpu=`/usr/sbin/lsattr -F value -l $proc -a type | sed 's/_.*//'`
  	else
 -		cpu=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/'`
-+		cpu=${4:-`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/`}
++		cpu=${4:-`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/'`}
  	fi
  	if [ "$sys" = "GNU/kFreeBSD" -o "$sys" = "DragonFly" ]
  	then