Hello community,

here is the log from the commit of package numactl for openSUSE:Factory checked 
in at 2015-02-27 11:08:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/numactl (Old)
 and      /work/SRC/openSUSE:Factory/.numactl.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "numactl"

Changes:
--------
--- /work/SRC/openSUSE:Factory/numactl/numactl.changes  2015-02-06 
10:16:10.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.numactl.new/numactl.changes     2015-02-27 
11:08:27.000000000 +0100
@@ -1,0 +2,8 @@
+Mon Feb 23 16:28:34 UTC 2015 - [email protected]
+
+- package fails to build with PIE globally enabled, due to 
+  error: inconsistent operand constraints in an 'asm'.
+  Turns out there is a GCC builtin for doing the operation 
+  cleanly. (numactl-clearcache-pie.patch)
+
+-------------------------------------------------------------------

New:
----
  numactl-clearcache-pie.patch

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

Other differences:
------------------
++++++ numactl.spec ++++++
--- /var/tmp/diff_new_pack.7mbOVa/_old  2015-02-27 11:08:28.000000000 +0100
+++ /var/tmp/diff_new_pack.7mbOVa/_new  2015-02-27 11:08:28.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package numactl
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -30,6 +30,7 @@
 Patch0:         revert_date_in_numastat.patch
 # PATCH-MISSING-TAG -- See 
http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
 Patch1:         0001-Fixed-segfault-when-no-node-could-be-found-in-sysfs-.patch
+Patch2:         numactl-clearcache-pie.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %if 0%{?suse_version} > 1110
 BuildRequires:  autoconf >= 2.64
@@ -64,7 +65,7 @@
 %setup -q
 %patch0 -p1
 %patch1 -p1
-
+%patch2 -p1
 %build
 %if 0%{?suse_version} > 1110
 autoconf

++++++ numactl-clearcache-pie.patch ++++++
--- numactl-2.0.10.orig/clearcache.c
+++ numactl-2.0.10/clearcache.c
@@ -54,24 +54,5 @@ void fallback_clearcache(void)
 
 void clearcache(unsigned char *mem, unsigned size)
 {
-#if defined(__i386__) || defined(__x86_64__)
-       unsigned i, cl, eax, feat;
-       /* get clflush unit and feature */
-       asm("cpuid" : "=a" (eax), "=b" (cl), "=d" (feat) : "0" (1) : "cx");
-       if (!(feat & (1 << 19)))
-               fallback_clearcache();
-       cl = ((cl >> 8) & 0xff) * 8;
-       for (i = 0; i < size; i += cl)
-               asm("clflush %0" :: "m" (mem[i]));
-#elif defined(__ia64__)
-        unsigned long cl, endcl;
-        // flush probable 128 byte cache lines (but possibly 64 bytes)
-        cl = (unsigned long)mem;
-        endcl = (unsigned long)(mem + (size-1));
-        for (; cl <= endcl; cl += 64)
-                asm ("fc %0" :: "r"(cl) : "memory" );
-#else
-#warning "Consider adding a clearcache implementation for your architecture"
-       fallback_clearcache();
-#endif
+     __builtin___clear_cache(mem, (mem + (size-1)));
 }
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to