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