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