public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-tar] epel9: Drop dev-dependency on deprecated/unmaintained astral-tokio-tar
@ 2026-11-07 10:04 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-11-07 10:04 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-tar
Branch : epel9
Commit : 31524a38d804503f18bc1fe7f1044b64dfdcecfd
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-11-04T20:34:26+00:00
Stats : +63/-9 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/rust-tar/c/31524a38d804503f18bc1fe7f1044b64dfdcecfd?branch=epel9
Log:
Drop dev-dependency on deprecated/unmaintained astral-tokio-tar
See “Test dependency astral-tokio-tar is deprecated and unmaintained,”
https://github.com/composefs/tar-rs/issues/496.
---
diff --git a/0001-Downstream-omit-tests-that-cross-validate-against-as.patch b/0001-Downstream-omit-tests-that-cross-validate-against-as.patch
new file mode 100644
index 0000000..51babce
--- /dev/null
+++ b/0001-Downstream-omit-tests-that-cross-validate-against-as.patch
@@ -0,0 +1,42 @@
+From c2aa528f18e871e065f700b3e66c711e51467369 Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Wed, 4 Nov 2026 11:33:12 +0000
+Subject: [PATCH] Downstream: omit tests that cross-validate against
+ astral-tokio-tar
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+See “Test dependency astral-tokio-tar is deprecated and unmaintained,”
+https://github.com/composefs/tar-rs/issues/496.
+---
+ tests/all.rs | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/tests/all.rs b/tests/all.rs
+index eaeb839..53c1cb4 100644
+--- a/tests/all.rs
++++ b/tests/all.rs
+@@ -2043,6 +2043,9 @@ fn pax_size_smuggled_symlink() {
+ );
+ }
+
++// Downstream: avoid depending on astral-tokio-tar. See “Test dependency astral-tokio-tar is
++// deprecated and unmaintained,” https://github.com/composefs/tar-rs/issues/496.
++#[cfg(false)]
+ /// Cross-validate that `tar` and `astral-tokio-tar` parse the PAX size
+ /// smuggling archive identically, guarding against parsing differentials.
+ #[tokio::test]
+@@ -2124,6 +2127,9 @@ fn pax_size_does_not_apply_to_extension_headers() {
+ assert_eq!(entries, vec!["longname.txt", "file_b"]);
+ }
+
++// Downstream: avoid depending on astral-tokio-tar. See “Test dependency astral-tokio-tar is
++// deprecated and unmaintained,” https://github.com/composefs/tar-rs/issues/496.
++#[cfg(false)]
+ /// Cross-validate that `tar` and `astral-tokio-tar` (>= 0.6.2) parse the
+ /// GHSA-3cv2-h65g-fgmm test archive identically, guarding against any future
+ /// re-introduction of a parsing differential between the two crates.
+--
+2.56.0
+
diff --git a/rust-tar.spec b/rust-tar.spec
index 44395e4..e1db8ee 100644
--- a/rust-tar.spec
+++ b/rust-tar.spec
@@ -13,9 +13,12 @@ License: MIT OR Apache-2.0
URL: https://crates.io/crates/tar
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
-# * Allow astral-tokio-tar 0.7 for testing:
-# https://github.com/composefs/tar-rs/pull/475
+# * Drop dev-dependency on deprecated/unmaintained astral-tokio-tar
Patch: tar-fix-metadata.diff
+# * Downstream: omit tests that cross-validate against astral-tokio-tar
+# * See “Test dependency astral-tokio-tar is deprecated and unmaintained,”
+# https://github.com/composefs/tar-rs/issues/496.
+Patch10: 0001-Downstream-omit-tests-that-cross-validate-against-as.patch
BuildRequires: cargo-rpm-macros >= 24
diff --git a/rust2rpm.toml b/rust2rpm.toml
index a9e845e..7db0285 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,8 +1,16 @@
[package]
cargo-toml-patch-comments = [
+ "Drop dev-dependency on deprecated/unmaintained astral-tokio-tar",
+]
+
+[[package.extra-patches]]
+number = 10
+file = "0001-Downstream-omit-tests-that-cross-validate-against-as.patch"
+comments = [
+ "Downstream: omit tests that cross-validate against astral-tokio-tar",
"""\
-Allow astral-tokio-tar 0.7 for testing: \
-https://github.com/composefs/tar-rs/pull/475\
+See “Test dependency astral-tokio-tar is deprecated and unmaintained,” \
+https://github.com/composefs/tar-rs/issues/496.\
""",
]
diff --git a/tar-fix-metadata.diff b/tar-fix-metadata.diff
index c1f4915..3ef83be 100644
--- a/tar-fix-metadata.diff
+++ b/tar-fix-metadata.diff
@@ -1,11 +1,12 @@
--- tar-0.4.46/Cargo.toml 2006-07-24T01:21:28+00:00
-+++ tar-0.4.46/Cargo.toml 2026-09-02T11:34:16.378545+00:00
-@@ -74,7 +74,7 @@
++++ tar-0.4.46/Cargo.toml 2026-11-04T11:35:03.458242+00:00
+@@ -73,9 +73,6 @@
+ [dependencies.filetime]
version = "0.2.8"
- [dev-dependencies.astral-tokio-tar]
+-[dev-dependencies.astral-tokio-tar]
-version = "0.6.2"
-+version = ">=0.6.2,<0.8"
-
+-
[dev-dependencies.rand]
version = "0.8"
+ features = ["small_rng"]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-07 10:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-07 10:04 [rpms/rust-tar] epel9: Drop dev-dependency on deprecated/unmaintained astral-tokio-tar 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