From 45a76f207644511be49fab8395ba5a82dddb5b70 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 30 Sep 2022 01:57:54 +0100 Subject: media-libs/fidlib: fix implicit function declarations (clang 16) Closes: https://bugs.gentoo.org/870886 Signed-off-by: Sam James --- media-libs/fidlib/fidlib-0.9.10-r1.ebuild | 14 +++----------- .../fidlib-0.9.10-Add-missing-unistd.h-include.patch | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 11 deletions(-) create mode 100644 media-libs/fidlib/files/fidlib-0.9.10-Add-missing-unistd.h-include.patch (limited to 'media-libs') diff --git a/media-libs/fidlib/fidlib-0.9.10-r1.ebuild b/media-libs/fidlib/fidlib-0.9.10-r1.ebuild index f1ded950cbab..750558152e41 100644 --- a/media-libs/fidlib/fidlib-0.9.10-r1.ebuild +++ b/media-libs/fidlib/fidlib-0.9.10-r1.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit edo flag-o-matic toolchain-funcs +inherit edo toolchain-funcs DESCRIPTION="Run-time filter design and execution library" HOMEPAGE="http://uazu.net/fidlib/" @@ -15,17 +15,9 @@ KEYWORDS="amd64 x86" PATCHES=( "${FILESDIR}"/${P}-extern.patch + "${FILESDIR}"/${PN}-0.9.10-Add-missing-unistd.h-include.patch ) -src_prepare() { - default - - # Avoid ICE under gcc-4.6, fixed in 4.6.3 - if [[ $(gcc-version) == "4.6" && $(gcc-micro-version) -le 2 ]] ; then - replace-flags -O? -O0 - fi -} - src_compile() { # build library edo $(tc-getCC) ${CFLAGS} -DT_LINUX ${LDFLAGS} -Wl,-soname,libfidlib.so.${PV:0:1} \ diff --git a/media-libs/fidlib/files/fidlib-0.9.10-Add-missing-unistd.h-include.patch b/media-libs/fidlib/files/fidlib-0.9.10-Add-missing-unistd.h-include.patch new file mode 100644 index 000000000000..2a4ae2d09ea7 --- /dev/null +++ b/media-libs/fidlib/files/fidlib-0.9.10-Add-missing-unistd.h-include.patch @@ -0,0 +1,15 @@ +From ffe98aaaef253621d71b73b3a0e54813d220ece9 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Fri, 30 Sep 2022 01:54:08 +0100 +Subject: [PATCH] Add missing unistd.h include + +--- a/firun.c ++++ b/firun.c +@@ -58,6 +58,7 @@ NL " -L Ignore following arguments, display list of filter types." + #include + #include + #include ++#include + #include "fidlib.h" + + typedef unsigned char uchar; -- cgit v1.2.3-65-gdbad