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-misc/xkeycaps/
Date: Fri, 30 Sep 2022 11:02:22
Message-Id: 1664534892.c663d76d498d34d84edd2ecf23ebc6be911f327d.ionen@gentoo
1 commit: c663d76d498d34d84edd2ecf23ebc6be911f327d
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 09:17:17 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 10:48:12 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c663d76d
7
8 x11-misc/xkeycaps: 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 Closes: https://bugs.gentoo.org/871129
17 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
18
19 x11-misc/xkeycaps/xkeycaps-2.47_p7.ebuild | 12 +++++++-----
20 1 file changed, 7 insertions(+), 5 deletions(-)
21
22 diff --git a/x11-misc/xkeycaps/xkeycaps-2.47_p7.ebuild b/x11-misc/xkeycaps/xkeycaps-2.47_p7.ebuild
23 index cbac2508a679..be540734790a 100644
24 --- a/x11-misc/xkeycaps/xkeycaps-2.47_p7.ebuild
25 +++ b/x11-misc/xkeycaps/xkeycaps-2.47_p7.ebuild
26 @@ -1,4 +1,4 @@
27 -# Copyright 1999-2021 Gentoo Authors
28 +# Copyright 1999-2022 Gentoo Authors
29 # Distributed under the terms of the GNU General Public License v2
30
31 EAPI=7
32 @@ -23,10 +23,12 @@ RDEPEND="
33 x11-libs/libXt
34 x11-misc/xbitmaps
35 "
36 -DEPEND="${RDEPEND}"
37 -BDEPEND="
38 - >=sys-apps/sed-4
39 +DEPEND="
40 + ${RDEPEND}
41 x11-base/xorg-proto
42 +"
43 +BDEPEND="
44 + sys-devel/gcc
45 >=x11-misc/imake-1.0.8-r1
46 "
47
48 @@ -47,7 +49,7 @@ src_prepare() {
49
50 src_configure() {
51 CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
52 - IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die
53 + IMAKECPP="${IMAKECPP:-${CHOST}-gcc -E}" xmkmf || die
54 sed -i \
55 -e "s,all:: xkeycaps.\$(MANSUFFIX).html,all:: ,g" \
56 Makefile || die