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 - [email protected] + +- 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.000000000 +0200 +++ new/re2-2017-06-01/CMakeLists.txt 2017-05-18 07:20:04.000000000 +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' old/re2-2017-05-01/Makefile new/re2-2017-06-01/Makefile --- old/re2-2017-05-01/Makefile 2017-04-24 06:59:29.000000000 +0200 +++ new/re2-2017-06-01/Makefile 2017-05-18 07:20:04.000000000 +0200 @@ -55,7 +55,7 @@ SOEXT=dylib SOEXTVER=$(SONAME).$(SOEXT) SOEXTVER00=$(SONAME).0.0.$(SOEXT) -MAKE_SHARED_LIBRARY=$(CXX) -dynamiclib -Wl,-install_name,@rpath/libre2.$(SOEXTVER),-exported_symbols_list,libre2.symbols.darwin $(RE2_LDFLAGS) $(LDFLAGS) +MAKE_SHARED_LIBRARY=$(CXX) -dynamiclib -Wl,-install_name,$(libdir)/libre2.$(SOEXTVER),-exported_symbols_list,libre2.symbols.darwin $(RE2_LDFLAGS) $(LDFLAGS) else ifeq ($(shell uname),SunOS) SOEXT=so SOEXTVER=$(SOEXT).$(SONAME) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-05-01/re2/re2.cc new/re2-2017-06-01/re2/re2.cc --- old/re2-2017-05-01/re2/re2.cc 2017-04-24 06:59:29.000000000 +0200 +++ new/re2-2017-06-01/re2/re2.cc 2017-05-18 07:20:04.000000000 +0200 @@ -200,8 +200,6 @@ return; } - prefix_.clear(); - prefix_foldcase_ = false; re2::Regexp* suffix; if (entire_regexp_->RequiredPrefix(&prefix_, &prefix_foldcase_, &suffix)) suffix_regexp_ = suffix; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-05-01/re2/regexp.cc new/re2-2017-06-01/re2/regexp.cc --- old/re2-2017-05-01/re2/regexp.cc 2017-04-24 06:59:29.000000000 +0200 +++ new/re2-2017-06-01/re2/regexp.cc 2017-05-18 07:20:04.000000000 +0200 @@ -653,7 +653,7 @@ // with a fixed string prefix. If so, returns the prefix and // the regexp that remains after the prefix. The prefix might // be ASCII case-insensitive. -bool Regexp::RequiredPrefix(string *prefix, bool *foldcase, Regexp** suffix) { +bool Regexp::RequiredPrefix(string* prefix, bool* foldcase, Regexp** suffix) { // No need for a walker: the regexp must be of the form // 1. some number of ^ anchors // 2. a literal char or string diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-05-01/re2/regexp.h new/re2-2017-06-01/re2/regexp.h --- old/re2-2017-05-01/re2/regexp.h 2017-04-24 06:59:29.000000000 +0200 +++ new/re2-2017-06-01/re2/regexp.h 2017-05-18 07:20:04.000000000 +0200 @@ -436,7 +436,9 @@ // begin with a non-empty fixed string (perhaps after ASCII // case-folding). If so, returns the prefix and the sub-regexp that // follows it. - bool RequiredPrefix(string* prefix, bool *foldcase, Regexp** suffix); + // Callers should expect *prefix, *foldcase and *suffix to be "zeroed" + // regardless of the return value. + bool RequiredPrefix(string* prefix, bool* foldcase, Regexp** suffix); private: // Constructor allocates vectors as appropriate for operator. @@ -505,7 +507,7 @@ DCHECK(n >= 0 && static_cast<uint16_t>(n) == n); if (n > 1) submany_ = new Regexp*[n]; - nsub_ = n; + nsub_ = static_cast<uint16_t>(n); } // Add Rune to LiteralString diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2017-05-01/re2/testing/required_prefix_test.cc new/re2-2017-06-01/re2/testing/required_prefix_test.cc --- old/re2-2017-05-01/re2/testing/required_prefix_test.cc 2017-04-24 06:59:29.000000000 +0200 +++ new/re2-2017-06-01/re2/testing/required_prefix_test.cc 2017-05-18 07:20:04.000000000 +0200 @@ -48,11 +48,13 @@ flags = flags | Regexp::Latin1; Regexp* re = Regexp::Parse(t.regexp, flags, NULL); CHECK(re) << " " << t.regexp; + string p; - bool f = false; - Regexp* s = NULL; + bool f; + Regexp* s; CHECK_EQ(t.return_value, re->RequiredPrefix(&p, &f, &s)) - << " " << t.regexp << " " << (j==0 ? "latin1" : "utf") << " " << re->Dump(); + << " " << t.regexp << " " << (j==0 ? "latin1" : "utf") + << " " << re->Dump(); if (t.return_value) { CHECK_EQ(p, string(t.prefix)) << " " << t.regexp << " " << (j==0 ? "latin1" : "utf");
