Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31435 - xkeycaps-2.46 fails to build
Summary: xkeycaps-2.46 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-10-18 11:36 UTC by Florian Loitsch
Modified: 2003-12-06 15:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xkeycaps-2.46.ebuild (updated ebuild) (xkeycaps-2.46.ebuild,733 bytes, text/plain)
2003-10-18 11:37 UTC, Florian Loitsch
Details
xkeycaps-2.46.diff (the diff-file, for the make-file) (xkeycaps-2.46.diff,1.06 KB, patch)
2003-10-18 11:38 UTC, Florian Loitsch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Loitsch 2003-10-18 11:36:34 UTC
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.
Comment 1 Florian Loitsch 2003-10-18 11:37:34 UTC
Created attachment 19412 [details]
xkeycaps-2.46.ebuild (updated ebuild)

just added an unpack-section to apply the patch.
Comment 2 Florian Loitsch 2003-10-18 11:38:23 UTC
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...
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2003-10-18 23:06:11 UTC
Could you post the output of `emerge --info` as requested on the bug submission
page please?  The current ebuild works fine for me, BTW.
Comment 4 Florian Loitsch 2003-10-19 03:55:47 UTC
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"
Comment 5 Markus Nigbur (RETIRED) gentoo-dev 2003-12-06 09:21:37 UTC
looks like someone didn't know how to comment out code :)
will take it upstream.

fixed in cvs.
Comment 6 Markus Nigbur (RETIRED) gentoo-dev 2003-12-06 09:25:29 UTC
uhm, upstream is dead.
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2003-12-06 15:07:09 UTC
Well, probably not dead.  But definitely not very interested. ;-)