From: Michael Nosthoff via buildroot <buildroot@buildroot.org>
To: buildroot@buildroot.org
Subject: [Buildroot] [PATCH] package/boost: fix interprocess with musl
Date: Wed, 22 Dec 2021 09:30:19 +0100 [thread overview]
Message-ID: <20211222083020.49627-1-buildroot@heine.tech> (raw)
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
next reply other threads:[~2021-12-22 8:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-22 8:30 Michael Nosthoff via buildroot [this message]
2021-12-27 10:23 ` [Buildroot] [PATCH] package/boost: fix interprocess with musl Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211222083020.49627-1-buildroot@heine.tech \
--to=buildroot@buildroot.org \
--cc=buildroot@heine.tech \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox