Can't build this package due to a failed patch apply. Looking at the results of the attempted patch it seems it can't find a file to apply the patch. Reproducible: Always
***** xf86-video-virtualbox-4.3.8-vboxvideo_compilefixes.patch ***** PWD: /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.14/work/VirtualBox-4.3.14 ==================================================================== PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < '/usr/portage/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-4.3.8-vboxvideo_compilefixes.patch' ==================================================================== can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- VirtualBox-4.3.8/src/VBox/Additions/x11/vboxvideo/vboxvideo.h |+++ VirtualBox-4.3.8/src/VBox/Additions/x11/vboxvideo/vboxvideo.h -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored patch program exited with status 1 ==================================================================== PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch < '/usr/portage/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-4.3.8-vboxvideo_compilefixes.patch' ==================================================================== patching file src/VBox/Additions/x11/vboxvideo/vboxvideo.h Hunk #1 succeeded at 107 (offset 2 lines). Hunk #2 succeeded at 121 (offset 2 lines). Hunk #3 FAILED at 189. 1 out of 3 hunks FAILED -- saving rejects to file src/VBox/Additions/x11/vboxvideo/vboxvideo.h.rej patch program exited with status 1 ==================================================================== PATCH COMMAND: patch -p2 -g0 -E --no-backup-if-mismatch < '/usr/portage/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-4.3.8-vboxvideo_compilefixes.patch' ==================================================================== can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- VirtualBox-4.3.8/src/VBox/Additions/x11/vboxvideo/vboxvideo.h |+++ VirtualBox-4.3.8/src/VBox/Additions/x11/vboxvideo/vboxvideo.h -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored patch program exited with status 1 ==================================================================== PATCH COMMAND: patch -p3 -g0 -E --no-backup-if-mismatch < '/usr/portage/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-4.3.8-vboxvideo_compilefixes.patch' ==================================================================== can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- VirtualBox-4.3.8/src/VBox/Additions/x11/vboxvideo/vboxvideo.h |+++ VirtualBox-4.3.8/src/VBox/Additions/x11/vboxvideo/vboxvideo.h -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored patch program exited with status 1 ==================================================================== PATCH COMMAND: patch -p4 -g0 -E --no-backup-if-mismatch < '/usr/portage/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-4.3.8-vboxvideo_compilefixes.patch' ==================================================================== can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- VirtualBox-4.3.8/src/VBox/Additions/x11/vboxvideo/vboxvideo.h |+++ VirtualBox-4.3.8/src/VBox/Additions/x11/vboxvideo/vboxvideo.h -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored patch program exited with status 1
The -pO attempt fails to find the file, but the -p1 attempt does not. Can you attach the full build.log as well as emerge --info? The patch is applying fine here.
*** Bug 517434 has been marked as a duplicate of this bug. ***
Created attachment 380982 [details] emerge --info
Created attachment 380984 [details] build.log
Ok just added the items you asked for , thanks
My mistake, this patch IS failing for me also.
Hi, im tring to build this too. I changed the patch previosly named xf86-video-virtualbox-4.3.8-vboxvideo_compilefixes.patch - (removed the first dir from filename, so -p0 could work) - changed Hunk3 , moved line 27 from patch after -#endif -#ifdef VBOX_DRI_OLD int cVisualConfigs; __GLXvisualConfig *pVisualConfigs; DRIInfoRec *pDRIInfo; -# endif int drmFD; #endif Now, next error: PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < '/usr/portage/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-2.2.0-enable-opengl.patch' =========================================================== patching file configure Hunk #1 FAILED at 1955. 1 out of 1 hunk FAILED -- saving rejects to file configure.rej It seems this patch is not needed because the Changed Variables are already set to 1. I removed line 83 in the .ebuild file epatch "${FILESDIR}/${PN}-2.2.0-enable-opengl.patch" Now it compiles. If you want tit, i can attach a Patch. Before i must read the FAQ how i'm making portage patchs. ;)
Now the following will fail after building: Host/OpenGL/packer/opcodes.py Traceback (most recent call last): File "/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.3.14/work/VirtualBox-4.3.14/src/VBox/GuestHost/OpenGL/packer/opcodes.py", line 13, in <module> import apiutil ImportError: No module named apiutil
Confirmed on ~amd64 ~x86 here.
+ 20 Jul 2014; Lars Wendler <polynomial-c@gentoo.org> + xf86-video-virtualbox-4.3.14.ebuild: + Removed compilefix patch (bug #517424). +
Created attachment 381076 [details, diff] update DRI patch for virtualbox Attached is an updated patch that will work with current vbox sources.