Sorry, forgot to attatch the patch, doing so no.
diff -Nru sccache-0.9.0/debian/changelog sccache-0.9.0/debian/changelog
--- sccache-0.9.0/debian/changelog      2024-12-10 09:35:01.000000000 +0000
+++ sccache-0.9.0/debian/changelog      2024-12-17 23:12:49.000000000 +0000
@@ -1,3 +1,10 @@
+sccache (0.9.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Bump object to 0.36
+
+ -- Peter Michael Green <plugw...@debian.org>  Tue, 17 Dec 2024 23:12:49 +0000
+
 sccache (0.9.0-1) unstable; urgency=medium
 
   [ upstream ]
diff -Nru sccache-0.9.0/debian/control sccache-0.9.0/debian/control
--- sccache-0.9.0/debian/control        2024-12-10 09:34:10.000000000 +0000
+++ sccache-0.9.0/debian/control        2024-12-17 23:09:07.000000000 +0000
@@ -44,7 +44,7 @@
  librust-mime-0.3+default-dev,
  librust-num-cpus-1+default-dev,
  librust-number-prefix-0.4+default-dev,
- librust-object-0.32+default-dev,
+ librust-object-0.36+default-dev,
  librust-once-cell-1+default-dev,
  librust-predicates-3+default-dev <!nocheck>,
  librust-rand-0.8+default-dev,
diff -Nru sccache-0.9.0/debian/patches/1007_object.patch 
sccache-0.9.0/debian/patches/1007_object.patch
--- sccache-0.9.0/debian/patches/1007_object.patch      1970-01-01 
00:00:00.000000000 +0000
+++ sccache-0.9.0/debian/patches/1007_object.patch      2024-12-17 
23:12:49.000000000 +0000
@@ -0,0 +1,47 @@
+Description: Update object to 0.36
+Author: Peter Michael Green <plugw...@debian.org>
+
+Index: sccache-0.9.0/Cargo.toml
+===================================================================
+--- sccache-0.9.0.orig/Cargo.toml
++++ sccache-0.9.0/Cargo.toml
+@@ -56,7 +56,7 @@ memmap2 = "0.9.3"
+ mime = "0.3"
+ num_cpus = "1.16"
+ number_prefix = "0.4"
+-object = "0.32"
++object = "0.36"
+ once_cell = "1.19"
+ rand = "0.8.4"
+ regex = "1.10.3"
+Index: sccache-0.9.0/src/util.rs
+===================================================================
+--- sccache-0.9.0.orig/src/util.rs
++++ sccache-0.9.0/src/util.rs
+@@ -356,19 +356,18 @@ pub async fn hash_all_archives(
+             let archive_mmap =
+                 unsafe { 
memmap2::MmapOptions::new().map_copy_read_only(&archive_file)? };
+ 
+-            match macho::FatHeader::parse(&*archive_mmap) {
+-                Ok(h) if h.magic.get(object::endian::BigEndian) == 
macho::FAT_MAGIC => {
+-                    for arch in 
macho::FatHeader::parse_arch32(&*archive_mmap)? {
++            if let Ok(h) = 
object::read::macho::MachOFatFile32::parse(&*archive_mmap) {
++                    for arch in h.arches() {
+                         hash_regular_archive(&mut m, 
arch.data(&*archive_mmap)?)?;
+                     }
+-                }
+-                Ok(h) if h.magic.get(object::endian::BigEndian) == 
macho::FAT_MAGIC_64 => {
+-                    for arch in 
macho::FatHeader::parse_arch64(&*archive_mmap)? {
++            } else if let Ok(h) = 
object::read::macho::MachOFatFile32::parse(&*archive_mmap) {
++
++                    for arch in h.arches() {
+                         hash_regular_archive(&mut m, 
arch.data(&*archive_mmap)?)?;
+                     }
+-                }
++            } else {
+                 // Not a FatHeader at all, regular archive.
+-                _ => hash_regular_archive(&mut m, &archive_mmap)?,
++                hash_regular_archive(&mut m, &archive_mmap)?;
+             }
+             Ok(m.finish())
+         })
diff -Nru sccache-0.9.0/debian/patches/series 
sccache-0.9.0/debian/patches/series
--- sccache-0.9.0/debian/patches/series 2024-12-10 08:54:19.000000000 +0000
+++ sccache-0.9.0/debian/patches/series 2024-12-17 23:11:02.000000000 +0000
@@ -19,3 +19,4 @@
 2003_no_dist-tests.patch
 2003_no_opendal_backends.patch
 2004_shared_libs.patch
+1007_object.patch

Reply via email to