public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Lukas Wagner <l.wagner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH debcargo-config proxmox/trixie 2/4] update email-encoding to 0.3.1
Date: Fri, 23 May 2025 10:30:18 +0200	[thread overview]
Message-ID: <20250523083020.63853-3-l.wagner@proxmox.com> (raw)
In-Reply-To: <20250523083020.63853-1-l.wagner@proxmox.com>

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
---
 src/email-encoding/debian/changelog           |  7 +++
 .../debian/copyright.debcargo.hint            |  6 +-
 .../debian/patches/downgrade_base64.diff      | 57 -------------------
 src/email-encoding/debian/patches/series      |  1 -
 4 files changed, 10 insertions(+), 61 deletions(-)
 delete mode 100644 src/email-encoding/debian/patches/downgrade_base64.diff
 delete mode 100644 src/email-encoding/debian/patches/series

diff --git a/src/email-encoding/debian/changelog b/src/email-encoding/debian/changelog
index c4e978bbdc..0ccc97f5e8 100644
--- a/src/email-encoding/debian/changelog
+++ b/src/email-encoding/debian/changelog
@@ -1,3 +1,10 @@
+rust-email-encoding (0.3.1-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
+
+  * Package email-encoding 0.3.1 from crates.io using debcargo 2.7.8
+  * Drop unneeded base64 version relaxation patch
+
+ -- Lukas Wagner <l.wagner@proxmox.com>  Thu, 22 May 2025 16:08:00 +0200
+
 rust-email-encoding (0.2.0-1~bpo12+pve1) proxmox-rust; urgency=medium
 
   * Rebuild for Debian Bookworm / Proxmox
diff --git a/src/email-encoding/debian/copyright.debcargo.hint b/src/email-encoding/debian/copyright.debcargo.hint
index e8d3e445ac..b03aea424c 100644
--- a/src/email-encoding/debian/copyright.debcargo.hint
+++ b/src/email-encoding/debian/copyright.debcargo.hint
@@ -13,7 +13,7 @@ Comment:
  the archive.
 
 Files: LICENSE-MIT
-Copyright: 2021-2022 Paolo Barbolini <paolo@paolo565.org>
+Copyright: 2021-2024 Paolo Barbolini <paolo@paolo565.org>
 License: UNKNOWN-LICENSE; FIXME (overlay)
 Comment:
  FIXME (overlay): These notices are extracted from files. Please review them
@@ -21,8 +21,8 @@ Comment:
 
 Files: debian/*
 Copyright:
- 2023 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
- 2023 Lukas Wagner <l.wagner@proxmox.com>
+ 2023-2025 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
+ 2023-2025 Lukas Wagner <l.wagner@proxmox.com>
 License: MIT or Apache-2.0
 
 License: Apache-2.0
diff --git a/src/email-encoding/debian/patches/downgrade_base64.diff b/src/email-encoding/debian/patches/downgrade_base64.diff
deleted file mode 100644
index 42733f1d8c..0000000000
--- a/src/email-encoding/debian/patches/downgrade_base64.diff
+++ /dev/null
@@ -1,57 +0,0 @@
-diff --git a/Cargo.toml b/Cargo.toml
-index 0dffd11..7bd1373 100644
---- a/Cargo.toml
-+++ b/Cargo.toml
-@@ -29,7 +29,7 @@ license = "MIT OR Apache-2.0"
- repository = "https://github.com/lettre/email-encoding"
- 
- [dependencies.base64]
--version = "0.21"
-+version = "0.13"
- default-features = false
- 
- [dependencies.memchr]
-diff --git a/src/body/base64.rs b/src/body/base64.rs
-index d799ec6..402e615 100644
---- a/src/body/base64.rs
-+++ b/src/body/base64.rs
-@@ -3,7 +3,7 @@
- use std::fmt::{self, Write};
- use std::str;
- 
--use ::base64::Engine;
-+use base64;
- 
- const LINE_LEN: usize = 76;
- const CRLF: &str = "\r\n";
-@@ -44,9 +44,7 @@ pub fn encode(b: &[u8], w: &mut dyn Write) -> fmt::Result {
- 
-     let mut chunks = b.chunks(LINE_LEN / 4 * 3).peekable();
-     while let Some(chunk) = chunks.next() {
--        let len = ::base64::engine::general_purpose::STANDARD
--            .encode_slice(chunk, &mut buf)
--            .unwrap();
-+        let len = base64::encode_config_slice(chunk, base64::STANDARD, &mut buf);
- 
-         w.write_str(str::from_utf8(&buf[..len]).expect("base64 produced an invalid encode"))?;
-         if chunks.peek().is_some() {
-diff --git a/src/headers/rfc2047.rs b/src/headers/rfc2047.rs
-index 8857aba..a5ebf0e 100644
---- a/src/headers/rfc2047.rs
-+++ b/src/headers/rfc2047.rs
-@@ -45,11 +45,11 @@ pub fn encode(mut s: &str, w: &mut EmailWriter<'_>) -> fmt::Result {
-         // Write the prefix
-         w.write_str(ENCODING_START_PREFIX)?;
- 
-+
-+
-         // Encode `word`
--        let encoder = base64::display::Base64Display::new(
--            word.as_bytes(),
--            &base64::engine::general_purpose::STANDARD,
--        );
-+        use base64::display::Base64Display;
-+        let encoder = Base64Display::with_config(word.as_bytes(), base64::STANDARD);
-         write!(w, "{}", encoder)?;
- 
-         // Write the suffix
diff --git a/src/email-encoding/debian/patches/series b/src/email-encoding/debian/patches/series
deleted file mode 100644
index c39b492007..0000000000
--- a/src/email-encoding/debian/patches/series
+++ /dev/null
@@ -1 +0,0 @@
-downgrade_base64.diff
-- 
2.39.5



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


  parent reply	other threads:[~2025-05-23  8:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-23  8:30 [pve-devel] [PATCH debcargo-config proxmox/trixie 0/4] package lettre and Lukas Wagner
2025-05-23  8:30 ` [pve-devel] [PATCH debcargo-config proxmox/trixie 1/4] import email-encoding from bookworm Lukas Wagner
2025-05-23  8:30 ` Lukas Wagner [this message]
2025-05-23  8:30 ` [pve-devel] [PATCH debcargo-config proxmox/trixie 3/4] import lettre " Lukas Wagner
2025-05-23  8:30 ` [pve-devel] [PATCH debcargo-config proxmox/trixie 4/4] update lettre to 0.11.13 Lukas Wagner
2025-05-23  9:13 ` [pve-devel] applied-series: [PATCH debcargo-config proxmox/trixie 0/4] package lettre and Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250523083020.63853-3-l.wagner@proxmox.com \
    --to=l.wagner@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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