mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/1] bonnie++: Bump to version 1.97
@ 2015-04-21  9:44 Alexander Stein
  2015-04-27  9:26 ` Michael Olbrich
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Stein @ 2015-04-21  9:44 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Stein

This version needs a patch for configure as it fails when cross compiling.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
---
 ...igure-Don-t-bail-out-when-cross-compiling.patch | 27 ++++++++++++++++++++++
 patches/bonnie++-1.97/series                       |  4 ++++
 rules/bonniexx.make                                |  6 ++---
 3 files changed, 34 insertions(+), 3 deletions(-)
 create mode 100644 patches/bonnie++-1.97/0001-configure-Don-t-bail-out-when-cross-compiling.patch
 create mode 100644 patches/bonnie++-1.97/series

diff --git a/patches/bonnie++-1.97/0001-configure-Don-t-bail-out-when-cross-compiling.patch b/patches/bonnie++-1.97/0001-configure-Don-t-bail-out-when-cross-compiling.patch
new file mode 100644
index 0000000..45a6e72
--- /dev/null
+++ b/patches/bonnie++-1.97/0001-configure-Don-t-bail-out-when-cross-compiling.patch
@@ -0,0 +1,27 @@
+From: Alexander Stein <alexander.stein@systec-electronic.com>
+Date: Tue, 21 Apr 2015 09:27:31 +0200
+Subject: [PATCH] configure: Don't bail out when cross compiling
+
+The configure script exits with error when cross compiling. Skipping
+the tests the package can be build for target.
+
+Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
+---
+ configure | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/configure b/configure
+index 4495abe..44086ed 100755
+--- a/configure
++++ b/configure
+@@ -3955,9 +3955,7 @@ rm -f core conftest.err conftest.$ac_objext \
+ 
+ if test "$cross_compiling" = yes; then :
+   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "cannot run test program while cross compiling
+-See \`config.log' for more details" "$LINENO" 5 ; }
++$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} }
+ else
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
diff --git a/patches/bonnie++-1.97/series b/patches/bonnie++-1.97/series
new file mode 100644
index 0000000..d83b18a
--- /dev/null
+++ b/patches/bonnie++-1.97/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-configure-Don-t-bail-out-when-cross-compiling.patch
+# 1492c16fc3a16d9cbc1fa942482a9cf1  - git-ptx-patches magic
diff --git a/rules/bonniexx.make b/rules/bonniexx.make
index 440975d..921ce8d 100644
--- a/rules/bonniexx.make
+++ b/rules/bonniexx.make
@@ -17,11 +17,11 @@ PACKAGES-$(PTXCONF_BONNIEXX) += bonniexx
 #
 # Paths and names
 #
-BONNIEXX_VERSION	:= 1.03e
-BONNIEXX_MD5		:= 750aa5b5051263a99c6c195888c74968
+BONNIEXX_VERSION	:= 1.97
+BONNIEXX_MD5		:= d6cf9703242998b2ddc2d875b028b3c6
 BONNIEXX		:= bonnie++-$(BONNIEXX_VERSION)
 BONNIEXX_SUFFIX		:= tgz
-BONNIEXX_URL		:= http://www.coker.com.au/bonnie++/$(BONNIEXX).$(BONNIEXX_SUFFIX)
+BONNIEXX_URL		:= http://www.coker.com.au/bonnie++/experimental/$(BONNIEXX).$(BONNIEXX_SUFFIX)
 BONNIEXX_SOURCE		:= $(SRCDIR)/$(BONNIEXX).$(BONNIEXX_SUFFIX)
 BONNIEXX_DIR		:= $(BUILDDIR)/$(BONNIEXX)
 BONNIEXX_LICENSE	:= GPLv2
-- 
2.0.5


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH 1/1] bonnie++: Bump to version 1.97
  2015-04-21  9:44 [ptxdist] [PATCH 1/1] bonnie++: Bump to version 1.97 Alexander Stein
@ 2015-04-27  9:26 ` Michael Olbrich
  2015-04-27 10:32   ` Alexander Stein
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Olbrich @ 2015-04-27  9:26 UTC (permalink / raw)
  To: ptxdist

On Tue, Apr 21, 2015 at 11:44:41AM +0200, Alexander Stein wrote:
> This version needs a patch for configure as it fails when cross compiling.

We don't patch configure scripts. You can tell AC_TRY_RUN what to do when
cross-compiling. Either use that to disable this (I think it's the large
file check, right?) or wrap the whole check in a AC_CACHE_CHECK and set the
correct value in the environment.

And then add a autogen.sh link to the patches (like many other packages in
ptxdist).

Michael

> Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
> ---
>  ...igure-Don-t-bail-out-when-cross-compiling.patch | 27 ++++++++++++++++++++++
>  patches/bonnie++-1.97/series                       |  4 ++++
>  rules/bonniexx.make                                |  6 ++---
>  3 files changed, 34 insertions(+), 3 deletions(-)
>  create mode 100644 patches/bonnie++-1.97/0001-configure-Don-t-bail-out-when-cross-compiling.patch
>  create mode 100644 patches/bonnie++-1.97/series
> 
> diff --git a/patches/bonnie++-1.97/0001-configure-Don-t-bail-out-when-cross-compiling.patch b/patches/bonnie++-1.97/0001-configure-Don-t-bail-out-when-cross-compiling.patch
> new file mode 100644
> index 0000000..45a6e72
> --- /dev/null
> +++ b/patches/bonnie++-1.97/0001-configure-Don-t-bail-out-when-cross-compiling.patch
> @@ -0,0 +1,27 @@
> +From: Alexander Stein <alexander.stein@systec-electronic.com>
> +Date: Tue, 21 Apr 2015 09:27:31 +0200
> +Subject: [PATCH] configure: Don't bail out when cross compiling
> +
> +The configure script exits with error when cross compiling. Skipping
> +the tests the package can be build for target.
> +
> +Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
> +---
> + configure | 4 +---
> + 1 file changed, 1 insertion(+), 3 deletions(-)
> +
> +diff --git a/configure b/configure
> +index 4495abe..44086ed 100755
> +--- a/configure
> ++++ b/configure
> +@@ -3955,9 +3955,7 @@ rm -f core conftest.err conftest.$ac_objext \
> + 
> + if test "$cross_compiling" = yes; then :
> +   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
> +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
> +-as_fn_error $? "cannot run test program while cross compiling
> +-See \`config.log' for more details" "$LINENO" 5 ; }
> ++$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} }
> + else
> +   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
> + /* end confdefs.h.  */
> diff --git a/patches/bonnie++-1.97/series b/patches/bonnie++-1.97/series
> new file mode 100644
> index 0000000..d83b18a
> --- /dev/null
> +++ b/patches/bonnie++-1.97/series
> @@ -0,0 +1,4 @@
> +# generated by git-ptx-patches
> +#tag:base --start-number 1
> +0001-configure-Don-t-bail-out-when-cross-compiling.patch
> +# 1492c16fc3a16d9cbc1fa942482a9cf1  - git-ptx-patches magic
> diff --git a/rules/bonniexx.make b/rules/bonniexx.make
> index 440975d..921ce8d 100644
> --- a/rules/bonniexx.make
> +++ b/rules/bonniexx.make
> @@ -17,11 +17,11 @@ PACKAGES-$(PTXCONF_BONNIEXX) += bonniexx
>  #
>  # Paths and names
>  #
> -BONNIEXX_VERSION	:= 1.03e
> -BONNIEXX_MD5		:= 750aa5b5051263a99c6c195888c74968
> +BONNIEXX_VERSION	:= 1.97
> +BONNIEXX_MD5		:= d6cf9703242998b2ddc2d875b028b3c6
>  BONNIEXX		:= bonnie++-$(BONNIEXX_VERSION)
>  BONNIEXX_SUFFIX		:= tgz
> -BONNIEXX_URL		:= http://www.coker.com.au/bonnie++/$(BONNIEXX).$(BONNIEXX_SUFFIX)
> +BONNIEXX_URL		:= http://www.coker.com.au/bonnie++/experimental/$(BONNIEXX).$(BONNIEXX_SUFFIX)
>  BONNIEXX_SOURCE		:= $(SRCDIR)/$(BONNIEXX).$(BONNIEXX_SUFFIX)
>  BONNIEXX_DIR		:= $(BUILDDIR)/$(BONNIEXX)
>  BONNIEXX_LICENSE	:= GPLv2
> -- 
> 2.0.5
> 
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH 1/1] bonnie++: Bump to version 1.97
  2015-04-27  9:26 ` Michael Olbrich
