]> git.proxmox.com Git - debcargo-conf.git/commitdiff
Update zstd-sys, remove outdated copyright notice
authorBlair Noctis <n@sail.ng>
Fri, 2 Sep 2022 15:34:46 +0000 (15:34 +0000)
committerBlair Noctis <n@sail.ng>
Mon, 19 Sep 2022 02:19:24 +0000 (10:19 +0800)
src/zstd-sys/debian/RFS [new file with mode: 0644]
src/zstd-sys/debian/changelog
src/zstd-sys/debian/copyright
src/zstd-sys/debian/patches/bump-bindgen.diff
src/zstd-sys/debian/patches/pkg-config_and_bindgen.diff

diff --git a/src/zstd-sys/debian/RFS b/src/zstd-sys/debian/RFS
new file mode 100644 (file)
index 0000000..e69de29
index 6a7f8e196c26ce82961b5ee69742e150e990f9d9..cf7dcf28646fc46ca06f774fd0302ad4f7bcdff4 100644 (file)
@@ -1,3 +1,11 @@
+rust-zstd-sys (2.0.1-2) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
+
+  * Team upload.
+  * Remove copyright notice of lib.rs as upstream marked the issue addressed
+  * Use libzstd-dev provided zdict.h following zstd.h
+
+ -- Blair Noctis <n@sail.ng>  Fri, 02 Sep 2022 11:54:21 +0000
+
 rust-zstd-sys (2.0.1-1) unstable; urgency=medium
 
   * Team upload.
index acd430bcafa2db42365cd0be353343fa450838f3..fe63a2308bc83f08e34abb35636029d5b2b70f4b 100644 (file)
@@ -7,21 +7,6 @@ Files: *
 Copyright: 2016-2022 Alexandre Bury <alexandre.bury@gmail.com>
 License: MIT or Apache-2.0
 
-Files: lib.rs
-Copyright:
- 2016-2022 Alexandre Bury <alexandre.bury@gmail.com>
- 2016-2019 Yann Collet, and Facebook, Inc.
-License: MIT or Apache-2.0, and BSD-3-Clause or GPL-2
-Comment:
- API documentation strings in lib.rs are taken verbatim from upstream zstd.h
- from Yann Collet and Facebook, licensed under BSD-3-Clause or GPL-2. This does
- not apply to the other parts of the code.
- .
- See discussion:
- - https://github.com/gyscos/zstd-rs/issues/82
- - https://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/2020-February/009991.html
- - https://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/2020-February/009993.html
-
 Files: debian/*
 Copyright:
  2020-2022 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
index 248ddad6f512376b4bf113d83ded89fd9dffb8dc..c124f6c5196a62c8c51066b41642c95fe0311eed 100644 (file)
@@ -1,8 +1,6 @@
-Index: zstd-sys/Cargo.toml
-===================================================================
---- zstd-sys.orig/Cargo.toml
-+++ zstd-sys/Cargo.toml
-@@ -51,7 +51,7 @@ doctest = false
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -51,7 +51,7 @@
  version = "0.2.45"
  
  [build-dependencies.bindgen]
index 13bb298a00578c557078b535fa67353bbc53496a..e87023550a21e3319985a85b4756094d5f4a7eb5 100644 (file)
@@ -1,8 +1,6 @@
 only in patch2:
-Index: zstd-sys/zstd.h
-===================================================================
---- zstd-sys.orig/zstd.h
-+++ zstd-sys/zstd.h
+--- a/zstd.h
++++ b/zstd.h
 @@ -1,16 +1,2 @@
 -#ifdef PKG_CONFIG
 -
@@ -20,11 +18,9 @@ Index: zstd-sys/zstd.h
 -/* This file is used to generate bindings for both headers.
 - * Check update_bindings.sh to see how to use it.
 - * Or use the `bindgen` feature, which will create the bindings automatically. */
-Index: zstd-sys/Cargo.toml
-===================================================================
---- zstd-sys.orig/Cargo.toml
-+++ zstd-sys/Cargo.toml
-@@ -52,15 +52,9 @@ version = "0.2.45"
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -52,15 +52,9 @@
  
  [build-dependencies.bindgen]
  version = "0.59"
