Commit graph

311 commits

Author SHA1 Message Date
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
Jung-uk Kim
3e989637c6 Use system X.Org header files instead of the bundled files.
PR:		227238
2019-02-28 22:33:52 +00:00
Jan Beich
7c039bce3a multimedia/libvpx: update 1.8.0
www/firefox, www/firefox-esr, mail/thunderbird wait for upstream fix via
https://bugzilla.mozilla.org/show_bug.cgi?id=1525393

Changes:	https://chromium.googlesource.com/webm/libvpx/+log/v1.7.0..v1.8.0
ABI:		https://abi-laboratory.pro/tracker/timeline/libvpx/
2019-02-06 13:33:13 +00:00
Jung-uk Kim
6cc5604218 Appease stage-qa.
PR:		217511
2019-01-30 19:24:18 +00:00
Jung-uk Kim
e62dcda867 Fix OpenGL dependency and appease stage-qa.
PR:		217511
2019-01-29 22:28:25 +00:00
Jung-uk Kim
10c4fcdc0f Prefer HTTPS for MASTER_SITES. 2019-01-29 19:24:30 +00:00
Jung-uk Kim
f226c4d673 Update to 5.2.26.
https://www.virtualbox.org/wiki/Changelog-5.2#v26
2019-01-29 19:12:47 +00:00
Marcelo Araujo
8380692cb2 - Bump PORTREVISION of ports that depends of net/libvncserver after it
was updated to version 0.9.12

Submitted by:	dereks_lifeofadishwasher.com
Differential Revision:	https://reviews.freebsd.org/D18836
2019-01-28 06:56:31 +00:00
Jung-uk Kim
ce47baa1ab Update to 5.2.24.
https://www.virtualbox.org/wiki/Changelog-5.2#v24
2019-01-16 15:19:45 +00:00
Tijl Coosemans
1bf487d3e7 Fix Qt5 symbol version scripts to put the catch-all clause first. When
a symbol matches multiple clauses the last one takes precedence.  If the
catch-all is last it captures everything.  In the case of Qt5 libraries
this caused all symbols to have a Qt_5 label while some should have
Qt_5_PRIVATE_API.  This only affects lld because GNU ld always gives the
catch-all lowest priority.

Older versions of Qt5Webengine exported some memory allocation symbols from
the bundled Chromium.  Version 5.9 stopped exporting these [1] but the
symbols were kept as weak wrappers for the standard allocation functions to
maintain binary compatibility. [2][3]  The problem is that the call to the
standard function in these weak wrappers is only resolved to the standard
function if there's a call to this standard function in other parts of
Qt5Webengine, because only then is there a non-weak symbol that takes
precedence over the weak one.  If there's no such non-weak symbol the call
in the weak wrapper resolves to the weak wrapper itself creating an infinite
call loop that overflows the stack and causes a crash.  Some of the
allocation functions are variants of C++ new and delete and it probably
depends on the compiler whether these variants are used in other parts of
Qt5Webengine.

Remove the weak wrappers (make them Linux specific).  This isn't binary
compatible but we are already breaking that with the changes to the symbol
versions.

[1] 5c2cbfccf9
[2] 2ed5054e3a
[3] 009f5ebb4b

Bump all ports that depend on Qt5.

PR:		234070
Exp-run by:	antoine
Approved by:	kde (adridg)
2019-01-16 11:13:44 +00:00
Gerald Pfeifer
a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

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, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00
Jung-uk Kim
35d684efe9 Fix build when SRC_BASE is not /usr/src.
PR:		233626
2018-11-29 21:12:58 +00:00