keepassxc: fix to build/run against botan 3.3.0

This commit is contained in:
Tim Biermann 2024-02-24 11:48:27 +01:00
parent 99b762fcb3
commit a3b3a7aa04
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 39 additions and 4 deletions

View File

@ -1,5 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3ynx3Eajq6y9KmDojYB6wygVSDLL3ozI2UZ31vo+aZfgPvf66ObLwhmjBj6ijR/Fp0VSzZAaJWh5kzQdAsYQrwg=
SHA256 (Pkgfile) = 5c9d9e1bd567c913345f3ef1c9284b87e3828f79392ee9dfcd5b772d59807c59
RWSagIOpLGJF39sT61bQRtS1VBRNSlXH8Mg2ZrrIZsw5BlQVDYgvYCCcyueND/ve99s8IGQPEkuJlb1cGV9vtkl/smxb5drTUgc=
SHA256 (Pkgfile) = 54a88d5c739f8377ced890f714a4e7cace58a3d083be5b879a74525afe4c7edc
SHA256 (.footprint) = 3518370ae52ecb1b0452d1aaa3b291be9b017eb1a4c8ac77c322ac88aa7fbdf1
SHA256 (keepassxc-2.7.6-src.tar.xz) = a58074509fa8e90f152c6247f73e75e126303081f55eedb4ea0cbb6fa980d670
SHA256 (cc0530ba4671a7e2b6ac4a6c00cd097f4114fd22.patch) = 7884a0425a5bf7e67d389d6b2545b06ee28b6d77e9164df13a8e78b5719d11ce

View File

@ -6,8 +6,9 @@
name=keepassxc
version=2.7.6
release=1
source=(https://github.com/keepassxreboot/keepassxc/releases/download/$version/$name-$version-src.tar.xz)
release=2
source=(https://github.com/keepassxreboot/keepassxc/releases/download/$version/$name-$version-src.tar.xz
cc0530ba4671a7e2b6ac4a6c00cd097f4114fd22.patch)
build() {
prt-get isinst ccache && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
@ -16,6 +17,8 @@ build() {
prt-get isinst asciidoctor && PKGMK_KEEPASSXC+=' -D WITH_XC_DOCS=ON' || PKGMK_KEEPASSXC+=' -D WITH_XC_DOCS=OFF'
prt-get isinst xorg-libxtst || PKGMK_KEEPASSXC+=' -D WITH_XC_X11=OFF'
patch -Np1 -d $name-$version -i $SRC/cc0530ba4671a7e2b6ac4a6c00cd097f4114fd22.patch
cmake -S $name-$version -B build -G Ninja $PKGMK_KEEPASSXC \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \

View File

@ -0,0 +1,31 @@
From cc0530ba4671a7e2b6ac4a6c00cd097f4114fd22 Mon Sep 17 00:00:00 2001
From: Dan Church <amphetamachine@gmail.com>
Date: Sun, 19 Nov 2023 11:05:21 -0600
Subject: [PATCH] Fix Botan 2/3 include
Botan::secure_scrub_memory -> defined in mem_ops.h
Botan::secure_vector -> defined in secmem.h
The reason only including secmem.h worked in previous (<3.0) versions of
Botan was because secmem.h included mem_ops.h. This is no longer the
case since commit
randombit/botan@49dbbcb2bfda05ef9d3f09848c9ba22fcbcd5066 (2023-10-11;
"Split out allocator helpers to allocator.h")
Fixes #10038
---
src/keys/FileKey.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/keys/FileKey.h b/src/keys/FileKey.h
index 795f03bdbc..65cd955a7c 100644
--- a/src/keys/FileKey.h
+++ b/src/keys/FileKey.h
@@ -19,6 +19,7 @@
#ifndef KEEPASSX_FILEKEY_H
#define KEEPASSX_FILEKEY_H
+#include <botan/mem_ops.h>
#include <botan/secmem.h>
#include "keys/Key.h"