While trying to bump app-emulation/libvirt-glib I hit this problem: >>> Emerging (8 of 8) app-emulation/libvirt-glib-0.1.2 * libvirt-glib-0.1.2.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking libvirt-glib-0.1.2.tar.gz to /var/tmp/portage/app-emulation/libvirt-glib-0.1.2/work >>> Source unpacked in /var/tmp/portage/app-emulation/libvirt-glib-0.1.2/work >>> Preparing source in /var/tmp/portage/app-emulation/libvirt-glib-0.1.2/work/libvirt-glib-0.1.2 ... ln: fallo al crear el enlace simbólico «/var/tmp/portage/app-emulation/libvirt-glib-0.1.2/temp/pkgconfig/libvala.pc»: El fichero ya existe * ERROR: app-emulation/libvirt-glib-0.1.2 failed (prepare phase): * ln failed * * Call stack: * ebuild.sh, line 85: Called src_prepare * environment, line 5561: Called vala_src_prepare * environment, line 6079: Called die * The specific snippet of code: * ln -s "${d}/${p}-${version}.pc" "${T}/pkgconfig/${p}.pc" || die "ln failed"; * * If you need support, post the output of `emerge --info '=app-emulation/libvirt-glib-0.1.2'`, * the complete build log and the output of `emerge -pqv '=app-emulation/libvirt-glib-0.1.2'`. * The complete build log is located at '/var/log/portage/build/app-emulation/libvirt-glib-0.1.2:20120929-103236.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-emulation/libvirt-glib-0.1.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-emulation/libvirt-glib-0.1.2/temp/environment'. * Working directory: '/var/tmp/portage/app-emulation/libvirt-glib-0.1.2/work/libvirt-glib-0.1.2' * S: '/var/tmp/portage/app-emulation/libvirt-glib-0.1.2/work/libvirt-glib-0.1.2' >>> Failed to emerge app-emulation/libvirt-glib-0.1.2, Log file: >>> '/var/log/portage/build/app-emulation/libvirt-glib-0.1.2:20120929-103236.log' Maybe "ln" should be called with "-f" option Reproducible: Always
Created attachment 325292 [details] libvirt-glib-0.1.2.ebuild
This error should be impossible. Possibilities I can think of: 1. you had FEATURES=keeptemp or keepwork, and forgot to delete /var/tmp/portage/app-emulation/libvirt-glib-0.1.2 after a failed or interrupted emerge. 2. one of your vala slots installed multiple libvala-$SLOT.pc files. (Please check by looking at "ls /usr/{share,lib}/pkgconfig/libvala*")
Never mind, I see what happened: "use vala && vala_src_prepare" needs to be in src_prepare, not in pkg_setup.
Yeah, sorry for the noise