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/xsnap/
Date: Fri, 30 Sep 2022 11:02:22
Message-Id: 1664534893.c93bd722e0b57cf2313f3eb97e50e4277cfce344.ionen@gentoo
1 commit: c93bd722e0b57cf2313f3eb97e50e4277cfce344
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 09:19:37 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 10:48:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c93bd722
7
8 x11-misc/xsnap: 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 Bug: https://bugs.gentoo.org/870811
17 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
18
19 x11-misc/xsnap/xsnap-1.5.15-r2.ebuild | 11 +++++++----
20 1 file changed, 7 insertions(+), 4 deletions(-)
21
22 diff --git a/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild b/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild
23 index dd43dcab6432..bc17eb259842 100644
24 --- a/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild
25 +++ b/x11-misc/xsnap/xsnap-1.5.15-r2.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 @@ -24,11 +24,14 @@ RDEPEND="
33 ${COMMON_DEPEND}
34 media-fonts/font-misc-misc
35 "
36 -DEPEND="${COMMON_DEPEND}"
37 +DEPEND="
38 + ${COMMON_DEPEND}
39 + x11-base/xorg-proto
40 +"
41 BDEPEND="
42 app-text/rman
43 dev-lang/perl
44 - x11-base/xorg-proto
45 + sys-devel/gcc
46 >=x11-misc/imake-1.0.8-r1
47 "
48 DOCS=( AUTHORS Changelog README )
49 @@ -50,7 +53,7 @@ src_prepare() {
50
51 src_configure() {
52 CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
53 - IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die
54 + IMAKECPP="${IMAKECPP:-${CHOST}-gcc -E}" xmkmf || die
55 }
56
57 src_compile() {