commit:     3a42003924c50f31c331265b58e9881e92696980
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 30 10:00:24 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Sep 30 10:48:14 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a420039

x11-plugins/wmnet: force gcc -E for imake's generation

Requires traditional cpp support and is broken in all sort of ways
with clang-cpp / -E. Can still use clang & friends for everything else.

Ideally these packages need to be built another way or last rited,
imake will just accumulate more problems.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 x11-plugins/wmnet/wmnet-1.06-r2.ebuild | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/x11-plugins/wmnet/wmnet-1.06-r2.ebuild 
b/x11-plugins/wmnet/wmnet-1.06-r2.ebuild
index 1b2ce83086b5..21e339edf295 100644
--- a/x11-plugins/wmnet/wmnet-1.06-r2.ebuild
+++ b/x11-plugins/wmnet/wmnet-1.06-r2.ebuild
@@ -18,17 +18,18 @@ IUSE=""
 RDEPEND="x11-libs/libX11
        x11-libs/libXext"
 DEPEND="${RDEPEND}
+       x11-base/xorg-proto
        elibc_musl? ( net-libs/ppp-defs )"
 BDEPEND="
-       x11-base/xorg-proto
-       >=x11-misc/imake-1.0.8-r1
-       app-text/rman"
+       app-text/rman
+       sys-devel/gcc
+       >=x11-misc/imake-1.0.8-r1"
 
 PATCHES=( "${WORKDIR}"/${P}-misc.patch )
 
 src_configure() {
        CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
-               IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die "xmkmf failed"
+               IMAKECPP="${IMAKECPP:-${CHOST}-gcc -E}" xmkmf || die "xmkmf 
failed"
 }
 
 src_compile() {

Reply via email to