@ 2015-04-27 10:32   ` Alexander Stein
  2015-04-27 10:48     ` Michael Olbrich
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Stein @ 2015-04-27 10:32 UTC (permalink / raw)
  To: ptxdist; +Cc: Michael Olbrich

Hello Michael,

On Monday 27 April 2015 11:26:08, Michael Olbrich wrote:
> On Tue, Apr 21, 2015 at 11:44:41AM +0200, Alexander Stein wrote:
> > This version needs a patch for configure as it fails when cross compiling.
> 
> We don't patch configure scripts. You can tell AC_TRY_RUN what to do when
> cross-compiling. Either use that to disable this (I think it's the large
> file check, right?) or wrap the whole check in a AC_CACHE_CHECK and set the
> correct value in the environment.

I see that AC_TRY_RUN accepts 3 parameters for sucess, fail and cross-compile. The first two are no problem, but the third should be set according to PTXCONF_GLOBAL_LARGE_FILE. How can I access that environment (?) variable. I'm no autotools expert nor regular users of that.
Another method would be to use AC_SYS_LARGEFILE, but I have no idea how to set 'large_file' for large_file then.

> And then add a autogen.sh link to the patches (like many other packages in
> ptxdist).

Ok, got that.

Best regards,
Alexander
-- 
Dipl.-Inf. Alexander Stein

