These packages (RFS) are prepared in the master branch and can be uploaded
because all required dependencies are available in main::
+ yaml (rebuild, fix arch-dependent build failures)
sniffglue (update, bugfix - need better changelog)
encoding-rs (update)
cmake (update)
+rust-yaml (0.3.0-2) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
+
+ * Package yaml 0.3.0 from crates.io using debcargo 2.2.9
+
+ -- Wolfgang Silbermayr <wolfgang@silbermayr.at> Sat, 8 Dec 2018 09:58:42 +0100
+
rust-yaml (0.3.0-1) unstable; urgency=medium
* Package yaml 0.3.0 from crates.io using debcargo 2.2.6
Copyright:
2018 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
2018 kpcyrd <git@rxv.cc>
+ 2018 Wolfgang Silbermayr <wolfgang@silbermayr.at>
License: MIT
License: MIT
Files: debian/*
Copyright:
2018 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
- 2018 FIXME (overlay) Your Name <Your Email>
+ 2018 kpcyrd <git@rxv.cc>
+ 2018 Wolfgang Silbermayr <wolfgang@silbermayr.at>
License: MIT
License: MIT
overlay = "."
+uploaders = [
+ "kpcyrd <git@rxv.cc>",
+ "Wolfgang Silbermayr <wolfgang@silbermayr.at>",
+]
[packages.lib]
depends = ["libyaml-dev"]
--- /dev/null
+From 7b49b600cb4b26169b0f95d28482e76e054eeb04 Mon Sep 17 00:00:00 2001
+From: Wolfgang Silbermayr <wolfgang@silbermayr.at>
+Date: Sat, 8 Dec 2018 09:37:08 +0100
+Subject: [PATCH 1/2] Allow version 0.2.x in tests
+
+---
+ src/lib.rs | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/lib.rs b/src/lib.rs
+index a166caf..2dc6df8 100644
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -81,13 +81,13 @@ mod test {
+ #[test]
+ fn test_version_string() {
+ let vsn = super::version_string();
+- assert!("0.1.4".to_string() <= vsn && vsn < "0.2".to_string())
++ assert!("0.1.4".to_string() <= vsn && vsn < "0.3".to_string())
+ }
+
+ #[test]
+ fn test_version() {
+ let vsn = super::version();
+- assert!((0, 1, 4) <= vsn && vsn < (0, 2, 0))
++ assert!((0, 1, 4) <= vsn && vsn < (0, 3, 0))
+ }
+
+ #[test]
+--
+2.20.0.rc2
+
--- /dev/null
+From e5261398fcb4cd3406d727973486d0178130825a Mon Sep 17 00:00:00 2001
+From: Wolfgang Silbermayr <wolfgang@silbermayr.at>
+Date: Sat, 8 Dec 2018 09:39:56 +0100
+Subject: [PATCH 2/2] Use c_char instead of i8 for ffi
+
+This allows the project to build on architectures which define c_char as u8.
+Fixes build problems in architectures provided by debian.
+---
+ src/codecs.rs | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/src/codecs.rs b/src/codecs.rs
+index b28f835..749e7a2 100644
+--- a/src/codecs.rs
++++ b/src/codecs.rs
+@@ -6,14 +6,15 @@ use std::slice;
+ use std::str;
+ use std::ptr;
+ use std::ffi::CStr;
++use std::os::raw::c_char;
+
+ pub fn decode_c_str(c_str: *const ffi::yaml_char_t) -> Option<String> {
+ if c_str == ptr::null() {
+ None
+ } else {
+ unsafe {
+- let i8_str = c_str as *const i8;
+- str::from_utf8(CStr::from_ptr(i8_str).to_bytes()).map(|s| s.to_string()).ok()
++ let c_char_str = c_str as *const c_char;
++ str::from_utf8(CStr::from_ptr(c_char_str).to_bytes()).map(|s| s.to_string()).ok()
+ }
+ }
+ }
+--
+2.20.0.rc2
+
--- /dev/null
+0001-Allow-version-0.2.x-in-tests.patch
+0002-Use-c_char-instead-of-i8-for-ffi.patch