Hello community,

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

Package is "findutils"

Changes:
--------
--- /work/SRC/openSUSE:Factory/findutils/findutils.changes      2013-12-13 
14:54:31.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.findutils.new/findutils.changes 2013-12-22 
19:32:22.000000000 +0100
@@ -1,0 +2,6 @@
+Wed Dec 18 19:19:34 UTC 2013 - uweig...@de.ibm.com
+
+- findutils-gnulib-ppc64le.patch: Fix imported gnulib long double
+  math tests for little-endian PowerPC.
+
+-------------------------------------------------------------------

New:
----
  findutils-gnulib-ppc64le.patch

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

Other differences:
------------------
++++++ findutils.spec ++++++
--- /var/tmp/diff_new_pack.TIDtk8/_old  2013-12-22 19:32:23.000000000 +0100
+++ /var/tmp/diff_new_pack.TIDtk8/_new  2013-12-22 19:32:23.000000000 +0100
@@ -26,6 +26,8 @@
 Source:         http://alpha.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
 # adds a new option -xautofs to find to not descend into directories on autofs 
file systems
 Patch0:         findutils-4.4.2-xautofs.patch
+# Fix imported gnulib long double math tests for little-endian PowerPC
+Patch1:         findutils-gnulib-ppc64le.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %if 0%{?suse_version} > 1100
 BuildRequires:  libselinux-devel
@@ -53,6 +55,7 @@
 %prep
 %setup -q
 %patch0
+%patch1 -p1
 
 %build
 %if 0%{?qemu_user_space_build}

++++++ findutils-gnulib-ppc64le.patch ++++++
diff --git a/tests/test-isfinite.c b/tests/test-isfinite.c
index 9e8dd0d..a762ceb 100644
--- a/tests/test-isfinite.c
+++ b/tests/test-isfinite.c
@@ -152,6 +152,15 @@ test_isfinitel ()
   /* 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 = zerol / zerol;
 # if LDBL_EXPBIT0_BIT > 0
diff --git a/tests/test-isinf.c b/tests/test-isinf.c
index 276e480..eb1b7f2 100644
--- a/tests/test-isinf.c
+++ b/tests/test-isinf.c
@@ -158,6 +158,15 @@ test_isinfl ()
   /* 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 = zerol / zerol;
 # if LDBL_EXPBIT0_BIT > 0
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
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to