public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-tar] epel9: Drop dev-dependency on deprecated/unmaintained astral-tokio-tar
Date: Sat, 07 Nov 2026 10:04:08 GMT	[thread overview]
Message-ID: <179404584819.1.7836721260109148959.rpms-rust-tar-31524a38d804@fedoraproject.org> (raw)

            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"]

                 reply	other threads:[~2026-11-07 10:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179404584819.1.7836721260109148959.rpms-rust-tar-31524a38d804@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox