When trying to emerge either avifile-0.7.{14|15} or libdv-0.98 on a freshly installed 1.4.0_rc1 both emerges fail when the linker tries to link the libraries against artsc because it cannot find libartsc ("cannto find -lartsc"). A workaround is to create a symlink from /usr/lib/libartsc.so to /usr/kde/3/lib/libartsc.so. The reason for this behaviour is IMHO the ebuilds for these packages. Here is an excerpt from /usr/portage/media-video/avifile/avifile-0.7.15.20020816: ----------------- 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 ---------------------- So first the LDFLAGS is set correctly to include the library dir of kde (the configure is called with --enable-kde) but later the freshly set LDFLAGS is unset again so the library cannot be found. With libdv the case is a little different. Here in the ebuild method src_compile the use of kde is not checked and so the compile fails when trying to link to artsc. I am new to emerge so this analysis might be wrong or not complete, please advise.
azarah: any ideas ?
What about changing it to: ----------------------- if [ `use kde` ] then myconf="${myconf} --enable-kde \ --with-extra-libraries=/usr/lib:${KDEDIR}" LDFLAGS="${LDFLAGS} -L${KDEDIR}/lib" else myconf="${myconf} --disable-kde" LDFLAGS="${LDFLAGS}" fi
Looks good to me.
Somebody will have to test though, as I dont use KDE ...
I don't know what changed but both pacakges are emergeing fine now (avifile-0.7.15.20020816 and libdv-0.98) I couldn't test it on a freshly installed system though.
this also prevented media-libs/libmpeg2 from emerging. the fix (creating a soft link from /usr/lib/libartsc.so to /usr/kde/3/lib/libartsc.so) worked a treat.