Gentoo Archives: gentoo-commits

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