summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenton Groombridge <concord@gentoo.org>2022-12-06 14:28:31 -0500
committerKenton Groombridge <concord@gentoo.org>2022-12-06 14:35:56 -0500
commit1fa9229b7486ee0986d3486cddd65e209d770084 (patch)
treedabcc2f868be09d3f8876a82eff965211f662851 /net-voip
parentnet-misc/smb4k: add 3.1.5 (diff)
downloadgentoo-1fa9229b7486ee0986d3486cddd65e209d770084.tar.gz
gentoo-1fa9229b7486ee0986d3486cddd65e209d770084.tar.bz2
gentoo-1fa9229b7486ee0986d3486cddd65e209d770084.zip
net-voip/mumble: fix 1.4.287 build on x86, increase tests timeout
Closes: https://bugs.gentoo.org/884049 Signed-off-by: Kenton Groombridge <concord@gentoo.org>
Diffstat (limited to 'net-voip')
-rw-r--r--net-voip/mumble/files/mumble-1.4-force-alignment.patch28
-rw-r--r--net-voip/mumble/mumble-1.4.287-r1.ebuild (renamed from net-voip/mumble/mumble-1.4.287.ebuild)10
2 files changed, 37 insertions, 1 deletions
diff --git a/net-voip/mumble/files/mumble-1.4-force-alignment.patch b/net-voip/mumble/files/mumble-1.4-force-alignment.patch
new file mode 100644
index 000000000000..ea0ae4792443
--- /dev/null
+++ b/net-voip/mumble/files/mumble-1.4-force-alignment.patch
@@ -0,0 +1,28 @@
+From 13c051b36b387356815cff5d685bc628b74ba136 Mon Sep 17 00:00:00 2001
+From: Davide Beatrici <git@davidebeatrici.dev>
+Date: Thu, 1 Sep 2022 23:32:57 +0200
+Subject: [PATCH] FIX(positional-audio): Force 8 bytes alignment for
+ CCameraAngles in GTAV plugin
+
+https://en.cppreference.com/w/cpp/language/alignas
+
+This fixes compilation when the implicit alignment is not 8 bytes.
+
+It can be the case with 32 bit targets.
+---
+ plugins/gtav/structs.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/plugins/gtav/structs.h b/plugins/gtav/structs.h
+index 2829dc11e1..0e4f76edab 100644
+--- a/plugins/gtav/structs.h
++++ b/plugins/gtav/structs.h
+@@ -118,7 +118,7 @@ struct CCameraManagerAngles {
+ ptr_t cameraAngles; // CCameraAngles *
+ };
+
+-struct CCameraAngles {
++struct alignas(8) CCameraAngles {
+ uint8_t pad1[960];
+ ptr_t playerAngles; // CPlayerAngles *
+ uint8_t pad2[60];
diff --git a/net-voip/mumble/mumble-1.4.287.ebuild b/net-voip/mumble/mumble-1.4.287-r1.ebuild
index 58bb301f3470..9bef3ee35ff6 100644
--- a/net-voip/mumble/mumble-1.4.287.ebuild
+++ b/net-voip/mumble/mumble-1.4.287-r1.ebuild
@@ -21,7 +21,7 @@ else
SRC_URI="https://github.com/mumble-voip/mumble/releases/download/v${MY_PV}/${MY_P}.tar.gz"
S="${WORKDIR}/${P}.src"
fi
- KEYWORDS="amd64 ~arm64 ~ppc64 ~x86"
+ KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
fi
SRC_URI+=" https://dev.gentoo.org/~concord/distfiles/${PN}-1.4-openssl3.patch.xz"
@@ -77,6 +77,7 @@ PATCHES=(
"${WORKDIR}/${PN}-1.4-openssl3.patch"
"${WORKDIR}/${PN}-1.4-crypto-threads.patch"
"${WORKDIR}/${PN}-1.4-odr.patch"
+ "${FILESDIR}/${PN}-1.4-force-alignment.patch"
)
pkg_setup() {
@@ -124,6 +125,13 @@ src_configure() {
cmake_src_configure
}
+src_test() {
+ # https://bugs.gentoo.org/884049
+ # increase timeout for tests
+ local -x QTEST_FUNCTION_TIMEOUT=600000
+ cmake_src_test
+}
+
src_install() {
cmake_src_install