Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/musl/
Date: Sun, 29 Jan 2023 08:45:55
Message-Id: 1674981733.ec05593c803806726bf17fe2ef956680def9467f.sam@gentoo
1 commit: ec05593c803806726bf17fe2ef956680def9467f
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 29 08:41:02 2023 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 29 08:42:13 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec05593c
7
8 sys-libs/musl: always install libssp_nonshared.a
9
10 Needed to avoid SSP hacks for cross (if we don't install it, we have to
11 deal with conditionally patching GCC).
12
13 Bug: https://bugs.gentoo.org/862831
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 sys-libs/musl/{musl-9999.ebuild => musl-1.2.3-r6.ebuild} | 8 +++++++-
17 sys-libs/musl/musl-9999.ebuild | 8 +++++++-
18 2 files changed, 14 insertions(+), 2 deletions(-)
19
20 diff --git a/sys-libs/musl/musl-9999.ebuild b/sys-libs/musl/musl-1.2.3-r6.ebuild
21 similarity index 97%
22 copy from sys-libs/musl/musl-9999.ebuild
23 copy to sys-libs/musl/musl-1.2.3-r6.ebuild
24 index 2c0d803dd8f4..231c91cb5ce1 100644
25 --- a/sys-libs/musl/musl-9999.ebuild
26 +++ b/sys-libs/musl/musl-1.2.3-r6.ebuild
27 @@ -1,4 +1,4 @@
28 -# Copyright 1999-2022 Gentoo Authors
29 +# Copyright 1999-2023 Gentoo Authors
30 # Distributed under the terms of the GNU General Public License v2
31
32 EAPI=7
33 @@ -181,6 +181,12 @@ src_install() {
34 dobin "${T}"/iconv
35 echo 'LDPATH="include ld.so.conf.d/*.conf"' > "${T}"/00musl || die
36 doenvd "${T}"/00musl
37 + fi
38 +
39 + if is_crosscompile ; then
40 + into /usr/${CTARGET}
41 + dolib.a libssp_nonshared.a
42 + else
43 dolib.a libssp_nonshared.a
44 fi
45 }
46
47 diff --git a/sys-libs/musl/musl-9999.ebuild b/sys-libs/musl/musl-9999.ebuild
48 index 2c0d803dd8f4..231c91cb5ce1 100644
49 --- a/sys-libs/musl/musl-9999.ebuild
50 +++ b/sys-libs/musl/musl-9999.ebuild
51 @@ -1,4 +1,4 @@
52 -# Copyright 1999-2022 Gentoo Authors
53 +# Copyright 1999-2023 Gentoo Authors
54 # Distributed under the terms of the GNU General Public License v2
55
56 EAPI=7
57 @@ -181,6 +181,12 @@ src_install() {
58 dobin "${T}"/iconv
59 echo 'LDPATH="include ld.so.conf.d/*.conf"' > "${T}"/00musl || die
60 doenvd "${T}"/00musl
61 + fi
62 +
63 + if is_crosscompile ; then
64 + into /usr/${CTARGET}
65 + dolib.a libssp_nonshared.a
66 + else
67 dolib.a libssp_nonshared.a
68 fi
69 }