mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-31 10:58:21 -07:00
dev-util/librnp: fix build with botan-3.11
Closes: https://bugs.gentoo.org/971974 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
From fb7e0400a72344048d467c967bb3218a6106e595 Mon Sep 17 00:00:00 2001
|
||||
From: Markus Theil <markus.theil@secunet.com>
|
||||
Date: Mon, 16 Mar 2026 13:14:29 +0100
|
||||
Subject: [PATCH] fix build with Botan 3.11
|
||||
|
||||
Signed-off-by: Markus Theil <markus.theil@secunet.com>
|
||||
---
|
||||
src/lib/crypto/mem.cpp | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/lib/crypto/mem.cpp b/src/lib/crypto/mem.cpp
|
||||
index 94d90f5484..dbd2a143ed 100644
|
||||
--- a/src/lib/crypto/mem.cpp
|
||||
+++ b/src/lib/crypto/mem.cpp
|
||||
@@ -25,6 +25,7 @@
|
||||
*/
|
||||
|
||||
#include <cstdio>
|
||||
+#include <cstring>
|
||||
#include "mem.h"
|
||||
#include "logging.h"
|
||||
#include <botan/ffi.h>
|
||||
@@ -0,0 +1,28 @@
|
||||
diff '--color=auto' -Naur a/src/lib/crypto/ec.cpp b/src/lib/crypto/ec.cpp
|
||||
--- a/src/lib/crypto/ec.cpp 2025-11-21 15:12:02.000000000 +0200
|
||||
+++ b/src/lib/crypto/ec.cpp 2026-04-04 08:22:12.502593507 +0300
|
||||
@@ -40,6 +40,10 @@
|
||||
#include "botan/ecdh.h"
|
||||
#include <cassert>
|
||||
#endif
|
||||
+#include <botan/version.h>
|
||||
+#if BOTAN_VERSION_CODE >= BOTAN_VERSION_CODE_FOR(3, 11, 0)
|
||||
+#include <botan/ec_group.h>
|
||||
+#endif
|
||||
|
||||
namespace pgp {
|
||||
namespace ec {
|
||||
diff '--color=auto' -Naur a/src/lib/crypto/exdsa_ecdhkem.cpp b/src/lib/crypto/exdsa_ecdhkem.cpp
|
||||
--- a/src/lib/crypto/exdsa_ecdhkem.cpp 2025-11-21 15:12:02.000000000 +0200
|
||||
+++ b/src/lib/crypto/exdsa_ecdhkem.cpp 2026-04-04 08:34:49.684582995 +0300
|
||||
@@ -34,6 +34,10 @@
|
||||
#include "string.h"
|
||||
#include "utils.h"
|
||||
#include <cassert>
|
||||
+#include <botan/version.h>
|
||||
+#if BOTAN_VERSION_CODE >= BOTAN_VERSION_CODE_FOR(3, 11, 0)
|
||||
+#include <botan/ec_group.h>
|
||||
+#endif
|
||||
|
||||
ec_key_t::~ec_key_t()
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2022-2025 Gentoo Authors
|
||||
# Copyright 2022-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -27,6 +27,9 @@ DEPEND="${RDEPEND}
|
||||
test? ( dev-cpp/gtest )"
|
||||
BDEPEND="man? ( dev-ruby/asciidoctor )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/librnp-0.18.1-fix-build-with-botan-3.11.patch
|
||||
"${FILESDIR}"/librnp-0.18.1-switch-defines-for-botan-3.11.patch )
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_TESTING=$(usex test on off)
|
||||
|
||||
Reference in New Issue
Block a user