public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/virtualbox/, app-emulation/virtualbox/files/
Date: Sat, 17 Nov 2018 11:55:02 +0000 (UTC)	[thread overview]
Message-ID: <1542455691.40432bd2a3ccbb98c1ae1db51ef04cd5be304e19.polynomial-c@gentoo> (raw)

commit:     40432bd2a3ccbb98c1ae1db51ef04cd5be304e19
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 17 11:48:10 2018 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sat Nov 17 11:54:51 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40432bd2

app-emulation/virtualbox: Fixed build with USE="-opus"

Closes: https://bugs.gentoo.org/671280
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 .../files/virtualbox-6.0.0_beta2-no_libopus.patch  | 39 ++++++++++++++++++++++
 .../virtualbox/virtualbox-6.0.0_beta2.ebuild       | 12 +++++--
 2 files changed, 49 insertions(+), 2 deletions(-)

diff --git a/app-emulation/virtualbox/files/virtualbox-6.0.0_beta2-no_libopus.patch b/app-emulation/virtualbox/files/virtualbox-6.0.0_beta2-no_libopus.patch
new file mode 100644
index 00000000000..ccf3f2acceb
--- /dev/null
+++ b/app-emulation/virtualbox/files/virtualbox-6.0.0_beta2-no_libopus.patch
@@ -0,0 +1,39 @@
+--- VirtualBox-6.0.0_BETA2/src/VBox/Main/include/ConsoleImpl.h
++++ VirtualBox-6.0.0_BETA2/src/VBox/Main/include/ConsoleImpl.h
+@@ -147,9 +147,13 @@
+     int i_recordingGetSettings(settings::RecordingSettings &Settings);
+     int i_recordingStart(void);
+     int i_recordingStop(void);
++# ifdef VBOX_WITH_AUDIO_RECORDING
+     AudioVideoRec *i_recordingGetAudioDrv(void) const { return Recording.mAudioRec; }
++# endif
+     RecordingContext *i_recordingGetContext(void) const { return Recording.mpCtx; }
++# ifdef VBOX_WITH_AUDIO_RECORDING
+     HRESULT i_recordingSendAudio(const void *pvData, size_t cbData, uint64_t uDurationMs);
++# endif
+ #endif
+ 
+     const ComPtr<IMachine> &i_machine() const { return mMachine; }
+@@ -1038,7 +1042,10 @@
+     {
+         Recording()
+             : mpCtx(NULL)
+-            , mAudioRec(NULL) { }
++# ifdef VBOX_WITH_AUDIO_RECORDING
++            , mAudioRec(NULL)
++# endif
++        { }
+ 
+         /** The recording context. */
+         RecordingContext       *mpCtx;
+--- VirtualBox-6.0.0_BETA2/src/VBox/Main/src-client/Recording.cpp
++++ VirtualBox-6.0.0_BETA2/src/VBox/Main/src-client/Recording.cpp
+@@ -587,7 +587,7 @@
+ 
+     return rc;
+ #else
+-    RT_NOREF(pCtx, pvData, cbData, uTimeStampMs);
++    RT_NOREF(pvData, cbData, uTimeStampMs);
+     return VINF_SUCCESS;
+ #endif
+ }

diff --git a/app-emulation/virtualbox/virtualbox-6.0.0_beta2.ebuild b/app-emulation/virtualbox/virtualbox-6.0.0_beta2.ebuild
index b334d69c98a..0b6ff09dd2f 100644
--- a/app-emulation/virtualbox/virtualbox-6.0.0_beta2.ebuild
+++ b/app-emulation/virtualbox/virtualbox-6.0.0_beta2.ebuild
@@ -29,10 +29,11 @@ RDEPEND="!app-emulation/virtualbox-bin
 	dev-libs/libxml2
 	media-libs/libpng:0=
 	media-libs/libvpx:0=
-	sys-libs/zlib
+	sys-libs/zlib:=
 	!headless? (
 		media-libs/libsdl:0[X,video]
 		x11-libs/libX11
+		x11-libs/libxcb:=
 		x11-libs/libXcursor
 		x11-libs/libXext
 		x11-libs/libXmu
@@ -195,9 +196,16 @@ src_prepare() {
 
 	eapply "${WORKDIR}/patches"
 
+	eapply "${FILESDIR}"/${P}-no_libopus.patch
+
 	eapply_user
 }
 
+doecho() {
+	echo "$@"
+	"$@" || die
+}
+
 src_configure() {
 	local myconf=(
 		--with-gcc="$(tc-getCC)"
@@ -230,7 +238,7 @@ src_configure() {
 		myconf+=( --disable-vmmraw )
 	fi
 	# not an autoconf script
-	./configure ${myconf[@]} || die "configure failed"
+	doecho ./configure ${myconf[@]}
 }
 
 src_compile() {


             reply	other threads:[~2018-11-17 11:55 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-17 11:55 Lars Wendler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-18 17:16 [gentoo-commits] repo/gentoo:master commit in: app-emulation/virtualbox/, app-emulation/virtualbox/files/ Viorel Munteanu
2024-09-15 13:02 Viorel Munteanu
2024-09-15 13:02 Viorel Munteanu
2024-02-10 16:31 Viorel Munteanu
2024-02-10 16:31 Viorel Munteanu
2024-01-28 10:44 Viorel Munteanu
2023-08-28 10:08 Viorel Munteanu
2023-08-15 12:50 Viorel Munteanu
2023-08-15 12:50 Viorel Munteanu
2023-07-20  9:40 Viorel Munteanu
2023-06-02 18:27 Viorel Munteanu
2023-05-15 14:35 Viorel Munteanu
2023-04-21 16:38 Viorel Munteanu
2023-02-21 15:06 Viorel Munteanu
2023-02-03 14:35 Viorel Munteanu
2022-11-20  8:20 Viorel Munteanu
2022-11-02  6:41 Viorel Munteanu
2022-09-05 12:39 Joonas Niilola
2022-08-18 18:43 Sam James
2022-07-06  6:05 Sam James
2021-04-22 16:55 Lars Wendler
2020-06-03  0:10 Andreas Sturmlechner
2020-06-02 21:52 Andreas Sturmlechner
2019-01-16 12:02 Lars Wendler
2018-12-07 21:42 Lars Wendler
2018-02-19 14:16 Lars Wendler
2018-02-16 14:56 Lars Wendler
2017-07-26 19:21 Richard Farina
2017-05-11 12:07 Lars Wendler
2017-02-21 22:05 Magnus Granberg
2016-03-11 17:31 Lars Wendler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1542455691.40432bd2a3ccbb98c1ae1db51ef04cd5be304e19.polynomial-c@gentoo \
    --to=polynomial-c@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox