The new kde-base/kdemultimedia ebuild fails to build with TCLTK support. The failure in TIMIDITY is as follows: --- i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/X11R6/include `/usr/kde/3/bin/artsc-config --cflags` -DQT_THREAD_SUPPORT -D_REENTRANT -DDEFAULT_PATH=\"//usr/kde/3/share/apps/kmidi/config\" -DAU_OSS -DAU_ESD -DIA_NCURSES -DIA_SLANG -DIA_MOTIF -DTCLTK -DIA_XAW -DIA_GTK -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -fasm -DNDEBUG -O2 -O2 -mcpu=i686 -pipe -c `test -f tk_c.c || echo './'`tk_c.c tk_c.c: In function `pipe_error': tk_c.c:651: `errno' undeclared (first use in this function) tk_c.c:651: (Each undeclared identifier is reported only once tk_c.c:651: for each function it appears in.) make[3]: *** [tk_c.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdemultimedia-3.0/work/kdemultimedia-3.0/kmidi/TIMIDITY' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdemultimedia-3.0/work/kdemultimedia-3.0/kmidi' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdemultimedia-3.0/work/kdemultimedia-3.0' make: *** [all] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function kde_src_compile, Line -3484, Exitcode 2 !!! died running emake, kde_src_compile:make !!! emerge aborting on /usr/portage/kde-base/kdemultimedia/kdemultimedia-3.0.ebuild . --- I created a simple patch that allows it to build, and will attach it below.
Bugzilla is not allowing me to attach a patch, so I am including it in plaintext here (watch bugzilla wrap it): --- kmidi/TIMIDITY/tk_c.c 2002-04-04 21:15:35.000000000 -0600 +++ kmidi/TIMIDITY/tk_c.c 2002-04-04 21:17:06.000000000 -0600 @@ -12,6 +12,7 @@ *================================================================*/ #ifdef TCLTK +#include <sys/errno.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h>
I'm adding your patch to the similar one already in portage. Thanks for a good report with a fix.