[oe-commits] [meta-openembedded] 07/35: strongswan: add a PACKAGECONFIG for libbfd stack traces

git at git.openembedded.org git at git.openembedded.org
Thu Oct 17 03:24:19 UTC 2019


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit b9b3a3f7109ec7661e533ee582f54c07f595b67e
Author: Callaghan, Dan <dan.callaghan at opengear.com>
AuthorDate: Tue Oct 15 09:39:09 2019 +1000

    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 <raj.khem at gmail.com>
---
 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 5408eed..b521633 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"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list