Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/virtualbox-additions/, app-emulation/virtualbox-modules/, ...
Date: Wed, 21 Apr 2021 09:28:05
Message-Id: 1618997270.018494a7e701b3c4b044e621a27dae45a47a37aa.polynomial-c@gentoo
1 commit: 018494a7e701b3c4b044e621a27dae45a47a37aa
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 21 09:26:05 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 21 09:27:50 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=018494a7
7
8 app-emulation/virtualbox*: Removed old
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 app-emulation/virtualbox-additions/Manifest | 1 -
13 .../virtualbox-additions-6.1.16-r1.ebuild | 34 --
14 app-emulation/virtualbox-extpack-oracle/Manifest | 1 -
15 ...rtualbox-extpack-oracle-6.1.16.140961-r1.ebuild | 43 --
16 app-emulation/virtualbox-guest-additions/Manifest | 1 -
17 .../virtualbox-guest-additions-6.1.16-r1.ebuild | 221 ---------
18 .../virtualbox-guest-additions-6.1.18.ebuild | 221 ---------
19 app-emulation/virtualbox-modules/Manifest | 1 -
20 .../virtualbox-modules-6.1.16-r1.ebuild | 59 ---
21 app-emulation/virtualbox/Manifest | 1 -
22 .../virtualbox/virtualbox-6.1.16-r1.ebuild | 512 ---------------------
23 11 files changed, 1095 deletions(-)
24
25 diff --git a/app-emulation/virtualbox-additions/Manifest b/app-emulation/virtualbox-additions/Manifest
26 index 41ad93779b5..2a2940faca6 100644
27 --- a/app-emulation/virtualbox-additions/Manifest
28 +++ b/app-emulation/virtualbox-additions/Manifest
29 @@ -1,3 +1,2 @@
30 -DIST VBoxGuestAdditions_6.1.16.iso 60987392 BLAKE2B d4452f43c72ab8c49633f717f7a49257e14a8c6c7b60c6d61ee65ae5e4bcce00c30e19ba78d6f28fb85dfbc95ca6139aec2c7069e5afecae145dffc6ff38793a SHA512 e7606fba6e7490318b7dbadff52578040e4370bbe81fa67e6653e798176eb929ed37e363792647ab3c6626ee9e32af40f63167521997af7b446c25173ff60280
31 DIST VBoxGuestAdditions_6.1.18.iso 61157376 BLAKE2B e022cfbc70fa45889c1db7592f30814faf88d7614c30ebd3fccd0127732d7fec51423904a160797ac199315dcbe4791f025e2dc4754141bfef0862b11510626c SHA512 07be8be75feb2d7d9bfc984ce34b955339d391580192817c2eb216b7577576a003dde310cc09f18c6b6bcf2e30ad548e1ee8bde0af420e4d1d43a3486861cf19
32 DIST VBoxGuestAdditions_6.1.20.iso 61018112 BLAKE2B feb6a292b05e861a90fdc5db80bc15e9df593a365a866a31ab7afce704511463012c18d76dc928dc5ecd0d2a23bc518c37ad9cdc8b4b72397af3ddd4b3eb97d8 SHA512 122bd5d31ab5cac2fe0582d1d541b5e9d0e8e544e1b3c5afb2b2e2c8b26fbfa964d15053ccc256575753d31206bffc09380dabc79d93946b0e56b743d82e40fe
33
34 diff --git a/app-emulation/virtualbox-additions/virtualbox-additions-6.1.16-r1.ebuild b/app-emulation/virtualbox-additions/virtualbox-additions-6.1.16-r1.ebuild
35 deleted file mode 100644
36 index 5f7f607a912..00000000000
37 --- a/app-emulation/virtualbox-additions/virtualbox-additions-6.1.16-r1.ebuild
38 +++ /dev/null
39 @@ -1,34 +0,0 @@
40 -# Copyright 1999-2021 Gentoo Authors
41 -# Distributed under the terms of the GNU General Public License v2
42 -
43 -EAPI=7
44 -
45 -MY_PN=VBoxGuestAdditions
46 -MY_PV="${PV/beta/BETA}"
47 -MY_PV="${MY_PV/rc/RC}"
48 -MY_P=${MY_PN}_${MY_PV}
49 -
50 -DESCRIPTION="CD image containing guest additions for VirtualBox"
51 -HOMEPAGE="https://www.virtualbox.org/"
52 -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.iso"
53 -
54 -LICENSE="GPL-2+ LGPL-2.1+ MIT SGI-B-2.0 CDDL"
55 -SLOT="0/$(ver_cut 1-2)"
56 -[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
57 -KEYWORDS="amd64"
58 -IUSE=""
59 -RESTRICT="mirror"
60 -
61 -RDEPEND="!app-emulation/virtualbox-bin
62 - !=app-emulation/virtualbox-9999"
63 -
64 -S="${WORKDIR}"
65 -
66 -src_unpack() {
67 - return 0
68 -}
69 -
70 -src_install() {
71 - insinto /usr/share/${PN/-additions}
72 - newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso
73 -}
74
75 diff --git a/app-emulation/virtualbox-extpack-oracle/Manifest b/app-emulation/virtualbox-extpack-oracle/Manifest
76 index df7d9b228fe..fd429023b0c 100644
77 --- a/app-emulation/virtualbox-extpack-oracle/Manifest
78 +++ b/app-emulation/virtualbox-extpack-oracle/Manifest
79 @@ -1,3 +1,2 @@
80 -DIST Oracle_VM_VirtualBox_Extension_Pack-6.1.16-140961.tar.gz 11145670 BLAKE2B 86e620ebaea9803b9bf633990a39d9e2828fbe70cdc98cbb6ba98accc374e0ea2300a7135cae0f0ec8d13184ccc8e0ff075ca1f81132ed97206f14c20adeb3bc SHA512 89b9c709da1c4b8268c4c1849e074f4d8dc76a36663b401c9ea63f02422bec50e2b77056289144bb161b1dd226b78687379d6ab86281112a71561c1777f525fb
81 DIST Oracle_VM_VirtualBox_Extension_Pack-6.1.18-142142.tar.gz 11157510 BLAKE2B d9ee20abac79ed5de03c39d1e6af3a5f18c5416149e9e64ebe9dfc4a937bd72b6590a2daaccc820e3ee6c6efcfd0c1c8e29bf3844cbbb929f13052415e16f2bb SHA512 3686b1c5dbdc5b28c172b4885c30ca9a444bc10dc7984df14a17e1dcc571456b06e80ad38e1409de8692c483c56f397162a53bd3dc6956d9ca91875fda0bda4e
82 DIST Oracle_VM_VirtualBox_Extension_Pack-6.1.20-143896.tar.gz 11132930 BLAKE2B a26e05d9869a52187b379b24ed556c6296772d1360b6f7d61afe17c2818351b5ee2256398e0d53a16d2b6014540f343f7f13539c3d5529f079ac363b48ea0d6e SHA512 85cd8327860c253ce2f871dd1138d18d97b8706f64a3dafaaf340a43d8f44f7ee696a1f845761e7c8d6dcf11c7afd1618798194482b6e09cbe7e2657d980116a
83
84 diff --git a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-6.1.16.140961-r1.ebuild b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-6.1.16.140961-r1.ebuild
85 deleted file mode 100644
86 index 54db34dd7a1..00000000000
87 --- a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-6.1.16.140961-r1.ebuild
88 +++ /dev/null
89 @@ -1,43 +0,0 @@
90 -# Copyright 1999-2021 Gentoo Authors
91 -# Distributed under the terms of the GNU General Public License v2
92 -
93 -EAPI=7
94 -
95 -inherit multilib
96 -
97 -MAIN_PV="$(ver_cut 1-3)"
98 -if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
99 - MY_PV="${MAIN_PV}_$(ver_cut 5-6)"
100 - DEP_PV="${MY_PV}"
101 - MY_PV="${MY_PV/beta/BETA}"
102 - MY_PV="${MY_PV/rc/RC}"
103 -else
104 - MY_PV="${MAIN_PV}"
105 - DEP_PV="${MAIN_PV}"
106 -fi
107 -VBOX_BUILD_ID="$(ver_cut 4)"
108 -MY_PN="Oracle_VM_VirtualBox_Extension_Pack"
109 -MY_P="${MY_PN}-${MY_PV}-${VBOX_BUILD_ID}"
110 -
111 -DESCRIPTION="PUEL extensions for VirtualBox"
112 -HOMEPAGE="https://www.virtualbox.org/"
113 -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz"
114 -
115 -LICENSE="PUEL"
116 -SLOT="0/$(ver_cut 1-2)"
117 -[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
118 -KEYWORDS="amd64"
119 -IUSE=""
120 -RESTRICT="bindist mirror strip"
121 -
122 -RDEPEND="=app-emulation/virtualbox-${DEP_PV}*"
123 -
124 -S="${WORKDIR}"
125 -
126 -QA_PREBUILT="/usr/lib*/virtualbox/ExtensionPacks/${MY_PN}/.*"
127 -
128 -src_install() {
129 - insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}
130 - doins -r linux.${ARCH}
131 - doins ExtPack* PXE-Intel.rom
132 -}
133
134 diff --git a/app-emulation/virtualbox-guest-additions/Manifest b/app-emulation/virtualbox-guest-additions/Manifest
135 index 687fce73017..968fcf004b6 100644
136 --- a/app-emulation/virtualbox-guest-additions/Manifest
137 +++ b/app-emulation/virtualbox-guest-additions/Manifest
138 @@ -1,4 +1,3 @@
139 -DIST VirtualBox-6.1.16.tar.bz2 165470821 BLAKE2B 13376322d0ce2ea3ed826c61816ff19c8ce1f022f6cb1f1b0c291d72354cbe574a01589a6dcc39de10080ba32d5961ca980e75fe11c7401736bf8f7e5443d166 SHA512 4373eb35934f894e419e1441f6368e646e4a84b963a0ecf1e5c71bbf0231de0b0e52f4c4377b8cd2d956bc7a11346a9da2285988bf1e4c743971c413c6529421
140 DIST VirtualBox-6.1.18.tar.bz2 165507486 BLAKE2B 3cf18f30671426f533838eb0579928b08ce022b832d509e70274978efce2e3e0e14dc8fbf258ef9a1ce8a3d666081863aa6971340e04600434f58136fe5c221a SHA512 41cb4bd42429b09836c59ef9867dd3d35d0d5512ff6e515a7f8688ed444c079ce353a84f0d45b607ccf08424782d5de09b264f51b2c41a9ec34eb834458c293c
141 DIST VirtualBox-6.1.20.tar.bz2 165569564 BLAKE2B cf8c110e78e7d7bef3e3243a8966f4d816dacc8dad6cc44737023a13f1b89dfb50661f6dabc742f328e5c03556ec82e7a22f5c1b97cfef774652ec901e733e5d SHA512 b5af4e04e1a52c85b20226a274fac93712b79d426c0268cce3f2a337616a03161a55522ecddd13844bfc24a6808ba3d651366e74ce657cc6f8fd64c34ae745a4
142 DIST virtualbox-6.1.12-patches-01.tar.xz 2528 BLAKE2B a5d7cde0daea41bee2e40e46569c725769927a31865d99d13b8b13c4903e59b4097f85da15dc592b9c7e8baf8ff805397af827620f107ba09a468b4d1198ecab SHA512 f71d10a9fbce99c3f631ef30bcfa9d0e017e702ac509541b039e08ccbcd024beb93fde09c43d90af5d9d28f6842a7947f20e7950d3897da3e6d57859657e1123
143
144 diff --git a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-6.1.16-r1.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-6.1.16-r1.ebuild
145 deleted file mode 100644
146 index 5000d477eb1..00000000000
147 --- a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-6.1.16-r1.ebuild
148 +++ /dev/null
149 @@ -1,221 +0,0 @@
150 -# Copyright 1999-2021 Gentoo Authors
151 -# Distributed under the terms of the GNU General Public License v2
152 -
153 -EAPI=7
154 -
155 -inherit linux-mod systemd toolchain-funcs
156 -
157 -MY_PN="VirtualBox"
158 -MY_PV="${PV/beta/BETA}"
159 -MY_PV="${MY_PV/rc/RC}"
160 -MY_P="${MY_PN}-${MY_PV}"
161 -[[ "${PV}" == *a ]] && DIR_PV="$(ver_cut 1-3)"
162 -
163 -DESCRIPTION="VirtualBox kernel modules and user-space tools for Gentoo guests"
164 -HOMEPAGE="https://www.virtualbox.org/"
165 -SRC_URI="https://download.virtualbox.org/virtualbox/${DIR_PV:-${MY_PV}}/${MY_P}.tar.bz2
166 - https://dev.gentoo.org/~polynomial-c/virtualbox/patchsets/virtualbox-6.1.12-patches-01.tar.xz"
167 -
168 -LICENSE="GPL-2"
169 -SLOT="0/$(ver_cut 1-2)"
170 -[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
171 -KEYWORDS="amd64 x86"
172 -IUSE="X"
173 -
174 -# automount Error: VBoxServiceAutoMountWorker: Group "vboxsf" does not exist
175 -RDEPEND="
176 - acct-group/vboxguest
177 - acct-group/vboxsf
178 - acct-user/vboxguest
179 - X? ( x11-apps/xrandr
180 - x11-apps/xrefresh
181 - x11-libs/libXmu
182 - x11-libs/libX11
183 - x11-libs/libXt
184 - x11-libs/libXext
185 - x11-libs/libXau
186 - x11-libs/libXdmcp
187 - x11-libs/libSM
188 - x11-libs/libICE )
189 - sys-apps/dbus
190 -"
191 -DEPEND="
192 - ${RDEPEND}
193 - >=dev-util/kbuild-0.1.9998.3127
194 - >=dev-lang/yasm-0.6.2
195 - sys-devel/bin86
196 - sys-libs/pam
197 - sys-power/iasl
198 - x11-base/xorg-proto
199 -"
200 -PDEPEND="
201 - X? ( x11-drivers/xf86-video-vboxvideo )
202 -"
203 -BUILD_TARGETS="all"
204 -BUILD_TARGET_ARCH="${ARCH}"
205 -
206 -S="${WORKDIR}/${MY_PN}-${DIR_PV:-${PV}}"
207 -VBOX_MOD_SRC_DIR="${S}/out/linux.${ARCH}/release/bin/additions/src"
208 -
209 -pkg_setup() {
210 - export DISTCC_DISABLE=1 #674256
211 - MODULE_NAMES="vboxguest(misc:${VBOX_MOD_SRC_DIR}/vboxguest:${VBOX_MOD_SRC_DIR}/vboxguest)
212 - vboxsf(misc:${VBOX_MOD_SRC_DIR}/vboxsf:${VBOX_MOD_SRC_DIR}/vboxsf)"
213 - use X && MODULE_NAMES+=" vboxvideo(misc:${VBOX_MOD_SRC_DIR}/vboxvideo::${VBOX_MOD_SRC_DIR}/vboxvideo)"
214 -
215 - linux-mod_pkg_setup
216 - BUILD_PARAMS="KERN_DIR=/lib/modules/${KV_FULL}/build KERNOUT=${KV_OUT_DIR} KBUILD_EXTRA_SYMBOLS=${S}/Module.symvers"
217 -}
218 -
219 -src_prepare() {
220 - # Remove shipped binaries (kBuild,yasm), see bug #232775
221 - rm -r kBuild/bin tools || die
222 -
223 - # Provide kernel sources
224 - pushd src/VBox/Additions &>/dev/null || die
225 - ebegin "Extracting guest kernel module sources"
226 - kmk GuestDrivers-src vboxguest-src vboxsf-src vboxvideo-src &>/dev/null || die
227 - eend
228 - popd &>/dev/null || die
229 -
230 - # PaX fixes (see bug #298988)
231 - pushd "${VBOX_MOD_SRC_DIR}" &>/dev/null || die
232 - eapply "${FILESDIR}"/vboxguest-6.0.6-log-use-c99.patch
233 - popd &>/dev/null || die
234 -
235 - # Disable things unused or splitted into separate ebuilds
236 - cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
237 - use X || echo "VBOX_WITH_X11_ADDITIONS :=" >> LocalConfig.kmk
238 -
239 - # Remove pointless GCC version check
240 - sed -e '/^check_gcc$/d' -i configure || die
241 -
242 - eapply "${WORKDIR}/patches"
243 -
244 - eapply_user
245 -}
246 -
247 -src_configure() {
248 - # build the user-space tools, warnings are harmless
249 - local cmd=(
250 - ./configure
251 - --nofatal
252 - --disable-xpcom
253 - --disable-sdl-ttf
254 - --disable-pulse
255 - --disable-alsa
256 - --with-gcc="$(tc-getCC)"
257 - --with-g++="$(tc-getCXX)"
258 - --target-arch=${ARCH}
259 - --with-linux="${KV_OUT_DIR}"
260 - --build-headless
261 - )
262 - echo "${cmd[@]}"
263 - "${cmd[@]}" || die "configure failed"
264 - source ./env.sh
265 - export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
266 -}
267 -
268 -src_compile() {
269 - MAKE="kmk" emake \
270 - VBOX_BUILD_PUBLISHER=_Gentoo \
271 - TOOL_GXX3_CC="$(tc-getCC)" TOOL_GXX3_CXX="$(tc-getCXX)" \
272 - TOOL_GXX3_LD="$(tc-getCXX)" VBOX_GCC_OPT="${CXXFLAGS}" \
273 - TOOL_YASM_AS=yasm \
274 - VBOX_ONLY_ADDITIONS=1 \
275 - KBUILD_VERBOSE=2
276 -
277 - # Now creating the kernel modules. We must do this _after_
278 - # we compiled the user-space tools as we need two of the
279 - # automatically generated header files. (>=3.2.0)
280 - linux-mod_src_compile
281 -}
282 -
283 -src_install() {
284 - linux-mod_src_install
285 -
286 - cd "${S}"/out/linux.${ARCH}/release/bin/additions || die
287 -
288 - insinto /sbin
289 - newins mount.vboxsf mount.vboxsf
290 - fperms 4755 /sbin/mount.vboxsf
291 -
292 - newinitd "${FILESDIR}"/${PN}-8.initd ${PN}
293 -
294 - insinto /usr/sbin/
295 - newins VBoxService vboxguest-service
296 - fperms 0755 /usr/sbin/vboxguest-service
297 -
298 - insinto /usr/bin
299 - doins VBoxControl
300 - fperms 0755 /usr/bin/VBoxControl
301 -
302 - # VBoxClient user service and xrandr wrapper
303 - if use X ; then
304 - doins VBoxClient
305 - fperms 0755 /usr/bin/VBoxClient
306 -
307 - pushd "${S}"/src/VBox/Additions/x11/Installer &>/dev/null \
308 - || die
309 - newins 98vboxadd-xclient VBoxClient-all
310 - fperms 0755 /usr/bin/VBoxClient-all
311 - popd &>/dev/null || die
312 - fi
313 -
314 - # udev rule for vboxdrv
315 - local udev_rules_dir="/lib/udev/rules.d"
316 - dodir ${udev_rules_dir}
317 - echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
318 - >> "${ED}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
319 - || die
320 - echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
321 - >> "${ED}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
322 - || die
323 -
324 - # VBoxClient autostart file
325 - insinto /etc/xdg/autostart
326 - doins "${FILESDIR}"/vboxclient.desktop
327 -
328 - # sample xorg.conf
329 - dodoc "${FILESDIR}"/xorg.conf.vbox
330 - docompress -x "${ED}"/usr/share/doc/${PF}/xorg.conf.vbox
331 -
332 - systemd_dounit "${FILESDIR}/${PN}.service"
333 -}
334 -
335 -pkg_postinst() {
336 - linux-mod_pkg_postinst
337 - if ! use X ; then
338 - elog "use flag X is off, enable it to install the"
339 - elog "X Window System video driver."
340 - fi
341 - elog ""
342 - elog "Please add users to the \"vboxguest\" group so they can"
343 - elog "benefit from seamless mode, auto-resize and clipboard."
344 - elog ""
345 - elog "The vboxsf group has been added to make automount services work."
346 - elog "These services are part of the shared folders support."
347 - elog ""
348 - elog "Please add:"
349 - elog "/etc/init.d/${PN}"
350 - elog "to the default runlevel in order to start"
351 - elog "needed services."
352 - elog "To use the VirtualBox X driver, use the following"
353 - elog "file as your /etc/X11/xorg.conf:"
354 - elog " /usr/share/doc/${PF}/xorg.conf.vbox"
355 - elog ""
356 - elog "Also make sure you use the Mesa library for OpenGL:"
357 - elog " eselect opengl set xorg-x11"
358 - elog ""
359 - elog "An autostart .desktop file has been installed to start"
360 - elog "VBoxClient in desktop sessions."
361 - elog ""
362 - elog "You can mount shared folders with:"
363 - elog " mount -t vboxsf <shared_folder_name> <mount_point>"
364 - elog ""
365 - elog "Warning:"
366 - elog "this ebuild is only needed if you are running gentoo"
367 - elog "inside a VirtualBox Virtual Machine, you don't need"
368 - elog "it to run VirtualBox itself."
369 - elog ""
370 -}
371
372 diff --git a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-6.1.18.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-6.1.18.ebuild
373 deleted file mode 100644
374 index 5000d477eb1..00000000000
375 --- a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-6.1.18.ebuild
376 +++ /dev/null
377 @@ -1,221 +0,0 @@
378 -# Copyright 1999-2021 Gentoo Authors
379 -# Distributed under the terms of the GNU General Public License v2
380 -
381 -EAPI=7
382 -
383 -inherit linux-mod systemd toolchain-funcs
384 -
385 -MY_PN="VirtualBox"
386 -MY_PV="${PV/beta/BETA}"
387 -MY_PV="${MY_PV/rc/RC}"
388 -MY_P="${MY_PN}-${MY_PV}"
389 -[[ "${PV}" == *a ]] && DIR_PV="$(ver_cut 1-3)"
390 -
391 -DESCRIPTION="VirtualBox kernel modules and user-space tools for Gentoo guests"
392 -HOMEPAGE="https://www.virtualbox.org/"
393 -SRC_URI="https://download.virtualbox.org/virtualbox/${DIR_PV:-${MY_PV}}/${MY_P}.tar.bz2
394 - https://dev.gentoo.org/~polynomial-c/virtualbox/patchsets/virtualbox-6.1.12-patches-01.tar.xz"
395 -
396 -LICENSE="GPL-2"
397 -SLOT="0/$(ver_cut 1-2)"
398 -[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
399 -KEYWORDS="amd64 x86"
400 -IUSE="X"
401 -
402 -# automount Error: VBoxServiceAutoMountWorker: Group "vboxsf" does not exist
403 -RDEPEND="
404 - acct-group/vboxguest
405 - acct-group/vboxsf
406 - acct-user/vboxguest
407 - X? ( x11-apps/xrandr
408 - x11-apps/xrefresh
409 - x11-libs/libXmu
410 - x11-libs/libX11
411 - x11-libs/libXt
412 - x11-libs/libXext
413 - x11-libs/libXau
414 - x11-libs/libXdmcp
415 - x11-libs/libSM
416 - x11-libs/libICE )
417 - sys-apps/dbus
418 -"
419 -DEPEND="
420 - ${RDEPEND}
421 - >=dev-util/kbuild-0.1.9998.3127
422 - >=dev-lang/yasm-0.6.2
423 - sys-devel/bin86
424 - sys-libs/pam
425 - sys-power/iasl
426 - x11-base/xorg-proto
427 -"
428 -PDEPEND="
429 - X? ( x11-drivers/xf86-video-vboxvideo )
430 -"
431 -BUILD_TARGETS="all"
432 -BUILD_TARGET_ARCH="${ARCH}"
433 -
434 -S="${WORKDIR}/${MY_PN}-${DIR_PV:-${PV}}"
435 -VBOX_MOD_SRC_DIR="${S}/out/linux.${ARCH}/release/bin/additions/src"
436 -
437 -pkg_setup() {
438 - export DISTCC_DISABLE=1 #674256
439 - MODULE_NAMES="vboxguest(misc:${VBOX_MOD_SRC_DIR}/vboxguest:${VBOX_MOD_SRC_DIR}/vboxguest)
440 - vboxsf(misc:${VBOX_MOD_SRC_DIR}/vboxsf:${VBOX_MOD_SRC_DIR}/vboxsf)"
441 - use X && MODULE_NAMES+=" vboxvideo(misc:${VBOX_MOD_SRC_DIR}/vboxvideo::${VBOX_MOD_SRC_DIR}/vboxvideo)"
442 -
443 - linux-mod_pkg_setup
444 - BUILD_PARAMS="KERN_DIR=/lib/modules/${KV_FULL}/build KERNOUT=${KV_OUT_DIR} KBUILD_EXTRA_SYMBOLS=${S}/Module.symvers"
445 -}
446 -
447 -src_prepare() {
448 - # Remove shipped binaries (kBuild,yasm), see bug #232775
449 - rm -r kBuild/bin tools || die
450 -
451 - # Provide kernel sources
452 - pushd src/VBox/Additions &>/dev/null || die
453 - ebegin "Extracting guest kernel module sources"
454 - kmk GuestDrivers-src vboxguest-src vboxsf-src vboxvideo-src &>/dev/null || die
455 - eend
456 - popd &>/dev/null || die
457 -
458 - # PaX fixes (see bug #298988)
459 - pushd "${VBOX_MOD_SRC_DIR}" &>/dev/null || die
460 - eapply "${FILESDIR}"/vboxguest-6.0.6-log-use-c99.patch
461 - popd &>/dev/null || die
462 -
463 - # Disable things unused or splitted into separate ebuilds
464 - cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
465 - use X || echo "VBOX_WITH_X11_ADDITIONS :=" >> LocalConfig.kmk
466 -
467 - # Remove pointless GCC version check
468 - sed -e '/^check_gcc$/d' -i configure || die
469 -
470 - eapply "${WORKDIR}/patches"
471 -
472 - eapply_user
473 -}
474 -
475 -src_configure() {
476 - # build the user-space tools, warnings are harmless
477 - local cmd=(
478 - ./configure
479 - --nofatal
480 - --disable-xpcom
481 - --disable-sdl-ttf
482 - --disable-pulse
483 - --disable-alsa
484 - --with-gcc="$(tc-getCC)"
485 - --with-g++="$(tc-getCXX)"
486 - --target-arch=${ARCH}
487 - --with-linux="${KV_OUT_DIR}"
488 - --build-headless
489 - )
490 - echo "${cmd[@]}"
491 - "${cmd[@]}" || die "configure failed"
492 - source ./env.sh
493 - export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
494 -}
495 -
496 -src_compile() {
497 - MAKE="kmk" emake \
498 - VBOX_BUILD_PUBLISHER=_Gentoo \
499 - TOOL_GXX3_CC="$(tc-getCC)" TOOL_GXX3_CXX="$(tc-getCXX)" \
500 - TOOL_GXX3_LD="$(tc-getCXX)" VBOX_GCC_OPT="${CXXFLAGS}" \
501 - TOOL_YASM_AS=yasm \
502 - VBOX_ONLY_ADDITIONS=1 \
503 - KBUILD_VERBOSE=2
504 -
505 - # Now creating the kernel modules. We must do this _after_
506 - # we compiled the user-space tools as we need two of the
507 - # automatically generated header files. (>=3.2.0)
508 - linux-mod_src_compile
509 -}
510 -
511 -src_install() {
512 - linux-mod_src_install
513 -
514 - cd "${S}"/out/linux.${ARCH}/release/bin/additions || die
515 -
516 - insinto /sbin
517 - newins mount.vboxsf mount.vboxsf
518 - fperms 4755 /sbin/mount.vboxsf
519 -
520 - newinitd "${FILESDIR}"/${PN}-8.initd ${PN}
521 -
522 - insinto /usr/sbin/
523 - newins VBoxService vboxguest-service
524 - fperms 0755 /usr/sbin/vboxguest-service
525 -
526 - insinto /usr/bin
527 - doins VBoxControl
528 - fperms 0755 /usr/bin/VBoxControl
529 -
530 - # VBoxClient user service and xrandr wrapper
531 - if use X ; then
532 - doins VBoxClient
533 - fperms 0755 /usr/bin/VBoxClient
534 -
535 - pushd "${S}"/src/VBox/Additions/x11/Installer &>/dev/null \
536 - || die
537 - newins 98vboxadd-xclient VBoxClient-all
538 - fperms 0755 /usr/bin/VBoxClient-all
539 - popd &>/dev/null || die
540 - fi
541 -
542 - # udev rule for vboxdrv
543 - local udev_rules_dir="/lib/udev/rules.d"
544 - dodir ${udev_rules_dir}
545 - echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
546 - >> "${ED}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
547 - || die
548 - echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
549 - >> "${ED}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
550 - || die
551 -
552 - # VBoxClient autostart file
553 - insinto /etc/xdg/autostart
554 - doins "${FILESDIR}"/vboxclient.desktop
555 -
556 - # sample xorg.conf
557 - dodoc "${FILESDIR}"/xorg.conf.vbox
558 - docompress -x "${ED}"/usr/share/doc/${PF}/xorg.conf.vbox
559 -
560 - systemd_dounit "${FILESDIR}/${PN}.service"
561 -}
562 -
563 -pkg_postinst() {
564 - linux-mod_pkg_postinst
565 - if ! use X ; then
566 - elog "use flag X is off, enable it to install the"
567 - elog "X Window System video driver."
568 - fi
569 - elog ""
570 - elog "Please add users to the \"vboxguest\" group so they can"
571 - elog "benefit from seamless mode, auto-resize and clipboard."
572 - elog ""
573 - elog "The vboxsf group has been added to make automount services work."
574 - elog "These services are part of the shared folders support."
575 - elog ""
576 - elog "Please add:"
577 - elog "/etc/init.d/${PN}"
578 - elog "to the default runlevel in order to start"
579 - elog "needed services."
580 - elog "To use the VirtualBox X driver, use the following"
581 - elog "file as your /etc/X11/xorg.conf:"
582 - elog " /usr/share/doc/${PF}/xorg.conf.vbox"
583 - elog ""
584 - elog "Also make sure you use the Mesa library for OpenGL:"
585 - elog " eselect opengl set xorg-x11"
586 - elog ""
587 - elog "An autostart .desktop file has been installed to start"
588 - elog "VBoxClient in desktop sessions."
589 - elog ""
590 - elog "You can mount shared folders with:"
591 - elog " mount -t vboxsf <shared_folder_name> <mount_point>"
592 - elog ""
593 - elog "Warning:"
594 - elog "this ebuild is only needed if you are running gentoo"
595 - elog "inside a VirtualBox Virtual Machine, you don't need"
596 - elog "it to run VirtualBox itself."
597 - elog ""
598 -}
599
600 diff --git a/app-emulation/virtualbox-modules/Manifest b/app-emulation/virtualbox-modules/Manifest
601 index 8083d5fe90f..4b7d2a47f56 100644
602 --- a/app-emulation/virtualbox-modules/Manifest
603 +++ b/app-emulation/virtualbox-modules/Manifest
604 @@ -1,3 +1,2 @@
605 -DIST vbox-kernel-module-src-6.1.16.tar.xz 671736 BLAKE2B 8b2153874ee7a63f88679a5372215e89def49622caa7679a5c2410423eaf23ced18ece79d638fc96db40fac88857db7568dd72dd8e05371b14add3553d61d3a7 SHA512 c51dfad5f9578ad43e2fbdd35a70659640030108006f89d362bc25dead99eb3b39a78d403633b3813f62f5b510eff22d826a2750b9c88f5fcb1cde6531295bff
606 DIST vbox-kernel-module-src-6.1.18.tar.xz 672004 BLAKE2B 7199ba2a5020e5ab51d82735df16aee78ece74db232733b932c380f90dffd589a72613120bbd5c580381ab6f6308abb8d12f69855b9c0a8345bfb8587d022019 SHA512 49b54898b2701774fdeec0cd99dd51a1dd71ffd9be38e125fde73f0c64a697138d13bddbb0ed0e9582d354fa0394608084effb68bd35b266c87f6e3b44c6f342
607 DIST vbox-kernel-module-src-6.1.20.tar.xz 672188 BLAKE2B 0b2ef1e02ce6f55211703946dc53df0fe949a94bac2caf050d31a78e674c2934d5cfaf788da2246000d1dc99218a572cb02272a1a92f4df913fcf7635b65a98b SHA512 4fdc16258ec03c720c81b62c680addcbde8257a58a94b3bca8eefd378c126833d84f7f4fa7bb76fcd7c761983f8626d121b2d31d761f608ca7cce6a689ec0469
608
609 diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-6.1.16-r1.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-6.1.16-r1.ebuild
610 deleted file mode 100644
611 index 0519b12c7cd..00000000000
612 --- a/app-emulation/virtualbox-modules/virtualbox-modules-6.1.16-r1.ebuild
613 +++ /dev/null
614 @@ -1,59 +0,0 @@
615 -# Copyright 1999-2021 Gentoo Authors
616 -# Distributed under the terms of the GNU General Public License v2
617 -
618 -# XXX: the tarball here is just the kernel modules split out of the binary
619 -# package that comes from virtualbox-bin
620 -
621 -EAPI=7
622 -
623 -inherit linux-mod toolchain-funcs
624 -
625 -MY_P="vbox-kernel-module-src-${PV}"
626 -DESCRIPTION="Kernel Modules for Virtualbox"
627 -HOMEPAGE="https://www.virtualbox.org/"
628 -SRC_URI="https://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
629 -
630 -LICENSE="GPL-2"
631 -SLOT="0/$(ver_cut 1-2)"
632 -[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
633 -KEYWORDS="amd64"
634 -IUSE="pax_kernel"
635 -
636 -RDEPEND="!=app-emulation/virtualbox-9999"
637 -
638 -S="${WORKDIR}"
639 -
640 -BUILD_TARGETS="all"
641 -MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S})"
642 -MODULESD_VBOXDRV_ENABLED="yes"
643 -MODULESD_VBOXNETADP_ENABLED="no"
644 -MODULESD_VBOXNETFLT_ENABLED="no"
645 -
646 -PATCHES=(
647 - "${FILESDIR}/${P}-linux-5.10-r0drv-memobj-fix-r0.patch" #751328
648 -)
649 -
650 -pkg_setup() {
651 - linux-mod_pkg_setup
652 - BUILD_PARAMS="CC=$(tc-getBUILD_CC) KERN_DIR=${KV_DIR} KERN_VER=${KV_FULL} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
653 -}
654 -
655 -src_prepare() {
656 - if use pax_kernel && kernel_is -ge 3 0 0 ; then
657 - eapply -p0 "${FILESDIR}"/${PN}-5.2.8-pax-const.patch
658 - fi
659 -
660 - default
661 -}
662 -
663 -src_install() {
664 - linux-mod_src_install
665 - insinto /usr/lib/modules-load.d/
666 - newins "${FILESDIR}"/virtualbox.conf-r1 virtualbox.conf
667 -}
668 -
669 -pkg_postinst() {
670 - # Remove vboxpci.ko from current running kernel
671 - find /lib/modules/${KV_FULL}/misc -type f -name "vboxpci.ko" -delete
672 - linux-mod_pkg_postinst
673 -}
674
675 diff --git a/app-emulation/virtualbox/Manifest b/app-emulation/virtualbox/Manifest
676 index 687fce73017..968fcf004b6 100644
677 --- a/app-emulation/virtualbox/Manifest
678 +++ b/app-emulation/virtualbox/Manifest
679 @@ -1,4 +1,3 @@
680 -DIST VirtualBox-6.1.16.tar.bz2 165470821 BLAKE2B 13376322d0ce2ea3ed826c61816ff19c8ce1f022f6cb1f1b0c291d72354cbe574a01589a6dcc39de10080ba32d5961ca980e75fe11c7401736bf8f7e5443d166 SHA512 4373eb35934f894e419e1441f6368e646e4a84b963a0ecf1e5c71bbf0231de0b0e52f4c4377b8cd2d956bc7a11346a9da2285988bf1e4c743971c413c6529421
681 DIST VirtualBox-6.1.18.tar.bz2 165507486 BLAKE2B 3cf18f30671426f533838eb0579928b08ce022b832d509e70274978efce2e3e0e14dc8fbf258ef9a1ce8a3d666081863aa6971340e04600434f58136fe5c221a SHA512 41cb4bd42429b09836c59ef9867dd3d35d0d5512ff6e515a7f8688ed444c079ce353a84f0d45b607ccf08424782d5de09b264f51b2c41a9ec34eb834458c293c
682 DIST VirtualBox-6.1.20.tar.bz2 165569564 BLAKE2B cf8c110e78e7d7bef3e3243a8966f4d816dacc8dad6cc44737023a13f1b89dfb50661f6dabc742f328e5c03556ec82e7a22f5c1b97cfef774652ec901e733e5d SHA512 b5af4e04e1a52c85b20226a274fac93712b79d426c0268cce3f2a337616a03161a55522ecddd13844bfc24a6808ba3d651366e74ce657cc6f8fd64c34ae745a4
683 DIST virtualbox-6.1.12-patches-01.tar.xz 2528 BLAKE2B a5d7cde0daea41bee2e40e46569c725769927a31865d99d13b8b13c4903e59b4097f85da15dc592b9c7e8baf8ff805397af827620f107ba09a468b4d1198ecab SHA512 f71d10a9fbce99c3f631ef30bcfa9d0e017e702ac509541b039e08ccbcd024beb93fde09c43d90af5d9d28f6842a7947f20e7950d3897da3e6d57859657e1123
684
685 diff --git a/app-emulation/virtualbox/virtualbox-6.1.16-r1.ebuild b/app-emulation/virtualbox/virtualbox-6.1.16-r1.ebuild
686 deleted file mode 100644
687 index f6f373e8a64..00000000000
688 --- a/app-emulation/virtualbox/virtualbox-6.1.16-r1.ebuild
689 +++ /dev/null
690 @@ -1,512 +0,0 @@
691 -# Copyright 1999-2021 Gentoo Authors
692 -# Distributed under the terms of the GNU General Public License v2
693 -
694 -EAPI=7
695 -
696 -PYTHON_COMPAT=( python3_{7,8} )
697 -inherit desktop flag-o-matic java-pkg-opt-2 linux-info pax-utils python-single-r1 tmpfiles toolchain-funcs udev xdg
698 -
699 -MY_PN="VirtualBox"
700 -MY_PV="${PV/beta/BETA}"
701 -MY_PV="${MY_PV/rc/RC}"
702 -MY_P=${MY_PN}-${MY_PV}
703 -[[ "${PV}" == *a ]] && DIR_PV="$(ver_cut 1-3)"
704 -
705 -DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
706 -HOMEPAGE="https://www.virtualbox.org/"
707 -SRC_URI="https://download.virtualbox.org/virtualbox/${DIR_PV:-${MY_PV}}/${MY_P}.tar.bz2
708 - https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-6.1.12-patches-01.tar.xz"
709 -
710 -LICENSE="GPL-2 dtrace? ( CDDL )"
711 -SLOT="0/$(ver_cut 1-2)"
712 -[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
713 -KEYWORDS="amd64"
714 -IUSE="alsa debug doc dtrace headless java libressl lvm +opus pam pax_kernel pulseaudio +opengl python +qt5 +sdk +udev vboxwebsrv vnc"
715 -
716 -CDEPEND="
717 - ${PYTHON_DEPS}
718 - !app-emulation/virtualbox-bin
719 - acct-group/vboxusers
720 - ~app-emulation/virtualbox-modules-${DIR_PV:-${PV}}
721 - dev-libs/libIDL
722 - >=dev-libs/libxslt-1.1.19
723 - net-misc/curl
724 - dev-libs/libxml2
725 - media-libs/libpng:0=
726 - media-libs/libvpx:0=
727 - sys-libs/zlib:=
728 - !headless? (
729 - media-libs/libsdl:0[X,video]
730 - x11-libs/libX11
731 - x11-libs/libxcb:=
732 - x11-libs/libXcursor
733 - x11-libs/libXext
734 - x11-libs/libXmu
735 - x11-libs/libXt
736 - opengl? ( media-libs/libglvnd[X] )
737 - qt5? (
738 - dev-qt/qtcore:5
739 - dev-qt/qtgui:5
740 - dev-qt/qtprintsupport:5
741 - dev-qt/qtwidgets:5
742 - dev-qt/qtx11extras:5
743 - opengl? ( dev-qt/qtopengl:5 )
744 - x11-libs/libXinerama
745 - )
746 - )
747 - libressl? ( dev-libs/libressl:= )
748 - !libressl? ( dev-libs/openssl:0= )
749 - lvm? ( sys-fs/lvm2 )
750 - opus? ( media-libs/opus )
751 - udev? ( >=virtual/udev-171 )
752 - vnc? ( >=net-libs/libvncserver-0.9.9 )
753 -"
754 -DEPEND="
755 - ${CDEPEND}
756 - alsa? ( >=media-libs/alsa-lib-1.0.13 )
757 - !headless? (
758 - x11-libs/libXinerama
759 - opengl? ( virtual/opengl )
760 - )
761 - pam? ( sys-libs/pam )
762 - pax_kernel? ( sys-apps/elfix )
763 - pulseaudio? ( media-sound/pulseaudio )
764 - qt5? ( dev-qt/linguist-tools:5 )
765 - vboxwebsrv? ( net-libs/gsoap[-gnutls(-)] )
766 -"
767 -BDEPEND="
768 - ${PYTHON_DEPS}
769 - >=dev-util/kbuild-0.1.9998.3127
770 - >=dev-lang/yasm-0.6.2
771 - sys-devel/bin86
772 - sys-libs/libcap
773 - sys-power/iasl
774 - virtual/pkgconfig
775 - doc? (
776 - app-text/docbook-sgml-dtd:4.4
777 - dev-texlive/texlive-basic
778 - dev-texlive/texlive-latex
779 - dev-texlive/texlive-latexrecommended
780 - dev-texlive/texlive-latexextra
781 - dev-texlive/texlive-fontsrecommended
782 - dev-texlive/texlive-fontsextra
783 - )
784 - java? ( >=virtual/jdk-1.6 )
785 -"
786 -RDEPEND="
787 - ${CDEPEND}
788 - java? ( >=virtual/jre-1.6 )
789 -"
790 -
791 -QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
792 - usr/lib/virtualbox/VBoxSDL.so
793 - usr/lib/virtualbox/VBoxSharedFolders.so
794 - usr/lib/virtualbox/VBoxDD2.so
795 - usr/lib/virtualbox/VBoxOGLrenderspu.so
796 - usr/lib/virtualbox/VBoxPython.so
797 - usr/lib/virtualbox/VBoxDD.so
798 - usr/lib/virtualbox/VBoxDDU.so
799 - usr/lib/virtualbox/VBoxREM64.so
800 - usr/lib/virtualbox/VBoxSharedClipboard.so
801 - usr/lib/virtualbox/VBoxHeadless.so
802 - usr/lib/virtualbox/VBoxRT.so
803 - usr/lib/virtualbox/VBoxREM.so
804 - usr/lib/virtualbox/VBoxSettings.so
805 - usr/lib/virtualbox/VBoxKeyboard.so
806 - usr/lib/virtualbox/VBoxSharedCrOpenGL.so
807 - usr/lib/virtualbox/VBoxVMM.so
808 - usr/lib/virtualbox/VirtualBox.so
809 - usr/lib/virtualbox/VBoxOGLhosterrorspu.so
810 - usr/lib/virtualbox/components/VBoxC.so
811 - usr/lib/virtualbox/components/VBoxSVCM.so
812 - usr/lib/virtualbox/components/VBoxDDU.so
813 - usr/lib/virtualbox/components/VBoxRT.so
814 - usr/lib/virtualbox/components/VBoxREM.so
815 - usr/lib/virtualbox/components/VBoxVMM.so
816 - usr/lib/virtualbox/VBoxREM32.so
817 - usr/lib/virtualbox/VBoxPython2_7.so
818 - usr/lib/virtualbox/VBoxXPCOMC.so
819 - usr/lib/virtualbox/VBoxOGLhostcrutil.so
820 - usr/lib/virtualbox/VBoxNetDHCP.so
821 - usr/lib/virtualbox/VBoxNetNAT.so"
822 -
823 -S="${WORKDIR}/${MY_PN}-${DIR_PV:-${MY_PV}}"
824 -
825 -REQUIRED_USE="
826 - java? ( sdk )
827 - python? ( sdk )
828 - vboxwebsrv? ( java )
829 - ${PYTHON_REQUIRED_USE}
830 -"
831 -
832 -pkg_pretend() {
833 - if ! use headless && ! use qt5 ; then
834 - einfo "No USE=\"qt5\" selected, this build will not include any Qt frontend."
835 - elif use headless && use qt5 ; then
836 - einfo "You selected USE=\"headless qt5\", defaulting to"
837 - einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
838 - fi
839 -
840 - if ! use opengl ; then
841 - einfo "No USE=\"opengl\" selected, this build will lack"
842 - einfo "the OpenGL feature."
843 - fi
844 - if ! use python ; then
845 - einfo "You have disabled the \"python\" USE flag. This will only"
846 - einfo "disable the python bindings being installed."
847 - fi
848 -}
849 -
850 -pkg_setup() {
851 - java-pkg-opt-2_pkg_setup
852 - python-single-r1_pkg_setup
853 -
854 - tc-ld-disable-gold #bug 488176
855 - tc-export CC CXX LD AR RANLIB
856 - export HOST_CC="$(tc-getBUILD_CC)"
857 -}
858 -
859 -src_prepare() {
860 - # Remove shipped binaries (kBuild,yasm), see bug #232775
861 - rm -r kBuild/bin tools || die
862 -
863 - # Replace pointless GCC version check with something less stupid.
864 - # This is needed for the qt5 version check.
865 - sed -e 's@^check_gcc$@cc_maj="$(${CC} -dumpversion | cut -d. -f1)" ; cc_min="$(${CC} -dumpversion | cut -d. -f2)"@' \
866 - -i configure || die
867 -
868 - # Disable things unused or split into separate ebuilds
869 - sed -e "s@MY_LIBDIR@$(get_libdir)@" \
870 - "${FILESDIR}"/${PN}-5-localconfig > LocalConfig.kmk || die
871 -
872 - # Respect LDFLAGS
873 - sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
874 - -i Config.kmk src/libs/xpcom18a4/Config.kmk || die
875 -
876 - # Do not use hard-coded ld (related to bug #488176)
877 - sed -e '/QUIET)ld /s@ld @$(LD) @' \
878 - -i src/VBox/Devices/PC/ipxe/Makefile.kmk || die
879 -
880 - # Use PAM only when pam USE flag is enbaled (bug #376531)
881 - if ! use pam ; then
882 - elog "Disabling PAM removes the possibility to use the VRDP features."
883 - sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
884 - sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
885 - src/VBox/HostServices/Makefile.kmk || die
886 - fi
887 -
888 - # add correct java path
889 - if use java ; then
890 - sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
891 - -i "${S}"/Config.kmk || die
892 - java-pkg-opt-2_src_prepare
893 - fi
894 -
895 - # Only add nopie patch when we're on hardened
896 - if gcc-specs-pie ; then
897 - eapply "${FILESDIR}/050_virtualbox-5.2.8-nopie.patch"
898 - fi
899 -
900 - # Only add paxmark patch when we're on pax_kernel
901 - if use pax_kernel ; then
902 - eapply "${FILESDIR}"/virtualbox-5.2.8-paxmark-bldprogs.patch
903 - fi
904 -
905 - eapply "${WORKDIR}/patches"
906 -
907 - eapply_user
908 -}
909 -
910 -doecho() {
911 - echo "$@"
912 - "$@" || die
913 -}
914 -
915 -src_configure() {
916 - local myconf=(
917 - --with-gcc="$(tc-getCC)"
918 - --with-g++="$(tc-getCXX)"
919 - --disable-dbus
920 - --disable-kmods
921 - $(usex alsa '' --disable-alsa)
922 - $(usex debug --build-debug '')
923 - $(usex doc '' --disable-docs)
924 - $(usex java '' --disable-java)
925 - $(usex lvm '' --disable-devmapper)
926 - $(usex opus '' --disable-libopus)
927 - $(usex pulseaudio '' --disable-pulse)
928 - $(usex python '' --disable-python)
929 - $(usex vboxwebsrv --enable-webservice '')
930 - $(usex vnc --enable-vnc '')
931 - )
932 - if ! use headless ; then
933 - myconf+=(
934 - $(usex opengl '' --disable-opengl)
935 - $(usex qt5 '' --disable-qt)
936 - )
937 - else
938 - myconf+=(
939 - --build-headless
940 - --disable-opengl
941 - )
942 - fi
943 - if use amd64 && ! has_multilib_profile ; then
944 - myconf+=( --disable-vmmraw )
945 - fi
946 - # not an autoconf script
947 - doecho ./configure ${myconf[@]}
948 -}
949 -
950 -src_compile() {
951 - source ./env.sh || die
952 -
953 - # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
954 - MAKEJOBS=$(grep -Eo '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
955 - MAKELOAD=$(grep -Eo '(\-l|\-\-load-average)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
956 - MAKEOPTS="${MAKEJOBS} ${MAKELOAD}"
957 - MAKE="kmk" emake \
958 - VBOX_BUILD_PUBLISHER=_Gentoo \
959 - TOOL_GXX3_CC="$(tc-getCC)" TOOL_GXX3_CXX="$(tc-getCXX)" \
960 - TOOL_GXX3_LD="$(tc-getCXX)" VBOX_GCC_OPT="${CXXFLAGS}" \
961 - TOOL_YASM_AS=yasm KBUILD_VERBOSE=2 \
962 - VBOX_WITH_VBOXIMGMOUNT=1 \
963 - all
964 -}
965 -
966 -src_install() {
967 - cd "${S}"/out/linux.${ARCH}/$(usex debug debug release)/bin || die
968 -
969 - local vbox_inst_path="/usr/$(get_libdir)/${PN}" each size ico icofile
970 -
971 - vbox_inst() {
972 - local binary="${1}"
973 - local perms="${2:-0750}"
974 - local path="${3:-${vbox_inst_path}}"
975 -
976 - [[ -n "${binary}" ]] || die "vbox_inst: No binary given!"
977 - [[ ${perms} =~ ^[[:digit:]]+{4}$ ]] || die "vbox_inst: perms must consist of four digits."
978 -
979 - insinto ${path}
980 - doins ${binary}
981 - fowners root:vboxusers ${path}/${binary}
982 - fperms ${perms} ${path}/${binary}
983 - }
984 -
985 - # Create configuration files
986 - insinto /etc/vbox
987 - newins "${FILESDIR}/${PN}-4-config" vbox.cfg
988 -
989 - # Set the correct libdir
990 - sed \
991 - -e "s@MY_LIBDIR@$(get_libdir)@" \
992 - -i "${ED}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
993 -
994 - # Install the wrapper script
995 - exeinto ${vbox_inst_path}
996 - newexe "${FILESDIR}/${PN}-ose-6-wrapper" "VBox"
997 - fowners root:vboxusers ${vbox_inst_path}/VBox
998 - fperms 0750 ${vbox_inst_path}/VBox
999 -
1000 - # Install binaries and libraries
1001 - insinto ${vbox_inst_path}
1002 - doins -r components
1003 -
1004 - for each in VBox{Autostart,BalloonCtrl,BugReport,CpuReport,ExtPackHelperApp,Manage,SVC,Tunctl,VMMPreload,XPCOMIPCD} vboximg-mount *so *r0 iPxeBaseBin ; do
1005 - vbox_inst ${each}
1006 - done
1007 -
1008 - # These binaries need to be suid root.
1009 - for each in VBox{Headless,Net{AdpCtl,DHCP,NAT}} ; do
1010 - vbox_inst ${each} 4750
1011 - done
1012 -
1013 - # Install EFI Firmware files (bug #320757)
1014 - for each in VBoxEFI{32,64}.fd ; do
1015 - vbox_inst ${each} 0644
1016 - done
1017 -
1018 - # VBoxSVC and VBoxManage need to be pax-marked (bug #403453)
1019 - # VBoxXPCOMIPCD (bug #524202)
1020 - for each in VBox{Headless,Manage,SVC,XPCOMIPCD} ; do
1021 - pax-mark -m "${ED}"${vbox_inst_path}/${each}
1022 - done
1023 -
1024 - # Symlink binaries to the shipped wrapper
1025 - for each in vbox{autostart,balloonctrl,bugreport,headless,manage} VBox{Autostart,BalloonCtrl,BugReport,Headless,Manage,VRDP} ; do
1026 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1027 - done
1028 - dosym ${vbox_inst_path}/VBoxTunctl /usr/bin/VBoxTunctl
1029 - dosym ${vbox_inst_path}/vboximg-mount /usr/bin/vboximg-mount
1030 -
1031 - if use pam ; then
1032 - # VRDPAuth only works with this (bug #351949)
1033 - dosym VBoxAuth.so ${vbox_inst_path}/VRDPAuth.so
1034 - fi
1035 -
1036 - # set an env-variable for 3rd party tools
1037 - echo -n "VBOX_APP_HOME=${vbox_inst_path}" > "${T}/90virtualbox"
1038 - doenvd "${T}/90virtualbox"
1039 -
1040 - if ! use headless ; then
1041 - vbox_inst rdesktop-vrdp
1042 - vbox_inst VBoxSDL 4750
1043 - pax-mark -m "${ED}"${vbox_inst_path}/VBoxSDL
1044 -
1045 - for each in vboxsdl VBoxSDL ; do
1046 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1047 - done
1048 -
1049 - if use qt5 ; then
1050 - vbox_inst VirtualBox
1051 - vbox_inst VirtualBoxVM 4750
1052 - for each in VirtualBox{,VM} ; do
1053 - pax-mark -m "${ED}"${vbox_inst_path}/${each}
1054 - done
1055 -
1056 - if use opengl ; then
1057 - vbox_inst VBoxTestOGL
1058 - pax-mark -m "${ED}"${vbox_inst_path}/VBoxTestOGL
1059 - fi
1060 -
1061 - for each in virtualbox{,vm} VirtualBox{,VM} ; do
1062 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1063 - done
1064 -
1065 - insinto /usr/share/${PN}
1066 - doins -r nls
1067 - doins -r UnattendedTemplates
1068 -
1069 - domenu ${PN}.desktop
1070 - fi
1071 -
1072 - pushd "${S}"/src/VBox/Artwork/OSE &>/dev/null || die
1073 - for size in 16 32 48 64 128 ; do
1074 - newicon -s ${size} ${PN}-${size}px.png ${PN}.png
1075 - done
1076 - newicon ${PN}-48px.png ${PN}.png
1077 - doicon -s scalable ${PN}.svg
1078 - popd &>/dev/null || die
1079 - pushd "${S}"/src/VBox/Artwork/other &>/dev/null || die
1080 - for size in 16 24 32 48 64 72 96 128 256 512 ; do
1081 - for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
1082 - icofile="${PN}-${ico}-${size}px.png"
1083 - if [[ -f "${icofile}" ]] ; then
1084 - newicon -s ${size} ${icofile} ${PN}-${ico}.png
1085 - fi
1086 - done
1087 - done
1088 - popd &>/dev/null || die
1089 - fi
1090 -
1091 - if use lvm ; then
1092 - vbox_inst VBoxVolInfo 4750
1093 - dosym ${vbox_inst_path}/VBoxVolInfo /usr/bin/VBoxVolInfo
1094 - fi
1095 -
1096 - if use sdk ; then
1097 - insinto ${vbox_inst_path}
1098 - doins -r sdk
1099 -
1100 - if use java ; then
1101 - java-pkg_regjar "${ED}/${vbox_inst_path}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
1102 - java-pkg_regso "${ED}/${vbox_inst_path}/libvboxjxpcom.so"
1103 - fi
1104 - fi
1105 -
1106 - if use udev ; then
1107 - # New way of handling USB device nodes for VBox (bug #356215)
1108 - local udevdir="$(get_udevdir)"
1109 - insinto ${udevdir}
1110 - doins VBoxCreateUSBNode.sh
1111 - fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
1112 - fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
1113 - insinto ${udevdir}/rules.d
1114 - sed "s@%UDEVDIR%@${udevdir}@" "${FILESDIR}"/10-virtualbox.rules \
1115 - > "${T}"/10-virtualbox.rules || die
1116 - doins "${T}"/10-virtualbox.rules
1117 - fi
1118 -
1119 - if use vboxwebsrv ; then
1120 - vbox_inst vboxwebsrv
1121 - dosym ${vbox_inst_path}/VBox /usr/bin/vboxwebsrv
1122 - newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
1123 - newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
1124 - fi
1125 -
1126 - # Remove dead symlinks (bug #715338)
1127 - find "${ED}"/usr/$(get_libdir)/${PN} -xtype l -delete || die
1128 -
1129 - # Fix version string in extensions or else they don't get accepted
1130 - # by the virtualbox host process (see bug #438930)
1131 - find ExtensionPacks -type f -name "ExtPack.xml" -print0 \
1132 - | xargs --no-run-if-empty --null sed -i '/Version/s@_Gentoo@@' \
1133 - || die
1134 -
1135 - local extensions_dir="${vbox_inst_path}/ExtensionPacks"
1136 -
1137 - if use vnc ; then
1138 - insinto ${extensions_dir}
1139 - doins -r ExtensionPacks/VNC
1140 - fi
1141 -
1142 - if use dtrace ; then
1143 - insinto ${extensions_dir}
1144 - doins -r ExtensionPacks/Oracle_VBoxDTrace_Extension_Pack
1145 - fi
1146 -
1147 - if use doc ; then
1148 - dodoc UserManual.pdf
1149 - fi
1150 -
1151 - newtmpfiles "${FILESDIR}"/${PN}-vboxusb_tmpfilesd ${PN}-vboxusb.conf
1152 -}
1153 -
1154 -pkg_preinst() {
1155 - xdg_pkg_preinst
1156 -}
1157 -
1158 -pkg_postinst() {
1159 - xdg_pkg_postinst
1160 -
1161 - if use udev ; then
1162 - udevadm control --reload-rules \
1163 - && udevadm trigger --subsystem-match=usb
1164 - fi
1165 -
1166 - tmpfiles_process /usr/lib/tmpfiles.d/virtualbox-vboxusb.conf
1167 -
1168 - if ! use headless && use qt5 ; then
1169 - elog "To launch VirtualBox just type: \"virtualbox\"."
1170 - fi
1171 - elog "You must be in the vboxusers group to use VirtualBox."
1172 - elog ""
1173 - elog "The latest user manual is available for download at:"
1174 - elog "http://download.virtualbox.org/virtualbox/${DIR_PV:-${PV}}/UserManual.pdf"
1175 - elog ""
1176 - elog "For advanced networking setups you should emerge:"
1177 - elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
1178 - elog ""
1179 - elog "Starting with version 4.0.0, ${PN} has USB-1 support."
1180 - elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
1181 - elog " app-emulation/virtualbox-extpack-oracle"
1182 - elog "package."
1183 - elog "Starting with version 5.0.0, ${PN} no longer has the \"additions\" and"
1184 - elog "the \"extension\" USE flag. For installation of the guest additions ISO"
1185 - elog "image, please emerge"
1186 - elog " app-emulation/virtualbox-additions"
1187 - elog "and for the USB2, USB3, VRDP and PXE boot ROM modules, please emerge"
1188 - elog " app-emulation/virtualbox-extpack-oracle"
1189 - if ! use udev ; then
1190 - elog ""
1191 - elog "WARNING!"
1192 - elog "Without USE=udev, USB devices will likely not work in ${PN}."
1193 - elif [[ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ]] ; then
1194 - elog ""
1195 - elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
1196 - elog "or else USB in ${PN} won't work."
1197 - fi
1198 -}
1199 -
1200 -pkg_postrm() {
1201 - xdg_pkg_postrm
1202 -}