SYS TEC electronic GmbH
Am Windrad 2
08468 Heinsdorfergrund
Tel.: 03765 38600-1156
Fax: 03765 38600-4100
Email: alexander.stein@systec-electronic.com
Website: www.systec-electronic.com
 
Managing Director: Dipl.-Phys. Siegmar Schmidt
Commercial registry: Amtsgericht Chemnitz, HRB 28082


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH 1/1] bonnie++: Bump to version 1.97
  2015-04-27 10:32   ` Alexander Stein
@ 2015-04-27 10:48     ` Michael Olbrich
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2015-04-27 10:48 UTC (permalink / raw)
  To: ptxdist

Hi,

On Mon, Apr 27, 2015 at 12:32:47PM +0200, Alexander Stein wrote:
> On Monday 27 April 2015 11:26:08, Michael Olbrich wrote:
> > On Tue, Apr 21, 2015 at 11:44:41AM +0200, Alexander Stein wrote:
> > > This version needs a patch for configure as it fails when cross compiling.
> > 
> > We don't patch configure scripts. You can tell AC_TRY_RUN what to do when
> > cross-compiling. Either use that to disable this (I think it's the large
> > file check, right?) or wrap the whole check in a AC_CACHE_CHECK and set the
> > correct value in the environment.
> 
> I see that AC_TRY_RUN accepts 3 parameters for sucess, fail and
> cross-compile. The first two are no problem, but the third should be set
> according to PTXCONF_GLOBAL_LARGE_FILE. How can I access that environment (?)
> variable. I'm no autotools expert nor regular users of that.

That's what AC_CACHE_CHECK[1] is for. The cache-id can be set via
environment. If the variable is set, then the command isn't executed at
all:

AC_CACHE_CHECK([Large file support], bonnie_cv_sys_largefile,
AC_TRY_RUN...])
if [[ "x$bonnie_cv_sys_largefile" = "xyes" ]]; then
...

> Another method would be to use AC_SYS_LARGEFILE, but I have no idea how to
> set 'large_file' for large_file then.

[1] http://www.gnu.org/software/autoconf/manual/autoconf-2.66/html_node/Caching-Results.html

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-04-27 10:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-21  9:44 [ptxdist] [PATCH 1/1] bonnie++: Bump to version 1.97 Alexander Stein
2015-04-27  9:26 ` Michael Olbrich
2015-04-27 10:32   ` Alexander Stein
2015-04-27 10:48     ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox