Hello community,

here is the log from the commit of package libunistring for openSUSE:Factory 
checked in at 2013-12-22 19:36:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libunistring (Old)
 and      /work/SRC/openSUSE:Factory/.libunistring.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libunistring"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libunistring/libunistring.changes        
2012-03-22 12:35:47.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.libunistring.new/libunistring.changes   
2013-12-22 19:36:04.000000000 +0100
@@ -1,0 +2,6 @@
+Wed Dec 18 19:56:18 UTC 2013 - uweig...@de.ibm.com
+
+- libunistring-gnulib-ppc64le.patch: Fix imported gnulib long double
+  math tests for little-endian PowerPC.
+
+-------------------------------------------------------------------

New:
----
  libunistring-gnulib-ppc64le.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libunistring.spec ++++++
--- /var/tmp/diff_new_pack.OUQr0m/_old  2013-12-22 19:36:04.000000000 +0100
+++ /var/tmp/diff_new_pack.OUQr0m/_new  2013-12-22 19:36:04.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libunistring
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -14,6 +14,8 @@
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
+
+
 Name:           libunistring
 %define lname  libunistring0
 Version:        0.9.3
@@ -25,6 +27,9 @@
 Source0:        libunistring-%{version}.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
+# Fix imported gnulib long double math tests for little-endian PowerPC
+Patch1:         libunistring-gnulib-ppc64le.patch
+
 %description
 This portable C library implements Unicode string types in three flavours:
 (UTF-8, UTF-16, UTF-32), together with functions for character processing
@@ -59,6 +64,7 @@
 
 %prep
 %setup -q
+%patch1 -p1
 
 %build
 %configure --disable-static --disable-rpath --docdir=%_docdir/%name

++++++ libunistring-gnulib-ppc64le.patch ++++++
diff --git a/tests/test-isnanl.h b/tests/test-isnanl.h
index 06e6a7c..2df10f8 100644
--- a/tests/test-isnanl.h
+++ b/tests/test-isnanl.h
@@ -51,6 +51,15 @@ main ()
   /* A bit pattern that is different from a Quiet NaN.  With a bit of luck,
      it's a Signalling NaN.  */
   {
+#if defined __powerpc__ && LDBL_MANT_DIG == 106
+    /* This is PowerPC "double double", a pair of two doubles.  Inf and Nan are
+       represented as the corresponding 64-bit IEEE values in the first double;
+       the second is ignored.  Manipulate only the first double.  */
+    #undef NWORDS
+    #define NWORDS \
+      ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
+#endif
+
     memory_long_double m;
     m.value = NaNl ();
 # if LDBL_EXPBIT0_BIT > 0
diff --git a/tests/test-signbit.c b/tests/test-signbit.c
index e8ea097..7e24292 100644
--- a/tests/test-signbit.c
+++ b/tests/test-signbit.c
@@ -151,6 +151,16 @@ test_signbitl ()
     #define NWORDS \
       ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned 
int))
     typedef union { long double value; unsigned int word[NWORDS]; } 
memory_long_double;
+
+#if defined __powerpc__ && LDBL_MANT_DIG == 106
+    /* This is PowerPC "double double", a pair of two doubles.  Inf and Nan are
+       represented as the corresponding 64-bit IEEE values in the first double;
+       the second is ignored.  Manipulate only the first double.  */
+    #undef NWORDS
+    #define NWORDS \
+      ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
+#endif
+
     memory_long_double m;
     m.value = zerol / zerol;
 # if LDBL_EXPBIT0_BIT > 0
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to