commit:     21423d7c709202944aea111afd18ec1fecb2013a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 23 03:22:01 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 23 03:22:01 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21423d7c

media-libs/opus: EAPI 8, fix -Wstrict-prototypes in configure

We may well have people proactively trying to use it and it's cheap to fix & 
build.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/opus-1.3.1-macro-wstrict-prototypes.patch  | 20 ++++++++++++++++++++
 .../{opus-1.3.1-r3.ebuild => opus-1.3.1-r4.ebuild}   |  3 ++-
 2 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/media-libs/opus/files/opus-1.3.1-macro-wstrict-prototypes.patch 
b/media-libs/opus/files/opus-1.3.1-macro-wstrict-prototypes.patch
new file mode 100644
index 000000000000..34edb539b29c
--- /dev/null
+++ b/media-libs/opus/files/opus-1.3.1-macro-wstrict-prototypes.patch
@@ -0,0 +1,20 @@
+https://gitlab.xiph.org/xiph/opus/-/merge_requests/56
+
+From 402615a38851f7180c3ac01e246fcbc7de9fd451 Mon Sep 17 00:00:00 2001
+From: Sam James <[email protected]>
+Date: Wed, 23 Nov 2022 03:19:54 +0000
+Subject: [PATCH] opus.m4: fix -Wstrict-prototypes
+
+Signed-off-by: Sam James <[email protected]>
+--- a/opus.m4
++++ b/opus.m4
+@@ -63,7 +63,7 @@ dnl
+ #include <string.h>
+ #include <opus.h>
+ 
+-int main ()
++int main (void)
+ {
+   system("touch conf.opustest");
+   return 0;
+GitLab

diff --git a/media-libs/opus/opus-1.3.1-r3.ebuild 
b/media-libs/opus/opus-1.3.1-r4.ebuild
similarity index 95%
rename from media-libs/opus/opus-1.3.1-r3.ebuild
rename to media-libs/opus/opus-1.3.1-r4.ebuild
index 591e14778028..f0cf24b1ed2b 100644
--- a/media-libs/opus/opus-1.3.1-r3.ebuild
+++ b/media-libs/opus/opus-1.3.1-r4.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 inherit flag-o-matic multilib-minimal
 
@@ -24,6 +24,7 @@ BDEPEND="
 
 PATCHES=(
        "${FILESDIR}"/${PN}-1.3.1-libdir-macro.patch
+       "${FILESDIR}"/${PN}-1.3.1-macro-wstrict-prototypes.patch
 )
 
 multilib_src_configure() {

Reply via email to