diff --git a/srcpkgs/protobuf-c/patches/fix-compile-error.patch b/srcpkgs/protobuf-c/patches/fix-compile-error.patch new file mode 100644 index 0000000000..4ef0e80dc8 --- /dev/null +++ b/srcpkgs/protobuf-c/patches/fix-compile-error.patch @@ -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 + #include + #include ++#include ++#include ++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 + #include ++#include ++#include ++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 + #include + #include ++#include ++#include ++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 + #include ++#include ++#include ++using namespace boost; ++using namespace std; + + namespace google { + namespace protobuf { diff --git a/srcpkgs/protobuf-c/template b/srcpkgs/protobuf-c/template index d8530462f7..ec148eb92e 100644 --- a/srcpkgs/protobuf-c/template +++ b/srcpkgs/protobuf-c/template @@ -4,7 +4,7 @@ version=1.3.0 revision=5 build_style=gnu-configure hostmakedepends="pkg-config protobuf" -makedepends="protobuf-devel" +makedepends="protobuf-devel boost-devel" short_desc="C implementation of the Google Protocol Buffers" maintainer="Enno Boland " license="BSD-2-Clause"