[arch-commits] Commit in re2/repos (6 files)

Anatol Pomozov anatolik at archlinux.org
Tue Sep 27 23:10:43 UTC 2016


    Date: Tuesday, September 27, 2016 @ 23:10:43
  Author: anatolik
Revision: 190691

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  re2/repos/community-testing-i686/
  re2/repos/community-testing-i686/PKGBUILD
    (from rev 190690, re2/trunk/PKGBUILD)
  re2/repos/community-testing-i686/gcc-61-fix.patch
    (from rev 190690, re2/trunk/gcc-61-fix.patch)
  re2/repos/community-testing-x86_64/
  re2/repos/community-testing-x86_64/PKGBUILD
    (from rev 190690, re2/trunk/PKGBUILD)
  re2/repos/community-testing-x86_64/gcc-61-fix.patch
    (from rev 190690, re2/trunk/gcc-61-fix.patch)

-------------------------------------------+
 community-testing-i686/PKGBUILD           |   40 ++++++++++++++++++++++++++++
 community-testing-i686/gcc-61-fix.patch   |   13 +++++++++
 community-testing-x86_64/PKGBUILD         |   40 ++++++++++++++++++++++++++++
 community-testing-x86_64/gcc-61-fix.patch |   13 +++++++++
 4 files changed, 106 insertions(+)

Copied: re2/repos/community-testing-i686/PKGBUILD (from rev 190690, re2/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2016-09-27 23:10:43 UTC (rev 190691)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Gustavo Alvarez <sl1pkn07 at gmail.com>
+# Contributor: Alexandre Bique <bique.alexandre at gmail.com>
+
+pkgname=re2
+_tag='2016-09-01'
+pkgver=${_tag//-/}
+pkgrel=1
+pkgdesc='C++ library for fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python'
+url='https://github.com/google/re2'
+depends=(gcc-libs)
+arch=(i686 x86_64)
+license=(BSD)
+source=(re2-$pkgver.zip::https://github.com/google/re2/archive/$_tag.zip
+        gcc-61-fix.patch)
+sha1sums=('fbde84ba1661ac4ff7dea657c01b0e69c1c26eb4'
+          'd233c798c40dab4c9ba973316145715308df02f1')
+
+prepare() {
+  cd re2-$_tag
+  # fix for https://github.com/google/re2/issues/102
+  patch -p1 < ../gcc-61-fix.patch
+}
+
+build() {
+  cd re2-$_tag
+  make prefix=/usr
+}
+
+check() {
+  cd re2-$_tag
+  make prefix=/usr test
+}
+
+package() {
+  cd re2-$_tag
+  make prefix=/usr DESTDIR="$pkgdir" install
+  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: re2/repos/community-testing-i686/gcc-61-fix.patch (from rev 190690, re2/trunk/gcc-61-fix.patch)
===================================================================
--- community-testing-i686/gcc-61-fix.patch	                        (rev 0)
+++ community-testing-i686/gcc-61-fix.patch	2016-09-27 23:10:43 UTC (rev 190691)
@@ -0,0 +1,13 @@
+diff --git a/re2/dfa.cc b/re2/dfa.cc
+index 1fc8a5a..43dddac 100644
+--- a/re2/dfa.cc
++++ b/re2/dfa.cc
+@@ -123,7 +123,7 @@ class DFA {
+     uint32_t flag_;     // Empty string bitfield flags in effect on the way
+                         // into this state, along with kFlagMatch if this
+                         // is a matching state.
+-    std::atomic<State*> next_[];    // Outgoing arrows from State,
++    std::atomic<State*> next_[0];    // Outgoing arrows from State,
+                         // one per input byte class
+   };
+ 

Copied: re2/repos/community-testing-x86_64/PKGBUILD (from rev 190690, re2/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2016-09-27 23:10:43 UTC (rev 190691)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Gustavo Alvarez <sl1pkn07 at gmail.com>
+# Contributor: Alexandre Bique <bique.alexandre at gmail.com>
+
+pkgname=re2
+_tag='2016-09-01'
+pkgver=${_tag//-/}
+pkgrel=1
+pkgdesc='C++ library for fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python'
+url='https://github.com/google/re2'
+depends=(gcc-libs)
+arch=(i686 x86_64)
+license=(BSD)
+source=(re2-$pkgver.zip::https://github.com/google/re2/archive/$_tag.zip
+        gcc-61-fix.patch)
+sha1sums=('fbde84ba1661ac4ff7dea657c01b0e69c1c26eb4'
+          'd233c798c40dab4c9ba973316145715308df02f1')
+
+prepare() {
+  cd re2-$_tag
+  # fix for https://github.com/google/re2/issues/102
+  patch -p1 < ../gcc-61-fix.patch
+}
+
+build() {
+  cd re2-$_tag
+  make prefix=/usr
+}
+
+check() {
+  cd re2-$_tag
+  make prefix=/usr test
+}
+
+package() {
+  cd re2-$_tag
+  make prefix=/usr DESTDIR="$pkgdir" install
+  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: re2/repos/community-testing-x86_64/gcc-61-fix.patch (from rev 190690, re2/trunk/gcc-61-fix.patch)
===================================================================
--- community-testing-x86_64/gcc-61-fix.patch	                        (rev 0)
+++ community-testing-x86_64/gcc-61-fix.patch	2016-09-27 23:10:43 UTC (rev 190691)
@@ -0,0 +1,13 @@
+diff --git a/re2/dfa.cc b/re2/dfa.cc
+index 1fc8a5a..43dddac 100644
+--- a/re2/dfa.cc
++++ b/re2/dfa.cc
+@@ -123,7 +123,7 @@ class DFA {
+     uint32_t flag_;     // Empty string bitfield flags in effect on the way
+                         // into this state, along with kFlagMatch if this
+                         // is a matching state.
+-    std::atomic<State*> next_[];    // Outgoing arrows from State,
++    std::atomic<State*> next_[0];    // Outgoing arrows from State,
+                         // one per input byte class
+   };
+ 



More information about the arch-commits mailing list