]> code.ossystems Code Review - openembedded-core.git/commitdiff
libffi: disable use of static exec trampolines
authorYi Zhao <yi.zhao@windriver.com>
Fri, 16 Jul 2021 09:14:18 +0000 (17:14 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 18 Jul 2021 22:09:23 +0000 (23:09 +0100)
We encountered a blueman-applet segfault with libffi 3.4.2:
$ blueman-applet
blueman-applet 01.58.45 WARNING  PluginManager:148 __load_plugin: Not loading DhcpClient because its conflict has higher priority
blueman-applet 01.58.45 WARNING  TransferService:189 _make_share_path: Failed to get Download dir from XDG
blueman-applet 01.58.45 WARNING  PluginManager:148 __load_plugin: Not loading PPPSupport because its conflict has higher priority
Segmentation fault

This is because the static exec trampolines is enabled by default in
libffi 3.4.2. However it doesn't work with gobject-introspection[1].

[1] https://github.com/libffi/libffi/commit/132699b95d3ee4d889ea2a80540acf3300987dad

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/libffi/libffi_3.4.2.bb

index 47b230afa2571cb9ba36fce871e5be850e6c981b..19b6ed3e58d2b30813b48f5e690721d1bc8b4752 100644 (file)
@@ -18,7 +18,7 @@ SRC_URI[sha256sum] = "540fb721619a6aba3bdeef7d940d8e9e0e6d2c193595bc243241b77ff9
 UPSTREAM_CHECK_URI = "https://github.com/libffi/libffi/releases/"
 UPSTREAM_CHECK_REGEX = "libffi-(?P<pver>\d+(\.\d+)+)\.tar"
 
-EXTRA_OECONF += "--disable-builddir"
+EXTRA_OECONF += "--disable-builddir --disable-exec-static-tramp"
 EXTRA_OEMAKE_class-target = "LIBTOOLFLAGS='--tag=CC'"
 inherit autotools texinfo multilib_header