Your message dated Sat, 08 Mar 2025 21:10:38 +0000
with message-id <[email protected]>
and subject line Bug#1098684: fixed in rust-rustls-native-certs 0.6.3-4.1
has caused the Debian Bug report #1098684,
regarding rust-rustls-native-certs - upcoming rust-rustls-pemfile update.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1098684: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098684
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: rust-rustls-native-certs
Version: 0.6.3-4

I hope to update rust-rustls-pemfile to version 2 soon, you expressed
in bug 1098278 that you would prefer the rustls-pemfile and
rustls-native-certs updates to be handed seperately, so I have
prepared a patch for the old rustls-native-certs to use the new
rustls-pemfile.
diff -Nru rust-rustls-native-certs-0.6.3/debian/changelog 
rust-rustls-native-certs-0.6.3/debian/changelog
--- rust-rustls-native-certs-0.6.3/debian/changelog     2024-06-11 
10:30:29.000000000 +0000
+++ rust-rustls-native-certs-0.6.3/debian/changelog     2025-02-22 
17:02:14.000000000 +0000
@@ -1,3 +1,10 @@
+rust-rustls-native-certs (0.6.3-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch to support rustls-pemfile 2.
+
+ -- Peter Michael Green <[email protected]>  Sat, 22 Feb 2025 17:02:14 +0000
+
 rust-rustls-native-certs (0.6.3-4) unstable; urgency=medium
 
   * acknowledge NMU;
diff -Nru rust-rustls-native-certs-0.6.3/debian/control 
rust-rustls-native-certs-0.6.3/debian/control
--- rust-rustls-native-certs-0.6.3/debian/control       2024-06-11 
10:10:13.000000000 +0000
+++ rust-rustls-native-certs-0.6.3/debian/control       2025-02-22 
17:02:14.000000000 +0000
@@ -7,7 +7,7 @@
  librust-openssl-probe-0.1+default-dev <!nocheck>,
  librust-ring-0.17+default-dev <!nocheck>,
  librust-rustls-0.21+default-dev <!nocheck>,
- librust-rustls-pemfile-1+default-dev <!nocheck>,
+ librust-rustls-pemfile-2+default-dev <!nocheck>,
  librust-rustls-webpki-0.101+default-dev <!nocheck>,
  librust-serial-test-2+default-dev <!nocheck>,
  librust-untrusted-0.9+default-dev <!nocheck>,
@@ -24,7 +24,7 @@
 Multi-Arch: foreign
 Depends:
  librust-openssl-probe-0.1+default-dev,
- librust-rustls-pemfile-1+default-dev,
+ librust-rustls-pemfile-2+default-dev,
  ${misc:Depends},
 Suggests:
  ca-certificates,
diff -Nru 
rust-rustls-native-certs-0.6.3/debian/patches/2006_rustls-pemfile.patch 
rust-rustls-native-certs-0.6.3/debian/patches/2006_rustls-pemfile.patch
--- rust-rustls-native-certs-0.6.3/debian/patches/2006_rustls-pemfile.patch     
1970-01-01 00:00:00.000000000 +0000
+++ rust-rustls-native-certs-0.6.3/debian/patches/2006_rustls-pemfile.patch     
2025-02-22 16:54:43.000000000 +0000
@@ -0,0 +1,50 @@
+Description: Update to rustls-pemfile 2
+ This patch was based on a change extracted from
+ 
https://github.com/rustls/rustls-native-certs/commit/7d7887c8731236a55a7720d753dc6bbaa7033261
+ it was adapted by Peter Michael Green to avoid changing the data types 
returned
+ by rustls-native-certs.
+Author: Peter Michael Green <[email protected]>
+Author: Dirkjan Ochtman <[email protected]>
+Last-Update: 2025-02-22
+
+Index: rust-rustls-native-certs-0.6.3/Cargo.toml
+===================================================================
+--- rust-rustls-native-certs-0.6.3.orig/Cargo.toml
++++ rust-rustls-native-certs-0.6.3/Cargo.toml
+@@ -11,7 +11,7 @@ repository = "https://github.com/ctz/rus
+ categories = ["network-programming", "cryptography"]
+ 
+ [dependencies]
+-rustls-pemfile = "1"
++rustls-pemfile = "2"
+ 
+ [dev-dependencies]
+ ring = "0.17"
+Index: rust-rustls-native-certs-0.6.3/src/lib.rs
+===================================================================
+--- rust-rustls-native-certs-0.6.3.orig/src/lib.rs
++++ rust-rustls-native-certs-0.6.3/src/lib.rs
+@@ -83,14 +83,13 @@ fn load_pem_certs(path: &Path) -> Result
+     let f = File::open(path)?;
+     let mut f = BufReader::new(f);
+ 
+-    match rustls_pemfile::certs(&mut f) {
+-        Ok(contents) => Ok(contents
+-            .into_iter()
+-            .map(Certificate)
+-            .collect()),
+-        Err(err) => Err(Error::new(
+-            ErrorKind::InvalidData,
+-            format!("Could not load PEM file {path:?}: {err}"),
+-        )),
+-    }
++    rustls_pemfile::certs(&mut f)
++        .map(|result| result.map(|cert| Certificate(cert.to_vec())))
++        .collect::<Result<Vec<_>, _>>()
++        .map_err(|err| {
++            Error::new(
++                ErrorKind::InvalidData,
++                format!("could not load PEM file {path:?}: {err}"),
++            )
++        })
+ }
diff -Nru rust-rustls-native-certs-0.6.3/debian/patches/series 
rust-rustls-native-certs-0.6.3/debian/patches/series
--- rust-rustls-native-certs-0.6.3/debian/patches/series        2024-06-11 
10:25:29.000000000 +0000
+++ rust-rustls-native-certs-0.6.3/debian/patches/series        2025-02-22 
16:28:30.000000000 +0000
@@ -4,3 +4,4 @@
 2002_schannel.patch
 2004_x509-parser.patch
 2005_webpki-roots.patch
