From the media-video/avifile-0.7.15.20020816-r1 ebuild: ***************************************************** if [ `use kde` ] then myconf="${myconf} --enable-kde --with-extra-libraries=${KDEDIR}" ==> LDFLAGS="${LDFLAGS} -L${KDEDIR}/lib" else myconf="${myconf} --disable-kde" LDFLAGS="${LDFLAGS}" fi # Rather not use custom ones here .. build should set as high as # safe by itself. ==> unset CFLAGS CXXFLAGS LDFLAGS ***************************************************** If 'use kde' is set, then an option is added to LDFLAGS, which is then removed by the 'unset' line. This causes the ebuild not to find my KDE libraries. Perhaps the 'unset' line should be moved further up.
The plot thickens... Moving the unset line as I suggested doesn't seem to fix this. This is the compilation problem: i686-pc-linux-gnu-gcc -shared codeckeeper.lo Uncompressed.lo -Wl,--whole-archive aviplay/.libs/libaviplay.al aviread/.libs/libaviread.al aviwrite/.libs/libaviwrite.al common/.libs/libcommon.al subtitle/.libs/libsubtitle.al video/.libs/libvideo.al -Wl,--no-whole-archive -L/usr/X11R6/lib -L/usr/kde/cvs/lib -lz -L/usr/lib /usr/lib/libSDL.so -lm -lartsc -lvga -lSM -lICE -lXxf86dga -lXxf86vm -lXi -lXft -lXv -lXext -lX11 -lpthread -lnsl -ldl -Wl,-soname -Wl,libaviplay-0.7.so.0 -o .libs/libaviplay-0.7.so.0.0.15 /usr/i686-pc-linux-gnu/bin/ld: cannot find -lartsc collect2: ld returned 1 exit status make[2]: *** [libaviplay.la] Error 1 make[2]: Leaving directory `/var/tmp/portage/avifile-0.7.15.20020816-r1/work/avifile0.7-0.7.15/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/avifile-0.7.15.20020816-r1/work/avifile0.7-0.7.15/lib' make: *** [all-recursive] Error 1 Note the "-L/usr/kde/cvs/lib". My KDE doesn't live there; it lives in /usr/kde/3.1/lib (although it lived in /usr/kde/cvs/lib up to about 4 months ago). I'm not sure where it's getting the old location from; I can't find any references to it in /etc. I've also noticed that the author thinks KDE is broken anyway: # grep configure.in -e kde dnl kde is currently unsupported dnl AC_ARG_ENABLE(kde, [ --enable-kde build kde sample programs. [default=yes]], dnl , enable_kde=yes) dnl AC_PATH_PROG(kde_artscplug_compiles,artsc-config,no,$artsc_config_test_path) dnl if test x$kde_artscplug_compiles != xno -a x$enable_kde = xyes ; then dnl ARTSC_CONFIG=$kde_artscplug_compiles; dnl kde_artscplug_compiles=yes dnl kde_artscplug_compiles=no dnl if test x$kde_artscplug_compiles = xyes; then - it seems that the parts that look for the artsc libraries are commented out, but the ebuild still passes the "--enable-kde" parameter to configure, so presumably it's still trying to compile it.
Disabled it in ebuild.
A minor oversight (I think): you've left the KDE dependency in. Since the ebuild no longer checks for 'use kde', the following line should probably be removed from DEPEND= : kde? ( kde-base/arts ) Or is there another reason why avifile should depend on arts?
Whoop, will fix, thanks!