Package: python-maturin
Version: 1.9.4-3

I hope to upgrade rust-target-lexicon to 0.13 soon. For
python-maturin this means removing some Debian changes
bringing us closer to upstream.

Unfortunately, I don't think it's reasonablly pratical to support
both the old and the new version, so this will need to be uploaded
after the new version of target-lexicon is in sid.

Debdiff is attatched.
diff -Nru python-maturin-1.9.4/debian/changelog 
python-maturin-1.9.4/debian/changelog
--- python-maturin-1.9.4/debian/changelog       2025-12-07 12:49:57.000000000 
+0000
+++ python-maturin-1.9.4/debian/changelog       2026-01-04 12:47:38.000000000 
+0000
@@ -1,3 +1,13 @@
+python-maturin (1.9.4-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Adapt packaging for version 0.13 of rust-target-lexicon.
+    + Drop patches relax-target-lexicon and fix-operating-system-api
+    + Drop one hunk from fix-cargo-metadata-api-build-options
+    + Update build-depends.
+
+ -- Peter Michael Green <[email protected]>  Sun, 04 Jan 2026 12:47:38 +0000
+
 python-maturin (1.9.4-3) unstable; urgency=medium
 
   * Add patch newer-cbindgen: build against cbindgen 0.29. Closes:
diff -Nru python-maturin-1.9.4/debian/control 
python-maturin-1.9.4/debian/control
--- python-maturin-1.9.4/debian/control 2025-12-07 12:49:57.000000000 +0000
+++ python-maturin-1.9.4/debian/control 2026-01-04 12:47:38.000000000 +0000
@@ -60,7 +60,7 @@
                librust-serde-json-1+default-dev (>= 1.0.114-~~),
                librust-sha2-0.10+default-dev (>= 0.10.3-~~),
                librust-tar-0.4+default-dev (>= 0.4.38-~~),
-               librust-target-lexicon-0.12+default-dev,
+               librust-target-lexicon-0.13+default-dev,
                librust-tempfile-3+default-dev (>= 3.2.0-~~),
                librust-textwrap-0.16+default-dev (>= 0.16.1-~~),
                librust-thiserror-2+default-dev (>= 2.0.3-~~),
diff -Nru 
python-maturin-1.9.4/debian/patches/fix-cargo-metadata-api-build-options 
python-maturin-1.9.4/debian/patches/fix-cargo-metadata-api-build-options
--- python-maturin-1.9.4/debian/patches/fix-cargo-metadata-api-build-options    
2025-12-07 12:49:57.000000000 +0000
+++ python-maturin-1.9.4/debian/patches/fix-cargo-metadata-api-build-options    
2026-01-04 12:47:38.000000000 +0000
@@ -80,19 +80,3 @@
          let mut project_url = IndexMap::new();
          if let Some(repository) = package.repository.as_ref() {
              project_url.insert("Source Code".to_string(), repository.clone());
-Index: maturin/src/build_context.rs
-===================================================================
---- maturin.orig/src/build_context.rs
-+++ maturin/src/build_context.rs
-@@ -1319,10 +1319,7 @@ pub(crate) fn rustc_macosx_target_versio
-             .context("llvm-target is not a string")?;
-         let triple = llvm_target.parse::<target_lexicon::Triple>();
-         let (major, minor) = match triple.map(|t| t.operating_system) {
--            Ok(
--                OperatingSystem::MacOSX(Some(deployment_target))
--                | OperatingSystem::Darwin(Some(deployment_target)),
--            ) => (deployment_target.major, 
u16::from(deployment_target.minor)),
-+            Ok(OperatingSystem::MacOSX { major, minor, .. }) => (major, 
minor),
-             _ => fallback_version,
-         };
-         Ok((major, minor))
diff -Nru python-maturin-1.9.4/debian/patches/fix-operating-system-api 
python-maturin-1.9.4/debian/patches/fix-operating-system-api
--- python-maturin-1.9.4/debian/patches/fix-operating-system-api        
2025-12-07 12:49:57.000000000 +0000
+++ python-maturin-1.9.4/debian/patches/fix-operating-system-api        
1970-01-01 00:00:00.000000000 +0000
@@ -1,22 +0,0 @@
-Description: Fix OperatingSystem enum API compatibility
- Adapt to pep508_rs API changes:
- - MacOSX changed from tuple variant to struct variant
- - IOS renamed to Ios (capitalization change)
-Author: Jelmer Vernooij <[email protected]>
-Forwarded: not-needed
-Last-Update: 2025-11-04
-Index: maturin/src/target/mod.rs
-===================================================================
---- maturin.orig/src/target/mod.rs
-+++ maturin/src/target/mod.rs
-@@ -270,8 +270,8 @@ impl Target {
-         let os = match platform.operating_system {
-             OperatingSystem::Linux => Os::Linux,
-             OperatingSystem::Windows => Os::Windows,
--            OperatingSystem::MacOSX(_) | OperatingSystem::Darwin(_) => 
Os::Macos,
--            OperatingSystem::IOS(_) => Os::Ios,
-+            OperatingSystem::MacOSX { .. } | OperatingSystem::Darwin => 
Os::Macos,
-+            OperatingSystem::Ios => Os::Ios,
-             OperatingSystem::Netbsd => Os::NetBsd,
-             OperatingSystem::Freebsd => Os::FreeBsd,
-             OperatingSystem::Openbsd => Os::OpenBsd,
diff -Nru python-maturin-1.9.4/debian/patches/relax-target-lexicon 
python-maturin-1.9.4/debian/patches/relax-target-lexicon
--- python-maturin-1.9.4/debian/patches/relax-target-lexicon    2025-12-07 
12:49:57.000000000 +0000
+++ python-maturin-1.9.4/debian/patches/relax-target-lexicon    1970-01-01 
00:00:00.000000000 +0000
@@ -1,18 +0,0 @@
-Description: Relax target-lexicon dependency version
- Update target-lexicon dependency to match the version available in Debian
-Author: Jelmer Vernooij <[email protected]>
-Forwarded: not-needed
-Last-Update: 2025-11-04
-Index: maturin/Cargo.toml
-===================================================================
---- maturin.orig/Cargo.toml
-+++ maturin/Cargo.toml
-@@ -71,7 +71,7 @@ fat-macho = { version = "0.4.8", default
- once_cell = "1.7.2"
- rustc_version = "0.4.0"
- semver = "1.0.22"
--target-lexicon = "0.13.0"
-+target-lexicon = "0.12"
- indexmap = "2.2.3"
- pyproject-toml = { version = "0.13.5", features = ["pep639-glob"] }
- python-pkginfo = "0.6.5"
diff -Nru python-maturin-1.9.4/debian/patches/series 
python-maturin-1.9.4/debian/patches/series
--- python-maturin-1.9.4/debian/patches/series  2025-12-07 12:49:57.000000000 
+0000
+++ python-maturin-1.9.4/debian/patches/series  2026-01-04 12:47:38.000000000 
+0000
@@ -1,8 +1,6 @@
 fix-cargo-metadata-api
-fix-operating-system-api
 relax-zip
 relax-rustflags
-relax-target-lexicon
 drop-xwin
 drop-zigbuild
 relax-cbindgen

Reply via email to