commit:     da92fccebd1473ea4f1c6ce5e1647ac04ce7023d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 23 03:25:29 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 23 03:25:29 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da92fcce

media-libs/libogg: 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>

 .../libogg-1.3.5-macro-wstrict-prototypes.patch      | 20 ++++++++++++++++++++
 .../{libogg-1.3.5.ebuild => libogg-1.3.5-r1.ebuild}  |  3 ++-
 2 files changed, 22 insertions(+), 1 deletion(-)

diff --git 
a/media-libs/libogg/files/libogg-1.3.5-macro-wstrict-prototypes.patch 
b/media-libs/libogg/files/libogg-1.3.5-macro-wstrict-prototypes.patch
new file mode 100644
index 000000000000..3da8dc74c614
--- /dev/null
+++ b/media-libs/libogg/files/libogg-1.3.5-macro-wstrict-prototypes.patch
@@ -0,0 +1,20 @@
+https://gitlab.xiph.org/xiph/ogg/-/merge_requests/14
+
+From f6097edcf4fe5ff40077fec7733fe32827f75128 Mon Sep 17 00:00:00 2001
+From: Sam James <s...@gentoo.org>
+Date: Wed, 23 Nov 2022 03:23:55 +0000
+Subject: [PATCH] ogg.m4: fix -Wstrict-prototypes
+
+Signed-off-by: Sam James <s...@gentoo.org>
+--- a/ogg.m4
++++ b/ogg.m4
+@@ -62,7 +62,7 @@ dnl
+ #include <string.h>
+ #include <ogg/ogg.h>
+ 
+-int main ()
++int main (void)
+ {
+   system("touch conf.oggtest");
+   return 0;
+GitLab

diff --git a/media-libs/libogg/libogg-1.3.5.ebuild 
b/media-libs/libogg/libogg-1.3.5-r1.ebuild
similarity index 92%
rename from media-libs/libogg/libogg-1.3.5.ebuild
rename to media-libs/libogg/libogg-1.3.5-r1.ebuild
index e7006959b9f2..438b3c5c4cc0 100644
--- a/media-libs/libogg/libogg-1.3.5.ebuild
+++ b/media-libs/libogg/libogg-1.3.5-r1.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 multilib-minimal
 
@@ -16,6 +16,7 @@ IUSE="static-libs"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-1.3.4-libdir-m4.patch
+       "${FILESDIR}"/${PN}-1.3.5-macro-wstrict-prototypes.patch
 )
 
 MULTILIB_WRAPPED_HEADERS=(

Reply via email to