[Buildroot] [PATCH] btrfs-progs: don't use <execinfo.h> with uClibc

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Feb 23 21:35:05 UTC 2017


Hello,

On Mon, 20 Feb 2017 23:43:55 +0100, Thomas Petazzoni wrote:
> This commit adds a patch to btrfs-progs that fixes the build of
> docker-engine, and possibly other packages including kerncompat.h from
> btrfs-progs.
> 
> For the btrfs-progs build itself, a --disable-backtrace option allows to
> indicate whether backtrace()/<execinfo.h> support should be used or
> not. However, once btrfs-progs is installed, it simply looks at whether
> __GLIBC__ is defined or not to decide to use backtrace() or not.
> 
> However, uClibc defines __GLIBC__ but does not provide backtrace()
> functionality. The additional patch tweaks the kerncompat.h to look at
> __UCLIBC__ and not use backtrace() functionality in this case.
> 
> Fixes:
> 
>   http://autobuild.buildroot.net/results/9dc9370a79c5c44e6c92be6a44334842c211d923/
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
> ---
>  ...h-define-BTRFS_DISABLE_BACKTRACE-when-bui.patch | 42 ++++++++++++++++++++++
>  1 file changed, 42 insertions(+)
>  create mode 100644 package/btrfs-progs/0002-kerncompat.h-define-BTRFS_DISABLE_BACKTRACE-when-bui.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list