Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/boost/, dev-libs/boost/files/
Date: Thu, 03 Feb 2022 04:25:26
Message-Id: 1643862287.3414b1d35d6862ed5a5ad5251a60bc18b2e2be71.sam@gentoo
1 commit: 3414b1d35d6862ed5a5ad5251a60bc18b2e2be71
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 3 04:24:47 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 3 04:24:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3414b1d3
7
8 dev-libs/boost: fix musl build for 1.78
9
10 Closes: https://bugs.gentoo.org/829147
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 dev-libs/boost/boost-1.78.0-r2.ebuild | 2 ++
14 .../boost-1.78.0-interprocess-musl-include.patch | 25 ++++++++++++++++++++++
15 2 files changed, 27 insertions(+)
16
17 diff --git a/dev-libs/boost/boost-1.78.0-r2.ebuild b/dev-libs/boost/boost-1.78.0-r2.ebuild
18 index a67156cf87e9..53fbaeeddd56 100644
19 --- a/dev-libs/boost/boost-1.78.0-r2.ebuild
20 +++ b/dev-libs/boost/boost-1.78.0-r2.ebuild
21 @@ -53,6 +53,8 @@ PATCHES=(
22 # Boost.MPI's __init__.py doesn't work on Py3
23 "${FILESDIR}"/${PN}-1.73-boost-mpi-python-PEP-328.patch
24 "${FILESDIR}"/${PN}-1.74-CVE-2012-2677.patch
25 +
26 + "${FILESDIR}"/${P}-interprocess-musl-include.patch
27 )
28
29 python_bindings_needed() {
30
31 diff --git a/dev-libs/boost/files/boost-1.78.0-interprocess-musl-include.patch b/dev-libs/boost/files/boost-1.78.0-interprocess-musl-include.patch
32 new file mode 100644
33 index 000000000000..85d25861f11b
34 --- /dev/null
35 +++ b/dev-libs/boost/files/boost-1.78.0-interprocess-musl-include.patch
36 @@ -0,0 +1,25 @@
37 +https://github.com/boostorg/interprocess/commit/d002a0d929ecb031843d806c2bda69e013442e13
38 +https://bugs.gentoo.org/829147
39 +
40 +From: Leonardo Neumann <leonardo@×××××××××××.br>
41 +Date: Mon, 13 Dec 2021 01:07:20 -0300
42 +Subject: [PATCH] Fix missing sys/stat.h include on musl-based systems
43 +
44 +Boost 1.78.0 fails to build on musl-based systems because musl does
45 +not include sys/stat.h by default.
46 +
47 +Fixes #161 ("Boost compiler error")
48 +--- a/boost/interprocess/permissions.hpp
49 ++++ b/boost/interprocess/permissions.hpp
50 +@@ -29,6 +29,10 @@
51 +
52 + #include <boost/interprocess/detail/win32_api.hpp>
53 +
54 ++#else
55 ++
56 ++#include <sys/stat.h>
57 ++
58 + #endif
59 +
60 + #endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED
61 +