summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-05-11 03:49:53 +0100
committerSam James <sam@gentoo.org>2023-05-11 04:15:45 +0100
commit82932b4379e2695b4f5a52e2989d933d43cd00f1 (patch)
treeae7d25ab457263ff41e430a295fc113c734bb54b /media-sound/shorten
parentgames-roguelike/stone-soup: add 0.30.0 (diff)
downloadgentoo-82932b4379e2695b4f5a52e2989d933d43cd00f1.tar.gz
gentoo-82932b4379e2695b4f5a52e2989d933d43cd00f1.tar.bz2
gentoo-82932b4379e2695b4f5a52e2989d933d43cd00f1.zip
media-sound/shorten: fix modern C issues
Closes: https://bugs.gentoo.org/880807 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-sound/shorten')
-rw-r--r--media-sound/shorten/files/shorten-3.6.1-modern-c.patch15
-rw-r--r--media-sound/shorten/shorten-3.6.1-r1.ebuild (renamed from media-sound/shorten/shorten-3.6.1.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
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
+)