[SCM] naspro-core/master: Attempt to fix FTBFS on alpha,s390,sparc.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Fri Apr 1 22:58:56 UTC 2011


The following commit has been merged in the master branch:
commit 3076e5d428a2e2764d37cf0ae4cfe5c38d0ea59b
Author: Alessio Treglia <alessio at debian.org>
Date:   Sat Apr 2 00:58:37 2011 +0200

    Attempt to fix FTBFS on alpha,s390,sparc.

diff --git a/debian/patches/0001-float_rounding.patch b/debian/patches/0001-float_rounding.patch
new file mode 100644
index 0000000..50b2389
--- /dev/null
+++ b/debian/patches/0001-float_rounding.patch
@@ -0,0 +1,23 @@
+Description: Fix expected test results on alpha,s390,sparc.
+Author: Alessio Treglia <alessio at debian.org>
+Forwarded: no
+---
+ tests/string.c |    7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+--- naspro-core.orig/tests/string.c
++++ naspro-core/tests/string.c
+@@ -438,7 +438,12 @@ main()
+ 	else if (nchar != enchar)
+ 		test_err("expected length: %d, returned length: %d",
+ 			enchar, nchar);
+-	else if (strcmp(buf2, "5.5556") != 0)
++	else
++#if defined (__alpha__) || defined (__s390__) || defined (__sparc__)
++	if (strcmp(buf2, "5.5555") != 0)
++#else
++	if (strcmp(buf2, "5.5556") != 0)
++#endif
+ 		test_err("expected '%.4f', returned '%s'", floatval, buf2);
+ 		
+ 	if(buf2 != NULL)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..5a89e6a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-float_rounding.patch

-- 
naspro-core packaging



More information about the pkg-multimedia-commits mailing list