public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-crypt/sequoia-sq/, app-crypt/sequoia-sq/files/
@ 2023-01-10  9:28 Florian Schmaus
  0 siblings, 0 replies; only message in thread
From: Florian Schmaus @ 2023-01-10  9:28 UTC (permalink / raw
  To: gentoo-commits

commit:     3f81f088ac63f8a7d3ae786c30119f723e7d9c53
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 10 09:28:08 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Tue Jan 10 09:28:41 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f81f088

app-crypt/sequoia-sq: fix compilation with newer rustc

Closes: https://bugs.gentoo.org/873085
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 .../sequoia-sq-0.27.0-Explicitly-drop-the-Box.patch  | 20 ++++++++++++++++++++
 app-crypt/sequoia-sq/sequoia-sq-0.27.0.ebuild        |  6 +++++-
 2 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/app-crypt/sequoia-sq/files/sequoia-sq-0.27.0-Explicitly-drop-the-Box.patch b/app-crypt/sequoia-sq/files/sequoia-sq-0.27.0-Explicitly-drop-the-Box.patch
new file mode 100644
index 000000000000..3488ac62d6ad
--- /dev/null
+++ b/app-crypt/sequoia-sq/files/sequoia-sq-0.27.0-Explicitly-drop-the-Box.patch
@@ -0,0 +1,20 @@
+From 7916f90421ecb9a75e32f0284459bcc9a3fd02b0 Mon Sep 17 00:00:00 2001
+From: Justus Winter <justus@sequoia-pgp.org>
+Date: Wed, 19 Oct 2022 14:55:58 +0200
+Subject: [PATCH] openpgp: Explicitly drop the Box.
+
+  - Appeases the compiler that now complains about the unused result.
+--- a/openpgp/src/crypto/mem.rs
++++ b/openpgp/src/crypto/mem.rs
+@@ -159,7 +159,7 @@ impl Drop for Protected {
+         unsafe {
+             let len = self.len();
+             memsec::memzero(self.as_mut().as_mut_ptr(), len);
+-            Box::from_raw(self.0);
++            drop(Box::from_raw(self.0));
+         }
+     }
+ }
+-- 
+2.38.2
+

diff --git a/app-crypt/sequoia-sq/sequoia-sq-0.27.0.ebuild b/app-crypt/sequoia-sq/sequoia-sq-0.27.0.ebuild
index 4b5c805418cd..2beff104d292 100644
--- a/app-crypt/sequoia-sq/sequoia-sq-0.27.0.ebuild
+++ b/app-crypt/sequoia-sq/sequoia-sq-0.27.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2021-2022 Gentoo Authors
+# Copyright 2021-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # Generate base ebuild via
@@ -412,6 +412,10 @@ KEYWORDS="amd64 ~ppc64"
 
 S="${WORKDIR}/${PN}-v${PV}"
 
+PATCHES=(
+	"${FILESDIR}"/${PN}-0.27.0-Explicitly-drop-the-Box.patch
+)
+
 QA_FLAGS_IGNORED="usr/bin/sq"
 
 COMMON_DEPEND="


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-10  9:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-10  9:28 [gentoo-commits] repo/gentoo:master commit in: app-crypt/sequoia-sq/, app-crypt/sequoia-sq/files/ Florian Schmaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox