getting some "invalid preprocessing directive"s. Attached patch solved the problem for me (though i don't know what I did). here's the log: flo@basil /usr/local/portage $ sudo emerge xkeycaps Calculating dependencies ...done! >>> emerge (1 of 1) x11-misc/xkeycaps-2.46 to / >>> md5 src_uri ;-) xkeycaps-2.46.tar.Z >>> Unpacking source... >>> Unpacking xkeycaps-2.46.tar.Z to /var/tmp/portage/xkeycaps-2.46/work >>> Source unpacked. imake -DUseInstalled -I/usr/X11R6/lib/X11/config In file included from /usr/X11R6/lib/X11/config/Imake.tmpl:104, from Imakefile.c:36: /usr/X11R6/lib/X11/config/linux.cf:323: warning: "BuildLibGlxWithoutPIC" redefined In file included from /usr/X11R6/lib/X11/config/site.def:44, from /usr/X11R6/lib/X11/config/Imake.tmpl:45, from Imakefile.c:36: /usr/X11R6/lib/X11/config/host.def:69: warning: this is the location of the previous definition In file included from /usr/X11R6/lib/X11/config/X11.tmpl:1705, from /usr/X11R6/lib/X11/config/Imake.tmpl:2012, from Imakefile.c:36: /usr/X11R6/lib/X11/config/lnxLib.tmpl:54: warning: "SharedGLReqs" redefined /usr/X11R6/lib/X11/config/lnxLib.tmpl:26: warning: this is the location of the previous definition In file included from /usr/X11R6/lib/X11/config/Imake.tmpl:2047, from Imakefile.c:36: Imakefile:1: invalid preprocessing directive #Imakefile Imakefile:2: invalid preprocessing directive #Copyright Imakefile:356: invalid preprocessing directive #COMPRESS Imakefile:357: invalid preprocessing directive #COMPRESS_EXT imake: Exit code 1. Stop. !!! ERROR: x11-misc/xkeycaps-2.46 failed. !!! Function src_compile, Line 16, Exitcode 1 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 19412 [details] xkeycaps-2.46.ebuild (updated ebuild) just added an unpack-section to apply the patch.
Created attachment 19413 [details, diff] xkeycaps-2.46.diff (the diff-file, for the make-file) hope this patch works not only on my machine...
Could you post the output of `emerge --info` as requested on the bug submission page please? The current ebuild works fine for me, BTW.
sorry. I retried, and it's reproducible. doing the steps by hand: === ebuild xkeycaps-2.46.ebuild unpack cd /var/tmp/portage/xkeycaps-2.46/work/xkeycaps-2.46 xmkmf === this is sufficient to get the error. some of the offending lines in the Imake-file are the following: === /**/# Imakefile for xkeycaps; /**/# Copyright (c) 1991, 1992, 1993, 1994, 1995, 1999 Jamie Zawinski. === I my patch I just changed them to === /*# Imakefile for xkeycaps;*/ /*# Copyright (c) 1991, 1992, 1993, 1994, 1995, 1999 Jamie Zawinski.*/ === flo@basil /usr/lib $ emerge info Portage 2.0.49-r13-2 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r6, 2.4.20-gentoo-r7) ================================================================= System uname: 2.4.20-gentoo-r7 i686 AMD Athlon(TM) XP 2200+ Gentoo Base System version 1.4.3.11 ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb gdbm berkdb slang readline arts tetex svga ggi X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis motif opengl mozilla doc innodb imap ipv6 -kde -qt -gnome -gtk cdr -java alsa sse 3dnow dvd"
looks like someone didn't know how to comment out code :) will take it upstream. fixed in cvs.
uhm, upstream is dead.
Well, probably not dead. But definitely not very interested. ;-)