package/boost: fix interprocess with musl
PATCH 1/1 package/boost: fix interprocess with musl
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 <[email protected]>
--- ...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
package/boost/0001-fix-missing-sys_stat_h-include-on-musl-based-systems.patch new file +33 -0
@@ -0,0 +1,33 @@ +From de657e01635306085488290ea83de541ec393f8b Mon Sep 17 00:00:00 2001 +From: Leonardo Neumann <[email protected]> +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") +[[email protected]: + - patch from https://github.com/boostorg/interprocess/pull/162 + - alter path to match boost release +] +Signed-off-by: Michael Nosthoff <[email protected]> +--- + 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
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Michael,
Quoted 11 lines · On Wed, 22 Dec 2021 09:30:19 +0100 Michael Nosthoff via buildroot…
Interprocess in 1.78.0 broke on musl with commit
efc75031f568a16e8520019deeb71e272818c467by using stuff fromsys/stat.hwithout including it.Fixes:
- http://autobuild.buildroot.net/results/8af247ad084d510cd1100f76cb57a7fd32fcdb69Signed-off-by Michael Nosthoff <[email protected]>--- ...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
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot