diff options
author | Sam James <sam@gentoo.org> | 2022-09-30 01:57:54 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-09-30 01:58:07 +0100 |
commit | 45a76f207644511be49fab8395ba5a82dddb5b70 (patch) | |
tree | 547ec7a2691a4527db1c7d0f892c0dddde2adc91 /media-libs | |
parent | media-gfx/pngtools: add 0.4_p20220314 (diff) | |
download | gentoo-45a76f207644511be49fab8395ba5a82dddb5b70.tar.gz gentoo-45a76f207644511be49fab8395ba5a82dddb5b70.tar.bz2 gentoo-45a76f207644511be49fab8395ba5a82dddb5b70.zip |
media-libs/fidlib: fix implicit function declarations (clang 16)
Closes: https://bugs.gentoo.org/870886
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/fidlib/fidlib-0.9.10-r1.ebuild | 14 | ||||
-rw-r--r-- | media-libs/fidlib/files/fidlib-0.9.10-Add-missing-unistd.h-include.patch | 15 |
2 files changed, 18 insertions, 11 deletions
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 <sam@gentoo.org> +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 <ctype.h> + #include <math.h> + #include <errno.h> ++#include <unistd.h> + #include "fidlib.h" + + typedef unsigned char uchar; |