Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package re2 for openSUSE:Factory checked in at 2025-07-02 12:07:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/re2 (Old) and /work/SRC/openSUSE:Factory/.re2.new.7067 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "re2" Wed Jul 2 12:07:34 2025 rev:63 rq:1289494 version:MACRO Changes: -------- --- /work/SRC/openSUSE:Factory/re2/re2.changes 2024-07-02 18:14:57.572147262 +0200 +++ /work/SRC/openSUSE:Factory/.re2.new.7067/re2.changes 2025-07-02 12:08:04.023122763 +0200 @@ -1,0 +2,6 @@ +Tue Jul 1 11:02:50 UTC 2025 - Andreas Stieger <andreas.stie...@gmx.de> + +- update to 2025-06-26b: + * add Set::Size + +------------------------------------------------------------------- Old: ---- re2-2024-07-02.tar.gz New: ---- _scmsync.obsinfo build.specials.obscpio re2-2025-06-26b.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ re2.spec ++++++ --- /var/tmp/diff_new_pack.Dgsglo/_old 2025-07-02 12:08:04.791154854 +0200 +++ /var/tmp/diff_new_pack.Dgsglo/_new 2025-07-02 12:08:04.795155020 +0200 @@ -2,7 +2,7 @@ # spec file for package re2 # # Copyright (c) 2023 SUSE LLC -# Copyright (c) 2024 Andreas Stieger <andreas.stie...@gmx.de> +# Copyright (c) 2025 Andreas Stieger <andreas.stie...@gmx.de> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ # -%global longver 2024-07-02 +%global longver 2025-06-26b %global shortver %(echo %{longver}|sed 's|-||g') %define libname libre2-11 Name: re2 ++++++ _scmsync.obsinfo ++++++ mtime: 1751368015 commit: f8371ed877510e2b16a8b5b4a6125ff5434296735dd5b34539adbac1908e0e77 url: https://src.opensuse.org/chromium/re2.git revision: f8371ed877510e2b16a8b5b4a6125ff5434296735dd5b34539adbac1908e0e77 projectscmsync: https://src.opensuse.org/chromium/_ObsPrj.git ++++++ re2-2024-07-02.tar.gz -> re2-2025-06-26b.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2024-07-02/.github/workflows/ci.yml new/re2-2025-06-26b/.github/workflows/ci.yml --- old/re2-2024-07-02/.github/workflows/ci.yml 2024-07-01 10:31:02.000000000 +0200 +++ new/re2-2025-06-26b/.github/workflows/ci.yml 2025-06-26 21:00:46.000000000 +0200 @@ -34,7 +34,7 @@ strategy: fail-fast: false matrix: - ver: [16, 17, 18] + ver: [18, 19, 20] env: CC: clang-${{ matrix.ver }} CXX: clang++-${{ matrix.ver }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2024-07-02/.github/workflows/release.yml new/re2-2025-06-26b/.github/workflows/release.yml --- old/re2-2024-07-02/.github/workflows/release.yml 2024-07-01 10:31:02.000000000 +0200 +++ new/re2-2025-06-26b/.github/workflows/release.yml 2025-06-26 21:00:46.000000000 +0200 @@ -28,12 +28,12 @@ --archive zip \ --repo "${GITHUB_REPOSITORY}" shell: bash - - uses: sigstore/gh-action-sigstore-python@v2.1.1 + - uses: sigstore/gh-action-sigstore-python@v3.0.1 with: # N.B. This is a whitespace-separated string! inputs: '*.tar.gz *.zip' - run: | gh release upload "${GITHUB_REF_NAME}" \ - *.tar.gz *.zip *.sigstore \ + *.tar.gz *.zip *.sigstore.json \ --repo "${GITHUB_REPOSITORY}" shell: bash diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2024-07-02/MODULE.bazel new/re2-2025-06-26b/MODULE.bazel --- old/re2-2024-07-02/MODULE.bazel 2024-07-01 10:31:02.000000000 +0200 +++ new/re2-2025-06-26b/MODULE.bazel 2025-06-26 21:00:46.000000000 +0200 @@ -6,20 +6,20 @@ module( name = "re2", - version = "2024-07-02", + version = "2025-06-26", compatibility_level = 1, ) bazel_dep(name = "platforms", version = "0.0.10") bazel_dep(name = "apple_support", version = "1.15.1") -bazel_dep(name = "rules_cc", version = "0.0.9") +bazel_dep(name = "rules_cc", version = "0.0.13") bazel_dep(name = "abseil-cpp", version = "20240116.2") bazel_dep(name = "rules_python", version = "0.33.2") bazel_dep(name = "pybind11_bazel", version = "2.12.0") # This is a temporary hack for `x64_x86_windows`. # TODO(junyer): Remove whenever no longer needed. -cc_configure = use_extension("@bazel_tools//tools/cpp:cc_configure.bzl", "cc_configure_extension") +cc_configure = use_extension("@rules_cc//cc:extensions.bzl", "cc_configure_extension") use_repo(cc_configure, "local_config_cc") # These dependencies will be ignored when the `re2` module is not diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2024-07-02/python/setup.py new/re2-2025-06-26b/python/setup.py --- old/re2-2024-07-02/python/setup.py 2024-07-01 10:31:02.000000000 +0200 +++ new/re2-2025-06-26b/python/setup.py 2025-06-26 21:00:46.000000000 +0200 @@ -129,7 +129,7 @@ setuptools.setup( name='google-re2', - version='1.1.20240702', + version='1.1.20250626', description='RE2 Python bindings', long_description=long_description, long_description_content_type='text/plain', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2024-07-02/re2/set.cc new/re2-2025-06-26b/re2/set.cc --- old/re2-2024-07-02/re2/set.cc 2024-07-01 10:31:02.000000000 +0200 +++ new/re2-2025-06-26b/re2/set.cc 2025-06-26 21:00:46.000000000 +0200 @@ -55,6 +55,12 @@ return *this; } +int RE2::Set::Size() const { + if (!compiled_) + return static_cast<int>(elem_.size()); + return size_; +} + int RE2::Set::Add(absl::string_view pattern, std::string* error) { if (compiled_) { ABSL_LOG(DFATAL) << "RE2::Set::Add() called after compiling"; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2024-07-02/re2/set.h new/re2-2025-06-26b/re2/set.h --- old/re2-2024-07-02/re2/set.h 2024-07-01 10:31:02.000000000 +0200 +++ new/re2-2025-06-26b/re2/set.h 2025-06-26 21:00:46.000000000 +0200 @@ -53,6 +53,10 @@ // the error message from the parser. int Add(absl::string_view pattern, std::string* error); + // Returns the number of patterns in the set. + // Can be called before or after Compile(). + int Size() const; + // Compiles the set in preparation for matching. // Returns false if the compiler runs out of memory. // Add() must not be called again after Compile(). @@ -62,6 +66,7 @@ // Returns true if text matches at least one of the regexps in the set. // Fills v (if not NULL) with the indices of the matching regexps. // Callers must not expect v to be sorted. + // The indices are in the half-open interval [0, Size()). bool Match(absl::string_view text, std::vector<int>* v) const; // As above, but populates error_info (if not NULL) when none of the regexps diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/re2-2024-07-02/re2/testing/set_test.cc new/re2-2025-06-26b/re2/testing/set_test.cc --- old/re2-2024-07-02/re2/testing/set_test.cc 2024-07-01 10:31:02.000000000 +0200 +++ new/re2-2025-06-26b/re2/testing/set_test.cc 2025-06-26 21:00:46.000000000 +0200 @@ -17,10 +17,15 @@ TEST(Set, Unanchored) { RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED); + ASSERT_EQ(s.Size(), 0); ASSERT_EQ(s.Add("foo", NULL), 0); + ASSERT_EQ(s.Size(), 1); ASSERT_EQ(s.Add("(", NULL), -1); + ASSERT_EQ(s.Size(), 1); ASSERT_EQ(s.Add("bar", NULL), 1); + ASSERT_EQ(s.Size(), 2); ASSERT_EQ(s.Compile(), true); + ASSERT_EQ(s.Size(), 2); ASSERT_EQ(s.Match("foobar", NULL), true); ASSERT_EQ(s.Match("fooba", NULL), true);