summaryrefslogtreecommitdiff
path: root/protobuf-c
diff options
context:
space:
mode:
Diffstat (limited to 'protobuf-c')
-rw-r--r--protobuf-c/.signature7
-rw-r--r--protobuf-c/Pkgfile8
-rw-r--r--protobuf-c/invalid-namespace.patch23
3 files changed, 32 insertions, 6 deletions
diff --git a/protobuf-c/.signature b/protobuf-c/.signature
index 7483e0158..aa511a1ae 100644
--- a/protobuf-c/.signature
+++ b/protobuf-c/.signature
@@ -1,5 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF36MLuX0lSE00z24zh/yrwracWErFDuFVbvs4a+wwzIdSi1xp9DVFQBvnABofbJluMDC7dCHOmJLy6IUIPbC4GAM=
-SHA256 (Pkgfile) = 5d2624199d27ad0005f7851e369267f4cf3093ce0b54a4d83277883bbbe6a892
+RWSagIOpLGJF36EVeryYIIKNuEj+B0rQrTgS3cjUquN3zH3CLpYYV3nKG8owm0jXSnrKSZPJXBoHufqeDunIo3Ai0IDE024eIg8=
+SHA256 (Pkgfile) = b9778051361f1fff34761e6e5128df53f26c790567b097e7881917c0b15a509e
SHA256 (.footprint) = 43e0f02229e60b42b1b0b9decdb0d379606ea8009e62459055a2113c51178bde
-SHA256 (protobuf-c-1.3.0.tar.gz) = 5dc9ad7a9b889cf7c8ff6bf72215f1874a90260f60ad4f88acf21bb15d2752a1
+SHA256 (protobuf-c-1.3.1.tar.gz) = 51472d3a191d6d7b425e32b612e477c06f73fe23e07f6a6a839b11808e9d2267
+SHA256 (invalid-namespace.patch) = 050306bae86af55f90606613d3c362c3c93af779aa6be3e639c6a1df3c228c87
diff --git a/protobuf-c/Pkgfile b/protobuf-c/Pkgfile
index 89f557557..72526d40e 100644
--- a/protobuf-c/Pkgfile
+++ b/protobuf-c/Pkgfile
@@ -1,17 +1,19 @@
# Description: Protocol Buffers implementation in C.
# URL: https://github.com/protobuf-c/protobuf-c
# Maintainer: Danny Rawlins, crux at romster dot me
-# Packager: Danny Rawlins, crux at romster dot me
# Depends on: protobuf
name=protobuf-c
-version=1.3.0
+version=1.3.1
release=1
-source=(https://github.com/protobuf-c/protobuf-c/releases/download/v$version/$name-$version.tar.gz)
+source=(https://github.com/protobuf-c/protobuf-c/releases/download/v$version/$name-$version.tar.gz
+ invalid-namespace.patch)
build() {
cd $name-$version
+ patch -p1 -i $SRC/invalid-namespace.patch
+
./configure --prefix=/usr
make
diff --git a/protobuf-c/invalid-namespace.patch b/protobuf-c/invalid-namespace.patch
new file mode 100644
index 000000000..0ee75ba9e
--- /dev/null
+++ b/protobuf-c/invalid-namespace.patch
@@ -0,0 +1,23 @@
+From 080724364a5aad61728f8eba57677467bf329088 Mon Sep 17 00:00:00 2001
+From: storyun <joowoni91@gmail.com>
+Date: Wed, 19 Sep 2018 11:34:48 +0900
+Subject: [PATCH] Invalid namespace
+
+google::protobuf::message::Reflaction is not exist namespace.
+---
+ t/generated-code2/cxx-generate-packed-data.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/generated-code2/cxx-generate-packed-data.cc b/t/generated-code2/cxx-generate-packed-data.cc
+index 4fd3e25..0865d2e 100644
+--- a/t/generated-code2/cxx-generate-packed-data.cc
++++ b/t/generated-code2/cxx-generate-packed-data.cc
+@@ -998,7 +998,7 @@ static void dump_test_packed_repeated_enum (void)
+ static void dump_test_unknown_fields (void)
+ {
+ EmptyMess mess;
+- const google::protobuf::Message::Reflection *reflection = mess.GetReflection();
++ const google::protobuf::Reflection *reflection = mess.GetReflection();
+ google::protobuf::UnknownFieldSet *fs = reflection->MutableUnknownFields(&mess);
+
+ #if GOOGLE_PROTOBUF_VERSION >= 2001000

Generated by cgit