summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred Persson Forsberg <cat@catcream.org>2022-06-20 20:36:12 +0000
committerSam James <sam@gentoo.org>2022-06-21 00:12:45 +0100
commit2b95eed1d534159d7d78e285ceb44721884d5b77 (patch)
treed63a81a13af100ee5ba17f20d108f5e3d58b2028 /media-libs/gavl
parentdev-libs/libmaa: actually add revbump using slibtool patch (diff)
downloadgentoo-2b95eed1d534159d7d78e285ceb44721884d5b77.tar.gz
gentoo-2b95eed1d534159d7d78e285ceb44721884d5b77.tar.bz2
gentoo-2b95eed1d534159d7d78e285ceb44721884d5b77.zip
media-libs/gavl: fix building with musl
musl only defines CPU_SET and others iff _GNU_SOURCE is defined, this patch adds that. Closes: https://bugs.gentoo.org/715780 Signed-off-by: Alfred Persson Forsberg <cat@catcream.org> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/gavl')
-rw-r--r--media-libs/gavl/files/1.4.0-gnu_source.patch22
-rw-r--r--media-libs/gavl/files/1.4.0-x32.patch (renamed from media-libs/gavl/files/1.4.0-x32.diff)0
-rw-r--r--media-libs/gavl/gavl-1.4.0-r2.ebuild7
3 files changed, 27 insertions, 2 deletions
diff --git a/media-libs/gavl/files/1.4.0-gnu_source.patch b/media-libs/gavl/files/1.4.0-gnu_source.patch
new file mode 100644
index 000000000000..bdd48d5352cd
--- /dev/null
+++ b/media-libs/gavl/files/1.4.0-gnu_source.patch
@@ -0,0 +1,22 @@
+https://bugs.gentoo.org/715780
+
+musl #ifdef:s most of the defines in sched.h with _GNU_SOURCE
+https://elixir.bootlin.com/musl/latest/source/include/sched.h#L13.
+
+---
+
+diff --git a/src/benchmark.c b/src/benchmark.c
+index eb96b2a..18fc2d2 100644
+--- a/src/benchmark.c
++++ b/src/benchmark.c
+@@ -40,6 +40,7 @@
+ #endif
+
+ #ifdef HAVE_SCHED_SETAFFINITY
++#define _GNU_SOURCE
+ #define __USE_GNU
+ #include <sched.h>
+ #endif
+--
+2.35.1
+
diff --git a/media-libs/gavl/files/1.4.0-x32.diff b/media-libs/gavl/files/1.4.0-x32.patch
index 5c742779cdbb..5c742779cdbb 100644
--- a/media-libs/gavl/files/1.4.0-x32.diff
+++ b/media-libs/gavl/files/1.4.0-x32.patch
diff --git a/media-libs/gavl/gavl-1.4.0-r2.ebuild b/media-libs/gavl/gavl-1.4.0-r2.ebuild
index 660445f8eb00..7fdebe1f45bf 100644
--- a/media-libs/gavl/gavl-1.4.0-r2.ebuild
+++ b/media-libs/gavl/gavl-1.4.0-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -16,7 +16,10 @@ IUSE="doc"
BDEPEND="doc? ( app-doc/doxygen )"
-PATCHES=( "${FILESDIR}/${PV}-x32.diff" )
+PATCHES=(
+ "${FILESDIR}/${PV}-x32.patch"
+ "${FILESDIR}/${PV}-gnu_source.patch"
+)
src_prepare() {
default