summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libgcrypt/files
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/libgcrypt/files')
-rw-r--r--meta/recipes-support/libgcrypt/files/0001-libgcrypt-fix-m4-file-for-oe-core.patch145
-rw-r--r--meta/recipes-support/libgcrypt/files/0001-tests-Fix-link-errors-for-t-thread-local.patch38
-rw-r--r--meta/recipes-support/libgcrypt/files/0004-tests-Makefile.am-fix-undefined-reference-to-pthread.patch40
-rw-r--r--meta/recipes-support/libgcrypt/files/no-bench-slope.patch28
-rw-r--r--meta/recipes-support/libgcrypt/files/no-native-gpg-error.patch26
-rw-r--r--meta/recipes-support/libgcrypt/files/run-ptest9
6 files changed, 0 insertions, 286 deletions
diff --git a/meta/recipes-support/libgcrypt/files/0001-libgcrypt-fix-m4-file-for-oe-core.patch b/meta/recipes-support/libgcrypt/files/0001-libgcrypt-fix-m4-file-for-oe-core.patch
deleted file mode 100644
index 7b840644d4..0000000000
--- a/meta/recipes-support/libgcrypt/files/0001-libgcrypt-fix-m4-file-for-oe-core.patch
+++ /dev/null
@@ -1,145 +0,0 @@
1From fcb53181b18c00083a8b08625db74829cfd6b4b2 Mon Sep 17 00:00:00 2001
2From: Trevor Gamblin <trevor.gamblin@windriver.com>
3Date: Tue, 29 Oct 2019 14:08:32 -0400
4Subject: [PATCH] libgcrypt: fix m4 file for oe-core
5
6Modify libgcrypt pkgconfig specifically for oe-core. Changes
7are based on a previous patch from RP, using wiggle to
8incorporate the parts that aren't in the upstream pkgconfig
9settings.
10
11Upstream-Status: Inappropriate [oe-specific]
12
13Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
14---
15 src/libgcrypt.m4 | 90 +++---------------------------------------------
16 1 file changed, 4 insertions(+), 86 deletions(-)
17
18diff --git a/src/libgcrypt.m4 b/src/libgcrypt.m4
19index 353df81..b195e22 100644
20--- a/src/libgcrypt.m4
21+++ b/src/libgcrypt.m4
22@@ -116,41 +116,6 @@ dnl
23 AC_DEFUN([AM_PATH_LIBGCRYPT],
24 [ AC_REQUIRE([AC_CANONICAL_HOST])dnl
25 AC_REQUIRE([_AM_PATH_GPGRT_CONFIG])dnl
26- AC_ARG_WITH(libgcrypt-prefix,
27- AS_HELP_STRING([--with-libgcrypt-prefix=PFX],
28- [prefix where LIBGCRYPT is installed (optional)]),
29- libgcrypt_config_prefix="$withval", libgcrypt_config_prefix="")
30- if test x"${LIBGCRYPT_CONFIG}" = x ; then
31- if test x"${libgcrypt_config_prefix}" != x ; then
32- LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
33- fi
34- fi
35-
36- use_gpgrt_config=""
37- if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
38- if $GPGRT_CONFIG libgcrypt --exists; then
39- LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
40- AC_MSG_NOTICE([Use gpgrt-config as libgcrypt-config])
41- use_gpgrt_config=yes
42- fi
43- fi
44- if test -z "$use_gpgrt_config"; then
45- if test x"${LIBGCRYPT_CONFIG}" = x ; then
46- case "${SYSROOT}" in
47- /*)
48- if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
49- LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
50- fi
51- ;;
52- '')
53- ;;
54- *)
55- AC_MSG_WARN([Ignoring \$SYSROOT as it is not an absolute path.])
56- ;;
57- esac
58- fi
59- AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config, no)
60- fi
61
62 tmp=ifelse([$1], ,1:1.2.0,$1)
63 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
64@@ -161,56 +126,13 @@ AC_DEFUN([AM_PATH_LIBGCRYPT],
65 min_libgcrypt_version="$tmp"
66 fi
67
68- AC_MSG_CHECKING(for LIBGCRYPT - version >= $min_libgcrypt_version)
69- ok=no
70- if test "$LIBGCRYPT_CONFIG" != "no" ; then
71- req_major=`echo $min_libgcrypt_version | \
72- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
73- req_minor=`echo $min_libgcrypt_version | \
74- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
75- req_micro=`echo $min_libgcrypt_version | \
76- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
77- if test -z "$use_gpgrt_config"; then
78- libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
79- else
80- libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
81- fi
82- major=`echo $libgcrypt_config_version | \
83- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
84- minor=`echo $libgcrypt_config_version | \
85- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
86- micro=`echo $libgcrypt_config_version | \
87- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'`
88- if test "$major" -gt "$req_major"; then
89- ok=yes
90- else
91- if test "$major" -eq "$req_major"; then
92- if test "$minor" -gt "$req_minor"; then
93- ok=yes
94- else
95- if test "$minor" -eq "$req_minor"; then
96- if test "$micro" -ge "$req_micro"; then
97- ok=yes
98- fi
99- fi
100- fi
101- fi
102- fi
103- fi
104- if test $ok = yes; then
105- AC_MSG_RESULT([yes ($libgcrypt_config_version)])
106- else
107- AC_MSG_RESULT(no)
108- fi
109+ PKG_CHECK_MODULES(LIBGCRYPT, [libgcrypt >= $min_libgcrypt_version], [ok=yes], [ok=no])
110+
111 if test $ok = yes; then
112 # If we have a recent libgcrypt, we should also check that the
113 # API is compatible
114 if test "$req_libgcrypt_api" -gt 0 ; then
115- if test -z "$use_gpgrt_config"; then
116- tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
117- else
118- tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
119- fi
120+ tmp=`$PKG_CONFIG --variable=api_version libgcrypt`
121 if test "$tmp" -gt 0 ; then
122 AC_MSG_CHECKING([LIBGCRYPT API version])
123 if test "$req_libgcrypt_api" -eq "$tmp" ; then
124@@ -223,11 +145,9 @@ AC_DEFUN([AM_PATH_LIBGCRYPT],
125 fi
126 fi
127 if test $ok = yes; then
128- LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
129- LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
130 ifelse([$2], , :, [$2])
131 if test -z "$use_gpgrt_config"; then
132- libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
133+ libgcrypt_config_host=`$PKG_CONFIG --variable=host libgcrypt`
134 else
135 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
136 fi
137@@ -245,8 +165,6 @@ AC_DEFUN([AM_PATH_LIBGCRYPT],
138 fi
139 fi
140 else
141- LIBGCRYPT_CFLAGS=""
142- LIBGCRYPT_LIBS=""
143 ifelse([$3], , :, [$3])
144 fi
145 AC_SUBST(LIBGCRYPT_CFLAGS)
diff --git a/meta/recipes-support/libgcrypt/files/0001-tests-Fix-link-errors-for-t-thread-local.patch b/meta/recipes-support/libgcrypt/files/0001-tests-Fix-link-errors-for-t-thread-local.patch
deleted file mode 100644
index 8dc2fe328c..0000000000
--- a/meta/recipes-support/libgcrypt/files/0001-tests-Fix-link-errors-for-t-thread-local.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1From 942e232ded48fa08d2bda417ae8ad8c03d644372 Mon Sep 17 00:00:00 2001
2From: Collin Funk <collin.funk1@gmail.com>
3Date: Wed, 27 Aug 2025 11:49:06 +0800
4Subject: [PATCH] tests: Fix link errors for t-thread-local.
5
6On platforms where pthread_create is not in libc t-thread-local fails to
7link. Issue found on NetBSD 10.0.
8* tests/Makefile.am (t_thread_local_LDADD): Add $(standard_ldadd),
9$(GPG_ERROR_MT_LIBS), and @LDADD_FOR_TESTS_KLUDGE@.
10(t_thread_local_CFLAGS): Add $(GPG_ERROR_MT_CFLAGS).
11
12--
13
14Upstream-Status: Backport [793eda7b258a562757b51c96044b103b638f1a63]
15GnuPG-bug-id: 7634
16Signed-off-by: Collin Funk <collin.funk1@gmail.com>
17Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
18Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
19---
20 tests/Makefile.am | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23diff --git a/tests/Makefile.am b/tests/Makefile.am
24index 4800135..f0f7adb 100644
25--- a/tests/Makefile.am
26+++ b/tests/Makefile.am
27@@ -98,7 +98,7 @@ testapi_LDADD = $(standard_ldadd) @LDADD_FOR_TESTS_KLUDGE@
28 t_lock_LDADD = $(standard_ldadd) $(GPG_ERROR_MT_LIBS) @LDADD_FOR_TESTS_KLUDGE@
29 t_lock_CFLAGS = $(GPG_ERROR_MT_CFLAGS) -lpthread
30 t_thread_local_LDADD = $(standard_ldadd) $(GPG_ERROR_MT_LIBS) @LDADD_FOR_TESTS_KLUDGE@
31-t_thread_local_CFLAGS = $(GPG_ERROR_MT_CFLAGS)
32+t_thread_local_CFLAGS = $(GPG_ERROR_MT_CFLAGS) -lpthread
33 testdrv_LDADD = $(LDADD_FOR_TESTS_KLUDGE)
34
35 # Build a version of the test driver for the build platform.
36--
372.34.1
38
diff --git a/meta/recipes-support/libgcrypt/files/0004-tests-Makefile.am-fix-undefined-reference-to-pthread.patch b/meta/recipes-support/libgcrypt/files/0004-tests-Makefile.am-fix-undefined-reference-to-pthread.patch
deleted file mode 100644
index bbd48ebeee..0000000000
--- a/meta/recipes-support/libgcrypt/files/0004-tests-Makefile.am-fix-undefined-reference-to-pthread.patch
+++ /dev/null
@@ -1,40 +0,0 @@
1From a3496435dcc223a914eec5e61e853934fd4eb635 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Wed, 27 Aug 2025 11:46:17 +0800
4Subject: [PATCH] tests/Makefile.am: fix undefined reference to
5 `pthread_create'
6
7Add missing '-lpthread' to CFLAGS
8
9Upstream-Status: Pending
10
11Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
12---
13 tests/Makefile.am | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/tests/Makefile.am b/tests/Makefile.am
17index 93daf3c..4800135 100644
18--- a/tests/Makefile.am
19+++ b/tests/Makefile.am
20@@ -96,7 +96,7 @@ t_mpi_bit_LDADD = $(standard_ldadd) @LDADD_FOR_TESTS_KLUDGE@
21 t_secmem_LDADD = $(standard_ldadd) @LDADD_FOR_TESTS_KLUDGE@
22 testapi_LDADD = $(standard_ldadd) @LDADD_FOR_TESTS_KLUDGE@
23 t_lock_LDADD = $(standard_ldadd) $(GPG_ERROR_MT_LIBS) @LDADD_FOR_TESTS_KLUDGE@
24-t_lock_CFLAGS = $(GPG_ERROR_MT_CFLAGS)
25+t_lock_CFLAGS = $(GPG_ERROR_MT_CFLAGS) -lpthread
26 t_thread_local_LDADD = $(standard_ldadd) $(GPG_ERROR_MT_LIBS) @LDADD_FOR_TESTS_KLUDGE@
27 t_thread_local_CFLAGS = $(GPG_ERROR_MT_CFLAGS)
28 testdrv_LDADD = $(LDADD_FOR_TESTS_KLUDGE)
29@@ -117,7 +117,7 @@ else
30 xtestsuite_libs = ../src/.libs/libgcrypt.so*
31 xtestsuite_driver = testdrv
32 t_kdf_LDADD = $(standard_ldadd) $(GPG_ERROR_MT_LIBS) @LDADD_FOR_TESTS_KLUDGE@
33-t_kdf_CFLAGS = $(GPG_ERROR_MT_CFLAGS)
34+t_kdf_CFLAGS = $(GPG_ERROR_MT_CFLAGS) -lpthread
35 endif
36
37 # xcheck uses our new testdrv instead of the automake test runner.
38--
392.34.1
40
diff --git a/meta/recipes-support/libgcrypt/files/no-bench-slope.patch b/meta/recipes-support/libgcrypt/files/no-bench-slope.patch
deleted file mode 100644
index 44aac1913e..0000000000
--- a/meta/recipes-support/libgcrypt/files/no-bench-slope.patch
+++ /dev/null
@@ -1,28 +0,0 @@
1From eb3a5bc4d5a212da64c0f9396c7f31f83aa6f36c Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@arm.com>
3Date: Fri, 9 Sep 2022 11:13:37 +0100
4Subject: [PATCH] libgcrypt: disable bench-slope test case
5
6The bench-slope test appears to be aborting fairly frequently, which causes
7failures on the autobuilder.
8
9Until this has been root-caused, disable the test.
10
11Upstream-Status: Inappropriate
12Signed-off-by: Ross Burton <ross.burton@arm.com>
13---
14 tests/testdrv.c | 1 -
15 1 file changed, 1 deletion(-)
16
17diff --git a/tests/testdrv.c b/tests/testdrv.c
18index 634b718..1e9dddb 100644
19--- a/tests/testdrv.c
20+++ b/tests/testdrv.c
21@@ -76,7 +76,6 @@ static struct {
22 { "t-x448" },
23 { "t-ed448" },
24 { "benchmark" },
25- { "bench-slope" },
26 { "hashtest-6g", "hashtest", "--hugeblock --gigs 6 SHA1 SHA256 SHA512 "
27 "SHA3-512 SM3 BLAKE2S_256 "
28 "BLAKE2B_512 CRC32 "
diff --git a/meta/recipes-support/libgcrypt/files/no-native-gpg-error.patch b/meta/recipes-support/libgcrypt/files/no-native-gpg-error.patch
deleted file mode 100644
index 98874ce12a..0000000000
--- a/meta/recipes-support/libgcrypt/files/no-native-gpg-error.patch
+++ /dev/null
@@ -1,26 +0,0 @@
1From ede03b847038afc294e206ca345d12d75bbba844 Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@arm.com>
3Date: Fri, 26 Aug 2022 15:23:37 +0100
4Subject: [PATCH] libgcrypt: rewrite ptest
5
6Don't depend on a native libgpg-error to build the test driver, as it's
7an optional dependency for some C annotations.
8
9Upstream-Status: Inappropriate
10Signed-off-by: Ross Burton <ross.burton@arm.com>
11---
12 tests/testdrv.c | 1 -
13 1 file changed, 1 deletion(-)
14
15diff --git a/tests/testdrv.c b/tests/testdrv.c
16index bfca4c2..634b718 100644
17--- a/tests/testdrv.c
18+++ b/tests/testdrv.c
19@@ -32,7 +32,6 @@
20 # include <fcntl.h>
21 # include <sys/wait.h>
22 #endif
23-#include <gpg-error.h> /* For some macros. */
24
25 #include "stopwatch.h"
26
diff --git a/meta/recipes-support/libgcrypt/files/run-ptest b/meta/recipes-support/libgcrypt/files/run-ptest
deleted file mode 100644
index c349ae1944..0000000000
--- a/meta/recipes-support/libgcrypt/files/run-ptest
+++ /dev/null
@@ -1,9 +0,0 @@
1#!/bin/sh
2
3# Run the tests in regression mode so they are quicker
4export GCRYPT_IN_REGRESSION_TEST=1
5# The 'random' test invokes itself, so we need to be sure that the test
6# directory is on PATH.
7export PATH=$PATH:.
8
9./testdrv --verbose