+rust-once-cell (1.16.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
+
+ * Team upload.
+ * Package once_cell 1.16.0 from crates.io using debcargo 2.5.0 (Closes: #1023813)
+ * Update patches for new upstream.
+ * Remove optional dependency on critical-section, it's not in Debian and it
+ doesn't build with Debian's current rustc.
+
+ -- Peter Michael Green <plugwash@debian.org> Thu, 10 Nov 2022 15:31:55 +0000
+
rust-once-cell (1.14.0-2) unstable; urgency=medium
* Team upload.
---- a/Cargo.toml
-+++ b/Cargo.toml
-@@ -65,9 +65,9 @@
+Index: once-cell/Cargo.toml
+===================================================================
+--- once-cell.orig/Cargo.toml
++++ once-cell/Cargo.toml
+@@ -66,10 +66,10 @@ required-features = ["std"]
name = "test_synchronization"
required-features = ["std"]
--[dependencies.atomic-polyfill]
+-[dependencies.atomic_polyfill]
-version = "1"
-optional = true
-+#[dependencies.atomic-polyfill]
+-package = "atomic-polyfill"
++#[dependencies.atomic_polyfill]
+#version = "1"
+#optional = true
++#package = "atomic-polyfill"
- [dependencies.parking_lot_core]
- version = "0.9.3"
+ [dependencies.critical_section]
+ version = "1"
+@@ -97,11 +97,6 @@ version = "1.2.0"
+
+ [features]
+ alloc = ["race"]
+-atomic-polyfill = ["critical-section"]
+-critical-section = [
+- "critical_section",
+- "atomic_polyfill",
+-]
+ default = ["std"]
+ parking_lot = ["parking_lot_core"]
+ race = []
--- /dev/null
+Index: once-cell/Cargo.toml
+===================================================================
+--- once-cell.orig/Cargo.toml
++++ once-cell/Cargo.toml
+@@ -71,20 +71,20 @@ required-features = ["std"]
+ #optional = true
+ #package = "atomic-polyfill"
+
+-[dependencies.critical_section]
+-version = "1"
+-optional = true
+-package = "critical-section"
++#[dependencies.critical_section]
++#version = "1"
++#optional = true
++#package = "critical-section"
+
+ [dependencies.parking_lot_core]
+ version = "0.9.3"
+ optional = true
+ default_features = false
+
+-[dev-dependencies.critical_section]
+-version = "1.1.1"
+-features = ["std"]
+-package = "critical-section"
++#[dev-dependencies.critical_section]
++#version = "1.1.1"
++#features = ["std"]
++#package = "critical-section"
+
+ [dev-dependencies.crossbeam-utils]
+ version = "0.8.7"
--- a/tests/it.rs
+++ b/tests/it.rs
-@@ -393,7 +393,7 @@
- );
- }
+@@ -395,3 +395,3 @@
- #[test]
+ /*#[test]
#[cfg_attr(miri, ignore)] // miri doesn't support processes
- fn reentrant_init() {
- let examples_dir = {
-@@ -420,7 +420,7 @@
- let _ = self.child.kill();
- }
+@@ -422,3 +422,3 @@
}
- }
+ }*/
- #[test]
- fn lazy_new() {
relax-test.diff
disable-atomic-pollyfill.diff
+disable-critical-section.diff