public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/selenium-manager] f43: Update zip dependency from v2 to v9
@ 2026-11-07  8:08 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-11-07  8:08 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/selenium-manager
            Branch : f43
            Commit : 12a552467d01c64bf88bf18b3c5b34b737714249
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-11-07T08:07:40+00:00
            Stats  : +19/-1 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/selenium-manager/c/12a552467d01c64bf88bf18b3c5b34b737714249?branch=f43

            Log:
            Update zip dependency from v2 to v9

- Fixes RUSTSEC-2026-0367, RUSTSEC-2026-0368, RUSTSEC-2026-0369
- Update License expression based on a current build

---
diff --git a/0001-remove-unnecessary-dependencies.patch b/0001-remove-unnecessary-dependencies.patch
index 8496b56..3ad2d10 100644
--- a/0001-remove-unnecessary-dependencies.patch
+++ b/0001-remove-unnecessary-dependencies.patch
@@ -4,7 +4,7 @@
  tempfile = "3.19.1"
  reqwest = { version = "0.12.15", default-features = false, features = ["rustls-tls"] }
 -zip = { version = "2.6.1", default-features = false, features = ["deflate-zlib"] }
-+zip = { version = "2.2.3", default-features = false, features = ["deflate-zlib"] }
++zip = { version = "9", default-features = false, features = ["deflate"] }
 -directories = "6.0.0"
 +directories = ">=5.0.1, <7.0.0"
  serde = { version = "1.0.219", features = ["derive"] }

diff --git a/selenium-4.45.0-zip9.patch b/selenium-4.45.0-zip9.patch
new file mode 100644
index 0000000..8de4a7f
--- /dev/null
+++ b/selenium-4.45.0-zip9.patch
@@ -0,0 +1,12 @@
+diff -Naur a/rust/src/files.rs b/rust/src/files.rs
+--- a/rust/src/files.rs	2026-06-16 05:41:30.000000000 +0100
++++ b/rust/src/files.rs	2026-11-06 11:04:49.031941636 +0000
+@@ -416,7 +416,7 @@
+             }
+             None => continue,
+         };
+-        if file.name().ends_with('/') {
++        if file.name()?.ends_with('/') {
+             log.trace(format!("File extracted to {}", tmp_path.display()));
+             fs::create_dir_all(&tmp_path)?;
+         } else {

diff --git a/selenium-manager.spec b/selenium-manager.spec
index f280568..7faaead 100644
--- a/selenium-manager.spec
+++ b/selenium-manager.spec
@@ -23,6 +23,7 @@ Summary:        Automated driver and browser management for Selenium
 # MPL-2.0
 # Unicode-3.0
 # Unlicense OR MIT
+# Zlib
 # bzip2-1.0.6
 
 
@@ -37,6 +38,7 @@ License:        %{shrink:
                 MPL-2.0 AND
                 Unicode-3.0 AND
                 Unicode-DFS-2016 AND
+                Zlib AND
                 bzip2-1.0.6 AND
                 (0BSD OR MIT OR Apache-2.0) AND
                 (Apache-2.0 OR BSL-1.0) AND
@@ -59,6 +61,9 @@ Source0:        %{url}/archive/selenium-%{version}.tar.gz
 # Upstream status: https://github.com/SeleniumHQ/selenium/issues/15009#issuecomment-3027302387
 Patch0:         0001-remove-unnecessary-dependencies.patch
 Patch1:         0001-remove-unsupported-function.patch
+# Source-code patch to update from zip v2 to v9 (see Patch0).
+# https://github.com/SeleniumHQ/selenium/commit/7dfc0139a8d06bf72b74072159903353bb61c1f4
+Patch2:         selenium-4.45.0-zip9.patch
 
 BuildRequires:  cargo-rpm-macros >= 24
 
@@ -72,6 +77,7 @@ that provides automated driver and browser management for Selenium.
 cd src
 %patch -P 1 
 cd ..
+%patch -P 2 -p2
 %cargo_prep 
 
 %generate_buildrequires

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-07  8:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-07  8:08 [rpms/selenium-manager] f43: Update zip dependency from v2 to v9 Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox