]> git.proxmox.com Git - debcargo-conf.git/commitdiff
chrono - disable time/oldtime feature.
authorPeter Michael Green <plugwash@debian.org>
Sat, 18 Dec 2021 12:57:35 +0000 (12:57 +0000)
committerPeter Michael Green <plugwash@debian.org>
Sat, 18 Dec 2021 12:59:13 +0000 (12:59 +0000)
src/chrono/debian/changelog
src/chrono/debian/patches/remove-time.patch [new file with mode: 0644]
src/chrono/debian/patches/series

index c069ab34e697ddd0192478af332c45b3aad9872b..5220aeb7ab9a89f8c10ca8d6cbee8b59387a8d48 100644 (file)
@@ -1,3 +1,13 @@
+rust-chrono (0.4.19-3) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
+
+  * Team upload.
+  * Package chrono 0.4.19 from crates.io using debcargo 2.5.0
+  * Get rid of "time"/"oldtime" feature which depends on an obsolete version
+    of the time crate. This does represent a potential API break for crates
+    that use the "default" feature, but I think it's managable.
+
+ -- Peter Michael Green <plugwash@debian.org>  Sat, 18 Dec 2021 12:45:10 +0000
+
 rust-chrono (0.4.19-2) unstable; urgency=medium
 
   * Package chrono 0.4.19 from crates.io using debcargo 2.4.4-alpha.0
diff --git a/src/chrono/debian/patches/remove-time.patch b/src/chrono/debian/patches/remove-time.patch
new file mode 100644 (file)
index 0000000..be7a1e5
--- /dev/null
@@ -0,0 +1,41 @@
+Description: Remove dependency on time crate.
+ The dependency on time 0.1 is only needed for compatibility, since time 0.1
+ is not currently in Debian sid, that shouldn't be a problem for us anymore.
+ See: https://github.com/chronotope/chrono/commit/5115c6f5f93d112d48b618edfa1b47d004c39d10
+Author: Peter Michael Green <plugwash@debian.org>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: 2021-12-18
+
+--- rust-chrono-0.4.19.orig/Cargo.toml
++++ rust-chrono-0.4.19/Cargo.toml
+@@ -54,9 +54,6 @@ version = "1.0.99"
+ optional = true
+ default-features = false
+-[dependencies.time]
+-version = "0.1.42"
+-optional = true
+ [dev-dependencies.bincode]
+ version = "1"
+@@ -78,8 +75,7 @@ version = "1"
+ __doctest = []
+ alloc = []
+ clock = ["libc", "std", "winapi"]
+-default = ["clock", "std", "oldtime"]
+-oldtime = ["time"]
++default = ["clock", "std"]
+ std = []
+ [target."cfg(windows)".dependencies.winapi]
+ version = "0.3.0"
index ec52d0f3a8fa1e71a5130625d5d622f12aac20fe..24d6bd347337c2e4e21d32539e2ce31ccbe3af81 100644 (file)
@@ -3,3 +3,4 @@ update-bincode-to-1.0.patch
 remove-unstable-locales.patch
 strip-wasm.patch
 remove-benchmarks.patch
+remove-time.patch