Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/fidlib/, media-libs/fidlib/files/
Date: Fri, 30 Sep 2022 00:58:52
Message-Id: 1664499487.45a76f207644511be49fab8395ba5a82dddb5b70.sam@gentoo
1 commit: 45a76f207644511be49fab8395ba5a82dddb5b70
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 00:57:54 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 00:58:07 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45a76f20
7
8 media-libs/fidlib: fix implicit function declarations (clang 16)
9
10 Closes: https://bugs.gentoo.org/870886
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 media-libs/fidlib/fidlib-0.9.10-r1.ebuild | 14 +++-----------
14 .../fidlib-0.9.10-Add-missing-unistd.h-include.patch | 15 +++++++++++++++
15 2 files changed, 18 insertions(+), 11 deletions(-)
16
17 diff --git a/media-libs/fidlib/fidlib-0.9.10-r1.ebuild b/media-libs/fidlib/fidlib-0.9.10-r1.ebuild
18 index f1ded950cbab..750558152e41 100644
19 --- a/media-libs/fidlib/fidlib-0.9.10-r1.ebuild
20 +++ b/media-libs/fidlib/fidlib-0.9.10-r1.ebuild
21 @@ -1,9 +1,9 @@
22 # Copyright 1999-2022 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 -EAPI=7
26 +EAPI=8
27
28 -inherit edo flag-o-matic toolchain-funcs
29 +inherit edo toolchain-funcs
30
31 DESCRIPTION="Run-time filter design and execution library"
32 HOMEPAGE="http://uazu.net/fidlib/"
33 @@ -15,17 +15,9 @@ KEYWORDS="amd64 x86"
34
35 PATCHES=(
36 "${FILESDIR}"/${P}-extern.patch
37 + "${FILESDIR}"/${PN}-0.9.10-Add-missing-unistd.h-include.patch
38 )
39
40 -src_prepare() {
41 - default
42 -
43 - # Avoid ICE under gcc-4.6, fixed in 4.6.3
44 - if [[ $(gcc-version) == "4.6" && $(gcc-micro-version) -le 2 ]] ; then
45 - replace-flags -O? -O0
46 - fi
47 -}
48 -
49 src_compile() {
50 # build library
51 edo $(tc-getCC) ${CFLAGS} -DT_LINUX ${LDFLAGS} -Wl,-soname,libfidlib.so.${PV:0:1} \
52
53 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
54 new file mode 100644
55 index 000000000000..2a4ae2d09ea7
56 --- /dev/null
57 +++ b/media-libs/fidlib/files/fidlib-0.9.10-Add-missing-unistd.h-include.patch
58 @@ -0,0 +1,15 @@
59 +From ffe98aaaef253621d71b73b3a0e54813d220ece9 Mon Sep 17 00:00:00 2001
60 +From: Sam James <sam@g.o>
61 +Date: Fri, 30 Sep 2022 01:54:08 +0100
62 +Subject: [PATCH] Add missing unistd.h include
63 +
64 +--- a/firun.c
65 ++++ b/firun.c
66 +@@ -58,6 +58,7 @@ NL " -L Ignore following arguments, display list of filter types."
67 + #include <ctype.h>
68 + #include <math.h>
69 + #include <errno.h>
70 ++#include <unistd.h>
71 + #include "fidlib.h"
72 +
73 + typedef unsigned char uchar;