diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-support/nettle/nettle/Add-target-to-only-build-tests-not-run-them.patch | 21 | ||||
-rw-r--r-- | meta/recipes-support/nettle/nettle/check-header-files-of-openssl-only-if-enable_.patch | 26 | ||||
-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 @@ | |||
1 | Add target to only build tests (not run them) | 1 | From e9fcb2177fda228ac065d189240e2d992e86e5bf Mon Sep 17 00:00:00 2001 |
2 | From: Trevor Gamblin <tgamblin@baylibre.com> | ||
3 | Date: Fri, 2 Aug 2024 09:48:43 -0400 | ||
4 | Subject: [PATCH] Makefile.in: Add target to only build tests (not run them) | ||
2 | 5 | ||
3 | Not sending upstream as this is only a start of a solution to | 6 | Not sending upstream as this is only a start of a solution to |
4 | installable tests: It's useful for us already as is. | 7 | installable tests: It's useful for us already as is. |
@@ -8,16 +11,20 @@ Upstream-Status: Inappropriate [not a complete solution] | |||
8 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | 11 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> |
9 | Refactored for 3.4 | 12 | Refactored for 3.4 |
10 | Signed-off-by: Armin Kuster <akuster@mvista.com> | 13 | Signed-off-by: Armin Kuster <akuster@mvista.com> |
14 | |||
15 | Refactor for 3.10, including turning it into an mbox for easier use. | ||
16 | |||
17 | Signed-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 | ||
16 | diff --git a/Makefile.in b/Makefile.in | 23 | diff --git a/Makefile.in b/Makefile.in |
17 | index e5ccfc7..15c9275 100644 | 24 | index 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 | ||
30 | diff --git a/testsuite/Makefile.in b/testsuite/Makefile.in | 37 | diff --git a/testsuite/Makefile.in b/testsuite/Makefile.in |
31 | index 3f5e5f6..8fd68a3 100644 | 38 | index 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 | -- |
44 | 2.17.1 | 51 | 2.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 @@ | |||
1 | From ffee6b5f6204a0210f717968ec6ce514d70acca1 Mon Sep 17 00:00:00 2001 | 1 | From 5f7cdd2b878298577accade43a38e1a0951d17b4 Mon Sep 17 00:00:00 2001 |
2 | From: Haiqing Bai <Haiqing.Bai@windriver.com> | 2 | From: Haiqing Bai <Haiqing.Bai@windriver.com> |
3 | Date: Fri, 9 Dec 2016 15:23:17 +0800 | 3 | Date: Fri, 9 Dec 2016 15:23:17 +0800 |
4 | Subject: [PATCH] nettle: check header files of openssl only if | 4 | Subject: [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 | ||
16 | Signed-off-by: Armin Kuster <akuster@mvista.com> | 16 | Signed-off-by: Armin Kuster <akuster@mvista.com> |
17 | 17 | ||
18 | Index: nettle-3.4/configure.ac | 18 | Refactor for 3.10. |
19 | =================================================================== | 19 | |
20 | --- nettle-3.4.orig/configure.ac | 20 | Signed-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 | |||
25 | diff --git a/configure.ac b/configure.ac | ||
26 | index 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 | -- | ||
45 | 2.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 | ||
23 | SRC_URI[sha256sum] = "ccfeff981b0ca71bbd6fbcb054f407c60ffb644389a5be80d6716d5b550c6ce3" | 23 | SRC_URI[sha256sum] = "b4c518adb174e484cb4acea54118f02380c7133771e7e9beb98a0787194ee47c" |
24 | 24 | ||
25 | UPSTREAM_CHECK_REGEX = "nettle-(?P<pver>\d+(\.\d+)+)\.tar" | 25 | UPSTREAM_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 |