Commit graph

322 commits

Author SHA1 Message Date
Guido Falsi
423f3dfd75 emulators/virtualbox-ose: Fix build with ports provided SSL library on 11.x
Due to a compiler/linker command line ordering issue, VirtualBox 6
fails to compile on 11.x when a ports provided SSL library is
used.

Fix the order of -L options passed to the linker where the ssl
library is used.

Thanks to  Chad Jacob Milios <milios@ccsys.com> for suggesting the
correct fix.

PR:		254295
Submitted by:	russo@bogodyn.org
MFH:		2021Q2
2021-04-11 16:55:35 +02:00
Mathieu Arnold
135fdeebb9
all: Remove all other $FreeBSD keywords. 2021-04-06 16:31:13 +02:00
Mathieu Arnold
305f148f48
Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
Guido Falsi
72a4b7ab57 Reimplement patch to disable Asyncronous IO in virtualbox-ose 6 as
an option, leaving AIO enabled by default, so no functional change
in default build.

Requested/Suggested by:	David G Lawrence <dg@dglawrence.com>
2021-03-30 21:30:31 +00:00
Neel Chauhan
b6a2222fb3 emulators/virtualbox-ose-kmod: Fix kernel panic on 13/14 with bridge mode by adding EPOCH support
In r560502, I added a patch to support EPOCH to VirtualBox 5. When we upgraded
to VirtualBox 6, that patch was (unintentionally) removed, making it impossible
to use bridge move without this current patch.

Approved by:	jkim, madpilot
Differential Revision:	https://reviews.freebsd.org/D29319
2021-03-18 15:51:08 +00:00
Guido Falsi
32eaa87881 Remove trailing spaaces from patch. 2021-03-13 15:04:09 +00:00
Guido Falsi
42d8425b62 - Update VirtualBox OSE to 6.1.18
- Old VirtualBox OSE 5.2.44 preserved as "-legacy" versions of the
  ports (repocopied)
- Add back extra patch removed in r528258, actually required to
  build DEBUG kmod
- Correctly define WITH_DEBUG when enabling the DEBUG option, so
  binaries are not stripped

Please note that this new version supports only amd64 CPUs. If you need
to use older hardware please install the legacy ports.

Note that moving VM snapshots across major updates is unsupported, it's
strongly suggested to properly shutdown VMs before upgrading, please
check UPDATING for further details.

This update is the result of work from many people, and thanks to all
who gave feedback and tested things.

Patch based on work from: Mario Lobo <lobo@bsd.com.br> and jkim.

PR:			234878
Submitted by:		kunda <chitty_cloud@me.com>
Approved by:		vbox (implicit)
Reviewed by:		decke
Tested by:		jwb,
			martin ilavsky <ilavsky.martin@gmail.com>,
			Mario Lobo <lobo@bsd.com.br>
Relnotes:		https://www.virtualbox.org/wiki/Changelog-6.1
Differential Revision:	https://reviews.freebsd.org/D28871
2021-03-09 18:27:36 +00:00
Guido Falsi
94d20d4aff Fix VirtualBox build on recent head and 13 after src commit
0659df6faddf

PR:		252675
Submitted by:	O. Hartmann <ohartmann@walstatt.org>
		Mateusz Piotrowski <0mp@FreeBSD.org> (duplicate)
Reported by:	se (mailing lists), others
Approved by:	ports-secteam (fluffy)
MFH:		2020Q1
2021-01-26 14:49:22 +00:00
Neel Chauhan
cecf695082 emulators/virtualbox-ose-kmod: Fix kernel panic on 13-CURRENT with EPOCH and bridge mode.
Reviewed by:		kp, jkim (previous version)
Approved by:		kp, jkim (previous version), 0mp (mentor)
Differential Revision:	https://reviews.freebsd.org/D26359
2021-01-06 11:54:14 +00:00
Guido Falsi
4296c3e1e4 Fix patch to virtualbox-ose-additions OpenGL ssupport to actually
work at runtime as much as possible.

The OpenGL bits in VirtualBox 5 are an old implementation that does
not play too well with what wee have in the tree now. Thesse patches
simply change the funzionn prototypess in VirtualBox to match the
ones from mesa so it caan compile and interface as much as possible
with it.

Thanks to Ronald Klop <ronald-lists@klop.ws> for testing.

PR:		250315
Submitted by:	rozhuk.im@gmail.com
Approved by:	portmgr (fixit blanket)
2020-10-27 09:10:56 +00:00
Guido Falsi
cbe3e0cf12 Fix emulators/virtualbox-ose build after r552109.
VirtualBox embeds an outdated version of glext.h, causing it to
fail to build due to symbols being redefined incorrectly.

