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: xf86-video-virtualbox-4.3.8.ebuild ChangeLog
Date: Wed, 26 Feb 2014 10:08:10
Message-Id: 20140226100804.8B6242004E@flycatcher.gentoo.org
1 polynomial-c 14/02/26 10:08:04
2
3 Modified: ChangeLog
4 Added: xf86-video-virtualbox-4.3.8.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
9
10 Revision Changes Path
11 1.133 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.133&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog?rev=1.133&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog?r1=1.132&r2=1.133
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog,v
20 retrieving revision 1.132
21 retrieving revision 1.133
22 diff -u -r1.132 -r1.133
23 --- ChangeLog 23 Jan 2014 18:54:33 -0000 1.132
24 +++ ChangeLog 26 Feb 2014 10:08:04 -0000 1.133
25 @@ -1,6 +1,13 @@
26 # ChangeLog for x11-drivers/xf86-video-virtualbox
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog,v 1.132 2014/01/23 18:54:33 polynomial-c Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog,v 1.133 2014/02/26 10:08:04 polynomial-c Exp $
30 +
31 +*xf86-video-virtualbox-4.3.8 (26 Feb 2014)
32 +
33 + 26 Feb 2014; Lars Wendler <polynomial-c@g.o>
34 + +xf86-video-virtualbox-4.3.8.ebuild,
35 + +files/xf86-video-virtualbox-4.3.8-vboxvideo_compilefixes.patch:
36 + Version bump.
37
38 23 Jan 2014; Lars Wendler <polynomial-c@g.o>
39 xf86-video-virtualbox-4.2.22.ebuild, xf86-video-virtualbox-4.3.6.ebuild:
40
41
42
43 1.1 x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-4.3.8.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-4.3.8.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.8.ebuild?rev=1.1&content-type=text/plain
47
48 Index: xf86-video-virtualbox-4.3.8.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.8.ebuild,v 1.1 2014/02/26 10:08:04 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 }