commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2020-11-09 13:56:18 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new.11331 (New) Package is "re2" Mon Nov 9 13:56:18 2020 rev:35 rq:846344 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2020-10-12 13:46:56.189912110 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new.11331/re2.changes 2020-11-09 13:56:44.708051294 +0100 @@ -1,0 +2,6 @@ +Thu Nov 5 21:10:33 UTC 2020 - Callum Farmer + +- Update to version 2020-11-01: + * Refactoring and fixes + +--- Old: re2-2020-10-01.tar.gz New: re2-2020-11-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.PydXgI/_old 2020-11-09 13:56:45.672049192 +0100 +++ /var/tmp/diff_new_pack.PydXgI/_new 2020-11-09 13:56:45.676049182 +0100 @@ -16,17 +16,17 @@ # -%global longver 2020-10-01 +%global longver 2020-11-01 %global shortver %(echo %{longver}|sed 's|-||g') -%define libname libre2-8 +%define libname libre2-9 Name: re2 Version:%{shortver} Release:0 Summary:C++ fast alternative to backtracking RE engines License:BSD-3-Clause Group: Development/Libraries/C and C++ -URL:https://github.com/google/re2/ -Source0: https://github.com/google/re2/archive/%{longver}.tar.gz#/%{name}-%{longver}.tar.gz +URL:https://github.com/google/re2 +Source0:%{url}/archive/%{longver}/%{name}-%{longver}.tar.gz Source99: baselibs.conf BuildRequires: gcc-c++ BuildRequires: pkgconfig ++ baselibs.conf ++ --- /var/tmp/diff_new_pack.PydXgI/_old 2020-11-09 13:56:45.704049121 +0100 +++ /var/tmp/diff_new_pack.PydXgI/_new 2020-11-09 13:56:45.704049121 +0100 @@ -1 +1 @@ -libre2-8 +libre2-9 ++ re2-2020-10-01.tar.gz -> re2-2020-11-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-10-01/Makefile new/re2-2020-11-01/Makefile --- old/re2-2020-10-01/Makefile 2020-09-27 12:41:02.0 +0200 +++ new/re2-2020-11-01/Makefile 2020-10-26 11:17:05.0 +0100 @@ -44,7 +44,7 @@ # ABI version # http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html -SONAME=8 +SONAME=9 # To rebuild the Tables generated by Perl and Python scripts (requires Internet # access for Unicode data), uncomment the following line: @@ -203,7 +203,7 @@ $(AR) $(ARFLAGS) obj/dbg/libre2.a $(DOFILES) .PRECIOUS: obj/so/libre2.$(SOEXT) -obj/so/libre2.$(SOEXT): $(SOFILES) +obj/so/libre2.$(SOEXT): $(SOFILES) libre2.symbols libre2.symbols.darwin @mkdir -p obj/so $(MAKE_SHARED_LIBRARY) -o obj/so/libre2.$(SOEXTVER) $(SOFILES) ln -sf libre2.$(SOEXTVER) $@ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-10-01/libre2.symbols new/re2-2020-11-01/libre2.symbols --- old/re2-2020-10-01/libre2.symbols 2020-09-27 12:41:02.0 +0200 +++ new/re2-2020-11-01/libre2.symbols 2020-10-26 11:17:05.0 +0100 @@ -11,6 +11,9 @@ # re2::FilteredRE2* _ZN3re211FilteredRE2*; _ZNK3re211FilteredRE2*; + # re2::re2_internal* + _ZN3re212re2_internal*; + _ZNK3re212re2_internal*; local: *; }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-10-01/libre2.symbols.darwin new/re2-2020-11-01/libre2.symbols.darwin --- old/re2-2020-10-01/libre2.symbols.darwin2020-09-27 12:41:02.0 +0200 +++ new/re2-2020-11-01/libre2.symbols.darwin2020-10-26 11:17:05.0 +0100 @@ -10,3 +10,6 @@ # re2::FilteredRE2* __ZN3re211FilteredRE2* __ZNK3re211FilteredRE2* +# re2::re2_internal* +__ZN3re212re2_internal* +__ZNK3re212re2_internal* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-10-01/re2/re2.cc new/re2-2020-11-01/re2/re2.cc --- old/re2-2020-10-01/re2/re2.cc 2020-09-27 12:41:02.0 +0200 +++ new/re2-2020-11-01/re2/re2.cc 2020-10-26 11:17:05.0 +0100 @@ -1040,41 +1040,49 @@ /* Parsers for various types */ -bool RE2::Arg::parse_null(const char* str, size_t n, void* dest) { +namespace re2_internal { + +template <> +bool Parse(const char* str, size_t n, void* dest) { // We fail if somebody asked us to store into a non-NULL void* pointer return (dest == NULL); } -bool RE2::Arg::parse_string(const char* str, size_t n, void* dest) { +template <> +bool Parse(const char* str, size_t n,
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2020-10-12 13:46:47 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new.3486 (New) Package is "re2" Mon Oct 12 13:46:47 2020 rev:34 rq:840948 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2020-08-14 09:31:18.260336155 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new.3486/re2.changes2020-10-12 13:46:56.189912110 +0200 @@ -1,0 +2,6 @@ +Sat Oct 10 20:54:42 UTC 2020 - Andreas Stieger + +- update to 2020-10-01: + * build system updates and compiler warnings fixes + +--- Old: re2-2020-08-01.tar.gz New: re2-2020-10-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.wTWg3w/_old 2020-10-12 13:46:57.453912623 +0200 +++ /var/tmp/diff_new_pack.wTWg3w/_new 2020-10-12 13:46:57.457912626 +0200 @@ -16,7 +16,7 @@ # -%global longver 2020-08-01 +%global longver 2020-10-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-8 Name: re2 ++ re2-2020-08-01.tar.gz -> re2-2020-10-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-08-01/.github/bazel.sh new/re2-2020-10-01/.github/bazel.sh --- old/re2-2020-08-01/.github/bazel.sh 1970-01-01 01:00:00.0 +0100 +++ new/re2-2020-10-01/.github/bazel.sh 2020-09-27 12:41:02.0 +0200 @@ -0,0 +1,24 @@ +#!/bin/bash +set -eux + +bazel clean +bazel build --compilation_mode=dbg -- //:all +bazel test --compilation_mode=dbg --test_output=errors -- //:all \ + -//:dfa_test \ + -//:exhaustive1_test \ + -//:exhaustive2_test \ + -//:exhaustive3_test \ + -//:exhaustive_test \ + -//:random_test + +bazel clean +bazel build --compilation_mode=opt -- //:all +bazel test --compilation_mode=opt --test_output=errors -- //:all \ + -//:dfa_test \ + -//:exhaustive1_test \ + -//:exhaustive2_test \ + -//:exhaustive3_test \ + -//:exhaustive_test \ + -//:random_test + +exit 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-08-01/.github/cmake.sh new/re2-2020-10-01/.github/cmake.sh --- old/re2-2020-08-01/.github/cmake.sh 1970-01-01 01:00:00.0 +0100 +++ new/re2-2020-10-01/.github/cmake.sh 2020-09-27 12:41:02.0 +0200 @@ -0,0 +1,12 @@ +#!/bin/bash +set -eux + +cmake -D CMAKE_BUILD_TYPE=Debug +cmake --build . --config Debug --clean-first +ctest -C Debug --output-on-failure -E 'dfa|exhaustive|random' + +cmake -D CMAKE_BUILD_TYPE=Release +cmake --build . --config Release --clean-first +ctest -C Release --output-on-failure -E 'dfa|exhaustive|random' + +exit 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-08-01/.github/workflows/ci-bazel.yml new/re2-2020-10-01/.github/workflows/ci-bazel.yml --- old/re2-2020-08-01/.github/workflows/ci-bazel.yml 1970-01-01 01:00:00.0 +0100 +++ new/re2-2020-10-01/.github/workflows/ci-bazel.yml 2020-09-27 12:41:02.0 +0200 @@ -0,0 +1,17 @@ +name: CI (Bazel) +on: + push: +branches: [master] +jobs: + build: +runs-on: ${{ matrix.os }} +strategy: + fail-fast: false + matrix: +os: [macos-latest, ubuntu-latest, windows-latest] +env: + BAZELISK_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +steps: + - uses: actions/checkout@v2 + - run: .github/bazel.sh +shell: bash diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-08-01/.github/workflows/ci-cmake.yml new/re2-2020-10-01/.github/workflows/ci-cmake.yml --- old/re2-2020-08-01/.github/workflows/ci-cmake.yml 1970-01-01 01:00:00.0 +0100 +++ new/re2-2020-10-01/.github/workflows/ci-cmake.yml 2020-09-27 12:41:02.0 +0200 @@ -0,0 +1,15 @@ +name: CI (CMake) +on: + push: +branches: [master] +jobs: + build: +runs-on: ${{ matrix.os }} +strategy: + fail-fast: false + matrix: +os: [macos-latest, ubuntu-latest, windows-latest] +steps: + - uses: actions/checkout@v2 + - run: .github/cmake.sh +shell: bash diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-08-01/.github/workflows/ci.yml new/re2-2020-10-01/.github/workflows/ci.yml --- old/re2-2020-08-01/.github/workflows/ci.yml 1970-01-01 01:00:00.0 +0100 +++ new/re2-2020-10-01/.github/workflows/ci.yml 2020-09-27 12:41:02.0 +0200 @@ -0,0 +1,51 @@ +name: CI +on: + push: +branches: [master] +jobs: + build: +runs-on: ${{ matrix.os }} +strategy: +
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2020-08-14 09:30:55 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new.3399 (New) Package is "re2" Fri Aug 14 09:30:55 2020 rev:33 rq:825790 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2020-06-10 00:33:59.176684099 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new.3399/re2.changes2020-08-14 09:31:18.260336155 +0200 @@ -1,0 +2,6 @@ +Tue Aug 11 13:10:17 UTC 2020 - Martin Pluskal + +- Update to version 2020-08-01: + * Various internal changes + +--- Old: re2-2020-06-01.tar.gz New: re2-2020-08-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.aO8BaF/_old 2020-08-14 09:31:20.856337486 +0200 +++ /var/tmp/diff_new_pack.aO8BaF/_new 2020-08-14 09:31:20.860337488 +0200 @@ -16,9 +16,9 @@ # -%global longver 2020-06-01 +%global longver 2020-08-01 %global shortver %(echo %{longver}|sed 's|-||g') -%define libname libre2-7 +%define libname libre2-8 Name: re2 Version:%{shortver} Release:0 ++ baselibs.conf ++ --- /var/tmp/diff_new_pack.aO8BaF/_old 2020-08-14 09:31:20.888337502 +0200 +++ /var/tmp/diff_new_pack.aO8BaF/_new 2020-08-14 09:31:20.892337504 +0200 @@ -1 +1 @@ -libre2-7 +libre2-8 ++ re2-2020-06-01.tar.gz -> re2-2020-08-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-06-01/BUILD new/re2-2020-08-01/BUILD --- old/re2-2020-06-01/BUILD2020-05-27 18:34:17.0 +0200 +++ new/re2-2020-08-01/BUILD2020-07-14 19:26:22.0 +0200 @@ -9,18 +9,18 @@ exports_files(["LICENSE"]) config_setting( -name = "darwin", +name = "macos", values = {"cpu": "darwin"}, ) config_setting( -name = "windows", -values = {"cpu": "x64_windows"}, +name = "wasm", +values = {"cpu": "wasm32"}, ) config_setting( -name = "windows_msvc", -values = {"cpu": "x64_windows_msvc"}, +name = "windows", +values = {"cpu": "x64_windows"}, ) load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test") @@ -75,17 +75,17 @@ "re2/stringpiece.h", ], copts = select({ +":wasm": [], ":windows": [], -":windows_msvc": [], "//conditions:default": ["-pthread"], }), linkopts = select({ -# Darwin doesn't need `-pthread' when linking and it appears that +# macOS doesn't need `-pthread' when linking and it appears that # older versions of Clang will warn about the unused command line # argument, so just don't pass it. -":darwin": [], +":macos": [], +":wasm": [], ":windows": [], -":windows_msvc": [], "//conditions:default": ["-pthread"], }), visibility = ["//visibility:public"], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-06-01/Makefile new/re2-2020-08-01/Makefile --- old/re2-2020-06-01/Makefile 2020-05-27 18:34:17.0 +0200 +++ new/re2-2020-08-01/Makefile 2020-07-14 19:26:22.0 +0200 @@ -44,7 +44,7 @@ # ABI version # http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html -SONAME=7 +SONAME=8 # To rebuild the Tables generated by Perl and Python scripts (requires Internet # access for Unicode data), uncomment the following line: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-06-01/re2/compile.cc new/re2-2020-08-01/re2/compile.cc --- old/re2-2020-06-01/re2/compile.cc 2020-05-27 18:34:17.0 +0200 +++ new/re2-2020-08-01/re2/compile.cc 2020-07-14 19:26:22.0 +0200 @@ -30,91 +30,57 @@ // See http://swtch.com/~rsc/regexp/regexp1.html for inspiration. // // Because the out and out1 fields in Inst are no longer pointers, -// we can't use pointers directly here either. Instead, p refers -// to inst_[p>>1].out (p&1 == 0) or inst_[p>>1].out1 (p&1 == 1). -// p == 0 represents the NULL list. This is okay because instruction #0 +// we can't use pointers directly here either. Instead, head refers +// to inst_[head>>1].out (head&1 == 0) or inst_[head>>1].out1 (head&1 == 1). +// head == 0 represents the NULL list. This is okay because instruction #0 // is always the fail instruction, which never appears on a list. - struct PatchList { - uint32_t p; - // Returns patch list containing just p. - static PatchList Mk(uint32_t p); + static PatchList Mk(uint32_t p) { +return {p, p}; + } - // Patches all the entries on l to have value v.
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2020-06-10 00:33:53 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new.3606 (New) Package is "re2" Wed Jun 10 00:33:53 2020 rev:32 rq:812181 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2020-06-03 20:30:51.576870298 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new.3606/re2.changes2020-06-10 00:33:59.176684099 +0200 @@ -1,0 +2,6 @@ +Sun Jun 7 06:43:53 UTC 2020 - Martin Pluskal + +- Update to version 2020-06-01: + * Various internal changes + +--- Old: re2-2020-05-01.tar.gz New: re2-2020-06-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.utEyw8/_old 2020-06-10 00:34:00.796688497 +0200 +++ /var/tmp/diff_new_pack.utEyw8/_new 2020-06-10 00:34:00.800688508 +0200 @@ -16,7 +16,7 @@ # -%global longver 2020-05-01 +%global longver 2020-06-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-7 Name: re2 ++ re2-2020-05-01.tar.gz -> re2-2020-06-01.tar.gz ++ 1628 lines of diff (skipped)
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2020-06-03 20:30:37 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new.3606 (New) Package is "re2" Wed Jun 3 20:30:37 2020 rev:31 rq:810179 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2020-04-07 10:26:13.862156673 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new.3606/re2.changes2020-06-03 20:30:51.576870298 +0200 @@ -1,0 +2,14 @@ +Fri May 29 09:33:23 UTC 2020 - Martin Pluskal + +- Enable PGO during build + +--- +Wed May 20 13:23:47 UTC 2020 - Martin Pluskal + +- Update to version 2020-05-03: + * Internal fixes and optimisations + * Remove deprecated APIs, SONAME change +- Build tests with optflags +- Disable tests for 32 bit architectures + +--- Old: re2-2020-04-01.tar.gz New: re2-2020-05-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.62JeAc/_old 2020-06-03 20:30:52.524873180 +0200 +++ /var/tmp/diff_new_pack.62JeAc/_new 2020-06-03 20:30:52.528873192 +0200 @@ -16,9 +16,9 @@ # -%global longver 2020-04-01 +%global longver 2020-05-01 %global shortver %(echo %{longver}|sed 's|-||g') -%define libname libre2-6 +%define libname libre2-7 Name: re2 Version:%{shortver} Release:0 @@ -75,7 +75,14 @@ %setup -q -n %{name}-%{longver} %build -%make_build CXXFLAGS="%{optflags}" +%if %{do_profiling} + %make_build CXXFLAGS="%{optflags} %{cflags_profile_generate}" + %make_build CXXFLAGS="%{optflags} %{cflags_profile_generate}" LDFLAGS="-lgcov" benchlog + %make_build clean + %make_build CXXFLAGS="%{optflags} %{cflags_profile_feedback}" +%else + %make_build CXXFLAGS="%{optflags}" +%endif %install %make_install includedir=%{_includedir} libdir=%{_libdir} @@ -84,7 +91,10 @@ find %{buildroot} -name 'lib%{name}.a' -delete %check -%make_build test +# Tests fail on all 32 bit architectures +%if %{__isa_bits} == 64 +%make_build test CXXFLAGS="%{optflags}" +%endif %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig ++ baselibs.conf ++ --- /var/tmp/diff_new_pack.62JeAc/_old 2020-06-03 20:30:52.568873314 +0200 +++ /var/tmp/diff_new_pack.62JeAc/_new 2020-06-03 20:30:52.572873326 +0200 @@ -1 +1 @@ -libre2-6 +libre2-7 ++ re2-2020-04-01.tar.gz -> re2-2020-05-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-04-01/.travis.yml new/re2-2020-05-01/.travis.yml --- old/re2-2020-04-01/.travis.yml 2020-03-27 12:23:48.0 +0100 +++ new/re2-2020-05-01/.travis.yml 2020-04-23 17:56:11.0 +0200 @@ -169,6 +169,18 @@ - clang-9 env: - MATRIX_EVAL="CC=clang-9 CXX=clang++-9" +- os: linux + dist: xenial + addons: +apt: + sources: +- ubuntu-toolchain-r-test +- sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-10 main' + key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' + packages: +- clang-10 + env: +- MATRIX_EVAL="CC=clang-10 CXX=clang++-10" - os: osx osx_image: xcode7.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-04-01/Makefile new/re2-2020-05-01/Makefile --- old/re2-2020-04-01/Makefile 2020-03-27 12:23:48.0 +0100 +++ new/re2-2020-05-01/Makefile 2020-04-23 17:56:11.0 +0200 @@ -44,7 +44,7 @@ # ABI version # http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html -SONAME=6 +SONAME=7 # To rebuild the Tables generated by Perl and Python scripts (requires Internet # access for Unicode data), uncomment the following line: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-04-01/re2/bitmap256.h new/re2-2020-05-01/re2/bitmap256.h --- old/re2-2020-04-01/re2/bitmap256.h 2020-03-27 12:23:48.0 +0100 +++ new/re2-2020-05-01/re2/bitmap256.h 2020-04-23 17:56:11.0 +0200 @@ -32,7 +32,7 @@ DCHECK_GE(c, 0); DCHECK_LE(c, 255); -return (words_[c / 64] & (1ULL << (c % 64))) != 0; +return (words_[c / 64] & (uint64_t{1} << (c % 64))) != 0; } // Sets the bit with index c. @@ -40,7 +40,7 @@ DCHECK_GE(c, 0); DCHECK_LE(c, 255); -words_[c / 64] |= (1ULL << (c % 64)); +words_[c / 64] |= (uint64_t{1} << (c % 64)); } // Finds the next non-zero bit with index >= c. @@ -51,7 +51,6 @@ // Finds the least significant
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2020-04-07 10:25:51 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new.3248 (New) Package is "re2" Tue Apr 7 10:25:51 2020 rev:30 rq:791498 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2020-03-23 12:49:36.20854 +0100 +++ /work/SRC/openSUSE:Factory/.re2.new.3248/re2.changes2020-04-07 10:26:13.862156673 +0200 @@ -1,0 +2,7 @@ +Sun Apr 5 08:22:33 UTC 2020 - Andreas Stieger + +- Updat to version 2020-04-01: + * Update Unicode data to 13.0.0 + * Include the pattern length in "DFA out of memory" errorrs + +--- Old: re2-2020-03-03.tar.gz New: re2-2020-04-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.05RDel/_old 2020-04-07 10:26:14.730157638 +0200 +++ /var/tmp/diff_new_pack.05RDel/_new 2020-04-07 10:26:14.734157642 +0200 @@ -16,7 +16,7 @@ # -%global longver 2020-03-03 +%global longver 2020-04-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-6 Name: re2 ++ re2-2020-03-03.tar.gz -> re2-2020-04-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-03-03/doc/syntax.html new/re2-2020-04-01/doc/syntax.html --- old/re2-2020-03-03/doc/syntax.html 2020-03-03 05:49:18.0 +0100 +++ new/re2-2020-04-01/doc/syntax.html 2020-03-27 12:23:48.0 +0100 @@ -264,6 +264,7 @@ Chakma Cham Cherokee +Chorasmian Common Coptic Cuneiform @@ -271,6 +272,7 @@ Cyrillic Deseret Devanagari +Dives_Akuru Dogra Duployan Egyptian_Hieroglyphs @@ -302,6 +304,7 @@ Katakana Kayah_Li Kharoshthi +Khitan_Small_Script Khmer Khojki Khudawadi @@ -391,6 +394,7 @@ Vai Wancho Warang_Citi +Yezidi Yi Zanabazar_Square diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-03-03/doc/syntax.txt new/re2-2020-04-01/doc/syntax.txt --- old/re2-2020-03-03/doc/syntax.txt 2020-03-03 05:49:18.0 +0100 +++ new/re2-2020-04-01/doc/syntax.txt 2020-03-27 12:23:48.0 +0100 @@ -253,6 +253,7 @@ Chakma Cham Cherokee +Chorasmian Common Coptic Cuneiform @@ -260,6 +261,7 @@ Cyrillic Deseret Devanagari +Dives_Akuru Dogra Duployan Egyptian_Hieroglyphs @@ -291,6 +293,7 @@ Katakana Kayah_Li Kharoshthi +Khitan_Small_Script Khmer Khojki Khudawadi @@ -380,6 +383,7 @@ Vai Wancho Warang_Citi +Yezidi Yi Zanabazar_Square diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2020-03-03/re2/re2.cc new/re2-2020-04-01/re2/re2.cc --- old/re2-2020-03-03/re2/re2.cc 2020-03-03 05:49:18.0 +0100 +++ new/re2-2020-04-01/re2/re2.cc 2020-03-27 12:23:48.0 +0100 @@ -689,9 +689,11 @@ Prog::kLongestMatch, matchp, _failed, NULL)) { if (dfa_failed) { if (options_.log_errors()) - LOG(ERROR) << "DFA out of memory: size " << prog->size() << ", " - << "bytemap range " << prog->bytemap_range() << ", " - << "list count " << prog->list_count(); + LOG(ERROR) << "DFA out of memory: " + << "pattern length " << pattern_.size() << ", " + << "program size " << prog->size() << ", " + << "list count " << prog->list_count() << ", " + << "bytemap range " << prog->bytemap_range(); // Fall back to NFA below. skipped_test = true; break; @@ -707,9 +709,11 @@ matchp, _failed, NULL)) { if (dfa_failed) { if (options_.log_errors()) -LOG(ERROR) << "DFA out of memory: size " << prog_->size() << ", " - << "bytemap range " << prog_->bytemap_range() << ", " - << "list count " << prog_->list_count(); +LOG(ERROR) << "DFA out of memory: " + << "pattern length " << pattern_.size() << ", " + << "program size " << prog_->size() << ", " + << "list count " << prog_->list_count() << ", " + << "bytemap range " << prog_->bytemap_range(); // Fall back to NFA below. skipped_test = true; break; @@ -731,9 +735,11 @@ Prog::kLongestMatch, , _failed, NULL)) { if (dfa_failed) { if (options_.log_errors()) -LOG(ERROR) << "DFA out of memory: size " <<
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2020-03-23 12:49:21 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new.3160 (New) Package is "re2" Mon Mar 23 12:49:21 2020 rev:29 rq:786732 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2020-02-22 18:59:07.313486305 +0100 +++ /work/SRC/openSUSE:Factory/.re2.new.3160/re2.changes2020-03-23 12:49:36.20854 +0100 @@ -1,0 +2,6 @@ +Fri Mar 20 07:30:23 UTC 2020 - Martin Pluskal + +- Update to version 2020-03-03: + * various developer visible changes + +--- Old: re2-2020-01-01.tar.gz New: re2-2020-03-03.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.TShdA9/_old 2020-03-23 12:49:38.039921506 +0100 +++ /var/tmp/diff_new_pack.TShdA9/_new 2020-03-23 12:49:38.059921519 +0100 @@ -16,9 +16,9 @@ # -%global longver 2020-01-01 +%global longver 2020-03-03 %global shortver %(echo %{longver}|sed 's|-||g') -%define libname libre2-0 +%define libname libre2-6 Name: re2 Version:%{shortver} Release:0 ++ baselibs.conf ++ --- /var/tmp/diff_new_pack.TShdA9/_old 2020-03-23 12:49:38.099921544 +0100 +++ /var/tmp/diff_new_pack.TShdA9/_new 2020-03-23 12:49:38.099921544 +0100 @@ -1 +1 @@ -libre2-0 +libre2-6 ++ re2-2020-01-01.tar.gz -> re2-2020-03-03.tar.gz ++ 2033 lines of diff (skipped)
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2020-02-22 18:58:48 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new.26092 (New) Package is "re2" Sat Feb 22 18:58:48 2020 rev:28 rq:15 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2020-01-12 23:15:50.990626747 +0100 +++ /work/SRC/openSUSE:Factory/.re2.new.26092/re2.changes 2020-02-22 18:59:07.313486305 +0100 @@ -1,0 +2,5 @@ +Thu Feb 13 13:23:29 UTC 2020 - Martin Pluskal + +- Small spec file update + +--- Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.rGKVHt/_old 2020-02-22 18:59:08.321488258 +0100 +++ /var/tmp/diff_new_pack.rGKVHt/_new 2020-02-22 18:59:08.325488265 +0100 @@ -75,16 +75,16 @@ %setup -q -n %{name}-%{longver} %build -make %{?_smp_mflags} CXXFLAGS="%{optflags}" +%make_build CXXFLAGS="%{optflags}" %install -make install DESTDIR=%{buildroot} includedir=%{_includedir} libdir=%{_libdir} +%make_install includedir=%{_includedir} libdir=%{_libdir} # Suppress the static library find %{buildroot} -name 'lib%{name}.a' -delete %check -make %{?_smp_mflags} test +%make_build test %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2020-01-12 23:15:47 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new.6675 (New) Package is "re2" Sun Jan 12 23:15:47 2020 rev:27 rq:761763 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2019-12-11 12:04:41.964751098 +0100 +++ /work/SRC/openSUSE:Factory/.re2.new.6675/re2.changes2020-01-12 23:15:50.990626747 +0100 @@ -1,0 +2,6 @@ +Wed Jan 8 08:37:25 UTC 2020 - Tomáš Chvátal + +- Update to 2020-01-01: + * various developer visible changes + +--- Old: re2-2019-12-01.tar.gz New: re2-2020-01-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.blK2rG/_old 2020-01-12 23:15:51.606626975 +0100 +++ /var/tmp/diff_new_pack.blK2rG/_new 2020-01-12 23:15:51.610626976 +0100 @@ -1,7 +1,7 @@ # # spec file for package re2 # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,7 @@ # -%global longver 2019-12-01 +%global longver 2020-01-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 ++ re2-2019-12-01.tar.gz -> re2-2020-01-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2019-12-01/re2/compile.cc new/re2-2020-01-01/re2/compile.cc --- old/re2-2019-12-01/re2/compile.cc 2019-11-25 12:22:49.0 +0100 +++ new/re2-2020-01-01/re2/compile.cc 2019-12-30 08:29:02.0 +0100 @@ -662,48 +662,43 @@ static_cast(hi), foldcase, 0)); } -// Table describing how to make a UTF-8 matching machine -// for the rune range 80-10 (Runeself-Runemax). -// This range happens frequently enough (for example /./ and /[^a-z]/) -// and the rune_cache_ map is slow enough that this is worth -// special handling. Makes compilation of a small expression -// with a dot in it about 10% faster. -// The * in the comments below mark whole sequences. -static struct ByteRangeProg { - int next; - int lo; - int hi; -} prog_80_10[] = { - // Two-byte - { -1, 0x80, 0xBF, }, // 0: 80-BF - { 0, 0xC2, 0xDF, }, // 1: C2-DF 80-BF* - - // Three-byte - { 0, 0xA0, 0xBF, }, // 2: A0-BF 80-BF - { 2, 0xE0, 0xE0, }, // 3: E0 A0-BF 80-BF* - { 0, 0x80, 0xBF, }, // 4: 80-BF 80-BF - { 4, 0xE1, 0xEF, }, // 5: E1-EF 80-BF 80-BF* - - // Four-byte - { 4, 0x90, 0xBF, }, // 6: 90-BF 80-BF 80-BF - { 6, 0xF0, 0xF0, }, // 7: F0 90-BF 80-BF 80-BF* - { 4, 0x80, 0xBF, }, // 8: 80-BF 80-BF 80-BF - { 8, 0xF1, 0xF3, }, // 9: F1-F3 80-BF 80-BF 80-BF* - { 4, 0x80, 0x8F, }, // 10: 80-8F 80-BF 80-BF - { 10, 0xF4, 0xF4, }, // 11: F4 80-8F 80-BF 80-BF* -}; - void Compiler::Add_80_10() { - int inst[arraysize(prog_80_10)] = { 0 }; // does not need to be initialized; silences gcc warning - for (size_t i = 0; i < arraysize(prog_80_10); i++) { -const ByteRangeProg& p = prog_80_10[i]; -int next = 0; -if (p.next >= 0) - next = inst[p.next]; -inst[i] = UncachedRuneByteSuffix(static_cast(p.lo), - static_cast(p.hi), false, next); -if ((p.lo & 0xC0) != 0x80) - AddSuffix(inst[i]); + // The 80-10 (Runeself-Runemax) rune range occurs frequently enough + // (for example, for /./ and /[^a-z]/) that it is worth simplifying: by + // permitting overlong encodings in E0 and F0 sequences and code points + // over 10 in F4 sequences, the size of the bytecode and the number + // of equivalence classes are reduced significantly. + int id; + if (reversed_) { +// Prefix factoring matters, but we don't have to handle it here +// because the rune range trie logic takes care of that already. +id = UncachedRuneByteSuffix(0xC2, 0xDF, false, 0); +id = UncachedRuneByteSuffix(0x80, 0xBF, false, id); +AddSuffix(id); + +id = UncachedRuneByteSuffix(0xE0, 0xEF, false, 0); +id = UncachedRuneByteSuffix(0x80, 0xBF, false, id); +id = UncachedRuneByteSuffix(0x80, 0xBF, false, id); +AddSuffix(id); + +id = UncachedRuneByteSuffix(0xF0, 0xF4, false, 0); +id = UncachedRuneByteSuffix(0x80, 0xBF, false, id); +id = UncachedRuneByteSuffix(0x80, 0xBF, false, id); +id = UncachedRuneByteSuffix(0x80, 0xBF, false, id); +AddSuffix(id); + } else { +// Suffix factoring matters - and we do have to handle it here. +int cont1 =
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2019-12-11 12:03:51 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new.4691 (New) Package is "re2" Wed Dec 11 12:03:51 2019 rev:26 rq:754865 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2019-12-02 11:27:54.990655219 +0100 +++ /work/SRC/openSUSE:Factory/.re2.new.4691/re2.changes2019-12-11 12:04:41.964751098 +0100 @@ -1,0 +2,6 @@ +Fri Dec 6 18:59:20 UTC 2019 - Andreas Stieger + +- update to 2019-12-01: + * fix latent bugs and undefined behavior + +--- Old: re2-2019-11-01.tar.gz New: re2-2019-12-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.IfXaiR/_old 2019-12-11 12:04:42.860750722 +0100 +++ /var/tmp/diff_new_pack.IfXaiR/_new 2019-12-11 12:04:42.860750722 +0100 @@ -16,7 +16,7 @@ # -%global longver 2019-11-01 +%global longver 2019-12-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 ++ re2-2019-11-01.tar.gz -> re2-2019-12-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2019-11-01/re2/bitstate.cc new/re2-2019-12-01/re2/bitstate.cc --- old/re2-2019-11-01/re2/bitstate.cc 2019-10-29 15:06:24.0 +0100 +++ new/re2-2019-12-01/re2/bitstate.cc 2019-11-25 12:22:49.0 +0100 @@ -342,6 +342,10 @@ cap_[0] = p; if (TrySearch(prog_->start(), p)) // Match must be leftmost; done. return true; +// Avoid invoking undefined behavior (arithmetic on a null pointer) +// by simply not continuing the loop. +if (p == NULL) + break; } return false; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2019-11-01/re2/nfa.cc new/re2-2019-12-01/re2/nfa.cc --- old/re2-2019-11-01/re2/nfa.cc 2019-10-29 15:06:24.0 +0100 +++ new/re2-2019-12-01/re2/nfa.cc 2019-11-25 12:22:49.0 +0100 @@ -382,10 +382,15 @@ break; case kInstMatch: { -// Avoid invoking undefined behavior when p happens -// to be null - and p-1 would be meaningless anyway. -if (p == NULL) +// Avoid invoking undefined behavior (arithmetic on a null pointer) +// by storing p instead of p-1. (What would the latter even mean?!) +// This complements the special case in NFA::Search(). +if (p == NULL) { + CopyCapture(match_, t->capture); + match_[1] = p; + matched_ = true; break; +} if (endmatch_ && p-1 != etext_) break; @@ -593,6 +598,18 @@ fprintf(stderr, "dead\n"); break; } + +// Avoid invoking undefined behavior (arithmetic on a null pointer) +// by simply not continuing the loop. +// This complements the special case in NFA::Step(). +if (p == NULL) { + (void)Step(runq, nextq, p < etext_ ? p[0] & 0xFF : -1, context, p); + DCHECK_EQ(runq->size(), 0); + using std::swap; + swap(nextq, runq); + nextq->clear(); + break; +} } for (Threadq::iterator i = runq->begin(); i != runq->end(); ++i) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2019-11-01/re2/parse.cc new/re2-2019-12-01/re2/parse.cc --- old/re2-2019-11-01/re2/parse.cc 2019-10-29 15:06:24.0 +0100 +++ new/re2-2019-12-01/re2/parse.cc 2019-11-25 12:22:49.0 +0100 @@ -1323,14 +1323,14 @@ // Parses a decimal integer, storing it in *np. // Sets *s to span the remainder of the string. static bool ParseInteger(StringPiece* s, int* np) { - if (s->size() == 0 || !isdigit((*s)[0] & 0xFF)) + if (s->empty() || !isdigit((*s)[0] & 0xFF)) return false; // Disallow leading zeros. if (s->size() >= 2 && (*s)[0] == '0' && isdigit((*s)[1] & 0xFF)) return false; int n = 0; int c; - while (s->size() > 0 && isdigit(c = (*s)[0] & 0xFF)) { + while (!s->empty() && isdigit(c = (*s)[0] & 0xFF)) { // Avoid overflow. if (n >= 1) return false; @@ -1352,16 +1352,16 @@ // s must NOT be edited unless MaybeParseRepetition returns true. static bool MaybeParseRepetition(StringPiece* sp, int* lo, int* hi) { StringPiece s = *sp; - if (s.size() == 0 || s[0] != '{') + if (s.empty() || s[0] != '{') return false; s.remove_prefix(1); // '{' if (!ParseInteger(, lo)) return false; - if (s.size() == 0) + if (s.empty()) return false; if (s[0] == ',') { s.remove_prefix(1); // ',' -if (s.size() == 0) +
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2019-12-02 11:27:08 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new.4691 (New) Package is "re2" Mon Dec 2 11:27:08 2019 rev:25 rq:749044 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2019-09-23 12:00:05.733977837 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new.4691/re2.changes2019-12-02 11:27:54.990655219 +0100 @@ -1,0 +2,6 @@ +Sat Nov 16 08:56:37 UTC 2019 - Andreas Stieger + +- update to 2019-11-01: + * new benchmark API + +--- Old: re2-2019-09-01.tar.gz New: re2-2019-11-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.XgJvmW/_old 2019-12-02 11:28:00.854652506 +0100 +++ /var/tmp/diff_new_pack.XgJvmW/_new 2019-12-02 11:28:00.854652506 +0100 @@ -16,7 +16,7 @@ # -%global longver 2019-09-01 +%global longver 2019-11-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 ++ re2-2019-09-01.tar.gz -> re2-2019-11-01.tar.gz ++ 4456 lines of diff (skipped)
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2019-09-23 11:59:58 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new.7948 (New) Package is "re2" Mon Sep 23 11:59:58 2019 rev:24 rq:730281 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2019-08-07 13:58:52.884854533 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new.7948/re2.changes2019-09-23 12:00:05.733977837 +0200 @@ -1,0 +2,6 @@ +Thu Sep 12 01:16:44 UTC 2019 - Andreas Stieger + +- update to 2019-09-01: + * build system fixes + +--- Old: re2-2019-08-01.tar.gz New: re2-2019-09-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.uCszSL/_old 2019-09-23 12:00:06.381977730 +0200 +++ /var/tmp/diff_new_pack.uCszSL/_new 2019-09-23 12:00:06.385977730 +0200 @@ -16,7 +16,7 @@ # -%global longver 2019-08-01 +%global longver 2019-09-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 ++ re2-2019-08-01.tar.gz -> re2-2019-09-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2019-08-01/.travis.yml new/re2-2019-09-01/.travis.yml --- old/re2-2019-08-01/.travis.yml 2019-07-31 11:21:22.0 +0200 +++ new/re2-2019-09-01/.travis.yml 2019-08-27 06:53:41.0 +0200 @@ -1,6 +1,6 @@ language: cpp sudo: false -dist: trusty +dist: xenial script: - make - make test @@ -76,37 +76,8 @@ apt: sources: - ubuntu-toolchain-r-test -- llvm-toolchain-precise-3.5 - packages: -- clang-3.5 - env: -- MATRIX_EVAL="CC=clang-3.5 CXX=clang++-3.5" -- os: linux - addons: -apt: - sources: -- ubuntu-toolchain-r-test -- llvm-toolchain-precise-3.6 - packages: -- clang-3.6 - env: -- MATRIX_EVAL="CC=clang-3.6 CXX=clang++-3.6" -- os: linux - addons: -apt: - sources: -- ubuntu-toolchain-r-test -- llvm-toolchain-precise-3.7 - packages: -- clang-3.7 - env: -- MATRIX_EVAL="CC=clang-3.7 CXX=clang++-3.7" -- os: linux - addons: -apt: - sources: -- ubuntu-toolchain-r-test -- llvm-toolchain-precise-3.8 +- sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-3.8 main' + key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' packages: - clang-3.8 env: @@ -116,7 +87,8 @@ apt: sources: - ubuntu-toolchain-r-test -- llvm-toolchain-precise-3.9 +- sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-3.9 main' + key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' packages: - clang-3.9 env: @@ -126,7 +98,8 @@ apt: sources: - ubuntu-toolchain-r-test -- llvm-toolchain-trusty-4.0 +- sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-4.0 main' + key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' packages: - clang-4.0 env: @@ -136,7 +109,8 @@ apt: sources: - ubuntu-toolchain-r-test -- llvm-toolchain-trusty-5.0 +- sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main' + key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' packages: - clang-5.0 env: @@ -146,7 +120,7 @@ apt: sources: - ubuntu-toolchain-r-test -- sourceline: 'deb https://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0 main' +- sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main' key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' packages: - clang-6.0 @@ -157,7 +131,7 @@ apt: sources: - ubuntu-toolchain-r-test -- sourceline: 'deb https://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main' +- sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main' key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' packages: - clang-7 @@ -168,12 +142,23 @@ apt: sources: - ubuntu-toolchain-r-test -- sourceline: 'deb https://apt.llvm.org/trusty/
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2019-08-07 13:58:51 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new.9556 (New) Package is "re2" Wed Aug 7 13:58:51 2019 rev:23 rq:720560 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2019-07-29 17:22:22.266391504 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new.9556/re2.changes2019-08-07 13:58:52.884854533 +0200 @@ -1,0 +2,7 @@ +Fri Aug 2 10:01:06 UTC 2019 - Andreas Stieger + +- Update to 2019-08-01: + * Update Unicode data to 12.1.0 + * Various developer visible changes + +--- Old: re2-2019-07-01.tar.gz New: re2-2019-08-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.XvMv9z/_old 2019-08-07 13:58:53.408854527 +0200 +++ /var/tmp/diff_new_pack.XvMv9z/_new 2019-08-07 13:58:53.408854527 +0200 @@ -16,7 +16,7 @@ # -%global longver 2019-07-01 +%global longver 2019-08-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 ++ re2-2019-07-01.tar.gz -> re2-2019-08-01.tar.gz ++ 7338 lines of diff (skipped)
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2019-07-29 17:22:20 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new.4126 (New) Package is "re2" Mon Jul 29 17:22:20 2019 rev:22 rq:717636 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2019-03-19 11:05:27.458100949 +0100 +++ /work/SRC/openSUSE:Factory/.re2.new.4126/re2.changes2019-07-29 17:22:22.266391504 +0200 @@ -1,0 +2,11 @@ +Mon Jul 22 15:22:25 UTC 2019 - Martin Pluskal + +- Fix download url + +--- +Wed Jul 17 17:27:10 UTC 2019 - Andreas Stieger + +- Update to 2019-07-01: + * developer visible changes + +--- Old: 2019-03-01.tar.gz New: re2-2019-07-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.gMfCH0/_old 2019-07-29 17:22:22.766391319 +0200 +++ /var/tmp/diff_new_pack.gMfCH0/_new 2019-07-29 17:22:22.770391317 +0200 @@ -16,7 +16,7 @@ # -%global longver 2019-03-01 +%global longver 2019-07-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 @@ -26,7 +26,7 @@ License:BSD-3-Clause Group: Development/Libraries/C and C++ URL:https://github.com/google/re2/ -Source0:https://github.com/google/re2/archive/%{longver}.tar.gz +Source0: https://github.com/google/re2/archive/%{longver}.tar.gz#/%{name}-%{longver}.tar.gz Source99: baselibs.conf BuildRequires: gcc-c++ BuildRequires: pkgconfig
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2019-03-19 11:05:25 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new.28833 (New) Package is "re2" Tue Mar 19 11:05:25 2019 rev:21 rq:684736 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2019-01-11 14:00:18.252113195 +0100 +++ /work/SRC/openSUSE:Factory/.re2.new.28833/re2.changes 2019-03-19 11:05:27.458100949 +0100 @@ -1,0 +2,6 @@ +Wed Mar 13 16:04:27 UTC 2019 - Tomáš Chvátal + +- Update to 2019-03-01: + * developer visible changes only + +--- Old: 2019-01-01.tar.gz New: 2019-03-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.le9LAZ/_old 2019-03-19 11:05:27.914100972 +0100 +++ /var/tmp/diff_new_pack.le9LAZ/_new 2019-03-19 11:05:27.914100972 +0100 @@ -16,7 +16,7 @@ # -%global longver 2019-01-01 +%global longver 2019-03-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 ++ 2019-01-01.tar.gz -> 2019-03-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2019-01-01/.travis.yml new/re2-2019-03-01/.travis.yml --- old/re2-2019-01-01/.travis.yml 2018-12-24 14:14:42.0 +0100 +++ new/re2-2019-03-01/.travis.yml 2019-02-26 04:27:41.0 +0100 @@ -154,6 +154,17 @@ - clang-7 env: - MATRIX_EVAL="CC=clang-7 CXX=clang++-7" +- os: linux + addons: +apt: + sources: +- ubuntu-toolchain-r-test +- sourceline: 'deb https://apt.llvm.org/trusty/ llvm-toolchain-trusty-8 main' + key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' + packages: +- clang-8 + env: +- MATRIX_EVAL="CC=clang-8 CXX=clang++-8" before_install: - eval "${MATRIX_EVAL}" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2019-01-01/README new/re2-2019-03-01/README --- old/re2-2019-01-01/README 2018-12-24 14:14:42.0 +0100 +++ new/re2-2019-03-01/README 2019-02-26 04:27:41.0 +0100 @@ -28,7 +28,7 @@ RE2's native language is C++. A C wrapper is at https://github.com/marcomaggi/cre2/. -An Erlang wrapper is at https://github.com/tuncer/re2/ and on Hex (hex.pm). +An Erlang wrapper is at https://github.com/dukesoferl/re2/ and on Hex (hex.pm). An Inferno wrapper is at https://github.com/powerman/inferno-re2/. A Node.js wrapper is at https://github.com/uhop/node-re2/ and on NPM (npmjs.com). An OCaml wrapper is at https://github.com/janestreet/re2/ and on OPAM (opam.ocaml.org). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2019-01-01/kokoro/bazel.sh new/re2-2019-03-01/kokoro/bazel.sh --- old/re2-2019-01-01/kokoro/bazel.sh 1970-01-01 01:00:00.0 +0100 +++ new/re2-2019-03-01/kokoro/bazel.sh 2019-02-26 04:27:41.0 +0100 @@ -0,0 +1,26 @@ +#!/bin/bash +set -eux + +cd git/re2 + +bazel clean +bazel build --compilation_mode=dbg -- //... +bazel test --compilation_mode=dbg --test_output=errors -- //... \ + -//:dfa_test \ + -//:exhaustive1_test \ + -//:exhaustive2_test \ + -//:exhaustive3_test \ + -//:exhaustive_test \ + -//:random_test + +bazel clean +bazel build --compilation_mode=opt -- //... +bazel test --compilation_mode=opt --test_output=errors -- //... \ + -//:dfa_test \ + -//:exhaustive1_test \ + -//:exhaustive2_test \ + -//:exhaustive3_test \ + -//:exhaustive_test \ + -//:random_test + +exit 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2019-01-01/kokoro/cmake.sh new/re2-2019-03-01/kokoro/cmake.sh --- old/re2-2019-01-01/kokoro/cmake.sh 1970-01-01 01:00:00.0 +0100 +++ new/re2-2019-03-01/kokoro/cmake.sh 2019-02-26 04:27:41.0 +0100 @@ -0,0 +1,25 @@ +#!/bin/bash +set -eux + +cd git/re2 + +case "${KOKORO_JOB_NAME}" in + */windows-*) +CMAKE_G_A_FLAGS=('-G' 'Visual Studio 14 2015' '-A' 'x64') +;; + *) +CMAKE_G_A_FLAGS=() +# Work around a bug in older versions of bash. :/ +set +u +;; +esac + +cmake -D CMAKE_BUILD_TYPE=Debug "${CMAKE_G_A_FLAGS[@]}" . +cmake --build . --config Debug --clean-first +ctest -C Debug --output-on-failure -E 'dfa|exhaustive|random' + +cmake -D CMAKE_BUILD_TYPE=Release "${CMAKE_G_A_FLAGS[@]}" . +cmake --build . --config Release --clean-first +ctest -C Release --output-on-failure -E 'dfa|exhaustive|random' + +exit 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2019-01-11 14:00:15 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new.28833 (New) Package is "re2" Fri Jan 11 14:00:15 2019 rev:20 rq:662780 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2018-10-23 20:34:09.308991279 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new.28833/re2.changes 2019-01-11 14:00:18.252113195 +0100 @@ -1,0 +2,6 @@ +Fri Jan 4 11:42:56 UTC 2019 - astie...@suse.com + +- update to 2019-01-01: + * developer visible changes, performance tweaks and bug fixes + +--- Old: 2018-10-01.tar.gz New: 2019-01-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.d27vZg/_old 2019-01-11 14:00:18.840112603 +0100 +++ /var/tmp/diff_new_pack.d27vZg/_new 2019-01-11 14:00:18.844112599 +0100 @@ -1,7 +1,7 @@ # # spec file for package re2 # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,7 @@ # -%global longver 2018-10-01 +%global longver 2019-01-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 ++ 2018-10-01.tar.gz -> 2019-01-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2018-10-01/re2/compile.cc new/re2-2019-01-01/re2/compile.cc --- old/re2-2018-10-01/re2/compile.cc 2018-09-28 12:00:36.0 +0200 +++ new/re2-2019-01-01/re2/compile.cc 2018-12-24 14:14:42.0 +0100 @@ -14,6 +14,7 @@ #include #include "util/logging.h" +#include "util/pod_array.h" #include "util/utf.h" #include "re2/prog.h" #include "re2/re2.h" @@ -236,11 +237,9 @@ Encoding encoding_; // Input encoding bool reversed_; // Should program run backward over text? - int max_inst_; // Maximum number of instructions. - - Prog::Inst* inst_; // Pointer to first instruction. - int inst_len_; // Number of instructions used. - int inst_cap_; // Number of instructions allocated. + PODArray inst_; + int ninst_; // Number of instructions used. + int max_ninst_; // Maximum number of instructions. int64_t max_mem_;// Total memory budget. @@ -258,41 +257,38 @@ failed_ = false; encoding_ = kEncodingUTF8; reversed_ = false; - inst_ = NULL; - inst_len_ = 0; - inst_cap_ = 0; - max_inst_ = 1; // make AllocInst for fail instruction okay + ninst_ = 0; + max_ninst_ = 1; // make AllocInst for fail instruction okay max_mem_ = 0; int fail = AllocInst(1); inst_[fail].InitFail(); - max_inst_ = 0; // Caller must change + max_ninst_ = 0; // Caller must change } Compiler::~Compiler() { delete prog_; - delete[] inst_; } int Compiler::AllocInst(int n) { - if (failed_ || inst_len_ + n > max_inst_) { + if (failed_ || ninst_ + n > max_ninst_) { failed_ = true; return -1; } - if (inst_len_ + n > inst_cap_) { -if (inst_cap_ == 0) - inst_cap_ = 8; -while (inst_len_ + n > inst_cap_) - inst_cap_ *= 2; -Prog::Inst* ip = new Prog::Inst[inst_cap_]; -if (inst_ != NULL) - memmove(ip, inst_, inst_len_ * sizeof ip[0]); -memset(ip + inst_len_, 0, (inst_cap_ - inst_len_) * sizeof ip[0]); -delete[] inst_; -inst_ = ip; + if (ninst_ + n > inst_.size()) { +int cap = inst_.size(); +if (cap == 0) + cap = 8; +while (ninst_ + n > cap) + cap *= 2; +PODArray inst(cap); +if (inst_.data() != NULL) + memmove(inst.data(), inst_.data(), ninst_*sizeof inst_[0]); +memset(inst.data() + ninst_, 0, (cap - ninst_)*sizeof inst_[0]); +inst_ = std::move(inst); } - int id = inst_len_; - inst_len_ += n; + int id = ninst_; + ninst_ += n; return id; } @@ -320,17 +316,18 @@ if (begin->opcode() == kInstNop && a.end.p == (a.begin << 1) && begin->out() == 0) { -PatchList::Patch(inst_, a.end, b.begin); // in case refs to a somewhere +// in case refs to a somewhere +PatchList::Patch(inst_.data(), a.end, b.begin); return b; } // To run backward over string, reverse all concatenations. if (reversed_) { -PatchList::Patch(inst_, b.end, a.begin); +PatchList::Patch(inst_.data(), b.end, a.begin); return Frag(b.begin, a.end); } - PatchList::Patch(inst_, a.end, b.begin); + PatchList::Patch(inst_.data(), a.end, b.begin); return Frag(a.begin,
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2018-10-23 20:34:02 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new (New) Package is "re2" Tue Oct 23 20:34:02 2018 rev:19 rq:642579 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2018-09-11 17:14:44.143646765 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new/re2.changes 2018-10-23 20:34:09.308991279 +0200 @@ -1,0 +2,6 @@ +Wed Oct 17 09:01:20 UTC 2018 - Martin Pluskal + +- update to 2018-10-01: + * developer visible changes only + +--- Old: 2018-09-01.tar.gz New: 2018-10-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.EVw51M/_old 2018-10-23 20:34:09.748990753 +0200 +++ /var/tmp/diff_new_pack.EVw51M/_new 2018-10-23 20:34:09.748990753 +0200 @@ -12,11 +12,11 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%global longver 2018-09-01 +%global longver 2018-10-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 ++ 2018-09-01.tar.gz -> 2018-10-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2018-09-01/.travis.yml new/re2-2018-10-01/.travis.yml --- old/re2-2018-09-01/.travis.yml 2018-08-30 19:36:00.0 +0200 +++ new/re2-2018-10-01/.travis.yml 2018-09-28 12:00:36.0 +0200 @@ -143,6 +143,17 @@ - clang-6.0 env: - MATRIX_EVAL="CC=clang-6.0 CXX=clang++-6.0" +- os: linux + addons: +apt: + sources: +- ubuntu-toolchain-r-test +- sourceline: 'deb https://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main' + key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' + packages: +- clang-7 + env: +- MATRIX_EVAL="CC=clang-7 CXX=clang++-7" before_install: - eval "${MATRIX_EVAL}" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2018-09-01/re2/fuzzing/re2_fuzzer.cc new/re2-2018-10-01/re2/fuzzing/re2_fuzzer.cc --- old/re2-2018-09-01/re2/fuzzing/re2_fuzzer.cc2018-08-30 19:36:00.0 +0200 +++ new/re2-2018-10-01/re2/fuzzing/re2_fuzzer.cc2018-09-28 12:00:36.0 +0200 @@ -56,21 +56,31 @@ // Entry point for libFuzzer. extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { - if (size == 0 || size > 512) + if (size == 0 || size > 999) return 0; - // Crudely limit the use of \p and \P. + // Crudely limit the use of ., \p and \P. // Otherwise, we will waste time on inputs that have long runs of Unicode // character classes. The fuzzer has shown itself to be easily capable of // generating such patterns that fall within the other limits, but result // in timeouts nonetheless. The marginal cost is high - even more so when // counted repetition is involved - whereas the marginal benefit is zero. + int dot = 0; int backslash_p = 0; for (size_t i = 0; i < size; i++) { -if (data[i] == '\\' && i+1 < size && (data[i+1] == 'p' || data[i+1] == 'P')) +if (data[i] == '.') + dot++; +if (data[i] != '\\') + continue; +i++; +if (i >= size) + break; +if (data[i] == 'p' || data[i] == 'P') backslash_p++; } - if (backslash_p > 10) + if (dot > 99) +return 0; + if (backslash_p > 1) return 0; // The one-at-a-time hash by Bob Jenkins. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2018-09-01/re2/re2.h new/re2-2018-10-01/re2/re2.h --- old/re2-2018-09-01/re2/re2.h2018-08-30 19:36:00.0 +0200 +++ new/re2-2018-10-01/re2/re2.h2018-09-28 12:00:36.0 +0200 @@ -549,8 +549,9 @@ // with (?i) unless in posix_syntax mode) // // The following options are only consulted when posix_syntax == true. -// (When posix_syntax == false these features are always enabled and -// cannot be turned off.) +// When posix_syntax == false, these features are always enabled and +// cannot be turned off; to perform multi-line matching in that case, +// begin the regexp with (?m). // perl_classes (false) allow Perl's \d \s \w \D \S \W // word_boundary(false) allow Perl's \b \B (word boundary and not) // one_line
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2018-09-11 17:14:16 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new (New) Package is "re2" Tue Sep 11 17:14:16 2018 rev:18 rq:633471 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2018-07-23 17:57:46.625171872 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new/re2.changes 2018-09-11 17:14:44.143646765 +0200 @@ -1,0 +2,12 @@ +Wed Sep 5 12:04:00 UTC 2018 - astie...@suse.com + +- update to 2018-09-01: + * developer visible changes only + +--- +Thu Aug 23 12:46:51 UTC 2018 - astie...@suse.com + +- update to 2018-08-01: + * Fix the "DFA out of memory" error for the reverse Prog + +--- Old: 2018-07-01.tar.gz New: 2018-09-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.sjgM2g/_old 2018-09-11 17:14:45.799644210 +0200 +++ /var/tmp/diff_new_pack.sjgM2g/_new 2018-09-11 17:14:45.799644210 +0200 @@ -16,7 +16,7 @@ # -%global longver 2018-07-01 +%global longver 2018-09-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 ++ 2018-07-01.tar.gz -> 2018-09-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2018-07-01/BUILD new/re2-2018-09-01/BUILD --- old/re2-2018-07-01/BUILD2018-06-24 13:05:48.0 +0200 +++ new/re2-2018-09-01/BUILD2018-08-30 19:36:00.0 +0200 @@ -58,6 +58,7 @@ "util/logging.h", "util/mix.h", "util/mutex.h", +"util/pod_array.h", "util/rune.cc", "util/sparse_array.h", "util/sparse_set.h", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2018-07-01/Makefile new/re2-2018-09-01/Makefile --- old/re2-2018-07-01/Makefile 2018-06-24 13:05:48.0 +0200 +++ new/re2-2018-09-01/Makefile 2018-08-30 19:36:00.0 +0200 @@ -83,6 +83,7 @@ util/mix.h\ util/mutex.h\ util/pcre.h\ + util/pod_array.h\ util/sparse_array.h\ util/sparse_set.h\ util/strutil.h\ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2018-07-01/re2/bitstate.cc new/re2-2018-09-01/re2/bitstate.cc --- old/re2-2018-07-01/re2/bitstate.cc 2018-06-24 13:05:48.0 +0200 +++ new/re2-2018-09-01/re2/bitstate.cc 2018-08-30 19:36:00.0 +0200 @@ -20,8 +20,10 @@ #include #include #include +#include #include "util/logging.h" +#include "util/pod_array.h" #include "re2/prog.h" #include "re2/regexp.h" @@ -36,7 +38,6 @@ class BitState { public: explicit BitState(Prog* prog); - ~BitState(); // The usual Search prototype. // Can only call Search once per BitState. @@ -47,7 +48,7 @@ private: inline bool ShouldVisit(int id, const char* p); void Push(int id, const char* p, int arg); - bool GrowStack(); + void GrowStack(); bool TrySearch(int id, const char* p); // Search parameters @@ -57,20 +58,15 @@ bool anchored_; // whether search is anchored at text.begin() bool longest_;// whether search wants leftmost-longest match bool endmatch_; // whether match must end at text.end() - StringPiece *submatch_; // submatches to fill in + StringPiece* submatch_; // submatches to fill in int nsubmatch_; // # of submatches to fill in // Search state - const char** cap_;// capture registers - int ncap_; - static const int VisitedBits = 32; - uint32_t *visited_; // bitmap: (Inst*, char*) pairs already backtracked - size_t nvisited_; // # of words in bitmap - - Job *job_;// stack of text positions to explore - int njob_; - int maxjob_; + PODArray visited_; // bitmap: (Inst*, char*) pairs visited + PODArray cap_; // capture registers + PODArray job_; // stack of text positions to explore + int njob_;// stack size }; BitState::BitState(Prog* prog) @@ -80,26 +76,15 @@ endmatch_(false), submatch_(NULL), nsubmatch_(0), -cap_(NULL), -ncap_(0), -visited_(NULL), -nvisited_(0), -job_(NULL), -njob_(0), -maxjob_(0) { -} - -BitState::~BitState() { - delete[] visited_; - delete[] job_; - delete[] cap_; +njob_(0) { } // Should the search visit the pair ip, p? // If so, remember that it was visited so that the next time, // we don't repeat the visit. bool BitState::ShouldVisit(int id,
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2018-07-23 17:57:42 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new (New) Package is "re2" Mon Jul 23 17:57:42 2018 rev:17 rq:624283 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2018-04-07 20:54:33.791806344 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new/re2.changes 2018-07-23 17:57:46.625171872 +0200 @@ -1,0 +2,14 @@ +Fri Jul 20 12:53:33 UTC 2018 - mplus...@suse.com + +- Simplify spec file a bit + +--- +Fri Jul 20 11:57:00 UTC 2018 - astie...@suse.com + +- update to 2018-07-01: + * Fix a "DFA out of memory" error + * Update Unicode data to 11.0.0 + * Fix `-Wclass-memaccess' warnings and fallthrough macros + * Use the standard first-byte analysis for the DFA too + +--- Old: 2018-04-01.tar.gz New: 2018-07-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.YseVlP/_old 2018-07-23 17:57:47.053171338 +0200 +++ /var/tmp/diff_new_pack.YseVlP/_new 2018-07-23 17:57:47.057171332 +0200 @@ -16,7 +16,7 @@ # -%global longver 2018-04-01 +%global longver 2018-07-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 @@ -75,11 +75,10 @@ %setup -q -n %{name}-%{longver} %build -CXXFLAGS="%{optflags} -pthread -std=c++11" -make %{?_smp_mflags} CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" includedir=%{_includedir} libdir=%{_libdir} +make %{?_smp_mflags} CXXFLAGS="%{optflags}" %install -make install INSTALL="install -p" DESTDIR=%{buildroot} includedir=%{_includedir} libdir=%{_libdir} +make install DESTDIR=%{buildroot} includedir=%{_includedir} libdir=%{_libdir} # Suppress the static library find %{buildroot} -name 'lib%{name}.a' -delete ++ 2018-04-01.tar.gz -> 2018-07-01.tar.gz ++ 2069 lines of diff (skipped)
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2018-04-07 20:54:29 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new (New) Package is "re2" Sat Apr 7 20:54:29 2018 rev:16 rq:593984 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2018-03-24 16:07:36.764297591 +0100 +++ /work/SRC/openSUSE:Factory/.re2.new/re2.changes 2018-04-07 20:54:33.791806344 +0200 @@ -1,0 +2,6 @@ +Fri Apr 6 12:26:44 UTC 2018 - mplus...@suse.com + +- Update to version 2018-04-01 + * developer visible changes only + +--- Old: 2018-03-01.tar.gz New: 2018-04-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.tnOt6i/_old 2018-04-07 20:54:34.487781154 +0200 +++ /var/tmp/diff_new_pack.tnOt6i/_new 2018-04-07 20:54:34.491781009 +0200 @@ -16,7 +16,7 @@ # -%global longver 2018-03-01 +%global longver 2018-04-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 @@ -25,7 +25,7 @@ Summary:C++ fast alternative to backtracking RE engines License:BSD-3-Clause Group: Development/Libraries/C and C++ -Url:https://github.com/google/re2/ +URL:https://github.com/google/re2/ Source0:https://github.com/google/re2/archive/%{longver}.tar.gz Source99: baselibs.conf BuildRequires: gcc-c++ @@ -91,7 +91,8 @@ %postun -n %{libname} -p /sbin/ldconfig %files -n %{libname} -%doc LICENSE AUTHORS CONTRIBUTORS README +%license LICENSE +%doc AUTHORS CONTRIBUTORS README %{_libdir}/lib%{name}.so.* %files devel ++ 2018-03-01.tar.gz -> 2018-04-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2018-03-01/.travis.yml new/re2-2018-04-01/.travis.yml --- old/re2-2018-03-01/.travis.yml 2018-02-22 13:54:38.0 +0100 +++ new/re2-2018-04-01/.travis.yml 2018-03-15 11:12:40.0 +0100 @@ -107,6 +107,7 @@ addons: apt: sources: +- ubuntu-toolchain-r-test - llvm-toolchain-trusty-4.0 packages: - clang-4.0 @@ -116,11 +117,23 @@ addons: apt: sources: +- ubuntu-toolchain-r-test - llvm-toolchain-trusty-5.0 packages: - clang-5.0 env: - MATRIX_EVAL="CC=clang-5.0 CXX=clang++-5.0" +- os: linux + addons: +apt: + sources: +- ubuntu-toolchain-r-test +- sourceline: 'deb https://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0 main' + key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' + packages: +- clang-6.0 + env: +- MATRIX_EVAL="CC=clang-6.0 CXX=clang++-6.0" before_install: - eval "${MATRIX_EVAL}" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2018-03-01/Makefile new/re2-2018-04-01/Makefile --- old/re2-2018-03-01/Makefile 2018-02-22 13:54:38.0 +0100 +++ new/re2-2018-04-01/Makefile 2018-03-15 11:12:40.0 +0100 @@ -246,22 +246,13 @@ test: $(DTESTS) $(TESTS) $(STESTS) debug-test static-test shared-test debug-test: $(DTESTS) - @echo - @echo Running debug binary tests. - @echo @./runtests $(DTESTS) static-test: $(TESTS) - @echo - @echo Running static binary tests. - @echo @./runtests $(TESTS) shared-test: $(STESTS) - @echo - @echo Running dynamic binary tests. - @echo - @LD_LIBRARY_PATH=obj/so:$(LD_LIBRARY_PATH) ./runtests $(STESTS) + @./runtests -shared-library-path obj/so $(STESTS) debug-bigtest: $(DTESTS) $(DBIGTESTS) @./runtests $(DTESTS) $(DBIGTESTS) @@ -270,7 +261,7 @@ @./runtests $(TESTS) $(BIGTESTS) shared-bigtest: $(STESTS) $(SBIGTESTS) - @LD_LIBRARY_PATH=obj/so:$(LD_LIBRARY_PATH) ./runtests $(STESTS) $(SBIGTESTS) + @./runtests -shared-library-path obj/so $(STESTS) $(SBIGTESTS) benchmark: obj/test/regexp_benchmark @@ -314,7 +305,11 @@ @mkdir -p obj @cp testinstall.cc obj (cd obj && $(CXX) testinstall.cc -o testinstall $(CXXFLAGS) $(LDFLAGS)) - LD_LIBRARY_PATH=$(DESTDIR)$(libdir) obj/testinstall +ifeq ($(shell uname),Darwin) + DYLD_LIBRARY_PATH="$(DESTDIR)$(libdir):$(DYLD_LIBRARY_PATH)" obj/testinstall +else + LD_LIBRARY_PATH="$(DESTDIR)$(libdir):$(LD_LIBRARY_PATH)" obj/testinstall +endif benchlog: obj/test/regexp_benchmark (echo '==BENCHMARK==' `hostname` `date`; \ diff -urN
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2018-03-24 16:07:35 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new (New) Package is "re2" Sat Mar 24 16:07:35 2018 rev:15 rq:589669 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2018-02-05 10:46:25.466805905 +0100 +++ /work/SRC/openSUSE:Factory/.re2.new/re2.changes 2018-03-24 16:07:36.764297591 +0100 @@ -1,0 +2,7 @@ +Wed Mar 21 08:10:46 UTC 2018 - astie...@suse.com + +- update to 2018-03-01: + * no longer linking against librd and libm + * other developer visible changes + +--- @@ -4 +11 @@ -- update to 2018-01-02: +- update to 2018-02-01: Old: 2018-02-01.tar.gz New: 2018-03-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.tUIXRT/_old 2018-03-24 16:07:37.696263994 +0100 +++ /var/tmp/diff_new_pack.tUIXRT/_new 2018-03-24 16:07:37.700263851 +0100 @@ -16,7 +16,7 @@ # -%global longver 2018-02-01 +%global longver 2018-03-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 ++ 2018-02-01.tar.gz -> 2018-03-01.tar.gz ++ 2598 lines of diff (skipped)
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2018-02-05 10:46:23 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new (New) Package is "re2" Mon Feb 5 10:46:23 2018 rev:14 rq:571990 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2018-01-06 18:46:56.313541537 +0100 +++ /work/SRC/openSUSE:Factory/.re2.new/re2.changes 2018-02-05 10:46:25.466805905 +0100 @@ -1,0 +2,6 @@ +Fri Feb 2 10:26:54 UTC 2018 - astie...@suse.com + +- update to 2018-01-02: + * developer visible changes only + +--- Old: 2018-01-01.tar.gz New: 2018-02-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.JPww9Z/_old 2018-02-05 10:46:26.598752909 +0100 +++ /var/tmp/diff_new_pack.JPww9Z/_new 2018-02-05 10:46:26.598752909 +0100 @@ -16,7 +16,7 @@ # -%global longver 2018-01-01 +%global longver 2018-02-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 @@ -25,7 +25,7 @@ Summary:C++ fast alternative to backtracking RE engines License:BSD-3-Clause Group: Development/Libraries/C and C++ -URL:https://github.com/google/re2/ +Url:https://github.com/google/re2/ Source0:https://github.com/google/re2/archive/%{longver}.tar.gz Source99: baselibs.conf BuildRequires: gcc-c++ ++ 2018-01-01.tar.gz -> 2018-02-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2018-01-01/BUILD new/re2-2018-02-01/BUILD --- old/re2-2018-01-01/BUILD2017-12-19 11:28:27.0 +0100 +++ new/re2-2018-02-01/BUILD2018-01-30 10:24:50.0 +0100 @@ -8,6 +8,16 @@ exports_files(["LICENSE"]) +config_setting( +name = "windows", +values = {"cpu": "x64_windows"}, +) + +config_setting( +name = "windows_msvc", +values = {"cpu": "x64_windows_msvc"}, +) + cc_library( name = "re2", srcs = [ @@ -57,8 +67,16 @@ "re2/set.h", "re2/stringpiece.h", ], -copts = ["-pthread"], -linkopts = ["-pthread"], +copts = select({ +":windows": [], +":windows_msvc": [], +"//conditions:default": ["-pthread"], +}), +linkopts = select({ +":windows": [], +":windows_msvc": [], +"//conditions:default": ["-pthread"], +}), visibility = ["//visibility:public"], ) @@ -207,9 +225,13 @@ name = "regexp_benchmark", testonly = 1, srcs = ["re2/testing/regexp_benchmark.cc"], -linkopts = [ -"-lm", -"-lrt", -], +linkopts = select({ +":windows": [], +":windows_msvc": [], +"//conditions:default": [ +"-lm", +"-lrt", +], +}), deps = [":benchmark"], ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2018-01-01/re2/re2.h new/re2-2018-02-01/re2/re2.h --- old/re2-2018-01-01/re2/re2.h2017-12-19 11:28:27.0 +0100 +++ new/re2-2018-02-01/re2/re2.h2018-01-30 10:24:50.0 +0100 @@ -774,6 +774,7 @@ // Constructor specially designed for NULL arguments Arg(void*); + Arg(std::nullptr_t); typedef bool (*Parser)(const char* str, size_t n, void* dest); @@ -849,6 +850,7 @@ inline RE2::Arg::Arg() : arg_(NULL), parser_(parse_null) { } inline RE2::Arg::Arg(void* p) : arg_(p), parser_(parse_null) { } +inline RE2::Arg::Arg(std::nullptr_t p) : arg_(p), parser_(parse_null) { } inline bool RE2::Arg::Parse(const char* str, size_t n) const { return (*parser_)(str, n, arg_); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2018-01-01/re2/testing/re2_test.cc new/re2-2018-02-01/re2/testing/re2_test.cc --- old/re2-2018-01-01/re2/testing/re2_test.cc 2017-12-19 11:28:27.0 +0100 +++ new/re2-2018-02-01/re2/testing/re2_test.cc 2018-01-30 10:24:50.0 +0100 @@ -707,10 +707,16 @@ TEST(RE2, FullMatchIgnoredArg) { int i; string s; - // Ignored arg + + // Old-school NULL should be ignored. CHECK(RE2::FullMatch("ruby:1234", "(\\w+)(:)(\\d+)", , (void*)NULL, )); CHECK_EQ(s, string("ruby")); CHECK_EQ(i, 1234); + + // C++11 nullptr should also be ignored. + CHECK(RE2::FullMatch("rubz:1235", "(\\w+)(:)(\\d+)", , nullptr, )); + CHECK_EQ(s, string("rubz")); + CHECK_EQ(i, 1235); } TEST(RE2, FullMatchTypedNullArg) {
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2018-01-06 18:46:55 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new (New) Package is "re2" Sat Jan 6 18:46:55 2018 rev:13 rq:561443 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2017-12-19 10:59:21.946806415 +0100 +++ /work/SRC/openSUSE:Factory/.re2.new/re2.changes 2018-01-06 18:46:56.313541537 +0100 @@ -1,0 +2,12 @@ +Wed Jan 3 16:14:03 UTC 2018 - mplus...@suse.com + +- Update to version 2018-01-01 + * No upstream changelog available + +--- +Wed Jan 3 12:27:06 UTC 2018 - dims...@opensuse.org + +- Add baselibs.conf: create libre2-0-32bit, dependency to + libqt5-qtwebengine-32bit. + +--- Old: 2017-12-01.tar.gz New: 2018-01-01.tar.gz baselibs.conf Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.q2SeTZ/_old 2018-01-06 18:46:56.953511634 +0100 +++ /var/tmp/diff_new_pack.q2SeTZ/_new 2018-01-06 18:46:56.953511634 +0100 @@ -1,7 +1,7 @@ # # spec file for package re2 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,7 @@ # -%global longver 2017-12-01 +%global longver 2018-01-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 @@ -27,6 +27,7 @@ Group: Development/Libraries/C and C++ URL:https://github.com/google/re2/ Source0:https://github.com/google/re2/archive/%{longver}.tar.gz +Source99: baselibs.conf BuildRequires: gcc-c++ BuildRequires: pkgconfig ++ 2017-12-01.tar.gz -> 2018-01-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-12-01/CMakeLists.txt new/re2-2018-01-01/CMakeLists.txt --- old/re2-2017-12-01/CMakeLists.txt 2017-11-16 22:52:42.0 +0100 +++ new/re2-2018-01-01/CMakeLists.txt 2017-12-19 11:28:27.0 +0100 @@ -22,8 +22,8 @@ set(EXTRA_TARGET_LINK_LIBRARIES) if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") - if(MSVC_VERSION LESS 1800) -message(FATAL_ERROR "you need Visual Studio 2013 or later") + if(MSVC_VERSION LESS 1900) +message(FATAL_ERROR "you need Visual Studio 2015 or later") endif() if(BUILD_SHARED_LIBS) # See http://www.kitware.com/blog/home/post/939 for details. @@ -33,6 +33,9 @@ # CMake defaults to /W3, but some users like /W4 (or /Wall) and /WX, # so we disable various warnings that aren't particularly helpful. add_compile_options(/wd4100 /wd4201 /wd4456 /wd4457 /wd4702 /wd4815) + # Without a byte order mark (BOM), Visual Studio assumes that the source + # file is encoded using the current user code page, so we specify UTF-8. + add_compile_options(/utf-8) elseif(CYGWIN OR MINGW) # See https://stackoverflow.com/questions/38139631 for details. add_compile_options(-std=gnu++11) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-12-01/kokoro/windows-cmake.bat new/re2-2018-01-01/kokoro/windows-cmake.bat --- old/re2-2017-12-01/kokoro/windows-cmake.bat 2017-11-16 22:52:42.0 +0100 +++ new/re2-2018-01-01/kokoro/windows-cmake.bat 2017-12-19 11:28:27.0 +0100 @@ -1,10 +1,10 @@ CD git/re2|| EXIT /B 1 -cmake -D CMAKE_BUILD_TYPE=Debug -G "Visual Studio 12 2013" -A x64 . || EXIT /B 1 +cmake -D CMAKE_BUILD_TYPE=Debug -G "Visual Studio 14 2015" -A x64 . || EXIT /B 1 cmake --build . --config Debug --clean-first || EXIT /B 1 ctest -C Debug --output-on-failure -E dfa^|exhaustive^|random || EXIT /B 1 -cmake -D CMAKE_BUILD_TYPE=Release -G "Visual Studio 12 2013" -A x64 . || EXIT /B 1 +cmake -D CMAKE_BUILD_TYPE=Release -G "Visual Studio 14 2015" -A x64 . || EXIT /B 1 cmake --build . --config Release --clean-first|| EXIT /B 1 ctest -C Release --output-on-failure -E dfa^|exhaustive^|random || EXIT /B 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-12-01/re2/dfa.cc new/re2-2018-01-01/re2/dfa.cc --- old/re2-2017-12-01/re2/dfa.cc 2017-11-16 22:52:42.0 +0100 +++ new/re2-2018-01-01/re2/dfa.cc 2017-12-19 11:28:27.0 +0100 @@ -126,7 +126,7 @@ // into this
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2017-12-19 10:59:21 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new (New) Package is "re2" Tue Dec 19 10:59:21 2017 rev:12 rq:558181 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2017-11-04 19:29:43.820153929 +0100 +++ /work/SRC/openSUSE:Factory/.re2.new/re2.changes 2017-12-19 10:59:21.946806415 +0100 @@ -1,0 +2,6 @@ +Mon Dec 18 14:19:37 UTC 2017 - mplus...@suse.com + +- Update to version 2017-12-01 + * No upstream changelog available + +--- Old: 2017-11-01.tar.gz New: 2017-12-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.2NxJny/_old 2017-12-19 10:59:22.706769728 +0100 +++ /var/tmp/diff_new_pack.2NxJny/_new 2017-12-19 10:59:22.706769728 +0100 @@ -16,7 +16,7 @@ # -%global longver 2017-11-01 +%global longver 2017-12-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 @@ -25,7 +25,7 @@ Summary:C++ fast alternative to backtracking RE engines License:BSD-3-Clause Group: Development/Libraries/C and C++ -Url:https://github.com/google/re2/ +URL:https://github.com/google/re2/ Source0:https://github.com/google/re2/archive/%{longver}.tar.gz BuildRequires: gcc-c++ BuildRequires: pkgconfig ++ 2017-11-01.tar.gz -> 2017-12-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-11-01/re2/prefilter_tree.cc new/re2-2017-12-01/re2/prefilter_tree.cc --- old/re2-2017-11-01/re2/prefilter_tree.cc2017-10-28 04:16:51.0 +0200 +++ new/re2-2017-12-01/re2/prefilter_tree.cc2017-11-16 22:52:42.0 +0100 @@ -15,6 +15,7 @@ #include "util/util.h" #include "util/logging.h" +#include "util/strutil.h" #include "re2/prefilter.h" #include "re2/re2.h" @@ -67,7 +68,9 @@ compiled_ = true; - AssignUniqueIds(atom_vec); + // TODO(junyer): Use std::unordered_setinstead? + NodeMap nodes; + AssignUniqueIds(, atom_vec); // Identify nodes that are too common among prefilters and are // triggering too many parents. Then get rid of them if possible. @@ -100,27 +103,27 @@ } if (ExtraDebug) -PrintDebugInfo(); +PrintDebugInfo(); } -Prefilter* PrefilterTree::CanonicalNode(Prefilter* node) { +Prefilter* PrefilterTree::CanonicalNode(NodeMap* nodes, Prefilter* node) { string node_string = NodeString(node); - std::map ::iterator iter = node_map_.find(node_string); - if (iter == node_map_.end()) + std::map ::iterator iter = nodes->find(node_string); + if (iter == nodes->end()) return NULL; return (*iter).second; } string PrefilterTree::NodeString(Prefilter* node) const { // Adding the operation disambiguates AND/OR/atom nodes. - string s = std::to_string(node->op()) + ":"; + string s = StringPrintf("%d", node->op()) + ":"; if (node->op() == Prefilter::ATOM) { s += node->atom(); } else { for (size_t i = 0; i < node->subs()->size(); i++) { if (i > 0) s += ','; - s += std::to_string((*node->subs())[i]->unique_id()); + s += StringPrintf("%d", (*node->subs())[i]->unique_id()); } } return s; @@ -162,7 +165,8 @@ } } -void PrefilterTree::AssignUniqueIds(std::vector* atom_vec) { +void PrefilterTree::AssignUniqueIds(NodeMap* nodes, +std::vector* atom_vec) { atom_vec->clear(); // Build vector of all filter nodes, sorted topologically @@ -199,11 +203,11 @@ if (node == NULL) continue; node->set_unique_id(-1); -Prefilter* canonical = CanonicalNode(node); +Prefilter* canonical = CanonicalNode(nodes, node); if (canonical == NULL) { // Any further nodes that have the same node string // will find this node as the canonical node. - node_map_[NodeString(node)] = node; + nodes->emplace(NodeString(node), node); if (node->op() == Prefilter::ATOM) { atom_vec->push_back(node->atom()); atom_index_to_id_.push_back(unique_id); @@ -213,7 +217,7 @@ node->set_unique_id(canonical->unique_id()); } } - entries_.resize(node_map_.size()); + entries_.resize(nodes->size()); // Create parent StdIntMap for the entries. for (int i = static_cast(v.size()) - 1; i >= 0; i--) { @@ -221,7 +225,7 @@ if (prefilter == NULL) continue; -if (CanonicalNode(prefilter) != prefilter) +if (CanonicalNode(nodes, prefilter) !=
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2017-11-04 19:29:37 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new (New) Package is "re2" Sat Nov 4 19:29:37 2017 rev:11 rq:538625 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2017-09-05 15:19:37.888033218 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new/re2.changes 2017-11-04 19:29:43.820153929 +0100 @@ -1,0 +2,6 @@ +Fri Nov 3 08:50:46 UTC 2017 - mplus...@suse.com + +- Update to version 2017-11-01 + * No upstream changelog available + +--- Old: 2017-08-01.tar.gz New: 2017-11-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.kmz75I/_old 2017-11-04 19:29:46.488056447 +0100 +++ /var/tmp/diff_new_pack.kmz75I/_new 2017-11-04 19:29:46.488056447 +0100 @@ -16,7 +16,7 @@ # -%global longver 2017-08-01 +%global longver 2017-11-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 @@ -84,7 +84,7 @@ find %{buildroot} -name 'lib%{name}.a' -delete %check -make %{?_smp_mflags} shared-test +make %{?_smp_mflags} test %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig ++ 2017-08-01.tar.gz -> 2017-11-01.tar.gz ++ 3233 lines of diff (skipped)
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2017-09-05 15:19:33 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new (New) Package is "re2" Tue Sep 5 15:19:33 2017 rev:10 rq:520998 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2017-07-30 11:27:40.606882316 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new/re2.changes 2017-09-05 15:19:37.888033218 +0200 @@ -1,0 +2,6 @@ +Mon Sep 4 12:11:07 UTC 2017 - mplus...@suse.com + +- Update to version 2017-07-01 + * No upstream changelog available + +--- Old: 2017-07-01.tar.gz New: 2017-08-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.PiJvDZ/_old 2017-09-05 15:19:38.527943270 +0200 +++ /var/tmp/diff_new_pack.PiJvDZ/_new 2017-09-05 15:19:38.531942708 +0200 @@ -16,7 +16,7 @@ # -%global longver 2017-07-01 +%global longver 2017-08-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 ++ 2017-07-01.tar.gz -> 2017-08-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-07-01/.travis.yml new/re2-2017-08-01/.travis.yml --- old/re2-2017-07-01/.travis.yml 1970-01-01 01:00:00.0 +0100 +++ new/re2-2017-08-01/.travis.yml 2017-07-07 07:32:11.0 +0200 @@ -0,0 +1,117 @@ +language: cpp +sudo: false +dist: trusty +script: + - make + - make test +matrix: + include: + +- os: linux + addons: +apt: + sources: +- ubuntu-toolchain-r-test + packages: +- g++-4.8 + env: + - MATRIX_EVAL="CC=gcc-4.8 CXX=g++-4.8" +- os: linux + addons: +apt: + sources: +- ubuntu-toolchain-r-test + packages: +- g++-4.9 + env: + - MATRIX_EVAL="CC=gcc-4.9 CXX=g++-4.9" +- os: linux + addons: +apt: + sources: +- ubuntu-toolchain-r-test + packages: +- g++-5 + env: + - MATRIX_EVAL="CC=gcc-5 CXX=g++-5" +- os: linux + addons: +apt: + sources: +- ubuntu-toolchain-r-test + packages: +- g++-6 + env: +- MATRIX_EVAL="CC=gcc-6 CXX=g++-6" +- os: linux + addons: +apt: + sources: +- ubuntu-toolchain-r-test + packages: +- g++-7 + env: +- MATRIX_EVAL="CC=gcc-7 CXX=g++-7" + +- os: linux + addons: +apt: + sources: +- ubuntu-toolchain-r-test +- llvm-toolchain-precise-3.5 + packages: +- clang-3.5 + env: +- MATRIX_EVAL="CC=clang-3.5 CXX=clang++-3.5" +- os: linux + addons: +apt: + sources: +- ubuntu-toolchain-r-test +- llvm-toolchain-precise-3.6 + packages: +- clang-3.6 + env: +- MATRIX_EVAL="CC=clang-3.6 CXX=clang++-3.6" +- os: linux + addons: +apt: + sources: +- ubuntu-toolchain-r-test +- llvm-toolchain-precise-3.7 + packages: +- clang-3.7 + env: +- MATRIX_EVAL="CC=clang-3.7 CXX=clang++-3.7" +- os: linux + addons: +apt: + sources: +- ubuntu-toolchain-r-test +- llvm-toolchain-precise-3.8 + packages: +- clang-3.8 + env: +- MATRIX_EVAL="CC=clang-3.8 CXX=clang++-3.8" +- os: linux + addons: +apt: + sources: +- ubuntu-toolchain-r-test +- llvm-toolchain-precise-3.9 + packages: +- clang-3.9 + env: +- MATRIX_EVAL="CC=clang-3.9 CXX=clang++-3.9" +- os: linux + addons: +apt: + sources: +- llvm-toolchain-trusty-4.0 + packages: +- clang-4.0 + env: +- MATRIX_EVAL="CC=clang-4.0 CXX=clang++-4.0" + +before_install: + - eval "${MATRIX_EVAL}" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-07-01/CMakeLists.txt new/re2-2017-08-01/CMakeLists.txt --- old/re2-2017-07-01/CMakeLists.txt 2017-06-27 14:55:46.0 +0200 +++ new/re2-2017-08-01/CMakeLists.txt 2017-07-07 07:32:11.0 +0200 @@ -29,6 +29,9 @@ # CMake defaults to /W3, but some users like /W4 (or /Wall) and /WX, # so we disable various warnings that aren't particularly helpful. add_compile_options(/wd4100 /wd4201 /wd4456 /wd4457 /wd4702 /wd4815)
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2017-07-30 11:27:26 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new (New) Package is "re2" Sun Jul 30 11:27:26 2017 rev:9 rq:513010 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2017-06-13 16:09:00.739007915 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new/re2.changes 2017-07-30 11:27:40.606882316 +0200 @@ -1,0 +2,6 @@ +Sat Jul 29 10:04:51 UTC 2017 - mplus...@suse.com + +- Update to version 2017-07-01 + * No upstream changelog available + +--- Old: 2017-06-01.tar.gz New: 2017-07-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.3rrwPB/_old 2017-07-30 11:27:41.274788071 +0200 +++ /var/tmp/diff_new_pack.3rrwPB/_new 2017-07-30 11:27:41.282786942 +0200 @@ -16,7 +16,7 @@ # -%global longver 2017-06-01 +%global longver 2017-07-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 @@ -90,12 +90,10 @@ %postun -n %{libname} -p /sbin/ldconfig %files -n %{libname} -%defattr(-,root,root) %doc LICENSE AUTHORS CONTRIBUTORS README %{_libdir}/lib%{name}.so.* %files devel -%defattr(-,root,root) %{_includedir}/%{name} %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/%{name}.pc ++ 2017-06-01.tar.gz -> 2017-07-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-06-01/re2/dfa.cc new/re2-2017-07-01/re2/dfa.cc --- old/re2-2017-06-01/re2/dfa.cc 2017-05-18 07:20:04.0 +0200 +++ new/re2-2017-07-01/re2/dfa.cc 2017-06-27 14:55:46.0 +0200 @@ -27,10 +27,12 @@ #include #include #include +#include #include #include #include #include +#include #include #include #include @@ -96,9 +98,11 @@ bool anchored, bool want_earliest_match, bool run_forward, bool* failed, const char** ep, std::vector* matches); - // Builds out all states for the entire DFA. FOR TESTING ONLY - // Returns number of states. - int BuildAllStates(); + // Builds out all states for the entire DFA. + // If cb is not empty, it receives one callback per state built. + // Returns the number of states built. + // FOR TESTING OR EXPERIMENTAL PURPOSES ONLY. + int BuildAllStates(const Prog::DFAStateCallback& cb); // Computes min and max for matching strings. Won't return strings // bigger than maxlen. @@ -1883,7 +1887,7 @@ } // Build out all states in DFA. Returns number of states. -int DFA::BuildAllStates() { +int DFA::BuildAllStates(const Prog::DFAStateCallback& cb) { if (!ok()) return 0; @@ -1892,34 +1896,67 @@ RWLocker l(_mutex_); SearchParams params(StringPiece(), StringPiece(), ); params.anchored = false; - if (!AnalyzeSearch() || params.start <= SpecialStateMax) + if (!AnalyzeSearch() || + params.start == NULL || + params.start == DeadState) return 0; // Add start state to work queue. - StateSet queued; - std::vectorq; - queued.insert(params.start); + // Note that any State* that we handle here must point into the cache, + // so we can simply depend on pointer-as-a-number hashing and equality. + std::unordered_map m; + std::deque q; + m.emplace(params.start, static_cast(m.size())); q.push_back(params.start); + // Compute the input bytes needed to cover all of the next pointers. + int nnext = prog_->bytemap_range() + 1; // + 1 for kByteEndText slot + std::vector input(nnext); + for (int c = 0; c < 256; c++) { +int b = prog_->bytemap()[c]; +while (c < 256-1 && prog_->bytemap()[c+1] == b) + c++; +input[b] = c; + } + input[prog_->bytemap_range()] = kByteEndText; + + // Scratch space for the output. + std::vector output(nnext); + // Flood to expand every state. - for (size_t i = 0; i < q.size(); i++) { -State* s = q[i]; -for (int c = 0; c < 257; c++) { + bool oom = false; + while (!q.empty()) { +State* s = q.front(); +q.pop_front(); +for (int c : input) { State* ns = RunStateOnByteUnlocked(s, c); - if (ns > SpecialStateMax && queued.find(ns) == queued.end()) { -queued.insert(ns); + if (ns == NULL) { +oom = true; +break; + } + if (ns == DeadState) { +output[ByteMap(c)] = -1; +continue; + } + if (m.find(ns) == m.end()) { +m.emplace(ns, static_cast(m.size())); q.push_back(ns); } + output[ByteMap(c)] = m[ns]; } +if (cb) + cb(oom ? NULL : output.data(), + s ==
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2017-06-13 16:08:58 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new (New) Package is "re2" Tue Jun 13 16:08:58 2017 rev:8 rq:503083 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2017-05-20 10:14:23.433717632 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new/re2.changes 2017-06-13 16:09:00.739007915 +0200 @@ -1,0 +2,6 @@ +Sun Jun 11 09:55:00 UTC 2017 - mplus...@suse.com + +- Update to version 2017-06-01 + * No upstream changelog available + +--- Old: 2017-05-01.tar.gz New: 2017-06-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.EUlDKq/_old 2017-06-13 16:09:03.442626893 +0200 +++ /var/tmp/diff_new_pack.EUlDKq/_new 2017-06-13 16:09:03.446626329 +0200 @@ -16,7 +16,7 @@ # -%global longver 2017-05-01 +%global longver 2017-06-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 ++ 2017-05-01.tar.gz -> 2017-06-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-05-01/CMakeLists.txt new/re2-2017-06-01/CMakeLists.txt --- old/re2-2017-05-01/CMakeLists.txt 2017-04-24 06:59:29.0 +0200 +++ new/re2-2017-06-01/CMakeLists.txt 2017-05-18 07:20:04.0 +0200 @@ -26,6 +26,9 @@ cmake_minimum_required(VERSION 3.4) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) endif() + # CMake defaults to /W3, but some users like /W4 (or /Wall) and /WX, + # so we disable various warnings that aren't particularly helpful. + add_compile_options(/wd4100 /wd4201 /wd4456 /wd4457 /wd4702 /wd4815) elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") add_compile_options(-std=c++11) endif() @@ -72,59 +75,59 @@ add_library(re2 ${RE2_SOURCES}) -set(TESTING_SOURCES -re2/testing/backtrack.cc -re2/testing/dump.cc -re2/testing/exhaustive_tester.cc -re2/testing/null_walker.cc -re2/testing/regexp_generator.cc -re2/testing/string_generator.cc -re2/testing/tester.cc -util/pcre.cc -) - -add_library(testing STATIC ${TESTING_SOURCES}) - -set(TEST_TARGETS -charclass_test -compile_test -filtered_re2_test -mimics_pcre_test -parse_test -possible_match_test -re2_test -re2_arg_test -regexp_test -required_prefix_test -search_test -set_test -simplify_test -string_generator_test - -dfa_test -exhaustive1_test -exhaustive2_test -exhaustive3_test -exhaustive_test -random_test -) - -set(BENCHMARK_TARGETS -regexp_benchmark -) - -foreach(target ${TEST_TARGETS}) - add_executable(${target} re2/testing/${target}.cc util/test.cc) - target_link_libraries(${target} testing re2 ${EXTRA_TARGET_LINK_LIBRARIES}) - if(RE2_BUILD_TESTING) +if(RE2_BUILD_TESTING) + set(TESTING_SOURCES + re2/testing/backtrack.cc + re2/testing/dump.cc + re2/testing/exhaustive_tester.cc + re2/testing/null_walker.cc + re2/testing/regexp_generator.cc + re2/testing/string_generator.cc + re2/testing/tester.cc + util/pcre.cc + ) + + add_library(testing STATIC ${TESTING_SOURCES}) + + set(TEST_TARGETS + charclass_test + compile_test + filtered_re2_test + mimics_pcre_test + parse_test + possible_match_test + re2_test + re2_arg_test + regexp_test + required_prefix_test + search_test + set_test + simplify_test + string_generator_test + + dfa_test + exhaustive1_test + exhaustive2_test + exhaustive3_test + exhaustive_test + random_test + ) + + set(BENCHMARK_TARGETS + regexp_benchmark + ) + + foreach(target ${TEST_TARGETS}) +add_executable(${target} re2/testing/${target}.cc util/test.cc) +target_link_libraries(${target} testing re2 ${EXTRA_TARGET_LINK_LIBRARIES}) add_test(NAME ${target} COMMAND ${target}) - endif() -endforeach(target) + endforeach(target) -foreach(target ${BENCHMARK_TARGETS}) - add_executable(${target} re2/testing/${target}.cc util/benchmark.cc) - target_link_libraries(${target} testing re2 ${EXTRA_TARGET_LINK_LIBRARIES}) -endforeach(target) + foreach(target ${BENCHMARK_TARGETS}) +add_executable(${target} re2/testing/${target}.cc util/benchmark.cc) +target_link_libraries(${target} testing re2 ${EXTRA_TARGET_LINK_LIBRARIES}) + endforeach(target) +endif() set(RE2_HEADERS re2/filtered_re2.h diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore'
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2017-05-20 10:14:19 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new (New) Package is "re2" Sat May 20 10:14:19 2017 rev:7 rq:496525 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2017-04-20 20:55:04.988897254 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new/re2.changes 2017-05-20 10:14:23.433717632 +0200 @@ -1,0 +2,6 @@ +Fri May 19 08:42:56 UTC 2017 - vsis...@suse.com + +- Update to version 2017-05-01 + * No upstream changelog available + +--- Old: 2017-04-01.tar.gz New: 2017-05-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.pYSSHb/_old 2017-05-20 10:14:24.129619308 +0200 +++ /var/tmp/diff_new_pack.pYSSHb/_new 2017-05-20 10:14:24.133618743 +0200 @@ -16,7 +16,7 @@ # -%global longver 2017-04-01 +%global longver 2017-05-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 ++ 2017-04-01.tar.gz -> 2017-05-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-04-01/CMakeLists.txt new/re2-2017-05-01/CMakeLists.txt --- old/re2-2017-04-01/CMakeLists.txt 2017-03-31 10:30:45.0 +0200 +++ new/re2-2017-05-01/CMakeLists.txt 2017-04-24 06:59:29.0 +0200 @@ -11,6 +11,10 @@ option(BUILD_SHARED_LIBS "build shared libraries" OFF) option(USEPCRE "use PCRE in tests and benchmarks" OFF) +# CMake seems to have no way to enable/disable testing per subproject, +# so we provide an option similar to BUILD_TESTING, but just for RE2. +option(RE2_BUILD_TESTING "enable testing for RE2" ON) + set(EXTRA_TARGET_LINK_LIBRARIES) if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") @@ -112,7 +116,9 @@ foreach(target ${TEST_TARGETS}) add_executable(${target} re2/testing/${target}.cc util/test.cc) target_link_libraries(${target} testing re2 ${EXTRA_TARGET_LINK_LIBRARIES}) - add_test(NAME ${target} COMMAND ${target}) + if(RE2_BUILD_TESTING) +add_test(NAME ${target} COMMAND ${target}) + endif() endforeach(target) foreach(target ${BENCHMARK_TARGETS}) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-04-01/re2/prefilter.cc new/re2-2017-05-01/re2/prefilter.cc --- old/re2-2017-04-01/re2/prefilter.cc 2017-03-31 10:30:45.0 +0200 +++ new/re2-2017-05-01/re2/prefilter.cc 2017-04-24 06:59:29.0 +0200 @@ -49,7 +49,7 @@ } // Nothing left in the AND/OR. - if (subs_->size() == 0) { + if (subs_->empty()) { if (op_ == AND) op_ = ALL; // AND of nothing is true else diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-04-01/re2/re2.cc new/re2-2017-05-01/re2/re2.cc --- old/re2-2017-04-01/re2/re2.cc 2017-03-31 10:30:45.0 +0200 +++ new/re2-2017-05-01/re2/re2.cc 2017-04-24 06:59:29.0 +0200 @@ -538,7 +538,7 @@ if (maxlen > 0 && prog_->PossibleMatchRange(, , maxlen)) { pmin += dmin; pmax += dmax; - } else if (pmax.size() > 0) { + } else if (!pmax.empty()) { // prog_->PossibleMatchRange has failed us, // but we still have useful information from prefix_. // Round up pmax to allow any possible suffix. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-04-01/re2/regexp.h new/re2-2017-05-01/re2/regexp.h --- old/re2-2017-04-01/re2/regexp.h 2017-03-31 10:30:45.0 +0200 +++ new/re2-2017-05-01/re2/regexp.h 2017-04-24 06:59:29.0 +0200 @@ -276,44 +276,45 @@ // Flags for parsing. Can be ORed together. enum ParseFlags { -NoParseFlags = 0, -FoldCase = 1<<0, // Fold case during matching (case-insensitive). -Literal = 1<<1, // Treat s as literal string instead of a regexp. -ClassNL = 1<<2, // Allow char classes like [^a-z] and \D and \s - // and [[:space:]] to match newline. -DotNL= 1<<3, // Allow . to match newline. -MatchNL = ClassNL | DotNL, -OneLine = 1<<4, // Treat ^ and $ as only matching at beginning and - // end of text, not around embedded newlines. - // (Perl's default) -Latin1 = 1<<5, // Regexp and text are in Latin1, not UTF-8. -NonGreedy= 1<<6, // Repetition operators are non-greedy by default. -PerlClasses = 1<<7, // Allow Perl character classes like \d. -PerlB= 1<<8, // Allow Perl's \b and \B. -PerlX=
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2017-04-20 20:55:04 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new (New) Package is "re2" Thu Apr 20 20:55:04 2017 rev:6 rq:487835 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2017-03-20 17:09:56.178705796 +0100 +++ /work/SRC/openSUSE:Factory/.re2.new/re2.changes 2017-04-20 20:55:04.988897254 +0200 @@ -1,0 +2,6 @@ +Thu Apr 13 14:07:55 UTC 2017 - mplus...@suse.com + +- Update to version 2017-04-01 + * No upstream changelog available + +--- Old: 2017-03-01.tar.gz New: 2017-04-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.vW2HsO/_old 2017-04-20 20:55:05.772786402 +0200 +++ /var/tmp/diff_new_pack.vW2HsO/_new 2017-04-20 20:55:05.776785837 +0200 @@ -16,7 +16,7 @@ # -%global longver 2017-03-01 +%global longver 2017-04-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 ++ 2017-03-01.tar.gz -> 2017-04-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-03-01/CMakeLists.txt new/re2-2017-04-01/CMakeLists.txt --- old/re2-2017-03-01/CMakeLists.txt 2017-02-28 01:11:21.0 +0100 +++ new/re2-2017-04-01/CMakeLists.txt 2017-03-31 10:30:45.0 +0200 @@ -39,7 +39,7 @@ list(APPEND EXTRA_TARGET_LINK_LIBRARIES pcre) endif() -include_directories(${CMAKE_SOURCE_DIR}) +include_directories(${CMAKE_CURRENT_SOURCE_DIR}) set(RE2_SOURCES re2/bitstate.cc diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-03-01/kokoro/macos-cmake.cfg new/re2-2017-04-01/kokoro/macos-cmake.cfg --- old/re2-2017-03-01/kokoro/macos-cmake.cfg 1970-01-01 01:00:00.0 +0100 +++ new/re2-2017-04-01/kokoro/macos-cmake.cfg 2017-03-31 10:30:45.0 +0200 @@ -0,0 +1 @@ +build_file: "re2/kokoro/macos-cmake.sh" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-03-01/kokoro/macos-cmake.sh new/re2-2017-04-01/kokoro/macos-cmake.sh --- old/re2-2017-03-01/kokoro/macos-cmake.sh1970-01-01 01:00:00.0 +0100 +++ new/re2-2017-04-01/kokoro/macos-cmake.sh2017-03-31 10:30:45.0 +0200 @@ -0,0 +1,14 @@ +#!/bin/bash +set -eux + +cd git/re2 + +cmake -D CMAKE_BUILD_TYPE=Debug . +cmake --build . --config Debug --clean-first +ctest -C Debug --output-on-failure -E dfa\|exhaustive\|random + +cmake -D CMAKE_BUILD_TYPE=Release . +cmake --build . --config Release --clean-first +ctest -C Release --output-on-failure -E dfa\|exhaustive\|random + +exit 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-03-01/re2/prog.cc new/re2-2017-04-01/re2/prog.cc --- old/re2-2017-03-01/re2/prog.cc 2017-02-28 01:11:21.0 +0100 +++ new/re2-2017-04-01/re2/prog.cc 2017-03-31 10:30:45.0 +0200 @@ -543,10 +543,9 @@ // "leaves"), only Alt instructions require their predecessors to be computed. // // Dividing the Prog into "trees" comprises two passes: marking the "successor -// roots" and the predecessors; and marking the "dominator roots". Walking the -// Prog in its entirety causes the "successor roots" to be marked in a certain -// order during the first pass. Iteration over the "successor roots" occurs in -// reverse order of their marking during the second pass; by working backwards +// roots" and the predecessors; and marking the "dominator roots". Sorting the +// "successor roots" by their bytecode offsets enables iteration in order from +// greatest to least during the second pass; by working backwards in this case // and flooding the graph no further than "leaves" and already marked "roots", // it becomes possible to mark "dominator roots" without doing excessive work. // @@ -576,10 +575,13 @@ MarkSuccessors(, , , , ); // Second pass: Marks "dominator roots". - for (SparseArray::const_iterator i = rootmap.end() - 1; - i != rootmap.begin(); + SparseArray sorted(rootmap); + std::sort(sorted.begin(), sorted.end(), sorted.less); + for (SparseArray::const_iterator i = sorted.end() - 1; + i != sorted.begin(); --i) { -MarkDominator(i->index(), , , , , ); +if (i->index() != start_unanchored() && i->index() != start()) + MarkDominator(i->index(), , , , , ); } // Third pass: Emits "lists". Remaps outs to root-ids. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-03-01/re2/re2.h
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2017-03-20 17:09:54 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new (New) Package is "re2" Mon Mar 20 17:09:54 2017 rev:5 rq:480937 version:MACRO Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2017-01-17 14:36:30.556200139 +0100 +++ /work/SRC/openSUSE:Factory/.re2.new/re2.changes 2017-03-20 17:09:56.178705796 +0100 @@ -1,0 +2,6 @@ +Thu Mar 16 11:38:30 UTC 2017 - mplus...@suse.com + +- Update to version 2017-03-01 + * No upstream changelog available + +--- Old: 2017-01-01.tar.gz New: 2017-03-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.IebK0D/_old 2017-03-20 17:09:56.782620523 +0100 +++ /var/tmp/diff_new_pack.IebK0D/_new 2017-03-20 17:09:56.786619958 +0100 @@ -16,7 +16,7 @@ # -%global longver 2017-01-01 +%global longver 2017-03-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 ++ 2017-01-01.tar.gz -> 2017-03-01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-01-01/re2/compile.cc new/re2-2017-03-01/re2/compile.cc --- old/re2-2017-01-01/re2/compile.cc 2016-12-13 12:22:01.0 +0100 +++ new/re2-2017-03-01/re2/compile.cc 2017-02-28 01:11:21.0 +0100 @@ -10,8 +10,7 @@ #include #include -#include -#include +#include #include #include "util/logging.h" @@ -246,7 +245,7 @@ int64_t max_mem_;// Total memory budget. - std::maprune_cache_; + std::unordered_map rune_cache_; Frag rune_range_; RE2::Anchor anchor_; // anchor mode for RE2::Set @@ -496,7 +495,7 @@ int Compiler::CachedRuneByteSuffix(uint8_t lo, uint8_t hi, bool foldcase, int next) { uint64_t key = MakeRuneCacheKey(lo, hi, foldcase, next); - std::map ::const_iterator it = rune_cache_.find(key); + std::unordered_map ::const_iterator it = rune_cache_.find(key); if (it != rune_cache_.end()) return it->second; int id = UncachedRuneByteSuffix(lo, hi, foldcase, next); @@ -1211,7 +1210,7 @@ if (max_mem_ <= 0) { prog_->set_dfa_mem(1<<20); } else { -int64_t m = max_mem_ - sizeof(Prog) - inst_len_*sizeof(Prog::Inst); +int64_t m = max_mem_ - sizeof(Prog) - prog_->size_*sizeof(Prog::Inst); if (m < 0) m = 0; prog_->set_dfa_mem(m); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-01-01/re2/dfa.cc new/re2-2017-03-01/re2/dfa.cc --- old/re2-2017-01-01/re2/dfa.cc 2016-12-13 12:22:01.0 +0100 +++ new/re2-2017-03-01/re2/dfa.cc 2017-02-28 01:11:21.0 +0100 @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-01-01/re2/fuzzing/re2_fuzzer.cc new/re2-2017-03-01/re2/fuzzing/re2_fuzzer.cc --- old/re2-2017-01-01/re2/fuzzing/re2_fuzzer.cc2016-12-13 12:22:01.0 +0100 +++ new/re2-2017-03-01/re2/fuzzing/re2_fuzzer.cc2017-02-28 01:11:21.0 +0100 @@ -20,6 +20,12 @@ if (!re.ok()) return; + // Don't waste time fuzzing high-size programs. + // (They can cause bug reports due to fuzzer timeouts.) + int size = re.ProgramSize(); + if (size > ) +return; + // Don't waste time fuzzing high-fanout programs. // (They can also cause bug reports due to fuzzer timeouts.) std::map histogram; @@ -50,7 +56,7 @@ // Entry point for libFuzzer. extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { - if (size == 0 || size > 100) + if (size == 0 || size > 1024) return 0; // The one-at-a-time hash by Bob Jenkins. @@ -86,15 +92,5 @@ StringPiece text(ptr, len); Test(pattern, options, text); - for (int i = 2; i <= 4; i++) { -if (len < i) - break; - -int frac = len / i; -pattern = StringPiece(ptr, frac); -text = StringPiece(ptr + frac, len - frac); -Test(pattern, options, text); - } - return 0; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-01-01/re2/parse.cc new/re2-2017-03-01/re2/parse.cc --- old/re2-2017-01-01/re2/parse.cc 2016-12-13 12:22:01.0 +0100 +++ new/re2-2017-03-01/re2/parse.cc 2017-02-28 01:11:21.0 +0100 @@ -42,6 +42,13 @@ namespace re2 { +// Reduce the maximum repeat count by an order of magnitude when
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2016-12-04 15:08:07 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new (New) Package is "re2" Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2016-10-24 14:44:36.0 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new/re2.changes 2016-12-04 15:08:08.0 +0100 @@ -1,0 +2,7 @@ +Sat Dec 3 12:10:17 UTC 2016 - mplus...@suse.com + +- Update to version 2016-11-01: + * No upstream changelog available +- Drop no longer needed re2-gcc61.patch + +--- Old: 2016-09-01.tar.gz re2-gcc61.patch New: 2016-11-01.tar.gz Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.cSPfYu/_old 2016-12-04 15:08:09.0 +0100 +++ /var/tmp/diff_new_pack.cSPfYu/_new 2016-12-04 15:08:09.0 +0100 @@ -16,7 +16,7 @@ # -%global longver 2016-09-01 +%global longver 2016-11-01 %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-0 Name: re2 @@ -27,8 +27,6 @@ Group: Development/Libraries/C and C++ Url:https://github.com/google/re2/ Source0:https://github.com/google/re2/archive/%{longver}.tar.gz -# PATCH-FIX-GCC: fix bug in gcc https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70932 -Patch0: re2-gcc61.patch BuildRequires: gcc-c++ BuildRequires: pkgconfig @@ -74,7 +72,6 @@ %prep %setup -q -n %{name}-%{longver} -%patch0 -p1 %build CXXFLAGS="%{optflags} -pthread -std=c++11" ++ 2016-09-01.tar.gz -> 2016-11-01.tar.gz ++ 2281 lines of diff (skipped)
commit re2 for openSUSE:Factory
Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2016-10-24 14:44:36 Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new (New) Package is "re2" Changes: --- /work/SRC/openSUSE:Factory/re2/re2.changes 2016-10-18 10:38:50.0 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new/re2.changes 2016-10-24 14:44:36.0 +0200 @@ -1,0 +2,10 @@ +Sat Oct 22 22:14:31 UTC 2016 - jeng...@inai.de + +- Fixup group and avoid rm indirection + +--- +Thu Sep 8 07:53:14 UTC 2016 - mplus...@suse.com + +- Drop releasenumber + +--- Other differences: -- ++ re2.spec ++ --- /var/tmp/diff_new_pack.7ZJ98B/_old 2016-10-24 14:44:37.0 +0200 +++ /var/tmp/diff_new_pack.7ZJ98B/_new 2016-10-24 14:44:37.0 +0200 @@ -21,11 +21,11 @@ %define libname libre2-0 Name: re2 Version:%{shortver} -Release:2%{?dist} +Release:0 Summary:C++ fast alternative to backtracking RE engines License:BSD-3-Clause -Group: System/Libraries -Url:http://github.com/google/re2/ +Group: Development/Libraries/C and C++ +Url:https://github.com/google/re2/ Source0:https://github.com/google/re2/archive/%{longver}.tar.gz # PATCH-FIX-GCC: fix bug in gcc https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70932 Patch0: re2-gcc61.patch @@ -43,7 +43,7 @@ In contrast, RE2 uses automata theory to guarantee that regular expression searches run in time linear in the size of the input, at the expense of some -missing features (e.g back references and generalized assertions). +missing features (e.g. back references and generalized assertions). %package -n %{libname} Summary:C++ fast alternative to backtracking RE engines @@ -60,7 +60,7 @@ In contrast, RE2 uses automata theory to guarantee that regular expression searches run in time linear in the size of the input, at the expense of some -missing features (e.g back references and generalized assertions). +missing features (e.g. back references and generalized assertions). %packagedevel Summary:C++ header files and library symbolic links for %{name} @@ -84,7 +84,7 @@ make install INSTALL="install -p" DESTDIR=%{buildroot} includedir=%{_includedir} libdir=%{_libdir} # Suppress the static library -find %{buildroot} -name 'lib%{name}.a' -exec rm -f {} \; +find %{buildroot} -name 'lib%{name}.a' -delete %check make %{?_smp_mflags} shared-test