Hello community,

here is the log from the commit of package perf for openSUSE:Factory checked in 
at 2013-07-10 17:30:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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-01-10 
13:50:48.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes   2013-07-10 
17:30:17.000000000 +0200
@@ -1,0 +2,11 @@
+Tue Jul  9 01:17:02 UTC 2013 - [email protected]
+
+- Add audit-devel, gtk2-devel and libunwind-devel to support optional
+  functionality.
+- Add 'perl-5.18-nowarn.patch' to squelch build errors from perl.h
+- Add perl_requires
+- Fix --version output (copy submakefiles from kernel-source)
+- Pass SUSE rpm optflags into make as EXTRA_CFLAGS not CFLAGS
+- Stop building with V=1, make output easier to parse
+
+-------------------------------------------------------------------

New:
----
  perl-5.18-nowarn.patch

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

Other differences:
------------------
++++++ perf.spec ++++++
--- /var/tmp/diff_new_pack.8d4omx/_old  2013-07-10 17:30:17.000000000 +0200
+++ /var/tmp/diff_new_pack.8d4omx/_new  2013-07-10 17:30:17.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perf
 #
-# 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
@@ -24,16 +24,23 @@
 License:        GPL-2.0
 Group:          Development/Tools/Debuggers
 BuildRequires:  asciidoc
+BuildRequires:  audit-devel
 BuildRequires:  binutils-devel
 BuildRequires:  bison
 BuildRequires:  flex
+BuildRequires:  gtk2-devel
 BuildRequires:  kernel-source >= 2.6.31
 BuildRequires:  libdw-devel
 BuildRequires:  libelf-devel
+BuildRequires:  libunwind-devel
 BuildRequires:  newt-devel
 BuildRequires:  openssl-devel
 BuildRequires:  xmlto
 BuildRequires:  zlib-devel
+%{perl_requires}
+
+Patch1:         perl-5.18-nowarn.patch
+
 Requires:       kernel >= 2.6.31
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
@@ -46,16 +53,18 @@
 
 %prep
 # copy necessary files from kernel-source since we need to modify them
-(cd /usr/src/linux ; tar -cf - COPYING CREDITS README tools include scripts 
Kbuild Makefile arch/*/{include,lib} lib) | tar -xf -
+(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
 
 %build
 cd tools/perf
-make V=1 CFLAGS="%{optflags}" ASCIIDOC8=1 all doc prefix=/usr 
perfexecdir=%{_libexecdir}/%{name}
+# PASS rpm optflags as EXTRA_FLAGS,  passing as CFLAGS overrides and breaks 
build
+make EXTRA_CFLAGS="%{optflags}" ASCIIDOC8=1 all doc prefix=/usr 
perfexecdir=%{_libexecdir}/%{name}
 
 %install
 cd tools/perf
-make CFLAGS="%{optflags}" install install-doc prefix=/usr 
perfexecdir=%{_libexecdir}/%{name} DESTDIR=%{buildroot}
+make EXTRA_CFLAGS="%{optflags}" install install-doc prefix=/usr 
perfexecdir=%{_libexecdir}/%{name} DESTDIR=%{buildroot}
 
 %clean
 rm -rf %{buildroot}

++++++ perl-5.18-nowarn.patch ++++++
From: "Kirill A. Shutemov" <[email protected]>
Reference: https://groups.google.com/forum/#!topic/linux.kernel/Ws4ZajStT9A
Signed-off-by: Tony Jones <[email protected]>

perl.h from new Perl release doesn't like -Wundef and -Wswitch-default:

/usr/lib/perl5/core_perl/CORE/perl.h:548:5: error: "SILENT_NO_TAINT_SUPPORT" is 
not defined [-Werror=undef]
 #if SILENT_NO_TAINT_SUPPORT && !defined(NO_TAINT_SUPPORT)
     ^
/usr/lib/perl5/core_perl/CORE/perl.h:556:5: error: "NO_TAINT_SUPPORT" is not 
defined [-Werror=undef]
 #if NO_TAINT_SUPPORT
     ^
In file included from /usr/lib/perl5/core_perl/CORE/perl.h:3471:0,
                 from util/scripting-engines/trace-event-perl.c:30:
/usr/lib/perl5/core_perl/CORE/sv.h:1455:5: error: "NO_TAINT_SUPPORT" is not 
defined [-Werror=undef]
 #if NO_TAINT_SUPPORT
     ^
In file included from /usr/lib/perl5/core_perl/CORE/perl.h:3472:0,
                 from util/scripting-engines/trace-event-perl.c:30:
/usr/lib/perl5/core_perl/CORE/regexp.h:436:5: error: "NO_TAINT_SUPPORT" is not 
defined [-Werror=undef]
 #if NO_TAINT_SUPPORT
     ^
In file included from /usr/lib/perl5/core_perl/CORE/hv.h:592:0,
                 from /usr/lib/perl5/core_perl/CORE/perl.h:3480,
                 from util/scripting-engines/trace-event-perl.c:30:
/usr/lib/perl5/core_perl/CORE/hv_func.h: In function ‘S_perl_hash_siphash_2_4’:
/usr/lib/perl5/core_perl/CORE/hv_func.h:222:3: error: switch missing default 
case [-Werror=switch-default]
   switch( left )
   ^
/usr/lib/perl5/core_perl/CORE/hv_func.h: In function ‘S_perl_hash_superfast’:
/usr/lib/perl5/core_perl/CORE/hv_func.h:274:5: error: switch missing default 
case [-Werror=switch-default]
     switch (rem) { \
     ^
/usr/lib/perl5/core_perl/CORE/hv_func.h: In function ‘S_perl_hash_murmur3’:
/usr/lib/perl5/core_perl/CORE/hv_func.h:398:5: error: switch missing default 
case [-Werror=switch-default]
     switch(bytes_in_carry) { /* how many bytes in carry */
     ^

Let's disable the warnings for code which uses perl.h.

Signed-off-by: Kirill A. Shutemov <[email protected]>
---
 tools/perf/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index b0f164b..3230f9e 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -1035,10 +1035,10 @@
        $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -Wno-redundant-decls $<
 
 $(OUTPUT)util/scripting-engines/trace-event-perl.o: 
util/scripting-engines/trace-event-perl.c $(OUTPUT)PERF-CFLAGS
-       $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $(PERL_EMBED_CCOPTS) 
-Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow $<
+       $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $(PERL_EMBED_CCOPTS) 
-Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow 
-Wno-undef -Wno-switch-default $<
 
 $(OUTPUT)scripts/perl/Perf-Trace-Util/Context.o: 
scripts/perl/Perf-Trace-Util/Context.c $(OUTPUT)PERF-CFLAGS
-       $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $(PERL_EMBED_CCOPTS) 
-Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter 
-Wno-nested-externs $<
+       $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $(PERL_EMBED_CCOPTS) 
-Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter 
-Wno-nested-externs -Wno-undef -Wno-switch-default $<
 
 $(OUTPUT)util/scripting-engines/trace-event-python.o: 
util/scripting-engines/trace-event-python.c $(OUTPUT)PERF-CFLAGS
        $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $(PYTHON_EMBED_CCOPTS) 
-Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow $<
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to