Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/mingw64-toolchain/, dev-util/mingw64-toolchain/files/
Date: Wed, 29 Jun 2022 17:22:55
Message-Id: 1656523356.d8f263e503f54eb05f2c764ae443ea2e08e47366.ionen@gentoo
1 commit: d8f263e503f54eb05f2c764ae443ea2e08e47366
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 29 16:23:21 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 29 17:22:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8f263e5
7
8 dev-util/mingw64-toolchain: fix build with musl and gcc:12
9
10 Closes: https://bugs.gentoo.org/855002
11 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
12
13 .../files/gcc-11.3.0-musl-calloc.patch | 33 ++++++++++++++++++++++
14 .../mingw64-toolchain-10.0.0-r1.ebuild | 1 +
15 2 files changed, 34 insertions(+)
16
17 diff --git a/dev-util/mingw64-toolchain/files/gcc-11.3.0-musl-calloc.patch b/dev-util/mingw64-toolchain/files/gcc-11.3.0-musl-calloc.patch
18 new file mode 100644
19 index 000000000000..71602df60cca
20 --- /dev/null
21 +++ b/dev-util/mingw64-toolchain/files/gcc-11.3.0-musl-calloc.patch
22 @@ -0,0 +1,33 @@
23 +https://bugs.gentoo.org/855002
24 +https://gcc.gnu.org/PR104799
25 +https://gcc.gnu.org/PR106102
26 +--- a/gcc/gcc/cp/mapper-client.cc
27 ++++ b/gcc/gcc/cp/mapper-client.cc
28 +@@ -29,2 +29,3 @@
29 + #define INCLUDE_MAP
30 ++#include <pthread.h>
31 + #include "system.h"
32 +--- a/gcc/gcc/cp/mapper-resolver.cc
33 ++++ b/gcc/gcc/cp/mapper-resolver.cc
34 +@@ -27,2 +27,3 @@
35 + #define INCLUDE_MAP
36 ++#include <pthread.h>
37 + #include "system.h"
38 +--- a/gcc/gcc/cp/module.cc
39 ++++ b/gcc/gcc/cp/module.cc
40 +@@ -206,2 +206,3 @@
41 + #define INCLUDE_VECTOR
42 ++#include <pthread.h>
43 + #include "system.h"
44 +--- a/gcc/libcc1/libcc1plugin.cc
45 ++++ b/gcc/libcc1/libcc1plugin.cc
46 +@@ -19,2 +19,3 @@
47 +
48 ++#include <pthread.h>
49 + #include <cc1plugin-config.h>
50 +--- a/gcc/libcc1/libcp1plugin.cc
51 ++++ b/gcc/libcc1/libcp1plugin.cc
52 +@@ -20,2 +20,3 @@
53 +
54 ++#include <pthread.h>
55 + #include <cc1plugin-config.h>
56
57 diff --git a/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0-r1.ebuild b/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0-r1.ebuild
58 index c0d573454f7f..c902601aa43c 100644
59 --- a/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0-r1.ebuild
60 +++ b/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0-r1.ebuild
61 @@ -44,6 +44,7 @@ DEPEND="${RDEPEND}"
62 PATCHES=(
63 "${FILESDIR}"/mingw64-runtime-10.0.0-tmp-files-clash.patch
64 "${FILESDIR}"/gcc-11.3.0-plugin-objdump.patch
65 + "${FILESDIR}"/gcc-11.3.0-musl-calloc.patch
66 )
67
68 pkg_pretend() {