>>> Source unpacked in /var/tmp/portage/app-emulation/libguestfs-1.28.5-r2/work >>> Preparing source in /var/tmp/portage/app-emulation/libguestfs-1.28.5-r2/work/libguestfs-1.28.5 ... * QA: File or directory "/var/tmp/portage/app-emulation/libguestfs-1.28.5-r2/files/1.28/*.patch" does not exist. * QA: Check your PATCHES array or add missing file/directory. * ERROR: app-emulation/libguestfs-1.28.5-r2::gentoo failed (prepare phase): * Some patches failed. See above messages. ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0-desktop-plasma_20170625-114015 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-6.3.0 * Available Python interpreters, in order of preference: [1] python3.4 [2] python2.7 (fallback) [3] pypy (fallback) [4] jython2.7 (fallback) Available Ruby profiles: [1] ruby21 (with Rubygems) * [2] ruby22 (with Rubygems) java-config: The following VMs are available for generation-2: 1) IcedTea JDK 7.2.6.10 [icedtea-bin-7] *) IcedTea JDK 3.4.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-7 [2] icedtea-bin-8 system-vm
Created attachment 479854 [details] emerge-info.txt
Created attachment 479856 [details] app-emulation:libguestfs-1.28.5-r2:20170702-090814.log
Created attachment 479858 [details] emerge-history.txt
Created attachment 479860 [details] environment
Created attachment 479862 [details] etc.portage.tbz2
Created attachment 479864 [details] temp.tbz2
I added the line: FILESDIR="${PORTDIR}/${CATEGORY}/${PN}/files" To the ebuild and it compiled as it should.
FILESDIR is iirc not available in global scope, which is why this fails. Simple fix is to bump EAPI to 6 and then just specify the directory to eapply. commit c9fd0749b402a36a08bded3c613cb6f2fa992ab0 (HEAD -> master) Author: Ian Stakenvicius <axs@gentoo.org> Date: Wed Jul 19 16:08:42 2017 -0400 app-emulation/libguestfs: bump to EAPI6 The EAPI bump also happens to address the globbing of patches that caused bug 623516 Bug: http://bugs.gentoo.org/623516 Package-Manager: Portage-2.3.6, Repoman-2.3.1