From 1b102863078e38cf97a229a31afb75061e258f4e Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 17 Oct 2023 18:57:20 +0200 Subject: [PATCH] Update to version 0.4.3; Fixes RHBZ#2244495 --- .gitignore | 1 + ...ix-compilation-of-doctests-on-32-bit.patch | 34 ------------------- rust-regex-automata.spec | 3 +- sources | 2 +- 4 files changed, 3 insertions(+), 37 deletions(-) delete mode 100644 0001-regex-automata-fix-compilation-of-doctests-on-32-bit.patch diff --git a/.gitignore b/.gitignore index fce5a11..9c157c4 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /regex-automata-0.3.8.crate /regex-automata-0.4.1.crate /regex-automata-0.4.2.crate +/regex-automata-0.4.3.crate diff --git a/0001-regex-automata-fix-compilation-of-doctests-on-32-bit.patch b/0001-regex-automata-fix-compilation-of-doctests-on-32-bit.patch deleted file mode 100644 index eb555fa..0000000 --- a/0001-regex-automata-fix-compilation-of-doctests-on-32-bit.patch +++ /dev/null @@ -1,34 +0,0 @@ -From fe43117b051983b7869dae45658319becd971534 Mon Sep 17 00:00:00 2001 -From: Fabio Valentini -Date: Sun, 15 Oct 2023 00:59:37 +0200 -Subject: [PATCH] regex-automata: fix compilation of doctests on 32-bit - architectures - ---- - src/util/captures.rs | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/src/util/captures.rs b/src/util/captures.rs -index cd3a5f8..05db6a9 100644 ---- a/src/util/captures.rs -+++ b/src/util/captures.rs -@@ -433,7 +433,6 @@ impl Captures { - /// - /// ``` - /// # if cfg!(miri) { return Ok(()); } // miri takes too long -- /// # if !cfg!(target_pointer_width = "64") { return Ok(()); } // see #1039 - /// use regex_automata::{nfa::thompson::pikevm::PikeVM, Span, Match}; - /// - /// let re = PikeVM::new(r"^(?P\pL+)\s+(?P\pL+)$")?; -@@ -445,6 +444,8 @@ impl Captures { - /// assert_eq!(Some(Span::from(6..17)), caps.get_group(2)); - /// // Looking for a non-existent capturing group will return None: - /// assert_eq!(None, caps.get_group(3)); -+ /// # // literals are too big for 32-bit usize: #1039 -+ /// # #[cfg(target_pointer_width = "64")] - /// assert_eq!(None, caps.get_group(9944060567225171988)); - /// - /// # Ok::<(), Box>(()) --- -2.41.0 - diff --git a/rust-regex-automata.spec b/rust-regex-automata.spec index ab1e99e..889f999 100644 --- a/rust-regex-automata.spec +++ b/rust-regex-automata.spec @@ -5,14 +5,13 @@ %global crate regex-automata Name: rust-regex-automata -Version: 0.4.2 +Version: 0.4.3 Release: %autorelease Summary: Automata construction and matching using regular expressions License: MIT OR Apache-2.0 URL: https://crates.io/crates/regex-automata Source: %{crates_source} -Patch: 0001-regex-automata-fix-compilation-of-doctests-on-32-bit.patch BuildRequires: cargo-rpm-macros >= 24 diff --git a/sources b/sources index 524acbf..32e17b0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (regex-automata-0.4.2.crate) = e8d9aa7ab3e86d02c3e72809500f6a1ceb2ce1f06a15af70b697ccd99d7be05a4d8f39f513e16f8f1d1983c805691e663135c0620f9cfd171868e2b0b803f2d0 +SHA512 (regex-automata-0.4.3.crate) = 4fc82fe3556f829956c3172447589555ef286fd66ee9a445cbdcdbe57970655e35b6eb0895ba02c344d826609257e0c95d3f7f51858aa260103bed7b08d8c1a8