public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH debcargo-conf boookworm 0/2] update nettle-sys to 2.2
@ 2023-10-12  8:37 Dominik Csapak
  2023-10-12  8:37 ` [pve-devel] [PATCH 1/2] update nettle-sys Dominik Csapak
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dominik Csapak @ 2023-10-12  8:37 UTC (permalink / raw)
  To: pve-devel

current nettle-sys 2.1 does not support our current packaged bindgen
version (0.66), an update from debian unstable (and backport) fixes that

this packaged is used by sequoia-openpgp (which is used by
proxmox-offline-mirror)

Dominik Csapak (2):
  update nettle-sys
  backport nettle-sys

 src/nettle-sys/debian/changelog               | 25 +++++++++++++++++++
 src/nettle-sys/debian/copyright               |  4 +--
 src/nettle-sys/debian/copyright.debcargo.hint | 12 ++++-----
 .../0001-Avoid-msvc-dependencies.patch        | 21 ++++------------
 .../0002-Relax-dependency-on-bindgen.patch    | 16 +++++++-----
 5 files changed, 48 insertions(+), 30 deletions(-)

-- 
2.30.2





^ permalink raw reply	[flat|nested] 4+ messages in thread

* [pve-devel] [PATCH 1/2] update nettle-sys
  2023-10-12  8:37 [pve-devel] [PATCH debcargo-conf boookworm 0/2] update nettle-sys to 2.2 Dominik Csapak
@ 2023-10-12  8:37 ` Dominik Csapak
  2023-10-12  8:37 ` [pve-devel] [PATCH 2/2] backport nettle-sys Dominik Csapak
  2023-10-12 14:11 ` [pve-devel] applied-series: [PATCH debcargo-conf boookworm 0/2] update nettle-sys to 2.2 Thomas Lamprecht
  2 siblings, 0 replies; 4+ messages in thread
From: Dominik Csapak @ 2023-10-12  8:37 UTC (permalink / raw)
  To: pve-devel

sync with Debian unstable

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 src/nettle-sys/debian/changelog               | 19 +++++++++++++++++
 src/nettle-sys/debian/copyright               |  4 ++--
 src/nettle-sys/debian/copyright.debcargo.hint | 12 +++++------
 .../0001-Avoid-msvc-dependencies.patch        | 21 +++++--------------
 .../0002-Relax-dependency-on-bindgen.patch    | 16 ++++++++------
 5 files changed, 42 insertions(+), 30 deletions(-)

diff --git a/src/nettle-sys/debian/changelog b/src/nettle-sys/debian/changelog
index ae38c5df2..ca97618c9 100644
--- a/src/nettle-sys/debian/changelog
+++ b/src/nettle-sys/debian/changelog
@@ -1,3 +1,22 @@
+rust-nettle-sys (2.2.0-2) unstable; urgency=medium
+
+  * Package nettle-sys 2.2.0 from crates.io using debcargo 2.6.0
+
+  [ Matthias Geiger ]
+  * Team upload.
+  * Package nettle-sys 2.2.0 from crates.io using debcargo 2.6.0
+  * Updated patch for newer bindgen
+
+ -- Peter Michael Green <plugwash@debian.org>  Tue, 19 Sep 2023 21:53:54 +0000
+
+rust-nettle-sys (2.2.0-1) unstable; urgency=medium
+
+  * Team upload.
+  * Package nettle-sys 2.2.0 from crates.io using debcargo 2.6.0
+  * Adjust patches for new upstream.
+
+ -- Peter Michael Green <plugwash@debian.org>  Thu, 15 Jun 2023 16:02:40 +0000
+
 rust-nettle-sys (2.1.0-2) unstable; urgency=medium
 
   * Team upload.
diff --git a/src/nettle-sys/debian/copyright b/src/nettle-sys/debian/copyright
index 61534c5f9..780c48bcd 100644
--- a/src/nettle-sys/debian/copyright
+++ b/src/nettle-sys/debian/copyright
@@ -10,14 +10,14 @@ Source: https://gitlab.com/sequoia-pgp/nettle-sys
 Files: *
 Copyright:
  2017-2019 juga <juga@sequoia-pgp.org>
