From 0d5a3a7b354d34e05c92a2a8dba66510122d8b0a Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 26 Oct 2021 09:59:41 +0100 Subject: media-video/pipewire: add build fixes for some arches Signed-off-by: Sam James --- .../pipewire-0.3.39-fix-build-some-arches.patch | 35 ++++++++++++++++++++++ media-video/pipewire/pipewire-0.3.39-r1.ebuild | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 media-video/pipewire/files/pipewire-0.3.39-fix-build-some-arches.patch (limited to 'media-video') diff --git a/media-video/pipewire/files/pipewire-0.3.39-fix-build-some-arches.patch b/media-video/pipewire/files/pipewire-0.3.39-fix-build-some-arches.patch new file mode 100644 index 000000000000..fe5392e29a3a --- /dev/null +++ b/media-video/pipewire/files/pipewire-0.3.39-fix-build-some-arches.patch @@ -0,0 +1,35 @@ +https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/651f0decea5f83730c271e9bed03cdd0048fcd49.patch +https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/2cddd4a775c145570f4a8a30d28b57f551d43206.patch + +From: Wim Taymans +Date: Thu, 21 Oct 2021 11:09:48 +0200 +Subject: [PATCH] cpu: fix compilation on some architectures + +--- a/spa/plugins/support/cpu.c ++++ b/spa/plugins/support/cpu.c +@@ -270,7 +270,7 @@ impl_init(const struct spa_handle_factory *factory, + if ((str = spa_dict_lookup(info, SPA_KEY_CPU_VM_TYPE)) != NULL) + this->vm_type = atoi(str); + if ((str = spa_dict_lookup(info, SPA_KEY_CPU_ZERO_DENORMALS)) != NULL) +- impl_cpu_zero_denormals(this, spa_atob(str)); ++ spa_cpu_zero_denormals(&this->cpu, spa_atob(str)); + } + + spa_log_debug(this->log, "%p: count:%d align:%d flags:%08x", + +From: Wim Taymans +Date: Mon, 25 Oct 2021 16:32:16 +0200 +Subject: [PATCH] cpu: disable VFP asm when not available + +Fixes #1746 +--- a/spa/plugins/support/cpu-arm.c ++++ b/spa/plugins/support/cpu-arm.c +@@ -143,7 +143,7 @@ static int arm_zero_denormals(void *object, bool enable) + "msr fpcr, %0 \n" + "isb \n" + : "=r"(cw)::"memory"); +-#else ++#elif (defined(__VFP_FP__) && !defined(__SOFTFP__)) + uint32_t cw; + if (enable) + __asm__ __volatile__( diff --git a/media-video/pipewire/pipewire-0.3.39-r1.ebuild b/media-video/pipewire/pipewire-0.3.39-r1.ebuild index 3c425733a524..0b9ee48f0903 100644 --- a/media-video/pipewire/pipewire-0.3.39-r1.ebuild +++ b/media-video/pipewire/pipewire-0.3.39-r1.ebuild @@ -100,6 +100,8 @@ DOCS=( {README,INSTALL}.md NEWS ) PATCHES=( "${FILESDIR}"/${PN}-0.3.25-enable-failed-mlock-warning.patch + # Upstream + "${FILESDIR}"/${P}-fix-build-some-arches.patch ) # limitsdfile related code taken from =sys-auth/realtime-base-0.1 -- cgit v1.2.3-65-gdbad