Import patch which forces virtualbox to append it's own include
paths, thus not "obscuring" the system provided OpenGL include file.

PR:		250315
Submitted by:	rozhuk.im@gmail.com
Approved by:	portmgr (fixit blanket)
2020-10-17 13:29:42 +00:00
Gleb Popov
6cab61a4f2 emulators/virtualbox-ose: Turn off aio usage and make VirtualBox use generic Unix implementation.
This fixes instabilities on some loads involving disk IO.

PR:		168298, 221294
Approved by:	vbox (timeout)
2020-10-12 15:31:44 +00:00
Adriaan de Groot
22e1fe798c emulators/virtualbox-ose-kmod: Fix a pair of VM bugs
- Use vm_pager_allocate() to allocate OBJT_PHYS objects.  This ensures
  that they're initialized properly.
- Don't assume that user wiring will succeed.

This had been a team effort, with multiple independent reports,
a wide variety of experiments, and patches written by kib@
and refined by markj@.

I'm bumping PORTREVISION and aligning the revision of both kmod and
application; it's possible the application bump isn't actually
needed but let's make sure they both get rebuilt with this
important (because of changed kernel assumptions) fix.

PR:		249326
Submitted by:	kib, markj
Reported by:	adridg, Rainer Hurling
Reviewed by:	adridg
Approved by:	koobs (vbox)
MFH:		2020Q3
2020-09-24 14:59:14 +00:00
Ganael LAPLANCHE
faf424550e Fix crash when accessing physical CD/DVD
PR:		248333
Reported by:	mfv@bway.net
Approved by:	koobs (vbox)
MFH:		2020Q3
2020-09-21 10:32:30 +00:00
Jung-uk Kim
ea7cc70e0b Fix emulators/virtualbox-os-additions on head after vget(9) change. 2020-08-28 19:23:19 +00:00
Jung-uk Kim
1bf70fa53c Do not allow compiling C++ files for drivers with built-in functions.
This change lets us do "kldload vboxvfs.ko" (although it is still broken).
2020-08-14 23:17:44 +00:00
Jung-uk Kim
0c7dc882a4 Remove unncessary memcpy(3) and fix file system ID handling.
I removed a bzero() call to reduce compiler warnings in the previous commit
(r544829).  It turned out the next memcpy() call was also wrong.  Just use
natural assignments here not to obfuscate the code.

Reported by:	Martin Simmons (martin at lispworks dot com) (some time ago)
2020-08-13 21:54:59 +00:00
Jung-uk Kim
fa3f49529c Remove a superfluous bzero(3) call to reduce compiler warnings.
PR:	226073
2020-08-13 18:39:48 +00:00
Jung-uk Kim
289dacaa4d Fix building emulators/virtualbox-ose-additions on head after vaccess(9) KPI
change.
2020-08-13 18:18:34 +00:00
Guido Falsi
c7901a4b4e - Update VirtualBox ports to 5.2.44
- Adapt and regenerate patches
- Reduce differences in patch-src_VBox_Devices_PC_vbox-cpuhotplug.dsl [1]

Patch based on one provided by Mario Lobo <lobo@bsd.com.br>.

Many thanks to people who provided ideas and suggetions in the
PR and review.

PR:			244212
Submitted by:		Nikita Stepanov <nikitastepan0v@bk.ru>
Reviewed by:		kevans [1]
Tested by:		lwshu
Approved by:		ports-secteam (joneum)
MFH:			2020Q3
Security:		1e7b316b-c6a8-11ea-a7d5-001999f8d30b
Differential Revision:	https://reviews.freebsd.org/D25496
2020-07-19 09:19:22 +00:00
Muhammad Moinur Rahman
ca8232049b emulators/virtualbox-ose: UNBREAK with gsoap 2.8.103
- gSoap 2.8.103 macro soap_socket_errno changed from:
  soap_socket_errno(s) -> soap_socket_errno

