Ports: Make libksba/libassuan/ntbtls use Serenity's gpg-error-config

This is likely because we usually used the host's version of the file.
I happen to use a newer libgpg-error (which is relevant because that
particular executable has been renamed, so my system no longer contains
a file of the name gpg-error-config), which revealed this latent bug.
This commit is contained in:
Ben Wiederhake 2023-04-09 02:11:14 +02:00 committed by Jelle Raaijmakers
parent 5a94e8dfd0
commit c94924691d
5 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,22 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ben Wiederhake <BenWiederhake.GitHub@gmx.de>
Date: Sun, 9 Apr 2023 11:48:19 +0200
Subject: [PATCH] Link against libiconv
---
sm/Makefile.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sm/Makefile.in b/sm/Makefile.in
index 06c15db5b91d89dba33168436e4e316533a012f5..c1b9f936aee31b4f515bc94ba2819a09180c74af 100644
--- a/sm/Makefile.in
+++ b/sm/Makefile.in
@@ -554,7 +554,7 @@ module_tests =
module_maint_tests = t-minip12
t_common_src =
t_common_ldadd = $(libcommon) $(LIBGCRYPT_LIBS) $(KSBA_LIBS) \
- $(GPG_ERROR_LIBS) $(LIBINTL)
+ $(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV)
t_minip12_CFLAGS = -DWITHOUT_NPTH=1 \
$(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)

View file

@ -0,0 +1,7 @@
# Patches for gnupg on SerenityOS
## `0001-Link-against-libiconv.patch`
Link against libiconv

View file

@ -7,6 +7,9 @@ config_sub_paths=("build-aux/config.sub")
depends=("libgpg-error")
files="https://gnupg.org/ftp/gcrypt/libassuan/libassuan-${version}.tar.bz2 libassuan-${version}.tar.bz2 8e8c2fcc982f9ca67dcbb1d95e2dc746b1739a4668bc20b3a3c5be632edb34e4"
auth_type=sha256
configopts=(
"--with-libgpg-error-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
)
pre_configure() {
export ac_cv_lib_pthread_pthread_create=no

View file

@ -7,6 +7,9 @@ config_sub_paths=("build-aux/config.sub")
depends=("libgpg-error")
files="https://gnupg.org/ftp/gcrypt/libksba/libksba-${version}.tar.bz2 libksba-${version}.tar.bz2 b0f4c65e4e447d9a2349f6b8c0e77a28be9531e4548ba02c545d1f46dc7bf921"
auth_type=sha256
configopts=(
"--with-libgpg-error-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
)
pre_configure() {
export ksba_cv_gcc_has_f_visibility=no

View file

@ -7,6 +7,14 @@ config_sub_paths=("build-aux/config.sub")
depends=("libgpg-error" "libksba" "libgcrypt" "zlib")
files="https://gnupg.org/ftp/gcrypt/ntbtls/ntbtls-${version}.tar.bz2 ntbtls-${version}.tar.bz2 649fe74a311d13e43b16b26ebaa91665ddb632925b73902592eac3ed30519e17"
auth_type=sha256
configopts=(
"--with-libgcrypt-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
"--with-libgpg-error-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
# It's documented as "--with-libksba-prefix" (note the "lib"), but if it is set it is
# immediately overwritten by whatever is given through "--with-ksba-prefix",
# EVEN IF the latter switch is not given, thus overwriting it with the empty string.
"--with-ksba-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
)
pre_configure() {
export ntbtls_cv_gcc_has_f_visibility=no