btrfs-progs: don't use <execinfo.h> with uClibc
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 20 Feb 2017 22:43:55 +0000 (23:43 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 23 Feb 2017 21:34:55 +0000 (22:34 +0100)
commit06b555b6d5baadb6fe73e5d8a9fd640602908251
tree489d40d63447a4294a274f305f8036f4f9a18196
parenta862b53ef953b14dc864f04694e8bf3ebfb29162
btrfs-progs: don't use <execinfo.h> with uClibc

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@free-electrons.com>
package/btrfs-progs/0002-kerncompat.h-define-BTRFS_DISABLE_BACKTRACE-when-bui.patch [new file with mode: 0644]