PR:		246910
Submitted by:	dereks@lifeofadishwasher.com
Reported by:	transitive@gmail.com
2020-06-07 13:08:06 +00:00
Tobias C. Berner
a06fa96d5b emulators/virtualbox-ose: prepare for Qt5-5.15 2020-05-18 15:41:24 +00:00
Cy Schubert
e1170c97fe Fix r531689 i386 build.
PR:		236616, 244847
Submitted by:	kevans
MFH:		2020Q2 (blanket: major runtime build fix)
MFH-with:	r531689
2020-04-15 02:29:03 +00:00
Kyle Evans
a714a89d78 emulators/virtualbox-ose: Switch build to USES= compiler:c++14-lang
The runtime breakage that started occurring after the LLVM 7 -> 8 transition
has been diagnosed with help from cem@, and the attached patch fixes it. The
problem ended up being that tail-call optimization was being applied to this
function (which should probably be written in assembly instead) and moving
the tail-call to later on after some stack manipulations. The problem with
this is that this particular function uses alloca() to carefully craft a
stack that it's expecting to be used for the function it's calling at the
end.

The new patch fixes this using a technique that was committed later on in
upstream changeset 75061 to address a similar failure with GCC sanitizers
enabled. The FreeBSD-specific component of this patch is using the different
stack setup if __clang__ is defined as well.

The extra hunk in the Config patch has been added because the VirtualBox
build system cannot cope with LLVM version numbers in the way it's
expecting. Hardcode it to GCC 4.2 for FreeBSD, which is what the clang
__GNU* macros describe, to fix build breakage that happens with newer LLVM
as the build system decides our LLVM is an even older and more broken
version of GCC with a broken regparm.

PR:		236616, 244847
Approved by:	koobs (mentor)
MFH:		2020Q2 (blanket: major runtime build fix)
2020-04-14 13:47:51 +00:00
Bryan Drewery
2e58281789 - Fix runtime for gcc rpath. [1]
This is a regression of something that was working in the past. Please
  keep the _GCC_RUNTIME handling even if removing USE_GCC as it may
  come back again in the future and be forgotten.
- Fix build on 11.3 with ports ssl. [2]

PR:		245048 [1]
PR:		243315 [2]
Submitted by:	John Hein <jcfyecrayz at liamekaens.com> [2]
2020-03-31 17:41:04 +00:00
Kyle Evans
df5c241ed2 emulators/virtualbox-ose: use contemporary GCC instead of old llvm
The bug in PR 236616 resulted in virtualbox getting pinned to llvm7. This is
less than ideal, and in-fact has been broken by improvements to
machine/atomic.h
on x86 that require a more modern compiler.

Switch the build to USE_GCC= any. The patches that were previously applied
if COMPILER_TYPE == clang are actually needed by newer GCCs as well, so make
those
standard patches instead, folding the Config.kmk patches together.

We should put some effort into testing llvm10 and working out why llvm
breaks
it, but fixing the build is more important at the moment.

Q/A:
* portlint (pre-existing issues; none in current patch)
* testport (-CURRENT, amd64)
* run testing by madpilot@

PR:		244603
Approved by:	koobs (mentor), bapt (mentor)
Approved by:	portmgr (blanket: build fix)
MFH:		2020Q1 (blanket: build fix)
Differential Revision:	https://reviews.freebsd.org/D23967
2020-03-12 00:41:32 +00:00
Niclas Zeising
4b9c697c26 Update xorg x11 servers to 1.20.7
Update xorg x11 servers to 1.20.7.  This updates x11-servers/xorg-server,
xephyr, xorg-dmx, xorg-nestserver, xorg-vbserver and xwayland.

Enable the UDEV backend by default, instead of the DEVD backend, for
autoconfiguration of input devices on FreeBSD 12 and later.
FreeBSD 11 lacks the needed support in base and will keep on using the DEVD
backend.
Support for the HAL backend is dropped completely, it has been deprecated
for a long time.
Update and improve the DEVD backend.
Add a pkg message about sysctl configuration that might be needed when using
UDEV.

Use the upstream fix for glamour issues.

Use evdev xkb rules by default in xwayland [2]

Add x11-drivers/xf86-input-libinput to the list installed by default by
x11-drivers/xorg-drivers.

Fix net/tigervnc-server and emulators/virtualbox-ose

Bump portrevision of all x11 drivers, as well as other ports dependent on
xorg-server.

This represents work by many people over a long period.  These include
wulf, ak, dumbbell, hselasky pete AT nomadlogic DOT org, jbeich, manu,
myself and possibly others (I tried to look through history, but might have
missed people. If so, I am sorry.)

PR:             196678 [1], 244129 [2]
Submitted by:   hselasky, wulf [1], jbeich [2]
Obtained from:	https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/xserver-1.20 (in part)
2020-02-20 21:15:44 +00:00
Jung-uk Kim
29df8c1a58 Build emulators/virtualbox-ose-additions on head after r355537. 2019-12-12 22:16:06 +00:00
Niclas Zeising
d52303ea80 Add USES=xorg USES=gl, ports categories e
Add USES=xorg, USES=gl and in a few cases USES=gnome to ports in categories
starting with 'e'.
2019-11-05 15:48:40 +00:00
Jung-uk Kim
256e5b6570 Fix build with the recent iasl(8) on head after r353764.
Note this error was added in ACPICA 20190816.
2019-10-22 21:45:55 +00:00
Jung-uk Kim
fa86e7a147 Update to 5.2.34.
https://www.virtualbox.org/wiki/Changelog-5.2#v34
2019-10-17 03:02:36 +00:00
Tobias C. Berner
c45de9579f Qt5 update to 5.13.0
For new features, check: https://wiki.qt.io/New_Features_in_Qt_5.13

Thanks to adridg who helped to fix a lot of packages.

Exp-run by:	antoine
PR:		238782
2019-10-01 04:13:31 +00:00
Tobias Kortkamp
1a78aa8c30 emulators/virtualbox-ose*: Use ECHO_CMD not ECHO per bsd.commands.mk
- Unbreak `make -s` builds

PR:		240433, 240426
Submitted by:	Franco Fichtner <franco@opnsense.org> (based on)
2019-09-09 11:01:13 +00:00
Mathieu Arnold
79698c8457 Convert to UCL & cleanup pkg-message (categories e-g) 2019-08-13 16:03:11 +00:00
Gerald Pfeifer
ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00
Jung-uk Kim
48de8a4b8c Update to 5.2.32.
https://www.virtualbox.org/wiki/Changelog-5.2#v32
2019-07-16 23:02:43 +00:00
Jung-uk Kim
224876864e Revert r501849 and restore the previous behaviour. No functional change. 2019-05-17 11:56:47 +00:00
Jung-uk Kim
a3e617f39a Work around a build issue. 2019-05-17 10:34:35 +00:00
Jung-uk Kim
1353ce32bd Update to 5.2.30.
https://www.virtualbox.org/wiki/Changelog-5.2#v30
2019-05-16 22:16:06 +00:00
Christoph Moench-Tegeder
e320d59467 set VirtualBox MASTER_SITES to download.oracle.com
The SSL certificate of the host does not have download.virtualbox.org
in it's SubjectAltName anymore (download.virtualbox.org points to the
same CDN and is the same host as download.oracle.com, and checksums still
match).

Reported by:	Duncan Young
2019-04-27 13:13:25 +00:00
Jung-uk Kim
9d952bef52 Add USES=sdl when USE_SDL=sdl is set. No functional change.
PR:		237539
2019-04-24 23:09:00 +00:00
Jung-uk Kim
3c53b6d151 Update to 5.2.28.
https://www.virtualbox.org/wiki/Changelog-5.2#v28
2019-04-23 19:20:48 +00:00
Tobias C. Berner
1c18b6d5c8 Update KDE Applications to 19.04.0
The changelog can be found here:
	- https://kde.org/announcements/announce-applications-19.04.0.php

Due to crashes on start, multimedia/kdenlive was kept at 18.12.3 for now.
2019-04-18 16:55:13 +00:00
Jung-uk Kim
9dabe6418f Apply a bandaid to work around runtime issues with Clang 8.0.
PR:		236616
2019-04-10 20:47:24 +00:00
Jung-uk Kim
1db9f48874 Work around build issues with LLD on i386. 2019-04-05 03:09:11 +00:00
Jung-uk Kim
f2c62d1a32 Fix emulators/virtualbox-ose-additions build with lld on i386. 2019-04-03 19:26:43 +00:00
Jung-uk Kim
7d39db8447 Fix build with lld on head after r345349.
PR:		236775
2019-03-26 22:23:52 +00:00
Jung-uk Kim
255c2bc9c0 Revert r494756 and r494757 for now. It seems this patch needs more work.
Somehow it prevented executables from starting properly.

Reported by:	Martin Birgmeier <d8zNeCFG@aon.at>
		Petyo Milotinov <petyo@petyo.org>
2019-03-08 00:25:55 +00:00
Jung-uk Kim
7106e11a2a Fix a typo in the previous patch. 2019-03-06 00:55:34 +00:00
Jung-uk Kim
821d970a5c Make linker option for executables closer to Linux equivalent, i.e.,
"-z noexecstack", "-z relro", and "--as-needed".
2019-03-06 00:46:18 +00:00