[arch-commits] Commit in protobuf-c/repos (3 files)

Lukas Fleischer lfleischer at archlinux.org
Sun Mar 3 13:38:02 UTC 2019


    Date: Sunday, March 3, 2019 @ 13:38:01
  Author: lfleischer
Revision: 347023

archrelease: copy trunk to staging-x86_64

Added:
  protobuf-c/repos/staging-x86_64/
  protobuf-c/repos/staging-x86_64/PKGBUILD
    (from rev 347022, protobuf-c/trunk/PKGBUILD)
  protobuf-c/repos/staging-x86_64/invalid-namespace.patch
    (from rev 347022, protobuf-c/trunk/invalid-namespace.patch)

-------------------------+
 PKGBUILD                |   38 ++++++++++++++++++++++++++++++++++++++
 invalid-namespace.patch |   23 +++++++++++++++++++++++
 2 files changed, 61 insertions(+)

Copied: protobuf-c/repos/staging-x86_64/PKGBUILD (from rev 347022, protobuf-c/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2019-03-03 13:38:01 UTC (rev 347023)
@@ -0,0 +1,38 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Aurélien Wailly <aurelien.wailly at gmail.com>
+
+pkgname=protobuf-c
+pkgver=1.3.1
+pkgrel=2
+pkgdesc='Protocol Buffers implementation in C'
+arch=('x86_64')
+url='https://github.com/protobuf-c/protobuf-c'
+license=('BSD')
+depends=('protobuf')
+provides=('libprotobuf-c.so')
+source=("$url/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"
+        invalid-namespace.patch)
+sha256sums=('51472d3a191d6d7b425e32b612e477c06f73fe23e07f6a6a839b11808e9d2267'
+            '050306bae86af55f90606613d3c362c3c93af779aa6be3e639c6a1df3c228c87')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  patch -p1 -i ../invalid-namespace.patch
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  ./configure --prefix=/usr --disable-static
+  make
+}
+
+check() {
+  make -C "$pkgname-$pkgver" check
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: protobuf-c/repos/staging-x86_64/invalid-namespace.patch (from rev 347022, protobuf-c/trunk/invalid-namespace.patch)
===================================================================
--- staging-x86_64/invalid-namespace.patch	                        (rev 0)
+++ staging-x86_64/invalid-namespace.patch	2019-03-03 13:38:01 UTC (rev 347023)
@@ -0,0 +1,23 @@
+From 080724364a5aad61728f8eba57677467bf329088 Mon Sep 17 00:00:00 2001
+From: storyun <joowoni91 at 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


More information about the arch-commits mailing list