protobuf-c: fix compiling with newwer g++
This commit is contained in:
parent
fbb7c3c199
commit
e81fc4745b
2 changed files with 53 additions and 1 deletions
52
srcpkgs/protobuf-c/patches/fix-compile-error.patch
Normal file
52
srcpkgs/protobuf-c/patches/fix-compile-error.patch
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
--- protoc-c/c_file.h.orig 2018-07-01 11:52:24.135863225 +0200
|
||||||
|
+++ protoc-c/c_file.h 2018-07-01 11:54:02.117755492 +0200
|
||||||
|
@@ -67,6 +67,10 @@
|
||||||
|
#include <vector>
|
||||||
|
#include <google/protobuf/stubs/common.h>
|
||||||
|
#include <protoc-c/c_field.h>
|
||||||
|
+#include <boost/scoped_array.hpp>
|
||||||
|
+#include <boost/scoped_ptr.hpp>
|
||||||
|
+using namespace boost;
|
||||||
|
+using namespace std;
|
||||||
|
|
||||||
|
namespace google {
|
||||||
|
namespace protobuf {
|
||||||
|
--- protoc-c/c_helpers.cc.orig 2018-07-01 11:52:24.137863243 +0200
|
||||||
|
+++ protoc-c/c_helpers.cc 2018-07-01 11:54:05.424785612 +0200
|
||||||
|
@@ -67,6 +67,10 @@
|
||||||
|
|
||||||
|
#include <protoc-c/c_helpers.h>
|
||||||
|
#include <google/protobuf/stubs/common.h>
|
||||||
|
+#include <boost/scoped_array.hpp>
|
||||||
|
+#include <boost/scoped_ptr.hpp>
|
||||||
|
+using namespace boost;
|
||||||
|
+using namespace std;
|
||||||
|
|
||||||
|
namespace google {
|
||||||
|
namespace protobuf {
|
||||||
|
--- protoc-c/c_message.h.orig 2018-07-01 11:52:24.138863253 +0200
|
||||||
|
+++ protoc-c/c_message.h 2018-07-01 11:54:08.375812485 +0200
|
||||||
|
@@ -66,6 +66,10 @@
|
||||||
|
#include <string>
|
||||||
|
#include <google/protobuf/stubs/common.h>
|
||||||
|
#include <protoc-c/c_field.h>
|
||||||
|
+#include <boost/scoped_array.hpp>
|
||||||
|
+#include <boost/scoped_ptr.hpp>
|
||||||
|
+using namespace boost;
|
||||||
|
+using namespace std;
|
||||||
|
|
||||||
|
namespace google {
|
||||||
|
namespace protobuf {
|
||||||
|
--- protoc-c/c_field.h.orig 2018-07-01 11:52:24.142863289 +0200
|
||||||
|
+++ protoc-c/c_field.h 2018-07-01 11:54:11.010836479 +0200
|
||||||
|
@@ -65,6 +65,10 @@
|
||||||
|
|
||||||
|
#include <google/protobuf/stubs/common.h>
|
||||||
|
#include <google/protobuf/descriptor.h>
|
||||||
|
+#include <boost/scoped_array.hpp>
|
||||||
|
+#include <boost/scoped_ptr.hpp>
|
||||||
|
+using namespace boost;
|
||||||
|
+using namespace std;
|
||||||
|
|
||||||
|
namespace google {
|
||||||
|
namespace protobuf {
|
|
@ -4,7 +4,7 @@ version=1.3.0
|
||||||
revision=5
|
revision=5
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config protobuf"
|
hostmakedepends="pkg-config protobuf"
|
||||||
makedepends="protobuf-devel"
|
makedepends="protobuf-devel boost-devel"
|
||||||
short_desc="C implementation of the Google Protocol Buffers"
|
short_desc="C implementation of the Google Protocol Buffers"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
||||||
license="BSD-2-Clause"
|
license="BSD-2-Clause"
|
||||||
|
|
Loading…
Reference in a new issue