commit: 82932b4379e2695b4f5a52e2989d933d43cd00f1 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Thu May 11 02:49:53 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu May 11 03:15:45 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82932b43
media-sound/shorten: fix modern C issues Closes: https://bugs.gentoo.org/880807 Signed-off-by: Sam James <sam <AT> gentoo.org> media-sound/shorten/files/shorten-3.6.1-modern-c.patch | 15 +++++++++++++++ .../{shorten-3.6.1.ebuild => shorten-3.6.1-r1.ebuild} | 9 ++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/media-sound/shorten/files/shorten-3.6.1-modern-c.patch b/media-sound/shorten/files/shorten-3.6.1-modern-c.patch new file mode 100644 index 000000000000..a390c3c30d22 --- /dev/null +++ b/media-sound/shorten/files/shorten-3.6.1-modern-c.patch @@ -0,0 +1,15 @@ +https://bugs.gentoo.org/880807 +--- a/src/fixio.c ++++ b/src/fixio.c +@@ -10,9 +10,11 @@ + * $Id: fixio.c,v 1.4 2002/01/28 01:16:52 jason Exp $ + */ + ++#define _XOPEN_SOURCE 600 + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#include <unistd.h> + #include "shorten.h" + #include "bitshift.h" + diff --git a/media-sound/shorten/shorten-3.6.1.ebuild b/media-sound/shorten/shorten-3.6.1-r1.ebuild similarity index 71% rename from media-sound/shorten/shorten-3.6.1.ebuild rename to media-sound/shorten/shorten-3.6.1-r1.ebuild index e05e1cf4f4de..4ad5e7a0b738 100644 --- a/media-sound/shorten/shorten-3.6.1.ebuild +++ b/media-sound/shorten/shorten-3.6.1-r1.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 DESCRIPTION="fast, low complexity waveform coder (i.e. audio compressor)" HOMEPAGE="http://shnutils.freeshell.org/shorten/" @@ -11,4 +11,7 @@ LICENSE="shorten" SLOT="0" KEYWORDS="~alpha amd64 ~ppc sparc x86" -PATCHES=( "${FILESDIR}"/${PN}-tests.patch ) +PATCHES=( + "${FILESDIR}"/${PN}-tests.patch + "${FILESDIR}"/${PN}-3.6.1-modern-c.patch +)