Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/lwm/
Date: Fri, 30 Sep 2022 11:02:24
Message-Id: 1664534895.f4e6242a6cfc760dfe65a5718967426372da9b2f.ionen@gentoo
1 commit: f4e6242a6cfc760dfe65a5718967426372da9b2f
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 10:27:10 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 10:48:15 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4e6242a
7
8 x11-wm/lwm: force gcc -E for imake's generation
9
10 Requires traditional cpp support and is broken in all sort of ways
11 with clang-cpp / -E. Can still use clang & friends for everything else.
12
13 Ideally these packages need to be built another way or last rited,
14 imake will just accumulate more problems.
15
16 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
17
18 x11-wm/lwm/lwm-1.2.4.ebuild | 6 ++++--
19 1 file changed, 4 insertions(+), 2 deletions(-)
20
21 diff --git a/x11-wm/lwm/lwm-1.2.4.ebuild b/x11-wm/lwm/lwm-1.2.4.ebuild
22 index 0a0a57a1a84e..e1d55b18003d 100644
23 --- a/x11-wm/lwm/lwm-1.2.4.ebuild
24 +++ b/x11-wm/lwm/lwm-1.2.4.ebuild
25 @@ -21,7 +21,9 @@ RDEPEND="
26 DEPEND="
27 ${RDEPEND}
28 x11-base/xorg-proto"
29 -BDEPEND=">=x11-misc/imake-1.0.8-r1"
30 +BDEPEND="
31 + sys-devel/gcc
32 + >=x11-misc/imake-1.0.8-r1"
33
34 src_prepare() {
35 default
36 @@ -31,7 +33,7 @@ src_prepare() {
37
38 src_configure() {
39 CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
40 - IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die
41 + IMAKECPP="${IMAKECPP:-${CHOST}-gcc -E}" xmkmf || die
42 }
43
44 src_compile() {