commit: 2b95eed1d534159d7d78e285ceb44721884d5b77 Author: Alfred Persson Forsberg <cat <AT> catcream <DOT> org> AuthorDate: Mon Jun 20 20:36:12 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Jun 20 23:12:45 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b95eed1
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 <AT> catcream.org> Signed-off-by: Sam James <sam <AT> gentoo.org> media-libs/gavl/files/1.4.0-gnu_source.patch | 22 ++++++++++++++++++++++ .../gavl/files/{1.4.0-x32.diff => 1.4.0-x32.patch} | 0 media-libs/gavl/gavl-1.4.0-r2.ebuild | 7 +++++-- 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 similarity index 100% rename from media-libs/gavl/files/1.4.0-x32.diff rename to 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