1 |
polynomial-c 13/11/30 18:22:21 |
2 |
|
3 |
Modified: ChangeLog xf86-video-virtualbox-4.2.20.ebuild |
4 |
Added: xf86-video-virtualbox-4.3.4.ebuild |
5 |
Removed: xf86-video-virtualbox-4.3.0.ebuild |
6 |
Log: |
7 |
Version bump. Removed old. Let the driver compile against system xorg headers (bug #492942) |
8 |
|
9 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
10 |
|
11 |
Revision Changes Path |
12 |
1.125 x11-drivers/xf86-video-virtualbox/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog?rev=1.125&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog?rev=1.125&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog?r1=1.124&r2=1.125 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog,v |
21 |
retrieving revision 1.124 |
22 |
retrieving revision 1.125 |
23 |
diff -u -r1.124 -r1.125 |
24 |
--- ChangeLog 29 Nov 2013 08:15:58 -0000 1.124 |
25 |
+++ ChangeLog 30 Nov 2013 18:22:20 -0000 1.125 |
26 |
@@ -1,6 +1,15 @@ |
27 |
# ChangeLog for x11-drivers/xf86-video-virtualbox |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog,v 1.124 2013/11/29 08:15:58 polynomial-c Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog,v 1.125 2013/11/30 18:22:20 polynomial-c Exp $ |
31 |
+ |
32 |
+*xf86-video-virtualbox-4.3.4 (30 Nov 2013) |
33 |
+ |
34 |
+ 30 Nov 2013; Lars Wendler <polynomial-c@g.o> |
35 |
+ xf86-video-virtualbox-4.2.20.ebuild, -xf86-video-virtualbox-4.3.0.ebuild, |
36 |
+ +xf86-video-virtualbox-4.3.4.ebuild: |
37 |
+ Version bump. Removed old. Let the driver compile against system xorg |
38 |
+ headers. Thanks to Walter Meinl for the bug report and providing a patch in |
39 |
+ bug #492942. |
40 |
|
41 |
*xf86-video-virtualbox-4.2.20 (29 Nov 2013) |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
1.2 x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-4.2.20.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-4.2.20.ebuild?rev=1.2&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-4.2.20.ebuild?rev=1.2&content-type=text/plain |
50 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-4.2.20.ebuild?r1=1.1&r2=1.2 |
51 |
|
52 |
Index: xf86-video-virtualbox-4.2.20.ebuild |
53 |
=================================================================== |
54 |
RCS file: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-4.2.20.ebuild,v |
55 |
retrieving revision 1.1 |
56 |
retrieving revision 1.2 |
57 |
diff -u -r1.1 -r1.2 |
58 |
--- xf86-video-virtualbox-4.2.20.ebuild 29 Nov 2013 08:15:58 -0000 1.1 |
59 |
+++ xf86-video-virtualbox-4.2.20.ebuild 30 Nov 2013 18:22:20 -0000 1.2 |
60 |
@@ -1,6 +1,6 @@ |
61 |
# Copyright 1999-2013 Gentoo Foundation |
62 |
# Distributed under the terms of the GNU General Public License v2 |
63 |
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-4.2.20.ebuild,v 1.1 2013/11/29 08:15:58 polynomial-c Exp $ |
64 |
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-4.2.20.ebuild,v 1.2 2013/11/30 18:22:20 polynomial-c Exp $ |
65 |
|
66 |
EAPI=5 |
67 |
|
68 |
@@ -19,7 +19,7 @@ |
69 |
KEYWORDS="~amd64 ~x86" |
70 |
IUSE="dri" |
71 |
|
72 |
-RDEPEND="<x11-base/xorg-server-1.14.99[-minimal] |
73 |
+RDEPEND=">=x11-base/xorg-server-1.7:=[-minimal] |
74 |
x11-libs/libXcomposite" |
75 |
DEPEND="${RDEPEND} |
76 |
>=dev-util/kbuild-0.1.9998_pre20120806 |
77 |
@@ -109,6 +109,7 @@ |
78 |
/src/VBox/Additions/x11/vboxvideo ; do |
79 |
cd "${S}"${each} |
80 |
MAKE="kmk" emake TOOL_YASM_AS=yasm \ |
81 |
+ VBOX_USE_SYSTEM_XORG_HEADERS=1 \ |
82 |
KBUILD_PATH="${S}/kBuild" \ |
83 |
KBUILD_VERBOSE=2 |
84 |
done |
85 |
@@ -128,26 +129,7 @@ |
86 |
|
87 |
cd "${S}/out/linux.${ARCH}/release/bin/additions" |
88 |
insinto /usr/$(get_libdir)/xorg/modules/drivers |
89 |
- |
90 |
-# # xorg-server-1.14.x |
91 |
- if has_version ">=x11-base/xorg-server-1.13.99" ; then |
92 |
- newins vboxvideo_drv_114.so vboxvideo_drv.so |
93 |
- # xorg-server-1.13.x |
94 |
- elif has_version ">=x11-base/xorg-server-1.12.99" ; then |
95 |
- newins vboxvideo_drv_113.so vboxvideo_drv.so |
96 |
- # xorg-server-1.12.x |
97 |
- elif has_version ">=x11-base/xorg-server-1.12" ; then |
98 |
- newins vboxvideo_drv_112.so vboxvideo_drv.so |
99 |
- # xorg-server-1.11.x |
100 |
- elif has_version ">=x11-base/xorg-server-1.11" ; then |
101 |
- newins vboxvideo_drv_111.so vboxvideo_drv.so |
102 |
- # xorg-server-1.10.x |
103 |
- elif has_version ">=x11-base/xorg-server-1.10" ; then |
104 |
- newins vboxvideo_drv_110.so vboxvideo_drv.so |
105 |
- # xorg-server-1.9.x |
106 |
- else |
107 |
- newins vboxvideo_drv_19.so vboxvideo_drv.so |
108 |
- fi |
109 |
+ newins vboxvideo_drv_system.so vboxvideo_drv.so |
110 |
|
111 |
# Guest OpenGL driver |
112 |
insinto /usr/$(get_libdir) |
113 |
|
114 |
|
115 |
|
116 |
1.1 x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-4.3.4.ebuild |
117 |
|
118 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-4.3.4.ebuild?rev=1.1&view=markup |
119 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-4.3.4.ebuild?rev=1.1&content-type=text/plain |
120 |
|
121 |
Index: xf86-video-virtualbox-4.3.4.ebuild |
122 |
=================================================================== |
123 |
# Copyright 1999-2013 Gentoo Foundation |
124 |
# Distributed under the terms of the GNU General Public License v2 |
125 |
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-4.3.4.ebuild,v 1.1 2013/11/30 18:22:20 polynomial-c Exp $ |
126 |
|
127 |
EAPI=5 |
128 |
|
129 |
PYTHON_COMPAT=( python2_7 ) |
130 |
inherit eutils linux-mod multilib python-single-r1 versionator toolchain-funcs |
131 |
|
132 |
MY_PV="${PV/beta/BETA}" |
133 |
MY_PV="${MY_PV/rc/RC}" |
134 |
MY_P=VirtualBox-${MY_PV} |
135 |
DESCRIPTION="VirtualBox video driver" |
136 |
HOMEPAGE="http://www.virtualbox.org/" |
137 |
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2" |
138 |
|
139 |
LICENSE="GPL-2" |
140 |
SLOT="0" |
141 |
KEYWORDS="~amd64 ~x86" |
142 |
IUSE="dri" |
143 |
|
144 |
RDEPEND=">=x11-base/xorg-server-1.7:=[-minimal] |
145 |
x11-libs/libXcomposite" |
146 |
DEPEND="${RDEPEND} |
147 |
>=dev-util/kbuild-0.1.9998_pre20131130 |
148 |
${PYTHON_DEPS} |
149 |
>=dev-lang/yasm-0.6.2 |
150 |
sys-power/iasl |
151 |
x11-proto/fontsproto |
152 |
x11-proto/randrproto |
153 |
x11-proto/renderproto |
154 |
x11-proto/xextproto |
155 |
x11-proto/xineramaproto |
156 |
x11-proto/xproto |
157 |
x11-libs/libXdmcp |
158 |
x11-libs/libXau |
159 |
x11-libs/libX11 |
160 |
x11-libs/libXfixes |
161 |
x11-libs/libXext |
162 |
dri? ( x11-proto/xf86driproto |
163 |
>=x11-libs/libdrm-2.4.5 )" |
164 |
|
165 |
REQUIRED_USE=( "${PYTHON_REQUIRED_USE}" ) |
166 |
|
167 |
BUILD_TARGETS="all" |
168 |
BUILD_TARGET_ARCH="${ARCH}" |
169 |
MODULE_NAMES="vboxvideo(misc:${WORKDIR}/vboxvideo_drm:${WORKDIR}/vboxvideo_drm)" |
170 |
|
171 |
S="${WORKDIR}/${MY_P}" |
172 |
|
173 |
QA_TEXTRELS_x86="usr/lib/VBoxOGL.so" |
174 |
|
175 |
pkg_setup() { |
176 |
linux-mod_pkg_setup |
177 |
BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" |
178 |
|
179 |
python-single-r1_pkg_setup |
180 |
} |
181 |
|
182 |
src_prepare() { |
183 |
# Prepare the vboxvideo_drm sources and Makefile in ${WORKDIR} |
184 |
cp -a "${S}"/src/VBox/Additions/linux/drm "${WORKDIR}/vboxvideo_drm" \ |
185 |
|| die "cannot copy vboxvideo_drm directory" |
186 |
cp "${FILESDIR}/${PN}-3-vboxvideo_drm.makefile" \ |
187 |
"${WORKDIR}/vboxvideo_drm/Makefile" \ |
188 |
|| die "cannot copy vboxvideo_drm Makefile" |
189 |
|
190 |
# stupid new header references... |
191 |
for vboxheader in {product,version}-generated.h ; do |
192 |
ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \ |
193 |
"${WORKDIR}/vboxvideo_drm/${vboxheader}" |
194 |
done |
195 |
|
196 |
# Remove shipped binaries (kBuild,yasm), see bug #232775 |
197 |
rm -rf kBuild/bin tools |
198 |
|
199 |
# Disable things unused or splitted into separate ebuilds |
200 |
cp "${FILESDIR}/${PN}-3-localconfig" LocalConfig.kmk |
201 |
|
202 |
# Ugly hack to build the opengl part of the video driver |
203 |
epatch "${FILESDIR}/${PN}-2.2.0-enable-opengl.patch" |
204 |
|
205 |
# unset useless/problematic checks in configure |
206 |
epatch "${FILESDIR}/${PN}-3.2.8-mesa-check.patch" \ |
207 |
"${FILESDIR}/${PN}-4-makeself-check.patch" \ |
208 |
"${FILESDIR}/${PN}-4-mkisofs-check.patch" |
209 |
|
210 |
# Patch to link with lazy on hardened #394757 |
211 |
if gcc-specs-now ; then |
212 |
epatch "${FILESDIR}/${PN}-link-lazy.patch" |
213 |
fi |
214 |
} |
215 |
|
216 |
src_configure() { |
217 |
# build the user-space tools, warnings are harmless |
218 |
./configure \ |
219 |
--nofatal \ |
220 |
--disable-xpcom \ |
221 |
--disable-sdl-ttf \ |
222 |
--disable-pulse \ |
223 |
--disable-alsa \ |
224 |
--build-headless || die "configure failed" |
225 |
source ./env.sh |
226 |
} |
227 |
|
228 |
src_compile() { |
229 |
for each in /src/VBox/{Runtime,Additions/common/VBoxGuestLib} \ |
230 |
/src/VBox/{GuestHost/OpenGL,Additions/x11/x11stubs,Additions/common/crOpenGL} \ |
231 |
/src/VBox/Additions/x11/vboxvideo ; do |
232 |
cd "${S}"${each} |
233 |
MAKE="kmk" emake TOOL_YASM_AS=yasm \ |
234 |
VBOX_USE_SYSTEM_XORG_HEADERS=1 \ |
235 |
KBUILD_PATH="${S}/kBuild" \ |
236 |
KBUILD_VERBOSE=2 |
237 |
done |
238 |
|
239 |
if use dri; then |
240 |
# Now creating the kernel modules. We must do this _after_ |
241 |
# we compiled the user-space tools as we need two of the |
242 |
# automatically generated header files. (>=3.2.0) |
243 |
linux-mod_src_compile |
244 |
fi |
245 |
} |
246 |
|
247 |
src_install() { |
248 |
if use dri; then |
249 |
linux-mod_src_install |
250 |
fi |
251 |
|
252 |
cd "${S}/out/linux.${ARCH}/release/bin/additions" |
253 |
insinto /usr/$(get_libdir)/xorg/modules/drivers |
254 |
newins vboxvideo_drv_system.so vboxvideo_drv.so |
255 |
|
256 |
# Guest OpenGL driver |
257 |
insinto /usr/$(get_libdir) |
258 |
doins -r VBoxOGL* |
259 |
|
260 |
if use dri ; then |
261 |
dosym /usr/$(get_libdir)/VBoxOGL.so /usr/$(get_libdir)/dri/vboxvideo_dri.so |
262 |
fi |
263 |
} |
264 |
|
265 |
pkg_postinst() { |
266 |
elog "You need to edit the file /etc/X11/xorg.conf and set:" |
267 |
elog "" |
268 |
elog " Driver \"vboxvideo\"" |
269 |
elog "" |
270 |
elog "in the Graphics device section (Section \"Device\")" |
271 |
elog "" |
272 |
if use dri; then |
273 |
elog "To use the kernel drm video driver, please add:" |
274 |
elog "\"vboxvideo\" to:" |
275 |
if has_version sys-apps/openrc ; then |
276 |
elog "/etc/conf.d/modules" |
277 |
else |
278 |
elog "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}" |
279 |
fi |
280 |
elog "" |
281 |
fi |
282 |
} |