xfsprogs: fix build with libunistring
authorBaruch Siach <baruch@tkos.co.il>
Tue, 20 Mar 2018 12:34:57 +0000 (14:34 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 23 Mar 2018 15:31:58 +0000 (16:31 +0100)
commita81601589ef87c4ebb69517455f0fef8df7dd6ed
treedade0a654332f7b5561e1454ac47952f4aa187b6
parentbb7a698001302249abf57762a0483fa2c3edb50a
xfsprogs: fix build with libunistring

The latest xfsprogs bump to version 4.15.1 added an optional dependency
on libunistring. Make sure we build libunistring before xfsprogs.

xfsprogs also added -lunistring to its make dependency. This does not
work very well with cross compilation because make does not know about
sysroot. Add a patch to remove this dependency.

To make shared only link with libunistring work, we also need to extend
the -static-libtool-libs patch to cover xfs_scrub as well.

Fixes:
http://autobuild.buildroot.net/results/66e/66e425b00a06f928be0951ac4196190fe88b0f62/
http://autobuild.buildroot.net/results/1cd/1cde87d1daf3c6009220ff47512794cef6a2938f/
http://autobuild.buildroot.net/results/8ba/8ba4e94cfbb8a5cbb166423a671bdbcdf535f86b/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/xfsprogs/0001-mdrestore-do-not-do-dynamic-linking-of-libtool-libra.patch
package/xfsprogs/0005-xfs_scrub-fix-cross-compile-with-libunistring.patch [new file with mode: 0644]
package/xfsprogs/xfsprogs.mk