mickledore is already end of life I think?

Alex

On Mon, 4 Dec 2023 at 20:36, Joe Slater via lists.openembedded.org
<[email protected]> wrote:
>
> From: Joe Slater <[email protected]>
>
> De-fuzz existing patches.
> Do not update PACKAGECONFIG to match master.
>
> Signed-off-by: Joe Slater <[email protected]>
> ---
>  ...ile-should-be-excuted-in-target-envi.patch |  2 --
>  .../gnutls/gnutls/Add-ptest-support.patch     | 10 ++-----
>  .../gnutls/gnutls/arm_eabi.patch              |  6 ++--
>  .../{gnutls_3.8.0.bb => gnutls_3.8.2.bb}      | 30 +++++++++++--------
>  4 files changed, 22 insertions(+), 26 deletions(-)
>  rename meta/recipes-support/gnutls/{gnutls_3.8.0.bb => gnutls_3.8.2.bb} (79%)
>
> diff --git 
> a/meta/recipes-support/gnutls/gnutls/0001-Creating-.hmac-file-should-be-excuted-in-target-envi.patch
>  
> b/meta/recipes-support/gnutls/gnutls/0001-Creating-.hmac-file-should-be-excuted-in-target-envi.patch
> index 4bdc40d932..da89d7faa1 100644
> --- 
> a/meta/recipes-support/gnutls/gnutls/0001-Creating-.hmac-file-should-be-excuted-in-target-envi.patch
> +++ 
> b/meta/recipes-support/gnutls/gnutls/0001-Creating-.hmac-file-should-be-excuted-in-target-envi.patch
> @@ -11,8 +11,6 @@ Signed-off-by: Lei Maohui <[email protected]>
>   lib/Makefile.am | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
>
> -diff --git a/lib/Makefile.am b/lib/Makefile.am
> -index 6d4e8d2..24ef108 100644
>  --- a/lib/Makefile.am
>  +++ b/lib/Makefile.am
>  @@ -206,8 +206,7 @@ hmac_file = .libs/.$(gnutls_so).hmac
> diff --git a/meta/recipes-support/gnutls/gnutls/Add-ptest-support.patch 
> b/meta/recipes-support/gnutls/gnutls/Add-ptest-support.patch
> index f87cf536fa..b9b75888ff 100644
> --- a/meta/recipes-support/gnutls/gnutls/Add-ptest-support.patch
> +++ b/meta/recipes-support/gnutls/gnutls/Add-ptest-support.patch
> @@ -12,8 +12,6 @@ Signed-off-by: Ravineet Singh <[email protected]>
>   tests/Makefile.am | 6 ++++++
>   3 files changed, 11 insertions(+)
>
> -diff --git a/Makefile.am b/Makefile.am
> -index 843193f..816b09f 100644
>  --- a/Makefile.am
>  +++ b/Makefile.am
>  @@ -191,6 +191,9 @@ dist-hook:
> @@ -26,11 +24,9 @@ index 843193f..816b09f 100644
>   .PHONY: abi-check abi-dump-versioned abi-dump-latest pic-check symbol-check 
> local-code-coverage-output files-update AUTHORS
>
>   include $(top_srcdir)/cligen/cligen.mk
> -diff --git a/configure.ac b/configure.ac
> -index b25ba14..860ddef 100644
>  --- a/configure.ac
>  +++ b/configure.ac
> -@@ -1150,6 +1150,8 @@ AC_SUBST(LIBGNUTLS_CFLAGS)
> +@@ -1194,6 +1194,8 @@ AC_SUBST(LIBGNUTLS_CFLAGS)
>
>   AM_CONDITIONAL(NEEDS_LIBRT, test "$gnutls_needs_librt" = "yes")
>
> @@ -39,11 +35,9 @@ index b25ba14..860ddef 100644
>   AC_DEFINE([GNUTLS_INTERNAL_BUILD], 1, [We allow temporarily usage of 
> deprecated functions - until they are removed.])
>
>   hw_features=
> -diff --git a/tests/Makefile.am b/tests/Makefile.am
> -index d530ad0..71c592f 100644
>  --- a/tests/Makefile.am
>  +++ b/tests/Makefile.am
> -@@ -648,6 +648,12 @@ SH_LOG_COMPILER = $(SHELL)
> +@@ -657,6 +657,12 @@ SH_LOG_COMPILER = $(SHELL)
>   AM_VALGRINDFLAGS = --suppressions=$(srcdir)/suppressions.valgrind
>   LOG_COMPILER = $(LOG_VALGRIND)
>
> diff --git a/meta/recipes-support/gnutls/gnutls/arm_eabi.patch 
> b/meta/recipes-support/gnutls/gnutls/arm_eabi.patch
> index 2b61a703cb..2de9258a8a 100644
> --- a/meta/recipes-support/gnutls/gnutls/arm_eabi.patch
> +++ b/meta/recipes-support/gnutls/gnutls/arm_eabi.patch
> @@ -14,11 +14,9 @@ Signed-off-by: Joe Slater <[email protected]>
>   tests/seccomp.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> -diff --git a/tests/seccomp.c b/tests/seccomp.c
> -index a3148fe..443bc5f 100644
>  --- a/tests/seccomp.c
>  +++ b/tests/seccomp.c
> -@@ -52,7 +52,9 @@ int disable_system_calls(void)
> +@@ -55,7 +55,9 @@ int disable_system_calls(void)
>
>         ADD_SYSCALL(nanosleep, 0);
>         ADD_SYSCALL(clock_nanosleep, 0);
> @@ -27,4 +25,4 @@ index a3148fe..443bc5f 100644
>  +#endif
>         ADD_SYSCALL(getpid, 0);
>         ADD_SYSCALL(gettimeofday, 0);
> - # if defined(HAVE_CLOCK_GETTIME)
> + #if defined(HAVE_CLOCK_GETTIME)
> diff --git a/meta/recipes-support/gnutls/gnutls_3.8.0.bb 
> b/meta/recipes-support/gnutls/gnutls_3.8.2.bb
> similarity index 79%
> rename from meta/recipes-support/gnutls/gnutls_3.8.0.bb
> rename to meta/recipes-support/gnutls/gnutls_3.8.2.bb
> index 7ddd2420bd..dc975317c8 100644
> --- a/meta/recipes-support/gnutls/gnutls_3.8.0.bb
> +++ b/meta/recipes-support/gnutls/gnutls_3.8.2.bb
> @@ -15,7 +15,6 @@ LIC_FILES_CHKSUM = 
> "file://LICENSE;md5=71391c8e0c1cfe68077e7fce3b586283 \
>                      
> file://doc/COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c"
>
>  DEPENDS = "nettle gmp virtual/libiconv libunistring"
> -DEPENDS:append:libc-musl = " argp-standalone"
>
>  SHRT_VER = 
> "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}"
>
> @@ -26,24 +25,31 @@ SRC_URI = 
> "https://www.gnupg.org/ftp/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar
>             file://Add-ptest-support.patch \
>             "
>
> -SRC_URI[sha256sum] = 
> "0ea0d11a1660a1e63f960f157b197abe6d0c8cb3255be24e1fb3815930b9bdc5"
> +SRC_URI[sha256sum] = 
> "e765e5016ffa9b9dd243e363a0460d577074444ee2491267db2e96c9c2adef77"
>
>  inherit autotools texinfo pkgconfig gettext lib_package gtk-doc ptest
>
> -PACKAGECONFIG ??= "libidn  ${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', 
> d)}"
> +# do not use the updated default PACKAGECONFIG from master branch
> +#
> +# PACKAGECONFIG ??= "libidn libtasn1 ${@bb.utils.filter('DISTRO_FEATURES', 
> 'seccomp', d)}"
> +PACKAGECONFIG ??= "libidn ${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', 
> d)}"
>
>  # You must also have CONFIG_SECCOMP enabled in the kernel for
>  # seccomp to work.
>  PACKAGECONFIG[seccomp] = 
> "--with-libseccomp-prefix=${STAGING_EXECPREFIXDIR},ac_cv_libseccomp=no,libseccomp"
>  PACKAGECONFIG[libidn] = "--with-idn,--without-idn,libidn2"
> -PACKAGECONFIG[libtasn1] = 
> "--with-included-libtasn1=no,--with-included-libtasn1,libtasn1"
> +PACKAGECONFIG[libtasn1] = 
> "--without-included-libtasn1,--with-included-libtasn1,libtasn1"
>  PACKAGECONFIG[p11-kit] = "--with-p11-kit,--without-p11-kit,p11-kit"
>  PACKAGECONFIG[tpm] = "--with-tpm,--without-tpm,trousers"
>  PACKAGECONFIG[fips] = "--enable-fips140-mode 
> --with-libdl-prefix=${STAGING_BASELIBDIR}"
> +PACKAGECONFIG[dane] = "--enable-libdane,--disable-libdane,unbound"
> +# Certificate compression
> +PACKAGECONFIG[brotli] = "--with-brotli,--without-brotli,brotli"
> +PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib"
> +PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd"
>
>  EXTRA_OECONF = " \
>      --enable-doc \
> -    --disable-libdane \
>      --disable-rpath \
>      --enable-openssl-compatibility \
>      --with-libpthread-prefix=${STAGING_DIR_HOST}${prefix} \
> @@ -54,14 +60,16 @@ EXTRA_OECONF = " \
>  # Otherwise the tools try and use HOSTTOOLS_DIR/bash as a shell.
>  export POSIX_SHELL="${base_bindir}/sh"
>
> -LDFLAGS:append:libc-musl = " -largp"
> -
>  do_configure:prepend() {
>         for dir in . lib; do
>                 rm -f ${dir}/aclocal.m4 ${dir}/m4/libtool.m4 ${dir}/m4/lt*.m4
>         done
>  }
>
> +do_compile_ptest() {
> +    oe_runmake -C tests buildtest-TESTS
> +}
> +
>  do_install:append:class-target() {
>          if ${@bb.utils.contains('PACKAGECONFIG', 'fips', 'true', 'false', 
> d)}; then
>            install -d ${D}${bindir}/bin
> @@ -69,13 +77,11 @@ do_install:append:class-target() {
>          fi
>  }
>
> -do_compile:append() {
> -        oe_runmake ${PARALLEL_MAKE} -C tests buildtest-TESTS
> -}
> -
> -PACKAGES =+ "${PN}-openssl ${PN}-xx ${PN}-fips"
> +PACKAGES =+ "${PN}-dane ${PN}-openssl ${PN}-xx ${PN}-fips"
>
>  FILES:${PN}-dev += "${bindir}/gnutls-cli-debug"
> +
> +FILES:${PN}-dane = "${libdir}/libgnutls-dane.so.*"
>  FILES:${PN}-openssl = "${libdir}/libgnutls-openssl.so.*"
>  FILES:${PN}-xx = "${libdir}/libgnutlsxx.so.*"
>  FILES:${PN}-fips = "${bindir}/fipshmac"
> --
> 2.25.1
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#191813): 
https://lists.openembedded.org/g/openembedded-core/message/191813
Mute This Topic: https://lists.openembedded.org/mt/102977748/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to