summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-support/nettle/nettle/Add-target-to-only-build-tests-not-run-them.patch21
-rw-r--r--meta/recipes-support/nettle/nettle/check-header-files-of-openssl-only-if-enable_.patch26
-rw-r--r--meta/recipes-support/nettle/nettle_3.10.bb (renamed from meta/recipes-support/nettle/nettle_3.9.1.bb)3
3 files changed, 34 insertions, 16 deletions
diff --git a/meta/recipes-support/nettle/nettle/Add-target-to-only-build-tests-not-run-them.patch b/meta/recipes-support/nettle/nettle/Add-target-to-only-build-tests-not-run-them.patch
index e3f5c6de7d..345fc43ebe 100644
--- a/meta/recipes-support/nettle/nettle/Add-target-to-only-build-tests-not-run-them.patch
+++ b/meta/recipes-support/nettle/nettle/Add-target-to-only-build-tests-not-run-them.patch
@@ -1,4 +1,7 @@
1Add target to only build tests (not run them) 1From e9fcb2177fda228ac065d189240e2d992e86e5bf Mon Sep 17 00:00:00 2001
2From: Trevor Gamblin <tgamblin@baylibre.com>
3Date: Fri, 2 Aug 2024 09:48:43 -0400
4Subject: [PATCH] Makefile.in: Add target to only build tests (not run them)
2 5
3Not sending upstream as this is only a start of a solution to 6Not sending upstream as this is only a start of a solution to
4installable tests: It's useful for us already as is. 7installable tests: It's useful for us already as is.
@@ -8,16 +11,20 @@ Upstream-Status: Inappropriate [not a complete solution]
8Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> 11Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
9Refactored for 3.4 12Refactored for 3.4
10Signed-off-by: Armin Kuster <akuster@mvista.com> 13Signed-off-by: Armin Kuster <akuster@mvista.com>
14
15Refactor for 3.10, including turning it into an mbox for easier use.
16
17Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
11--- 18---
12 Makefile.in | 3 +++ 19 Makefile.in | 3 +++
13 testsuite/Makefile.in | 2 ++ 20 testsuite/Makefile.in | 2 ++
14 2 files changed, 5 insertions(+) 21 2 files changed, 5 insertions(+)
15 22
16diff --git a/Makefile.in b/Makefile.in 23diff --git a/Makefile.in b/Makefile.in
17index e5ccfc7..15c9275 100644 24index 2bf7f1e8..403a868a 100644
18--- a/Makefile.in 25--- a/Makefile.in
19+++ b/Makefile.in 26+++ b/Makefile.in
20@@ -52,6 +52,9 @@ clean distclean mostlyclean maintainer-clean tags: 27@@ -53,6 +53,9 @@ clean distclean mostlyclean maintainer-clean tags:
21 echo "Making $@ in $$d" ; (cd $$d && $(MAKE) $@); done 28 echo "Making $@ in $$d" ; (cd $$d && $(MAKE) $@); done
22 $(MAKE) $@-here 29 $(MAKE) $@-here
23 30
@@ -28,18 +35,18 @@ index e5ccfc7..15c9275 100644
28 true 35 true
29 36
30diff --git a/testsuite/Makefile.in b/testsuite/Makefile.in 37diff --git a/testsuite/Makefile.in b/testsuite/Makefile.in
31index 3f5e5f6..8fd68a3 100644 38index 0699fa0d..8ac9983c 100644
32--- a/testsuite/Makefile.in 39--- a/testsuite/Makefile.in
33+++ b/testsuite/Makefile.in 40+++ b/testsuite/Makefile.in
34@@ -122,6 +122,8 @@ $(TARGETS) $(EXTRA_TARGETS): testutils.$(OBJEXT) ../nettle-internal.$(OBJEXT) \ 41@@ -137,6 +137,8 @@ $(TARGETS) $(EXTRA_TARGETS): testutils.$(OBJEXT) ../non-nettle.$(OBJEXT) \
35 # data. 42 # data.
36 VALGRIND = valgrind --error-exitcode=1 --leak-check=full --show-reachable=yes @IF_ASM@ --partial-loads-ok=yes 43 VALGRIND = valgrind --error-exitcode=1 --leak-check=full --show-reachable=yes @IF_ASM@ --partial-loads-ok=yes
37 44
38+buildtest: $(TS_ALL) 45+buildtest: $(TS_ALL)
39+ 46+
40 check: $(TS_ALL) 47 check: $(TS_ALL) $(TS_ALL:sc-%=%)
41 TEST_SHLIB_DIR="$(TEST_SHLIB_DIR)" \ 48 TEST_SHLIB_DIR="$(TEST_SHLIB_DIR)" \
42 srcdir="$(srcdir)" \ 49 srcdir="$(srcdir)" \
43-- 50--
442.17.1 512.39.2
45 52
diff --git a/meta/recipes-support/nettle/nettle/check-header-files-of-openssl-only-if-enable_.patch b/meta/recipes-support/nettle/nettle/check-header-files-of-openssl-only-if-enable_.patch
index d5f266681e..49d633b5f7 100644
--- a/meta/recipes-support/nettle/nettle/check-header-files-of-openssl-only-if-enable_.patch
+++ b/meta/recipes-support/nettle/nettle/check-header-files-of-openssl-only-if-enable_.patch
@@ -1,4 +1,4 @@
1From ffee6b5f6204a0210f717968ec6ce514d70acca1 Mon Sep 17 00:00:00 2001 1From 5f7cdd2b878298577accade43a38e1a0951d17b4 Mon Sep 17 00:00:00 2001
2From: Haiqing Bai <Haiqing.Bai@windriver.com> 2From: Haiqing Bai <Haiqing.Bai@windriver.com>
3Date: Fri, 9 Dec 2016 15:23:17 +0800 3Date: Fri, 9 Dec 2016 15:23:17 +0800
4Subject: [PATCH] nettle: check header files of openssl only if 4Subject: [PATCH] nettle: check header files of openssl only if
@@ -15,22 +15,32 @@ refactored for 3.4. pending not in as of 3.4
15 15
16Signed-off-by: Armin Kuster <akuster@mvista.com> 16Signed-off-by: Armin Kuster <akuster@mvista.com>
17 17
18Index: nettle-3.4/configure.ac 18Refactor for 3.10.
19=================================================================== 19
20--- nettle-3.4.orig/configure.ac 20Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
21+++ nettle-3.4/configure.ac 21---
22@@ -185,9 +185,11 @@ AC_HEADER_TIME 22 configure.ac | 8 +++++---
23 1 file changed, 5 insertions(+), 3 deletions(-)
24
25diff --git a/configure.ac b/configure.ac
26index 4f27e663..673c1492 100644
27--- a/configure.ac
28+++ b/configure.ac
29@@ -197,9 +197,11 @@ AC_TYPE_SIZE_T
23 AC_CHECK_SIZEOF(long) 30 AC_CHECK_SIZEOF(long)
24 AC_CHECK_SIZEOF(size_t) 31 AC_CHECK_SIZEOF(size_t)
25 32
26-AC_CHECK_HEADERS([openssl/evp.h openssl/ecdsa.h],, 33-AC_CHECK_HEADERS([openssl/evp.h openssl/ec.h openssl/rsa.h],,
27-[enable_openssl=no 34-[enable_openssl=no
28- break]) 35- break])
29+if test "x$enable_openssl" = "xyes"; then 36+if test "x$enable_openssl" = "xyes"; then
30+ AC_CHECK_HEADERS([openssl/evp.h openssl/ecdsa.h],, 37+ AC_CHECK_HEADERS([openssl/evp.h openssl/ec.h openssl/rsa.h],,
31+ [enable_openssl=no 38+ [enable_openssl=no
32+ break]) 39+ break])
33+fi 40+fi
34 41
35 # For use by the testsuite 42 # For use by the testsuite
36 AC_CHECK_HEADERS([valgrind/memcheck.h]) 43 AC_CHECK_HEADERS([valgrind/memcheck.h])
44--
452.39.2
46
diff --git a/meta/recipes-support/nettle/nettle_3.9.1.bb b/meta/recipes-support/nettle/nettle_3.10.bb
index 396708cf87..92bc78263c 100644
--- a/meta/recipes-support/nettle/nettle_3.9.1.bb
+++ b/meta/recipes-support/nettle/nettle_3.10.bb
@@ -20,7 +20,7 @@ SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \
20 file://check-header-files-of-openssl-only-if-enable_.patch \ 20 file://check-header-files-of-openssl-only-if-enable_.patch \
21 " 21 "
22 22
23SRC_URI[sha256sum] = "ccfeff981b0ca71bbd6fbcb054f407c60ffb644389a5be80d6716d5b550c6ce3" 23SRC_URI[sha256sum] = "b4c518adb174e484cb4acea54118f02380c7133771e7e9beb98a0787194ee47c"
24 24
25UPSTREAM_CHECK_REGEX = "nettle-(?P<pver>\d+(\.\d+)+)\.tar" 25UPSTREAM_CHECK_REGEX = "nettle-(?P<pver>\d+(\.\d+)+)\.tar"
26 26
@@ -46,6 +46,7 @@ do_install_ptest() {
46 install ${B}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/ 46 install ${B}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/
47 install ${S}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/ 47 install ${S}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/
48 install ${S}/testsuite/gold-bug.txt ${D}${PTEST_PATH}/testsuite/ 48 install ${S}/testsuite/gold-bug.txt ${D}${PTEST_PATH}/testsuite/
49 install ${S}/testsuite/sc-valgrind.sh ${D}${PTEST_PATH}/testsuite/
49 50
50 # Install a symlink for dlopen-test 51 # Install a symlink for dlopen-test
51 ln -sr ${D}${libdir}/libnettle.so.*.* ${D}${PTEST_PATH}/libnettle.so 52 ln -sr ${D}${libdir}/libnettle.so.*.* ${D}${PTEST_PATH}/libnettle.so