@@ -40,11 +36,9 @@ Index: zstd-sys/Cargo.toml
  
  [features]
  debug = []
-Index: zstd-sys/build.rs
-===================================================================
---- zstd-sys.orig/build.rs
-+++ zstd-sys/build.rs
-@@ -2,7 +2,6 @@ use std::ffi::OsStr;
+--- a/build.rs
++++ b/build.rs
+@@ -2,7 +2,6 @@
  use std::path::{Path, PathBuf};
  use std::{env, fs};
  
@@ -52,7 +46,7 @@ Index: zstd-sys/build.rs
  fn generate_bindings(defs: Vec<&str>, headerpaths: Vec<PathBuf>) {
      let bindings = bindgen::Builder::default()
          .header("zstd.h");
-@@ -36,10 +35,6 @@ fn generate_bindings(defs: Vec<&str>, he
+@@ -36,10 +35,6 @@
          .expect("Could not write bindings");
  }
  
@@ -63,7 +57,7 @@ Index: zstd-sys/build.rs
  fn pkg_config() -> (Vec<&'static str>, Vec<PathBuf>) {
      let library = pkg_config::Config::new()
          .statik(true)
-@@ -49,146 +44,6 @@ fn pkg_config() -> (Vec<&'static str>, V
+@@ -49,146 +44,6 @@
      (vec!["PKG_CONFIG"], library.include_paths)
  }
  
@@ -210,7 +204,7 @@ Index: zstd-sys/build.rs
  fn main() {
      let target_arch =
          std::env::var("CARGO_CFG_TARGET_ARCH").unwrap_or_default();
-@@ -199,21 +54,7 @@ fn main() {
+@@ -199,21 +54,7 @@
      }
  
      // println!("cargo:rustc-link-lib=zstd");
@@ -233,11 +227,9 @@ Index: zstd-sys/build.rs
  
      let includes: Vec<_> = headerpaths
          .iter()
-Index: zstd-sys/src/lib.rs
-===================================================================
---- zstd-sys.orig/src/lib.rs
-+++ zstd-sys/src/lib.rs
-@@ -13,70 +13,5 @@ extern crate std;
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -13,70 +13,5 @@
  mod wasm_shim;
  
  // If running bindgen, we'll end up with the correct bindings anyway.
@@ -308,9 +300,7 @@ Index: zstd-sys/src/lib.rs
 -    not(feature = "bindgen")
 -))]
 -include!("bindings_zdict_std_experimental.rs");
-Index: zstd-sys/update_bindings.sh
-===================================================================
---- zstd-sys.orig/update_bindings.sh
+--- a/update_bindings.sh
 +++ /dev/null
 @@ -1,28 +0,0 @@
 -#!/bin/sh
@@ -341,9 +331,7 @@ Index: zstd-sys/update_bindings.sh
 -        run_bindgen zdict.h --blocklist-type wchar_t $NO_STD_ARG -- -Izstd/lib $EXPERIMENTAL_ARG > src/bindings_zdict${SUFFIX}.rs
 -    done
 -done
-Index: zstd-sys/update_zstd.sh
-===================================================================
---- zstd-sys.orig/update_zstd.sh
+--- a/update_zstd.sh
 +++ /dev/null
 @@ -1,59 +0,0 @@
 -#!/bin/bash
@@ -405,3 +393,23 @@ Index: zstd-sys/update_zstd.sh
 -    echo "Already using zstd $TAG"
 -fi
 -
+--- a/zdict.h
++++ b/zdict.h
+@@ -1,17 +1,2 @@
+-#ifdef PKG_CONFIG
+-
+ /* Just use installed headers */
+ #include <zdict.h>
+-// Don't use experimental features like zstdmt
+-
+-#else // #ifdef PKG_CONFIG
+-
+-#include "zstd/lib/zdict.h"
+-
+-#endif // #ifdef PKG_CONFIG
+-
+-
+-/* This file is used to generate bindings for both headers.
+- * Check update_bindings.sh to see how to use it.
+- * Or use the `bindgen` feature, which will create the bindings automatically. */
+-