Message ID | 20211222083020.49627-1-buildroot@heine.tech |
---|---|
State | Not Applicable |
Headers | show |
Series | package/boost: fix interprocess with musl | expand |
Hello Michael, On Wed, 22 Dec 2021 09:30:19 +0100 Michael Nosthoff via buildroot <buildroot@buildroot.org> wrote: > Interprocess in 1.78.0 broke on musl with commit efc75031f568a16e8520019deeb71e272818c467 > by using stuff from sys/stat.h without including it. > > Fixes: > - http://autobuild.buildroot.net/results/8af247ad084d510cd1100f76cb57a7fd32fcdb69 > > Signed-off-by: Michael Nosthoff <buildroot@heine.tech> > --- > ...stat_h-include-on-musl-based-systems.patch | 33 +++++++++++++++++++ > 1 file changed, 33 insertions(+) > create mode 100644 package/boost/0001-fix-missing-sys_stat_h-include-on-musl-based-systems.patch Thanks for the patch. However, Fabrice sent a similar patch 2 days before yours, so I applied Fabrice's patch. Thanks a lot! Thomas
diff --git a/package/boost/0001-fix-missing-sys_stat_h-include-on-musl-based-systems.patch b/package/boost/0001-fix-missing-sys_stat_h-include-on-musl-based-systems.patch new file mode 100644 index 0000000000..132b88e47e --- /dev/null +++ b/package/boost/0001-fix-missing-sys_stat_h-include-on-musl-based-systems.patch @@ -0,0 +1,33 @@ +From de657e01635306085488290ea83de541ec393f8b Mon Sep 17 00:00:00 2001 +From: Leonardo Neumann <leonardo@neumann.dev.br> +Date: Mon, 13 Dec 2021 01:07:20 -0300 +Subject: [PATCH] Fix missing sys/stat.h include on musl-based systems + +Boost 1.78.0 fails to build on musl-based systems because musl does +not include sys/stat.h by default. + +Fixes #161 ("Boost compiler error") +[buildroot@heine.tech: + - patch from https://github.com/boostorg/interprocess/pull/162 + - alter path to match boost release +] +Signed-off-by: Michael Nosthoff <buildroot@heine.tech> +--- + boost/interprocess/permissions.hpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/boost/interprocess/permissions.hpp b/boost/interprocess/permissions.hpp +index ab55411e..0b21a685 100644 +--- a/boost/interprocess/permissions.hpp ++++ b/boost/interprocess/permissions.hpp +@@ -29,6 +29,10 @@ + + #include <boost/interprocess/detail/win32_api.hpp> + ++#else ++ ++#include <sys/stat.h> ++ + #endif + + #endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED
Interprocess in 1.78.0 broke on musl with commit efc75031f568a16e8520019deeb71e272818c467 by using stuff from sys/stat.h without including it. Fixes: - http://autobuild.buildroot.net/results/8af247ad084d510cd1100f76cb57a7fd32fcdb69 Signed-off-by: Michael Nosthoff <buildroot@heine.tech> --- ...stat_h-include-on-musl-based-systems.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/boost/0001-fix-missing-sys_stat_h-include-on-musl-based-systems.patch