From 82932b4379e2695b4f5a52e2989d933d43cd00f1 Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 11 May 2023 03:49:53 +0100 Subject: media-sound/shorten: fix modern C issues Closes: https://bugs.gentoo.org/880807 Signed-off-by: Sam James --- media-sound/shorten/files/shorten-3.6.1-modern-c.patch | 15 +++++++++++++++ media-sound/shorten/shorten-3.6.1-r1.ebuild | 17 +++++++++++++++++ media-sound/shorten/shorten-3.6.1.ebuild | 14 -------------- 3 files changed, 32 insertions(+), 14 deletions(-) create mode 100644 media-sound/shorten/files/shorten-3.6.1-modern-c.patch create mode 100644 media-sound/shorten/shorten-3.6.1-r1.ebuild delete mode 100644 media-sound/shorten/shorten-3.6.1.ebuild (limited to 'media-sound') 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 + #include + #include ++#include + #include "shorten.h" + #include "bitshift.h" + diff --git a/media-sound/shorten/shorten-3.6.1-r1.ebuild b/media-sound/shorten/shorten-3.6.1-r1.ebuild new file mode 100644 index 000000000000..4ad5e7a0b738 --- /dev/null +++ b/media-sound/shorten/shorten-3.6.1-r1.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="fast, low complexity waveform coder (i.e. audio compressor)" +HOMEPAGE="http://shnutils.freeshell.org/shorten/" +SRC_URI="http://shnutils.freeshell.org/shorten/dist/src/${P}.tar.gz" + +LICENSE="shorten" +SLOT="0" +KEYWORDS="~alpha amd64 ~ppc sparc x86" + +PATCHES=( + "${FILESDIR}"/${PN}-tests.patch + "${FILESDIR}"/${PN}-3.6.1-modern-c.patch +) diff --git a/media-sound/shorten/shorten-3.6.1.ebuild b/media-sound/shorten/shorten-3.6.1.ebuild deleted file mode 100644 index e05e1cf4f4de..000000000000 --- a/media-sound/shorten/shorten-3.6.1.ebuild +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DESCRIPTION="fast, low complexity waveform coder (i.e. audio compressor)" -HOMEPAGE="http://shnutils.freeshell.org/shorten/" -SRC_URI="http://shnutils.freeshell.org/shorten/dist/src/${P}.tar.gz" - -LICENSE="shorten" -SLOT="0" -KEYWORDS="~alpha amd64 ~ppc sparc x86" - -PATCHES=( "${FILESDIR}"/${PN}-tests.patch ) -- cgit v1.2.3-65-gdbad