Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Alexis Ballier (aballier)" <aballier@g.o>
Subject: gentoo-x86 commit in media-libs/libsamplerate/files: libsamplerate-0.1.7-tests.patch libsamplerate-0.1.7-macro-quoting.patch
Date: Fri, 20 Feb 2009 08:59:53 +0000
aballier    09/02/20 08:59:53

  Added:                libsamplerate-0.1.7-tests.patch
                        libsamplerate-0.1.7-macro-quoting.patch
  Log:
  Version bump by Richard Ash <richard@...>, bug #259274, plus a patch from Erik to fix tests on 64 bits platforms.
  (Portage version: 2.2_rc23/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  media-libs/libsamplerate/files/libsamplerate-0.1.7-tests.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libsamplerate/files/libsamplerate-0.1.7-tests.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libsamplerate/files/libsamplerate-0.1.7-tests.patch?rev=1.1&content-type=text/plain

Index: libsamplerate-0.1.7-tests.patch
===================================================================
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) ;
 		} ;
 



1.1                  media-libs/libsamplerate/files/libsamplerate-0.1.7-macro-quoting.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libsamplerate/files/libsamplerate-0.1.7-macro-quoting.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libsamplerate/files/libsamplerate-0.1.7-macro-quoting.patch?rev=1.1&content-type=text/plain

Index: libsamplerate-0.1.7-macro-quoting.patch
===================================================================
--- 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
 
 
 





Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in x11-drivers/xf86-video-ati/files/old_hw_data: ati.xinf r128.xinf
Next by thread:
gentoo-x86 commit in media-libs/libsamplerate: ChangeLog libsamplerate-0.1.7.ebuild
Previous by date:
gentoo-x86 commit in app-crypt/heimdal: ChangeLog heimdal-1.2.1-r1.ebuild
Next by date:
gentoo-x86 commit in media-libs/libsamplerate: ChangeLog libsamplerate-0.1.7.ebuild


Updated Mar 29, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.