[packages/oprofile] - added c++ patch (use explicit stream to bool conversion for C++ 11 compatibility); release 4

qboosh qboosh at pld-linux.org
Tue Jun 6 20:20:20 CEST 2017


commit 9569170f254a6b1fb5d86ecc462b3d2dcaafc66a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jun 6 20:21:25 2017 +0200

    - added c++ patch (use explicit stream to bool conversion for C++ 11 compatibility); release 4

 oprofile-c++.patch | 11 +++++++++++
 oprofile.spec      |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/oprofile.spec b/oprofile.spec
index 9934687..48997fd 100644
--- a/oprofile.spec
+++ b/oprofile.spec
@@ -10,11 +10,12 @@ Summary:	System-wide profiler
 Summary(pl.UTF-8):	Ogólnosystemowy profiler
 Name:		oprofile
 Version:	1.1.0
-Release:	3
+Release:	4
 License:	GPL v2 (oprofile), LGPL v2.1+ (libopagent)
 Group:		Applications/System
 Source0:	http://downloads.sourceforge.net/oprofile/%{name}-%{version}.tar.gz
 # Source0-md5:	248c4c069f9476f427fa7195563f9867
+Patch0:		%{name}-c++.patch
 URL:		http://oprofile.sourceforge.net/
 # not used directly, but build fails without it
 BuildRequires:	autoconf >= 2.50
@@ -81,6 +82,7 @@ Statyczna biblioteka libopagent.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure
diff --git a/oprofile-c++.patch b/oprofile-c++.patch
new file mode 100644
index 0000000..d485064
--- /dev/null
+++ b/oprofile-c++.patch
@@ -0,0 +1,11 @@
+--- oprofile-1.1.0/libutil++/op_bfd.cpp.orig	2015-06-05 22:39:34.000000000 +0200
++++ oprofile-1.1.0/libutil++/op_bfd.cpp	2017-06-06 20:17:42.480491005 +0200
+@@ -535,7 +535,7 @@
+ {
+ 	op_bfd_symbol const & sym = syms[sym_idx];
+ 
+-	bool const verbose = cverb << (vbfd & vlevel1);
++	bool const verbose = bool(cverb << (vbfd & vlevel1));
+ 
+ 	if (anon_obj)
+ 		start = sym.vma();
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/oprofile.git/commitdiff/9569170f254a6b1fb5d86ecc462b3d2dcaafc66a



More information about the pld-cvs-commit mailing list