[packages/pokerth] - added protobuf patch (fixes regeneration with recent protoc, required by protobuf 3.5) - release 4
qboosh
qboosh at pld-linux.org
Tue Dec 12 21:14:46 CET 2017
commit d0841e28e1a296d8d060c930da3169ddc83290c2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Dec 12 21:16:03 2017 +0100
- added protobuf patch (fixes regeneration with recent protoc, required by protobuf 3.5)
- release 4
pokerth-protobuf.patch | 24 ++++++++++++++++++++++++
pokerth.spec | 4 +++-
2 files changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/pokerth.spec b/pokerth.spec
index 5033297..bf0302c 100644
--- a/pokerth.spec
+++ b/pokerth.spec
@@ -2,7 +2,7 @@ Summary: The Open Source Texas-Holdem Poker Engine
Summary(pl.UTF-8): Silnik gry Texas-Holdem poker
Name: pokerth
Version: 1.1.1
-Release: 3
+Release: 4
License: GPL v2+
Group: X11/Applications/Games
Source0: http://downloads.sourceforge.net/pokerth/PokerTH-%{version}-src.tar.bz2
@@ -14,6 +14,7 @@ Patch3: cxx11-build.patch
Patch4: cxx11-fixes.patch
Patch5: system-qtsingleapp.patch
Patch6: moc.patch
+Patch7: %{name}-protobuf.patch
URL: http://www.pokerth.net/
BuildRequires: QtCore-devel >= 4.3.1
BuildRequires: QtGui-devel >= 4.3.1
@@ -55,6 +56,7 @@ Silnik gry dostępny jest na platformy Linux, Windows oraz MacOS X.
%patch4 -p1
%patch5 -p1
%patch6 -p1
+%patch7 -p1
%{__rm} -r src/third_party/qtsingleapplication
diff --git a/pokerth-protobuf.patch b/pokerth-protobuf.patch
new file mode 100644
index 0000000..cb0ba08
--- /dev/null
+++ b/pokerth-protobuf.patch
@@ -0,0 +1,24 @@
+"reserved" is protoc keyword now.
+
+--- PokerTH-1.1.1-src/pokerth.proto.orig 2014-01-10 22:18:20.743643130 +0100
++++ PokerTH-1.1.1-src/pokerth.proto 2017-12-12 20:56:47.300267594 +0100
+@@ -701,7 +701,7 @@
+
+ message ErrorMessage {
+ enum ErrorReason {
+- reserved = 0;
++ reserved_ = 0;
+ initVersionNotSupported = 1;
+ initServerFull = 2;
+ initAuthFailure = 3;
+--- PokerTH-1.1.1-src/src/net/common/netpacket.cpp.orig 2014-01-10 22:18:20.917643110 +0100
++++ PokerTH-1.1.1-src/src/net/common/netpacket.cpp 2017-12-12 21:02:41.138399391 +0100
+@@ -249,7 +249,7 @@
+ retVal = ErrorMessage::sessionTimeout;
+ break;
+ default :
+- retVal = ErrorMessage::reserved;
++ retVal = ErrorMessage::reserved_;
+ break;
+ }
+ return retVal;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pokerth.git/commitdiff/d0841e28e1a296d8d060c930da3169ddc83290c2
More information about the pld-cvs-commit
mailing list