- 2017-2022 Justus Winter <justus@sequoia-pgp.org>
+ 2017-2023 Justus Winter <justus@sequoia-pgp.org>
  2017-2019 Kai Michaelis <kai@sequoia-pgp.org>
  2017-2019 Neal H. Walfield <neal@sequoia-pgp.org>
 License: LGPL-3.0 or GPL-2.0 or GPL-3.0
 
 Files: debian/*
 Copyright:
- 2019-2022 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
+ 2019-2023 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
  2019-2022 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
  2019 kpcyrd <git@rxv.cc>
 License: LGPL-3.0 or GPL-2.0 or GPL-3.0
diff --git a/src/nettle-sys/debian/copyright.debcargo.hint b/src/nettle-sys/debian/copyright.debcargo.hint
index 7876a380e..893e14d57 100644
--- a/src/nettle-sys/debian/copyright.debcargo.hint
+++ b/src/nettle-sys/debian/copyright.debcargo.hint
@@ -16,21 +16,21 @@ Comment:
  be correct information so you should review and fix this before uploading to
  the archive.
 
-Files: ./LICENSE-GPL2
+Files: LICENSE-GPL2
 Copyright: 1989, 1991 Free Software Foundation, Inc.,
 License: UNKNOWN-LICENSE; FIXME (overlay)
 Comment:
  FIXME (overlay): These notices are extracted from files. Please review them
  before uploading to the archive.
 
-Files: ./LICENSE-GPL3
+Files: LICENSE-GPL3
 Copyright: 2007 Free Software Foundation, Inc. <http://fsf.org/>
 License: UNKNOWN-LICENSE; FIXME (overlay)
 Comment:
  FIXME (overlay): These notices are extracted from files. Please review them
  before uploading to the archive.
 
-Files: ./LICENSE-LGPL3
+Files: LICENSE-LGPL3
 Copyright: 2007 Free Software Foundation, Inc. <http://fsf.org/>
 License: UNKNOWN-LICENSE; FIXME (overlay)
 Comment:
@@ -39,9 +39,9 @@ Comment:
 
 Files: debian/*
 Copyright:
- 2019-2022 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
- 2019-2022 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
- 2019-2022 kpcyrd <git@rxv.cc>
+ 2019-2023 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
+ 2019-2023 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
+ 2019-2023 kpcyrd <git@rxv.cc>
 License: LGPL-3.0 or GPL-2.0 or GPL-3.0
 
 License: GPL-2.0
diff --git a/src/nettle-sys/debian/patches/0001-Avoid-msvc-dependencies.patch b/src/nettle-sys/debian/patches/0001-Avoid-msvc-dependencies.patch
index b88900c78..fb58ab48a 100644
--- a/src/nettle-sys/debian/patches/0001-Avoid-msvc-dependencies.patch
+++ b/src/nettle-sys/debian/patches/0001-Avoid-msvc-dependencies.patch
@@ -18,20 +18,14 @@ diff --git a/Cargo.toml b/Cargo.toml
 index be03fed..07dc4f0 100644
 --- a/Cargo.toml
 +++ b/Cargo.toml
-@@ -39,5 +39,3 @@ version = "0.3"
- 
- [build-dependencies.tempfile]
- version = "3"
+@@ -39,2 +39,0 @@ version = "0.3"
 -[target."cfg(target_env = \"msvc\")".build-dependencies.vcpkg]
 -version = "0.2.9"
 diff --git a/build.rs b/build.rs
 index 7a7c524..e0dbe66 100644
 --- a/build.rs
 +++ b/build.rs
-@@ -88,19 +88,6 @@ fn check_cv448(includes: &[PathBuf]) -> bool {
-                                     "nettle_ed448_shake256_sign"))
- }
- 
+@@ -88,14 +88,0 @@ fn check_cv448(includes: &[PathBuf]) -> bool {
 -#[cfg(target_env = "msvc")]
 -fn try_vcpkg() -> Result<Config> {
 -    let lib = vcpkg::Config::new()
@@ -39,15 +33,10 @@ index 7a7c524..e0dbe66 100644
 -        .find_package("nettle")?;
 -
 -    Ok(Config {
--        have_cv448: check_cv448(&include_paths),
--        include_paths,
+-        have_cv448: check_cv448(&lib.include_paths),
+-        have_ocb: check_ocb(&include_paths),
+-        include_paths: lib.include_paths,
 -    })
 -}
 -
 -#[cfg(not(target_env = "msvc"))]
- fn try_vcpkg() -> Result<Config> { Err("not applicable")?; unreachable!() }
- 
- fn print_library(lib: &pkg_config::Library, mode: &str) {
--- 
-2.34.1
-
diff --git a/src/nettle-sys/debian/patches/0002-Relax-dependency-on-bindgen.patch b/src/nettle-sys/debian/patches/0002-Relax-dependency-on-bindgen.patch
index 121d0898d..abcd36cd0 100644
--- a/src/nettle-sys/debian/patches/0002-Relax-dependency-on-bindgen.patch
+++ b/src/nettle-sys/debian/patches/0002-Relax-dependency-on-bindgen.patch
@@ -1,13 +1,17 @@
 From 41ed20b9703027dfd7c644099bdbe7a9de3775f5 Mon Sep 17 00:00:00 2001
-From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
+From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>, Peter Michael Green <plugwash@debian.org>
 Date: Sat, 5 Feb 2022 19:54:40 -0500
 Subject: [PATCH 2/2] Relax dependency on bindgen
-
+Last-Updated: Sat, 12 Aug 2023 21:50:43 +0200 werdahias@riseup.net
 Forwarded: not-needed
 
 This dependency is designed by upstream to keep their MSRV low, but
 debian doesn't need to worry about that (the distro's MSRV is managed
 differently).
+
+However due to Debian bug #967954 the upper limit on the build-dependency in
+Debian does need to be restricted to not allow upstream minor versions greater
+than the one currently in Debian.
 ---
  Cargo.toml | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
@@ -16,12 +20,12 @@ Index: nettle-sys/Cargo.toml
 ===================================================================
 --- nettle-sys.orig/Cargo.toml
 +++ nettle-sys/Cargo.toml
-@@ -27,7 +27,7 @@ dependencies = ["pkg-config", "nettle-de
- [dependencies.libc]
+@@ -42,7 +42,7 @@ dependencies = [
  version = "0.2"
+ 
  [build-dependencies.bindgen]
--version = ">= 0.53.1, < 0.58.0"
-+version = ">= 0.53.1, < 0.61.0"
+-version = ">= 0.58.0, < 0.64.0"
++version = "0.66"
  features = ["runtime"]
  default-features = false
  
-- 
2.30.2





^ permalink raw reply	[flat|nested] 4+ messages in thread

* [pve-devel] [PATCH 2/2] backport nettle-sys
  2023-10-12  8:37 [pve-devel] [PATCH debcargo-conf boookworm 0/2] update nettle-sys to 2.2 Dominik Csapak
  2023-10-12  8:37 ` [pve-devel] [PATCH 1/2] update nettle-sys Dominik Csapak
@ 2023-10-12  8:37 ` Dominik Csapak
  2023-10-12 14:11 ` [pve-devel] applied-series: [PATCH debcargo-conf boookworm 0/2] update nettle-sys to 2.2 Thomas Lamprecht
  2 siblings, 0 replies; 4+ messages in thread
From: Dominik Csapak @ 2023-10-12  8:37 UTC (permalink / raw)
  To: pve-devel

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 src/nettle-sys/debian/changelog | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/nettle-sys/debian/changelog b/src/nettle-sys/debian/changelog
index ca97618c9..d4a2de38a 100644
--- a/src/nettle-sys/debian/changelog
+++ b/src/nettle-sys/debian/changelog
@@ -1,3 +1,9 @@
+rust-nettle-sys (2.2.0-2~bpo12+pve1) proxmox-rust; urgency=medium
+
+  * Rebuild for Debian Bookworm / Proxmox
+
+ -- Proxmox Support Team <support@proxmox.com>  Thu, 12 Oct 2023 09:26:52 +0200
+
 rust-nettle-sys (2.2.0-2) unstable; urgency=medium
 
   * Package nettle-sys 2.2.0 from crates.io using debcargo 2.6.0
-- 
2.30.2





^ permalink raw reply	[flat|nested] 4+ messages in thread

* [pve-devel] applied-series: [PATCH debcargo-conf boookworm 0/2] update nettle-sys to 2.2
  2023-10-12  8:37 [pve-devel] [PATCH debcargo-conf boookworm 0/2] update nettle-sys to 2.2 Dominik Csapak
  2023-10-12  8:37 ` [pve-devel] [PATCH 1/2] update nettle-sys Dominik Csapak
  2023-10-12  8:37 ` [pve-devel] [PATCH 2/2] backport nettle-sys Dominik Csapak
@ 2023-10-12 14:11 ` Thomas Lamprecht
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Lamprecht @ 2023-10-12 14:11 UTC (permalink / raw)
  To: Proxmox VE development discussion, Dominik Csapak

Am 12/10/2023 um 10:37 schrieb Dominik Csapak:
> current nettle-sys 2.1 does not support our current packaged bindgen
> version (0.66), an update from debian unstable (and backport) fixes that
> 
> this packaged is used by sequoia-openpgp (which is used by
> proxmox-offline-mirror)
> 
> Dominik Csapak (2):
>   update nettle-sys
>   backport nettle-sys
> 
>  src/nettle-sys/debian/changelog               | 25 +++++++++++++++++++
>  src/nettle-sys/debian/copyright               |  4 +--
>  src/nettle-sys/debian/copyright.debcargo.hint | 12 ++++-----
>  .../0001-Avoid-msvc-dependencies.patch        | 21 ++++------------
>  .../0002-Relax-dependency-on-bindgen.patch    | 16 +++++++-----
>  5 files changed, 48 insertions(+), 30 deletions(-)
> 


applied, with a bit more context added to the commit message, thanks!




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-10-12 14:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-12  8:37 [pve-devel] [PATCH debcargo-conf boookworm 0/2] update nettle-sys to 2.2 Dominik Csapak
2023-10-12  8:37 ` [pve-devel] [PATCH 1/2] update nettle-sys Dominik Csapak
2023-10-12  8:37 ` [pve-devel] [PATCH 2/2] backport nettle-sys Dominik Csapak
2023-10-12 14:11 ` [pve-devel] applied-series: [PATCH debcargo-conf boookworm 0/2] update nettle-sys to 2.2 Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal