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

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Wed Oct 19 09:24:46 UTC 2016


    Date: Wednesday, October 19, 2016 @ 09:24:46
  Author: bpiotrowski
Revision: 278998

archrelease: copy trunk to extra-i686, extra-x86_64

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

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

Copied: re2/repos/extra-i686/PKGBUILD (from rev 278997, re2/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD	                        (rev 0)
+++ extra-i686/PKGBUILD	2016-10-19 09:24:46 UTC (rev 278998)
@@ -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/extra-i686/gcc-61-fix.patch (from rev 278997, re2/trunk/gcc-61-fix.patch)
===================================================================
--- extra-i686/gcc-61-fix.patch	                        (rev 0)
+++ extra-i686/gcc-61-fix.patch	2016-10-19 09:24:46 UTC (rev 278998)
@@ -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/extra-x86_64/PKGBUILD (from rev 278997, re2/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2016-10-19 09:24:46 UTC (rev 278998)
@@ -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/extra-x86_64/gcc-61-fix.patch (from rev 278997, re2/trunk/gcc-61-fix.patch)
===================================================================
--- extra-x86_64/gcc-61-fix.patch	                        (rev 0)
+++ extra-x86_64/gcc-61-fix.patch	2016-10-19 09:24:46 UTC (rev 278998)
@@ -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