Created attachment 331476 [details] emerge --info xen-tools fails to apply ipxe-nopie.patch ... * Applying ipxe-nopie.patch ... * Failed Patch: ipxe-nopie.patch ! * ( /usr/portage/app-emulation/xen-tools/files/ipxe-nopie.patch ) * * Include in your bugreport the contents of: * * /var/tmp/portage/app-emulation/xen-tools-4.2.0-r1/temp/ipxe-nopie.patch.out * ERROR: app-emulation/xen-tools-4.2.0-r1 failed (prepare phase): * Failed Patch: ipxe-nopie.patch! * * Call stack: * ebuild.sh, line 93: Called src_prepare * environment, line 5203: Called epatch '/usr/portage/app-emulation/xen-tools/files/ipxe-nopie.patch' * environment, line 1747: Called die * The specific snippet of code: * die "Failed Patch: ${patchname}!"; ... ipxe-nopie.patch.out: ***** ipxe-nopie.patch ***** PWD: /var/tmp/portage/app-emulation/xen-tools-4.2.0-r1/work/xen-4.2.0 ============================ PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < '/usr/portage/app-emulation/xen-tools/files/ipxe-nopie.patch' ============================ patching file a/tools/firmware/etherboot/patches/ipxe-nopie.patch can't find file to patch at input line 23 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- a/tools/firmware/etherboot/patches/series 2011-03-25 11:42:50.000000000 +0100 |+++ b/tools/firmware/etherboot/patches/series 2011-03-27 17:45:45.140446216 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored patch program exited with status 1 ============================ PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch < '/usr/portage/app-emulation/xen-tools/files/ipxe-nopie.patch' ============================ patching file tools/firmware/etherboot/patches/ipxe-nopie.patch patching file tools/firmware/etherboot/patches/series Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file tools/firmware/etherboot/patches/series.rej patch program exited with status 1 ============================ PATCH COMMAND: patch -p2 -g0 -E --no-backup-if-mismatch < '/usr/portage/app-emulation/xen-tools/files/ipxe-nopie.patch' ============================ patching file firmware/etherboot/patches/ipxe-nopie.patch can't find file to patch at input line 23 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- a/tools/firmware/etherboot/patches/series 2011-03-25 11:42:50.000000000 +0100 |+++ b/tools/firmware/etherboot/patches/series 2011-03-27 17:45:45.140446216 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored patch program exited with status 1 ============================ PATCH COMMAND: patch -p3 -g0 -E --no-backup-if-mismatch < '/usr/portage/app-emulation/xen-tools/files/ipxe-nopie.patch' ============================ patching file etherboot/patches/ipxe-nopie.patch can't find file to patch at input line 23 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- a/tools/firmware/etherboot/patches/series 2011-03-25 11:42:50.000000000 +0100 |+++ b/tools/firmware/etherboot/patches/series 2011-03-27 17:45:45.140446216 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored patch program exited with status 1 ============================ PATCH COMMAND: patch -p4 -g0 -E --no-backup-if-mismatch < '/usr/portage/app-emulation/xen-tools/files/ipxe-nopie.patch' ============================ patching file patches/ipxe-nopie.patch can't find file to patch at input line 23 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- a/tools/firmware/etherboot/patches/series 2011-03-25 11:42:50.000000000 +0100 |+++ b/tools/firmware/etherboot/patches/series 2011-03-27 17:45:45.140446216 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored patch program exited with status 1 2nd part of ipxe-nopie.patch should be: --- a/tools/firmware/etherboot/patches/series 2012-12-05 00:39:43.309807905 +0100 +++ b/tools/firmware/etherboot/patches/series 2012-12-05 00:51:55.765657076 +0100 @@ -2,3 +2,4 @@ build_fix_1.patch build_fix_2.patch build_fix_3.patch +ipxe-nopie.patch With this change i can build xen-tools-4.2.0-r1.
Same for me. Proposed change in patch file works for me, as well.
xen-tools-4.2.0-r2 is also affected
Thanks uen for the patch to the patch, please test and report it's all good.
ipxe-nopie.patch Rev. 1.2 works for me with xen-tools-4.2.0-r1 and xen-tools-4.2.0-r2.