[Buildroot] [git commit] xfsprogs: Define PLATFORM to linux

Peter Korsgaard peter at korsgaard.com
Thu Nov 29 15:29:24 UTC 2018

commit: https://git.buildroot.net/buildroot/commit/?id=257a2118be2b0664e2b8dbda344a74443f70db86
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

PLATFORM is an environment variable used by xfsprogs' configure script
to determine the platform for which the applications are being built. If
we set some incorrect/unsupported value through e.g: export, this will
be picked up by xfsprogs' configure script and used as-is and assigned
to PKG_PLATFORM, which will lead to build failures.

If PLATFORM was empty/unset, then uname on the host building xfsprogs
gets used to determine the build platform, which again could be
incorrect if we e.g: built xfsprogs on a Darwin system.

Since we are obviously building for Linux, let's just make sure we
define it that way which solves both issues.

Signed-off-by: Florian Fainelli <f.fainelli at gmail.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 package/xfsprogs/xfsprogs.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/xfsprogs/xfsprogs.mk b/package/xfsprogs/xfsprogs.mk
index b5975d29e1..bbb888707b 100644
--- a/package/xfsprogs/xfsprogs.mk
+++ b/package/xfsprogs/xfsprogs.mk
-XFSPROGS_CONF_ENV = ac_cv_header_aio_h=yes ac_cv_lib_rt_lio_listio=yes
+XFSPROGS_CONF_ENV = ac_cv_header_aio_h=yes ac_cv_lib_rt_lio_listio=yes PLATFORM="linux"
 	--enable-lib64=no \
 	--enable-gettext=no \

More information about the buildroot mailing list