* [Buildroot] [PATCH] package/boost: fix interprocess with musl
@ 2021-12-22 8:30 Michael Nosthoff via buildroot
2021-12-27 10:23 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Michael Nosthoff via buildroot @ 2021-12-22 8:30 UTC (permalink / raw)
To: buildroot
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
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
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH] package/boost: fix interprocess with musl
2021-12-22 8:30 [Buildroot] [PATCH] package/boost: fix interprocess with musl Michael Nosthoff via buildroot
@ 2021-12-27 10:23 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2021-12-27 10:23 UTC (permalink / raw)
To: Michael Nosthoff; +Cc: Michael Nosthoff via buildroot
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
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-27 10:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-22 8:30 [Buildroot] [PATCH] package/boost: fix interprocess with musl Michael Nosthoff via buildroot
2021-12-27 10:23 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox