Skip to content

Commit

Permalink
emulators/virtualbox-ose: Update to 6.1.26
Browse files Browse the repository at this point in the history
This new version has a regression in the pulseaudio host audio
driver. If enabled any VMs configured to use it fails to start.

Since no fix has been found the PULSEAUDIO option is forcibly
disabled. If you have any VM configured to use pulseaudio for audio
input/output, please reconfigure them to use a different driver.

Upstream ticket:	https://www.virtualbox.org/ticket/20484

Other changes:

- Remove old patches that don't apply, the audio system has been
  reworked upstream and the behavior of these patches is included in
  the new code
- Add upgrading pkg-message note about the PULSEAUDIO option issue
  described above

Reviewed by:		koobs
Differential Revision:	https://reviews.freebsd.org/D31264
  • Loading branch information
madpilot78 committed Aug 13, 2021
1 parent d42389c commit 416b34d
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 83 deletions.
2 changes: 1 addition & 1 deletion emulators/virtualbox-ose-additions/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Created by: Bernhard Froehlich <decke@bluelife.at>

PORTNAME= virtualbox-ose
PORTVERSION= 6.1.22
PORTVERSION= 6.1.26
CATEGORIES= emulators
MASTER_SITES= https://download.virtualbox.org/virtualbox/${PORTVERSION}/
PKGNAMESUFFIX?= -additions
Expand Down
6 changes: 3 additions & 3 deletions emulators/virtualbox-ose-additions/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1619727799
SHA256 (VirtualBox-6.1.22.tar.bz2) = 99816d2a15205d49362a31e8ffeb8262d2fa0678c751dfd0a7c43b2faca8be49
SIZE (VirtualBox-6.1.22.tar.bz2) = 165560989
TIMESTAMP = 1627588776
SHA256 (VirtualBox-6.1.26.tar.bz2) = 0212602eea878d6c9fd7f4a3e0182da3e4505f31d25f5539fb8f7b1fbe366195
SIZE (VirtualBox-6.1.26.tar.bz2) = 165690074
3 changes: 1 addition & 2 deletions emulators/virtualbox-ose-kmod/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Created by: Bernhard Froehlich <decke@bluelife.at>

PORTNAME= virtualbox-ose
PORTVERSION= 6.1.22
PORTREVISION= 1
PORTVERSION= 6.1.26
CATEGORIES= emulators
MASTER_SITES= https://download.virtualbox.org/virtualbox/${PORTVERSION}/
PKGNAMESUFFIX= -kmod
Expand Down
6 changes: 3 additions & 3 deletions emulators/virtualbox-ose-kmod/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1619727799
SHA256 (VirtualBox-6.1.22.tar.bz2) = 99816d2a15205d49362a31e8ffeb8262d2fa0678c751dfd0a7c43b2faca8be49
SIZE (VirtualBox-6.1.22.tar.bz2) = 165560989
TIMESTAMP = 1627588696
SHA256 (VirtualBox-6.1.26.tar.bz2) = 0212602eea878d6c9fd7f4a3e0182da3e4505f31d25f5539fb8f7b1fbe366195
SIZE (VirtualBox-6.1.26.tar.bz2) = 165690074
6 changes: 4 additions & 2 deletions emulators/virtualbox-ose/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Created by: Bernhard Froehlich <decke@bluelife.at>

PORTNAME= virtualbox-ose
PORTVERSION= 6.1.22
PORTREVISION= 1
PORTVERSION= 6.1.26
CATEGORIES= emulators
MASTER_SITES= https://download.virtualbox.org/virtualbox/${PORTVERSION}/
DISTFILES= VirtualBox-${PORTVERSION}${EXTRACT_SUFX} ${GUESTADDITIONS}
Expand Down Expand Up @@ -56,6 +55,9 @@ VBOX_UTILS= VBoxExtPackHelperApp VBoxNetAdpCtl VBoxNetDHCP VBoxNetNAT \
OPTIONS_DEFINE= AIO ALSA DBUS DEBUG GUESTADDITIONS MANUAL NLS OPUS PULSEAUDIO \
PYTHON QT5 R0LOGGING UDPTUNNEL VDE VNC WEBSERVICE VPX X11
OPTIONS_DEFAULT= AIO DBUS QT5 UDPTUNNEL VNC WEBSERVICE X11
# Since version 6.1.24 pulseaudio is broken at runtime, preventing
# virtual machines from starting if configured to use it.
OPTIONS_EXCLUDE= PULSEAUDIO
OPTIONS_SUB= yes

AIO_DESC= Enable Asyncronous IO support (check pkg-message)
Expand Down
10 changes: 5 additions & 5 deletions emulators/virtualbox-ose/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
TIMESTAMP = 1619728110
SHA256 (VirtualBox-6.1.22.tar.bz2) = 99816d2a15205d49362a31e8ffeb8262d2fa0678c751dfd0a7c43b2faca8be49
SIZE (VirtualBox-6.1.22.tar.bz2) = 165560989
SHA256 (VBoxGuestAdditions_6.1.22.iso) = bffc316a7b8d5ed56d830e9f6aef02b4e5ffc28674032142e96ffbedd905f8c9
SIZE (VBoxGuestAdditions_6.1.22.iso) = 61020160
TIMESTAMP = 1627588510
SHA256 (VirtualBox-6.1.26.tar.bz2) = 0212602eea878d6c9fd7f4a3e0182da3e4505f31d25f5539fb8f7b1fbe366195
SIZE (VirtualBox-6.1.26.tar.bz2) = 165690074
SHA256 (VBoxGuestAdditions_6.1.26.iso) = 22d02ec417cd7723d7269dbdaa71c48815f580c0ca7a0606c42bd623f84873d7
SIZE (VBoxGuestAdditions_6.1.26.iso) = 61073408
42 changes: 24 additions & 18 deletions emulators/virtualbox-ose/files/patch-configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- configure.orig 2021-01-07 15:31:21 UTC
--- configure.orig 2021-07-28 16:13:45 UTC
+++ configure
@@ -140,10 +140,14 @@ CXX_FLAGS=""
@@ -139,10 +139,14 @@ CXX_FLAGS=""
if [ "$OS" = "freebsd" ]; then
INCCURL="-I/usr/local/include"
LIBCURL="-L/usr/local/lib -lcurl"
Expand All @@ -15,7 +15,7 @@
else
INCCURL=""
LIBCURL="-lcurl"
@@ -1258,7 +1262,7 @@ extern "C" int main(void)
@@ -1257,7 +1261,7 @@ extern "C" int main(void)
#endif
}
EOF
Expand All @@ -24,18 +24,15 @@
test_execute
fi
}
@@ -1563,9 +1567,7 @@ EOF
if [ $? -eq 0 ]; then
echo "(Qt5 from pkg-config)" >> $LOG
FLGQT5=`pkg-config Qt5Core --cflags`
- # gcc 4.8 is able to compile with C++11 (see also VBOX_GCC_std in Config.kmk)
- [ $cc_maj -eq 4 -a $cc_min -eq 8 ] && FLGQT5="$FLGQT5 -std=c++11"
- INCQT5=`strip_I "$FLGQT5"`
+ FLGQT5="$FLGQT5 -std=c++11" INCQT5=`strip_I "$FLGQT5"`
@@ -1564,6 +1568,7 @@ EOF
FLGQT5=`pkg-config Qt5Core Qt5Gui --cflags`
# gcc 4.8 is able to compile with C++11 (see also VBOX_GCC_std in Config.kmk)
[ $(($cc_maj * 100 + $cc_min)) -ge 408 ] && FLGQT5="$FLGQT5 -std=c++11"
+ FLGQT5="$FLGQT5 -std=c++11"
INCQT5=`strip_I "$FLGQT5"`
LIBDIR5=`pkg-config Qt5Core --variable=libdir`
LIBQT5=`pkg-config Qt5Core --libs`
LIBQT5="-L$LIBDIR5 $LIBQT5"
@@ -1703,7 +1705,7 @@ check_libopus()
LIBQT5=`pkg-config Qt5Core Qt5Gui --libs`
@@ -1702,7 +1707,7 @@ check_libopus()
fi
cat > $ODIR.tmp_src.cc << EOF
#include <cstdio>
Expand All @@ -44,7 +41,7 @@
extern "C" int main(void)
{
OpusEncoder *test;
@@ -2035,8 +2037,8 @@ EOF
@@ -2034,8 +2039,8 @@ EOF
echo "compiling the following source file:" >> $LOG
cat $ODIR.tmp_src.cc >> $LOG
echo "using the following command line:" >> $LOG
Expand All @@ -55,7 +52,16 @@
if [ $? -eq 0 ]; then
found=1
break
@@ -2512,7 +2514,7 @@ for option in "$@"; do
@@ -2151,7 +2156,7 @@ check_gsoap()
else
cnf_append "VBOX_GSOAP_CXX_SOURCES" ""
fi
- cnf_append "VBOX_GSOAP_CXX_LIBS" "`strip_l "$GSOAP_CXX_LIBS"`"
+ cnf_append "VBOX_GSOAP_CXX_LIBS" "`strip_l "$GSOAP_CXX_LIBS"` z"
gsoap_version=`pkg-config gsoapssl++ --modversion`
log_success "found version $gsoap_version"
return
@@ -2510,7 +2515,7 @@ for option in "$@"; do
--with-openssl-dir=*)
OPENSSLDIR=`echo $option | cut -d'=' -f2`
INCCRYPTO="-I${OPENSSLDIR}/include"
Expand All @@ -64,7 +70,7 @@
;;
--with-ow-dir=*)
WATCOM=`echo $option | cut -d'=' -f2`
@@ -2856,14 +2858,23 @@ if [ $ONLY_ADDITIONS -eq 0 ]; then
@@ -2853,14 +2858,23 @@ if [ $ONLY_ADDITIONS -eq 0 ]; then
[ $WITH_PYTHON -eq 1 ] && check_python
[ $WITH_JAVA -eq 1 ] && check_java

Expand Down Expand Up @@ -96,7 +102,7 @@
fi

# Linux-specific
@@ -2878,14 +2889,6 @@ if [ "$OS" = "linux" ]; then
@@ -2875,14 +2889,6 @@ if [ "$OS" = "linux" ]; then
cnf_append "VBOX_WITHOUT_LINUX_TEST_BUILDS" "1"
fi
if [ $ONLY_ADDITIONS -eq 0 ]; then
Expand Down

This file was deleted.

This file was deleted.

12 changes: 12 additions & 0 deletions emulators/virtualbox-ose/pkg-message
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,16 @@ http://wiki.freebsd.org/VirtualBox
Please report any problems to emulation@. Thanks!
EOM
}
{ type: upgrade
maximum_version: 6.1.22
message: <<EOM
The PULSEAUDIO option has been forcibly disabled since VirtualBox
version 6.1.24 due to a bug in it preventing virtual machines
configured to use it from starting.

When upgrading from a previous version please reconfigure any virtual
machines using the Pulseaudio host audio driver to use another
supported one.
EOM
}
]

0 comments on commit 416b34d

Please sign in to comment.