There's a bug in the samba-3.0.6-r4.ebuild: FILEDIR instead of FILESDIR is used thus emerge searches for the patch in / (instead of /usr/portage/net-fs/samba/files). This line (src_unpack()) use amd64 && epatch ${FILEDIR}/${P}-libdirsymlink.patch should be replaced with: use amd64 && epatch ${FILESDIR}/${P}-libdirsymlink.patch
Created attachment 39315 [details, diff] Patch substitutes FILEDIR with FILESDIR
Thanks: changes in cvs
*** Bug 63573 has been marked as a duplicate of this bug. ***
I get a similar error with samba 3.0.7 ebuild: >>> Unpacking samba-3.0.7.tar.gz to /var/tmp/portage/samba-3.0.7/work * Applying samba-3.0.x-python-setup.patch... [ ok ] * Applying samba-3.0.x-smbumount-uid32.patch... [ ok ] amd64 * Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is: * * /usr/portage/net-fs/samba/files/samba-3.0.7-libdirsymlink.patch !!! ERROR: net-fs/samba-3.0.7 failed. !!! Function epatch, Line 255, Exitcode 0 !!! Cannot find $EPATCH_SOURCE!
It looks like the actual file samba-3.0.7-libdirsymlink.patch is missing. There is only one for previous version.