diff options
| -rw-r--r-- | meta/recipes-support/gnutls/gnutls/conditional.patch | 42 | ||||
| -rw-r--r-- | meta/recipes-support/gnutls/gnutls_3.8.7.1.bb (renamed from meta/recipes-support/gnutls/gnutls_3.8.6.bb) | 6 |
2 files changed, 47 insertions, 1 deletions
diff --git a/meta/recipes-support/gnutls/gnutls/conditional.patch b/meta/recipes-support/gnutls/gnutls/conditional.patch new file mode 100644 index 0000000000..2ff532fb53 --- /dev/null +++ b/meta/recipes-support/gnutls/gnutls/conditional.patch | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | From 292f96f26d7ce80e4a165c903c4fd569b85c1c1f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Daiki Ueno <ueno@gnu.org> | ||
| 3 | Date: Fri, 16 Aug 2024 09:42:15 +0900 | ||
| 4 | Subject: [PATCH] build: fix setting AM_CONDITIONAL for brotli and zstd | ||
| 5 | |||
| 6 | As the with_{libbrotli,libzsttd} variables are unset if configured | ||
| 7 | with --without-{brotli,zstd}, check the unequality to "no" doesn't | ||
| 8 | work; use explicit matching with "yes" instead. | ||
| 9 | |||
| 10 | Signed-off-by: Daiki Ueno <ueno@gnu.org> | ||
| 11 | |||
| 12 | Upstream-Status: Backport | ||
| 13 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
| 14 | --- | ||
| 15 | configure.ac | 4 ++-- | ||
| 16 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 17 | |||
| 18 | diff --git a/configure.ac b/configure.ac | ||
| 19 | index 95ec4c1515..a476176800 100644 | ||
| 20 | --- a/configure.ac | ||
| 21 | +++ b/configure.ac | ||
| 22 | @@ -1158,7 +1158,7 @@ if test x$ac_brotli != xno; then | ||
| 23 | else | ||
| 24 | AC_MSG_RESULT(no) | ||
| 25 | fi | ||
| 26 | -AM_CONDITIONAL(HAVE_LIBBROTLI, test "$with_libbrotlienc" != "no" && test "$with_libbrotlidec" != "no") | ||
| 27 | +AM_CONDITIONAL(HAVE_LIBBROTLI, test "$with_libbrotlienc" = yes && test "$with_libbrotlidec" = yes) | ||
| 28 | |||
| 29 | AS_IF([test "$ac_cv_dlopen_soname_works" = yes], [ | ||
| 30 | save_CFLAGS=$CFLAGS | ||
| 31 | @@ -1203,7 +1203,7 @@ if test x$ac_zstd != xno; then | ||
| 32 | else | ||
| 33 | AC_MSG_RESULT(no) | ||
| 34 | fi | ||
| 35 | -AM_CONDITIONAL(HAVE_LIBZSTD, test "$with_libzstd" != "no") | ||
| 36 | +AM_CONDITIONAL(HAVE_LIBZSTD, test "$with_libzstd" = yes) | ||
| 37 | |||
| 38 | AS_IF([test "$ac_cv_dlopen_soname_works" = yes], [ | ||
| 39 | save_CFLAGS=$CFLAGS | ||
| 40 | -- | ||
| 41 | GitLab | ||
| 42 | |||
diff --git a/meta/recipes-support/gnutls/gnutls_3.8.6.bb b/meta/recipes-support/gnutls/gnutls_3.8.7.1.bb index 37d12fb5ea..b381520e2e 100644 --- a/meta/recipes-support/gnutls/gnutls_3.8.6.bb +++ b/meta/recipes-support/gnutls/gnutls_3.8.7.1.bb | |||
| @@ -21,11 +21,15 @@ SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}" | |||
| 21 | SRC_URI = "https://www.gnupg.org/ftp/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar.xz \ | 21 | SRC_URI = "https://www.gnupg.org/ftp/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar.xz \ |
| 22 | file://arm_eabi.patch \ | 22 | file://arm_eabi.patch \ |
| 23 | file://0001-Creating-.hmac-file-should-be-excuted-in-target-envi.patch \ | 23 | file://0001-Creating-.hmac-file-should-be-excuted-in-target-envi.patch \ |
| 24 | file://conditional.patch \ | ||
| 24 | file://run-ptest \ | 25 | file://run-ptest \ |
| 25 | file://Add-ptest-support.patch \ | 26 | file://Add-ptest-support.patch \ |
| 26 | " | 27 | " |
| 27 | 28 | ||
| 28 | SRC_URI[sha256sum] = "2e1588aae53cb32d43937f1f4eca28febd9c0c7aa1734fc5dd61a7e81e0ebcdd" | 29 | SRC_URI[sha256sum] = "9ca0ddaccce28a74fa18d738744190afb3b0daebef74e6ad686bf7bef99abd60" |
| 30 | |||
| 31 | # This is only needed for 3.8.7.1, remove when upgrading to 3.8.8 onwards | ||
| 32 | S = "${WORKDIR}/gnutls-3.8.7" | ||
| 29 | 33 | ||
| 30 | inherit autotools texinfo pkgconfig gettext lib_package gtk-doc ptest | 34 | inherit autotools texinfo pkgconfig gettext lib_package gtk-doc ptest |
| 31 | 35 | ||
