Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2013-07-12 20:51:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perf (Old)
 and      /work/SRC/openSUSE:Factory/.perf.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perf"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perf/perf.changes        2013-07-10 
17:30:17.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2013-07-12 
20:51:04.000000000 +0200
@@ -1,0 +2,6 @@
+Wed Jul 10 17:41:39 UTC 2013 - [email protected]
+
+- Add patch 'perf-tests-ppc64-fix-compile-errors.patch' to resolve
+  openSUSE:Factory:PowerPC testsuite build errors
+
+-------------------------------------------------------------------

New:
----
  perf-tests-ppc64-fix-compile-errors.patch

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

Other differences:
------------------
++++++ perf.spec ++++++
--- /var/tmp/diff_new_pack.7JPM1A/_old  2013-07-12 20:51:05.000000000 +0200
+++ /var/tmp/diff_new_pack.7JPM1A/_new  2013-07-12 20:51:05.000000000 +0200
@@ -40,6 +40,7 @@
 %{perl_requires}
 
 Patch1:         perl-5.18-nowarn.patch
+Patch2:         perf-tests-ppc64-fix-compile-errors.patch
 
 Requires:       kernel >= 2.6.31
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -56,6 +57,7 @@
 (cd /usr/src/linux ; tar -cf - COPYING CREDITS README tools include scripts 
Kbuild Makefile arch/*/{include,lib,Makefile} lib) | tar -xf - 
 chmod +x tools/perf/util/generate-cmdlist.sh
 %patch1 -p1
+%patch2 -p1
 
 %build
 cd tools/perf

++++++ perf-tests-ppc64-fix-compile-errors.patch ++++++
From: Sukadev Bhattiprolu <[email protected]>
Date: Fri Apr 26 10:17:56 2013 -0700
Subject: perf tests: Fix compile errors in bp_signal files
References: none
Git-commit: b3539d214f6000217aae97b5ae32df5b03faf850
Signed-off-by: Tony Jones <[email protected]>
    
    When building on powerpc,  we get compile errors in bp_signal.c and
    bp_signal_overflow.c due to __u64 and '%llx'.
    
    Powerpc, needs __SANE_USERSPACE_TYPES__ to be defined so we pick up
    <asm-generic/int-ll64.h> and define __u64 as unsigned long long.
    
    Signed-off-by: Sukadev Bhattiprolu <[email protected]>
    Cc: Jiri Olsa <[email protected]>
    Link: http://lkml.kernel.org/r/[email protected]
    Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>

diff --git a/tools/perf/tests/bp_signal.c b/tools/perf/tests/bp_signal.c
index 68daa28..aba0954 100644
--- a/tools/perf/tests/bp_signal.c
+++ b/tools/perf/tests/bp_signal.c
@@ -4,6 +4,12 @@
  * (git://github.com/deater/perf_event_tests)
  */
 
+/*
+ * Powerpc needs __SANE_USERSPACE_TYPES__ before <linux/types.h> to select
+ * 'int-ll64.h' and avoid compile warnings when printing __u64 with %llu.
+ */
+#define __SANE_USERSPACE_TYPES__
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <unistd.h>
diff --git a/tools/perf/tests/bp_signal_overflow.c 
b/tools/perf/tests/bp_signal_overflow.c
index fe7ed28..44ac821 100644
--- a/tools/perf/tests/bp_signal_overflow.c
+++ b/tools/perf/tests/bp_signal_overflow.c
@@ -3,6 +3,12 @@
  * perf_event_tests (git://github.com/deater/perf_event_tests)
  */
 
+/*
+ * Powerpc needs __SANE_USERSPACE_TYPES__ before <linux/types.h> to select
+ * 'int-ll64.h' and avoid compile warnings when printing __u64 with %llu.
+ */
+#define __SANE_USERSPACE_TYPES__
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <unistd.h>
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to