[oe-commits] Holger Hans Peter Freyther : libsamplerate0-0.1.7: Fix configure run with recent autoconf

git version control git at git.openembedded.org
Tue Mar 23 15:23:52 UTC 2010


Module: openembedded.git
Branch: shr/unstable
Commit: dd651f27f6c62a043e06025c9825f38264245229
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=dd651f27f6c62a043e06025c9825f38264245229

Author: Holger Hans Peter Freyther <zecke at selfish.org>
Date:   Tue Mar 23 16:30:55 2010 +0800

libsamplerate0-0.1.7: Fix configure run with recent autoconf

* Remove the oe_runconf overload and just go through the normal
  autoreconf process
* Take gentoo patch to fix the quoting of the macro and make
  building go past the configure task.

---

 .../files/libsamplerate-0.1.7-macro-quoting.patch  |   21 ++++++++++++++++++
 .../files/libsamplerate-0.1.7-tests.patch          |   23 ++++++++++++++++++++
 recipes/libsamplerate/libsamplerate0_0.1.7.bb      |   13 +++++------
 3 files changed, 50 insertions(+), 7 deletions(-)

diff --git a/recipes/libsamplerate/files/libsamplerate-0.1.7-macro-quoting.patch b/recipes/libsamplerate/files/libsamplerate-0.1.7-macro-quoting.patch
new file mode 100644
index 0000000..df49e0b
--- /dev/null
+++ b/recipes/libsamplerate/files/libsamplerate-0.1.7-macro-quoting.patch
@@ -0,0 +1,21 @@
+From gentoo
+
+--- acinclude.m4.old	2009-02-16 20:40:05.000000000 +0000
++++ acinclude.m4	2009-02-16 20:43:42.000000000 +0000
+@@ -135,7 +135,6 @@
+ 	fi
+ 
+ )
+-]
+ 
+ if test $ac_cv_c_byte_order = big ; then
+ 	ac_cv_c_big_endian=1
+@@ -154,7 +153,7 @@
+ 	AC_MSG_WARN([[*****************************************************************]])
+ 	fi
+ 
+-)# AC_C_FIND_ENDIAN
++])# AC_C_FIND_ENDIAN
+ 
+ 
+ 
diff --git a/recipes/libsamplerate/files/libsamplerate-0.1.7-tests.patch b/recipes/libsamplerate/files/libsamplerate-0.1.7-tests.patch
new file mode 100644
index 0000000..337be1d
--- /dev/null
+++ b/recipes/libsamplerate/files/libsamplerate-0.1.7-tests.patch
@@ -0,0 +1,23 @@
+From Gentoo
+
+Patch from Erik (upstream) to fix tests on 64 bits platforms.
+
+Index: libsamplerate-0.1.7/tests/callback_test.c
+===================================================================
+--- libsamplerate-0.1.7.orig/tests/callback_test.c
++++ libsamplerate-0.1.7/tests/callback_test.c
+@@ -137,11 +137,11 @@ callback_test (int converter, double src
+ 
+ 	src_state = src_delete (src_state) ;
+ 
+-	if (fabs (read_total - src_ratio * ARRAY_LEN (test_callback_data.data)) > src_ratio)
++	if (fabs (read_total / src_ratio - ARRAY_LEN (test_callback_data.data)) > 2.0)
+ 	{	printf ("\n\nLine %d : input / output length mismatch.\n\n", __LINE__) ;
+ 		printf ("    input len  : %d\n", ARRAY_LEN (test_callback_data.data)) ;
+-		printf ("    output len : %ld (should be %g +/- %g)\n\n", read_total,
+-					floor (0.5 + src_ratio * ARRAY_LEN (test_callback_data.data)), ceil (src_ratio)) ;
++		printf ("    output len : %ld (should be %g +/- 2)\n\n", read_total,
++					floor (0.5 + src_ratio * ARRAY_LEN (test_callback_data.data))) ;
+ 		exit (1) ;
+ 		} ;
+ 
diff --git a/recipes/libsamplerate/libsamplerate0_0.1.7.bb b/recipes/libsamplerate/libsamplerate0_0.1.7.bb
index 1d377f1..b41f97f 100644
--- a/recipes/libsamplerate/libsamplerate0_0.1.7.bb
+++ b/recipes/libsamplerate/libsamplerate0_0.1.7.bb
@@ -2,13 +2,12 @@ DESCRIPTION = "An audio Sample Rate Conversion library"
 SECTION = "libs"
 LICENSE = "GPL libsamplerate"
 
-SRC_URI = "http://www.mega-nerd.com/SRC/libsamplerate-${PV}.tar.gz"
-S = "${WORKDIR}/libsamplerate-${PV}"
+PR = "r1"
 
-inherit autotools_stage pkgconfig
+SRC_URI = "http://www.mega-nerd.com/SRC/libsamplerate-${PV}.tar.gz \
+           file://libsamplerate-0.1.7-macro-quoting.patch;patch=1;pnum=0 \
+           file://libsamplerate-0.1.7-tests.patch;patch=1 "
+S = "${WORKDIR}/libsamplerate-${PV}"
 
-do_configure() {
-	gnu-configize --force
-	oe_runconf
-}
+inherit autotools pkgconfig
 





More information about the Openembedded-commits mailing list