Patchwork [OE-core] lmbench: update config script

login
register
mail settings
Submitter chunrong guo
Date March 1, 2013, 9:50 a.m.
Message ID <1362131442-26879-1-git-send-email-B40290@freescale.com>
Download mbox | patch
Permalink /patch/45353/
State Accepted, archived
Headers show

Comments

chunrong guo - March 1, 2013, 9:50 a.m.
From: Chunrong Guo <b40290@freescale.com>

      *fix bug that can not find  CONFIG file
      |error: run ./results|./results: line 15: .: CONFIG.p2041rdb: file not found
      * update CONFIG file path

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 .../lmbench-3.0-a9/update-config-script.patch      |   12 ++++++++++++
 .../recipes-benchmark/lmbench/lmbench_3.0-a9.bb    |    5 +++--
 2 files changed, 15 insertions(+), 2 deletions(-)
 create mode 100644 meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-config-script.patch
Martin Jansa - March 1, 2013, 10:18 a.m.
On Fri, Mar 01, 2013 at 05:50:42PM +0800, Chunrong Guo wrote:
> From: Chunrong Guo <b40290@freescale.com>
> 
>       *fix bug that can not find  CONFIG file
>       |error: run ./results|./results: line 15: .: CONFIG.p2041rdb: file not found
>       * update CONFIG file path
> 
> Signed-off-by: Chunrong Guo <B40290@freescale.com>
> ---
>  .../lmbench-3.0-a9/update-config-script.patch      |   12 ++++++++++++
>  .../recipes-benchmark/lmbench/lmbench_3.0-a9.bb    |    5 +++--
>  2 files changed, 15 insertions(+), 2 deletions(-)
>  create mode 100644 meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-config-script.patch
> 
> diff --git a/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-config-script.patch b/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-config-script.patch
> new file mode 100644
> index 0000000..b46e09a
> --- /dev/null
> +++ b/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-config-script.patch
> @@ -0,0 +1,12 @@
> +Upstream-Status: Pending
> +Index: lmbench-3.0-a9/scripts/config
> +===================================================================
> +--- lmbench-3.0-a9/scripts/config	2000-01-31 18:29:31.000000000 -0600
> ++++ lmbench-3.0-a9/scripts/config	2013-03-01 00:19:41.032984315 -0600
> +@@ -3,5 +3,5 @@
> + UNAME=`uname -n 2>/dev/null`
> + if [ X$UNAME = X ]
> + then	echo CONFIG
> +-else	echo CONFIG.$UNAME
> ++else	echo ../scripts/CONFIG.$UNAME
> + fi
> diff --git a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
> index 611013e..026b067 100644
> --- a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
> +++ b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
> @@ -7,14 +7,15 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
>  
>  inherit autotools
>  
> -PR = "r1"
> +PR = "r2"
>  
>  SRC_URI = "${SOURCEFORGE_MIRROR}/lmbench/lmbench-${PV}.tgz \
>  	   file://lmbench-run \
>  	   file://rename-line-binary.patch \
>  	   file://update-results-script.patch \
>  	   file://obey-ranlib.patch \
> -	   "
> +	   file://update-config-script.patch \ 
> +	  "

Please don't mix tabs and spaces. I know it was there before.

>  SRC_URI[md5sum] = "b3351a3294db66a72e2864a199d37cbf"
>  SRC_URI[sha256sum] = "cbd5777d15f44eab7666dcac418054c3c09df99826961a397d9acf43d8a2a551"
>  
> -- 
> 1.7.5.4
> 
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Martin Jansa - March 13, 2013, 4:40 p.m.
On Fri, Mar 01, 2013 at 11:18:05AM +0100, Martin Jansa wrote:
> On Fri, Mar 01, 2013 at 05:50:42PM +0800, Chunrong Guo wrote:
> > From: Chunrong Guo <b40290@freescale.com>
> > 
> >       *fix bug that can not find  CONFIG file
> >       |error: run ./results|./results: line 15: .: CONFIG.p2041rdb: file not found
> >       * update CONFIG file path
> > 
> > Signed-off-by: Chunrong Guo <B40290@freescale.com>
> > ---
> >  .../lmbench-3.0-a9/update-config-script.patch      |   12 ++++++++++++
> >  .../recipes-benchmark/lmbench/lmbench_3.0-a9.bb    |    5 +++--
> >  2 files changed, 15 insertions(+), 2 deletions(-)
> >  create mode 100644 meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-config-script.patch
> > 
> > diff --git a/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-config-script.patch b/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-config-script.patch
> > new file mode 100644
> > index 0000000..b46e09a
> > --- /dev/null
> > +++ b/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-config-script.patch
> > @@ -0,0 +1,12 @@
> > +Upstream-Status: Pending
> > +Index: lmbench-3.0-a9/scripts/config
> > +===================================================================
> > +--- lmbench-3.0-a9/scripts/config	2000-01-31 18:29:31.000000000 -0600
> > ++++ lmbench-3.0-a9/scripts/config	2013-03-01 00:19:41.032984315 -0600
> > +@@ -3,5 +3,5 @@
> > + UNAME=`uname -n 2>/dev/null`
> > + if [ X$UNAME = X ]
> > + then	echo CONFIG
> > +-else	echo CONFIG.$UNAME
> > ++else	echo ../scripts/CONFIG.$UNAME
> > + fi
> > diff --git a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
> > index 611013e..026b067 100644
> > --- a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
> > +++ b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
> > @@ -7,14 +7,15 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
> >  
> >  inherit autotools
> >  
> > -PR = "r1"
> > +PR = "r2"
> >  
> >  SRC_URI = "${SOURCEFORGE_MIRROR}/lmbench/lmbench-${PV}.tgz \
> >  	   file://lmbench-run \
> >  	   file://rename-line-binary.patch \
> >  	   file://update-results-script.patch \
> >  	   file://obey-ranlib.patch \
> > -	   "
> > +	   file://update-config-script.patch \ 
> > +	  "
> 
> Please don't mix tabs and spaces. I know it was there before.

Fixed and applied

> 
> >  SRC_URI[md5sum] = "b3351a3294db66a72e2864a199d37cbf"
> >  SRC_URI[sha256sum] = "cbd5777d15f44eab7666dcac418054c3c09df99826961a397d9acf43d8a2a551"
> >  
> > -- 
> > 1.7.5.4
> > 
> > 
> > 
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> 
> -- 
> Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

Patch

diff --git a/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-config-script.patch b/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-config-script.patch
new file mode 100644
index 0000000..b46e09a
--- /dev/null
+++ b/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-config-script.patch
@@ -0,0 +1,12 @@ 
+Upstream-Status: Pending
+Index: lmbench-3.0-a9/scripts/config
+===================================================================
+--- lmbench-3.0-a9/scripts/config	2000-01-31 18:29:31.000000000 -0600
++++ lmbench-3.0-a9/scripts/config	2013-03-01 00:19:41.032984315 -0600
+@@ -3,5 +3,5 @@
+ UNAME=`uname -n 2>/dev/null`
+ if [ X$UNAME = X ]
+ then	echo CONFIG
+-else	echo CONFIG.$UNAME
++else	echo ../scripts/CONFIG.$UNAME
+ fi
diff --git a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
index 611013e..026b067 100644
--- a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
+++ b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
@@ -7,14 +7,15 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
 
 inherit autotools
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/lmbench/lmbench-${PV}.tgz \
 	   file://lmbench-run \
 	   file://rename-line-binary.patch \
 	   file://update-results-script.patch \
 	   file://obey-ranlib.patch \
-	   "
+	   file://update-config-script.patch \ 
+	  "
 SRC_URI[md5sum] = "b3351a3294db66a72e2864a199d37cbf"
 SRC_URI[sha256sum] = "cbd5777d15f44eab7666dcac418054c3c09df99826961a397d9acf43d8a2a551"