Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517424 - x11-drivers/xf86-video-virtualbox-4.3.14 - Failed Patch: xf86-video-virtualbox-4.3.8-vboxvideo_compilefixes.patch !
Summary: x11-drivers/xf86-video-virtualbox-4.3.14 - Failed Patch: xf86-video-virtualbo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
: 517434 (view as bug list)
Depends on:
Blocks: 378027
  Show dependency tree
 
Reported: 2014-07-18 15:41 UTC by Alex Buell
Modified: 2014-07-20 02:10 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,4.37 KB, application/x-info)
2014-07-18 17:48 UTC, Alex Buell
Details
build.log (build.log,3.34 KB, text/x-log)
2014-07-18 17:49 UTC, Alex Buell
Details
update DRI patch for virtualbox (xf86-video-virtualbox-4.3.14-vboxvideo_compilefixes.patch,968 bytes, patch)
2014-07-20 02:10 UTC, Fernando (likewhoa)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Buell 2014-07-18 15:41:55 UTC
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
Comment 1 Alex Buell 2014-07-18 15:43:47 UTC
***** 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
Comment 2 Ben Kohler gentoo-dev 2014-07-18 16:18:33 UTC
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.
Comment 3 Ben Kohler gentoo-dev 2014-07-18 17:13:55 UTC
*** Bug 517434 has been marked as a duplicate of this bug. ***
Comment 4 Alex Buell 2014-07-18 17:48:39 UTC
Created attachment 380982 [details]
emerge --info
Comment 5 Alex Buell 2014-07-18 17:49:35 UTC
Created attachment 380984 [details]
build.log
Comment 6 Alex Buell 2014-07-18 17:50:55 UTC
Ok just added the items you asked for , thanks
Comment 7 Ben Kohler gentoo-dev 2014-07-18 18:03:45 UTC
My mistake, this patch IS failing for me also.
Comment 8 g.janak 2014-07-19 13:40:26 UTC
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. ;)
Comment 9 g.janak 2014-07-19 13:46:25 UTC
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
Comment 10 Fernando (likewhoa) 2014-07-19 17:25:05 UTC
Confirmed on ~amd64 ~x86 here.
Comment 11 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-07-20 02:03:21 UTC
+  20 Jul 2014; Lars Wendler <polynomial-c@gentoo.org>
+  xf86-video-virtualbox-4.3.14.ebuild:
+  Removed compilefix patch (bug #517424).
+
Comment 12 Fernando (likewhoa) 2014-07-20 02:10:27 UTC
Created attachment 381076 [details, diff]
update DRI patch for virtualbox

Attached is an updated patch that will work with current vbox sources.