From 699cd1602ee0e6c2791b15cfe06705e325c98b53 Mon Sep 17 00:00:00 2001 From: "Callaghan, Dan" Date: Tue, 15 Oct 2019 09:39:09 +1000 Subject: [PATCH] strongswan: add a PACKAGECONFIG for libbfd stack traces Strongswan installs a signal handler for SIGSEGV, SIGILL, and SIGBUS which attempts to print a stack trace of the crash. For producing line numbers in the stack trace, it can use libbfd from binutils, or libunwind, or else it falls back to a slower method using /usr/bin/addr2line. Currently the addr2line method is unlikely to actually work, since there is no RDEPENDS to pull that command into the image. This patch adds a PACKAGECONFIG to enable the libbfd-based stack traces, which is likely the best alternative since binutils is already required for building everything, and it will be faster than the addr2line method (which requires addr2line and libbfd anyway). Signed-off-by: Khem Raj --- meta-networking/recipes-support/strongswan/strongswan_5.8.1.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-networking/recipes-support/strongswan/strongswan_5.8.1.bb b/meta-networking/recipes-support/strongswan/strongswan_5.8.1.bb index 5408eed275..b521633ff4 100644 --- a/meta-networking/recipes-support/strongswan/strongswan_5.8.1.bb +++ b/meta-networking/recipes-support/strongswan/strongswan_5.8.1.bb @@ -28,6 +28,7 @@ PACKAGECONFIG ??= "charon curl gmp openssl stroke sqlite3 \ ${@bb.utils.filter('DISTRO_FEATURES', 'ldap', d)} \ " PACKAGECONFIG[aesni] = "--enable-aesni,--disable-aesni,,${PN}-plugin-aesni" +PACKAGECONFIG[bfd] = "--enable-bfd-backtraces,--disable-bfd-backtraces,binutils" PACKAGECONFIG[charon] = "--enable-charon,--disable-charon," PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl,${PN}-plugin-curl" PACKAGECONFIG[gmp] = "--enable-gmp,--disable-gmp,gmp,${PN}-plugin-gmp"