irssi-svn-0.3 fails to build, during make stage it errors out with a parse error on expandos.c It grabs revision 4185 from the SVN repo. * subversion update start --> * update from: http://svn.irssi.org/repos/irssi/trunk At revision 4185. make[3]: Entering directory `/var/tmp/portage/irssi-svn-0.3/work/irssi-svn-0.3/src/core'if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/core -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DSYSCONFDIR=\""/etc"\" -DMODULEDIR=\""/usr/lib/irssi/modules"\" -mtune=pentium2 -O2 -pipe -fomit-frame-pointer -Wall -MT args.o -MD -MP -MF ".deps/args.Tpo" -c -o args.o args.c; \then mv -f ".deps/args.Tpo" ".deps/args.Po"; else rm -f ".deps/args.Tpo"; exit 1; fiif i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/core -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DSYSCONFDIR=\""/etc"\" -DMODULEDIR=\""/usr/lib/irssi/modules"\" -mtune=pentium2 -O2 -pipe -fomit-frame-pointer -Wall -MT channels.o -MD -MP -MF ".deps/channels.Tpo" -c -o channels.o channels.c; \then mv -f ".deps/channels.Tpo" ".deps/channels.Po"; else rm -f ".deps/channels.Tpo"; exit 1; fiif i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/core -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DSYSCONFDIR=\""/etc"\" -DMODULEDIR=\""/usr/lib/irssi/modules"\" -mtune=pentium2 -O2 -pipe -fomit-frame-pointer -Wall -MT channels-setup.o -MD -MP -MF ".deps/channels-setup.Tpo" -c -o channels-setup.o channels-setup.c; \then mv -f ".deps/channels-setup.Tpo" ".deps/channels-setup.Po"; else rm -f ".deps/channels-setup.Tpo"; exit 1; fiif i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/core -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DSYSCONFDIR=\""/etc"\" -DMODULEDIR=\""/usr/lib/irssi/modules"\" -mtune=pentium2 -O2 -pipe -fomit-frame-pointer -Wall -MT commands.o -MD -MP -MF ".deps/commands.Tpo" -c -o commands.o commands.c; \then mv -f ".deps/commands.Tpo" ".deps/commands.Po"; else rm -f ".deps/commands.Tpo"; exit 1; fiif i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/core -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DSYSCONFDIR=\""/etc"\" -DMODULEDIR=\""/usr/lib/irssi/modules"\" -mtune=pentium2 -O2 -pipe -fomit-frame-pointer -Wall -MT chat-commands.o -MD -MP -MF ".deps/chat-commands.Tpo" -c -o chat-commands.o chat-commands.c; \then mv -f ".deps/chat-commands.Tpo" ".deps/chat-commands.Po"; else rm -f ".deps/chat-commands.Tpo"; exit 1; fiif i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/core -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DSYSCONFDIR=\""/etc"\" -DMODULEDIR=\""/usr/lib/irssi/modules"\" -mtune=pentium2 -O2 -pipe -fomit-frame-pointer -Wall -MT chat-protocols.o -MD -MP -MF ".deps/chat-protocols.Tpo" -c -o chat-protocols.o chat-protocols.c; \then mv -f ".deps/chat-protocols.Tpo" ".deps/chat-protocols.Po"; else rm -f ".deps/chat-protocols.Tpo"; exit 1; fiif i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/core -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DSYSCONFDIR=\""/etc"\" -DMODULEDIR=\""/usr/lib/irssi/modules"\" -mtune=pentium2 -O2 -pipe -fomit-frame-pointer -Wall -MT chatnets.o -MD -MP -MF ".deps/chatnets.Tpo" -c -o chatnets.o chatnets.c; \then mv -f ".deps/chatnets.Tpo" ".deps/chatnets.Po"; else rm -f ".deps/chatnets.Tpo"; exit 1; fiif i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/core -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DSYSCONFDIR=\""/etc"\" -DMODULEDIR=\""/usr/lib/irssi/modules"\" -mtune=pentium2 -O2 -pipe -fomit-frame-pointer -Wall -MT core.o -MD -MP -MF ".deps/core.Tpo" -c -o core.o core.c; \then mv -f ".deps/core.Tpo" ".deps/core.Po"; else rm -f ".deps/core.Tpo"; exit 1; fiif i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/core -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DSYSCONFDIR=\""/etc"\" -DMODULEDIR=\""/usr/lib/irssi/modules"\" -mtune=pentium2 -O2 -pipe -fomit-frame-pointer -Wall -MT expandos.o -MD -MP -MF ".deps/expandos.Tpo" -c -o expandos.o expandos.c; \then mv -f ".deps/expandos.Tpo" ".deps/expandos.Po"; else rm -f ".deps/expandos.Tpo"; exit 1; fiif i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/core -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DSYSCONFDIR=\""/etc"\" -DMODULEDIR=\""/usr/lib/irssi/modules"\" -mtune=pentium2 -O2 -pipe -fomit-frame-pointer -Wall -MT ignore.o -MD -MP -MF ".deps/ignore.Tpo" -c -o ignore.o ignore.c; \then mv -f ".deps/ignore.Tpo" ".deps/ignore.Po"; else rm -f ".deps/ignore.Tpo"; exit 1; fiexpandos.c: In function `expando_releasedate':expandos.c:398: error: parse error before ')' tokenexpandos.c: In function `expando_releasetime':expandos.c:405: error: parse error before ')' tokenmake[3]: *** [expandos.o] Error 1make[3]: *** Waiting for unfinished jobs....make[3]: Leaving directory `/var/tmp/portage/irssi-svn-0.3/work/irssi-svn-0.3/src/core'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/var/tmp/portage/irssi-svn-0.3/work/irssi-svn-0.3/src'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/var/tmp/portage/irssi-svn-0.3/work/irssi-svn-0.3'make: *** [all] Error 2!!! ERROR: net-irc/irssi-svn-0.3 failed.!!! Function src_compile, Line 40, Exitcode 2!!! emake failed!!! If you need support, post the topmost build error, NOT this status message. I'm sure it's an upstream issue, but I'm not going to make that call.
In my opinion this is broken revision not an ebuild issue
The bug seems to stem from the fact that the IRSSI_VERSION_DATE and IRSSI_VERSION_TIME constants arent being set. The actual irssi-version.h include seems to be generated at runtime and the values for these two constants setup in configure.in like so - #VERSION_DATE=`head -n 2 $srcdir/ChangeLog| grep '^r' | awk '{print $5}' | tr -d '-'` #VERSION_TIME=`head -n 2 $srcdir/ChangeLog| grep '^r' | awk '{print $6}' | awk -F: '{printf "%d\n", $1$2}'` and then used later to create the include. However on my system at least these commands don't work as it can't find the Changelog and so returns nothing but an error. An adhoc fix was simply to set the variables to a set value but this is obviously a bit of a hack and a more permanent solution would be nice. At least I have a working irssi-svn-0.3 now.
"seems to be generated at runtime" should be "seems to be generated at make/compile time", its late, I need sleep and this is my first bug report so sorry if it's not up to spec.
our eclass removed the .svn directories and hence irssi can't update the ChangeLog
I added some code to fetch the log via URL, not via working copy, this should fix it. Please give it a test.