+2006_rustls-pemfile.patch

--- End Message ---
--- Begin Message ---
Source: rust-rustls-native-certs
Source-Version: 0.6.3-4.1
Done: Peter Michael Green <[email protected]>

We believe that the bug you reported is fixed in the latest version of
rust-rustls-native-certs, which is due to be installed in the Debian FTP 
archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Peter Michael Green <[email protected]> (supplier of updated 
rust-rustls-native-certs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 08 Mar 2025 16:09:22 +0000
Source: rust-rustls-native-certs
Architecture: source
Version: 0.6.3-4.1
Distribution: unstable
Urgency: medium
Maintainer: Jonas Smedegaard <[email protected]>
Changed-By: Peter Michael Green <[email protected]>
Closes: 1098684
Changes:
 rust-rustls-native-certs (0.6.3-4.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Add patch to support rustls-pemfile 2 (Closes: #1098684).
Checksums-Sha1:
 2dd8e397c2de32478b619e2d1ea4cf4f518f3514 2745 
rust-rustls-native-certs_0.6.3-4.1.dsc
 639823faf0c350e9c686889eb5831dd962e8ecaf 18628 
rust-rustls-native-certs_0.6.3-4.1.debian.tar.xz
 b50e3ef8e2dd647adc4093d53c53123839041df1 11587 
rust-rustls-native-certs_0.6.3-4.1_source.buildinfo
Checksums-Sha256:
 8f3e32456484a487536e093a822f873f5e1c86b07348b870b1d9e5ba8bf7609f 2745 
rust-rustls-native-certs_0.6.3-4.1.dsc
 28ba89e1b16ac4f312ac8282e050af47bc4d95640ab3b5bd6edc3d2427c86d27 18628 
rust-rustls-native-certs_0.6.3-4.1.debian.tar.xz
 ca7a8abd89dbde8b3ce646cbb76f02cb87a10f4262ca155818dbf4bc2008522b 11587 
rust-rustls-native-certs_0.6.3-4.1_source.buildinfo
Files:
 78a3e8f59347d3a323e0eabdcc440e17 2745 rust optional 
rust-rustls-native-certs_0.6.3-4.1.dsc
 9d824f11465bceb7915ca14c77781a10 18628 rust optional 
rust-rustls-native-certs_0.6.3-4.1.debian.tar.xz
 18a6bf09edb9a067e0997904a23d887c 11587 rust optional 
rust-rustls-native-certs_0.6.3-4.1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCAAyFiEEU0DQATYMplbjSX63DEjqKnqP/XsFAmfMrLwUHHBsdWd3YXNo
QGRlYmlhbi5vcmcACgkQDEjqKnqP/Xv7Ow/9FqdRDJEX2gIX60DEYyM8p3XYAfvX
Wx2yzyWxQp3faRyHiQTrJMcKoCWLFYNUQybSGm0M0/Y0DI8bbUD0+hzULLRHbav8
DKToYIv7faWKXOWKJcQeOMJpvHy9QkB3rOwubM+p8+tA1EHYOnzmjZEixjGUvSUb
Y+tBXkWaQj/wJ1W4qYvY37CpCiECfKLOdphHfivmO5WHMI6kw7SlyFMABRcuBf6v
5SpseaSAYG+PD4253N9ZtETS7lsAOIehQvAShSwFluWW014GutIFFu9qeQ5lRwyT
wH5/gUin8Lsv4R7fF/aLaww6Dr+xJmPFA1DMRrIkoKsbXAPBMCQywvInpLtII/Dw
pn///egs0yAtiM0WWe5ZWxrgtu3Tqj0SGjtgq3n4qnRu5dznrNnET1hBxBkj1aRa
6I+gQS4yjIWA2ucfuTvA2rcHCeX7zwrP+8L8xKcwfTD8N+IjRB4ztjDa57RWVnwJ
x3cyIOx6uhgLcnh0j2DzCymZQyrONWhmk6klnKb7Wl9LHVCuLI5Am93gc56vkyDU
6qFFNi5TbkGTZQATs2R4rvrPUJMfJW8LIu/2VkNsCCgH8mUnvMCSoCydtuc6RiIp
ZKRfRqiBO6DwAkHlSGlGobB8fRUQAPpIw3kzNWPqlrV8XhUxqGKAzdq1qTvyItkP
oq9jVrUEH2wEdn8=
=3OJO
-----END PGP SIGNATURE-----

Attachment: pgpPbfKkkFYPD.pgp
Description: PGP signature


--- End Message ---

Reply via email to