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/raptor/files/, media-libs/raptor/
Date: Fri, 04 Nov 2022 02:24:21
Message-Id: 1667528536.69cddc64a2c8fba7b5023097d4160035b012b4cc.sam@gentoo
1 commit: 69cddc64a2c8fba7b5023097d4160035b012b4cc
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 4 01:56:17 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 4 02:22:16 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69cddc64
7
8 media-libs/raptor: fix configure w/ clang 16
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 .../files/raptor-2.0.15-configure-clang16.patch | 28 ++++++++++++++++++++++
13 ...or-2.0.15-r6.ebuild => raptor-2.0.15-r7.ebuild} | 1 +
14 2 files changed, 29 insertions(+)
15
16 diff --git a/media-libs/raptor/files/raptor-2.0.15-configure-clang16.patch b/media-libs/raptor/files/raptor-2.0.15-configure-clang16.patch
17 new file mode 100644
18 index 000000000000..ab62fd9bff0c
19 --- /dev/null
20 +++ b/media-libs/raptor/files/raptor-2.0.15-configure-clang16.patch
21 @@ -0,0 +1,28 @@
22 +https://github.com/dajobe/raptor/pull/55
23 +
24 +From b7c252e1d5601321a5a6f6627745753b5c704762 Mon Sep 17 00:00:00 2001
25 +From: Sam James <sam@g.o>
26 +Date: Fri, 4 Nov 2022 01:53:32 +0000
27 +Subject: [PATCH] configure.ac: fix -Wimplicit-function-declaration in
28 + HAVE___FUNCTION__ test
29 +
30 +This breaks with Clang 16 which makes such errors fatal:
31 +```
32 +error: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
33 +error: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
34 +```
35 +
36 +Signed-off-by: Sam James <sam@g.o>
37 +--- a/configure.ac
38 ++++ b/configure.ac
39 +@@ -335,7 +335,8 @@ AC_C_BIGENDIAN
40 + AC_C_INLINE
41 +
42 + AC_MSG_CHECKING(whether __FUNCTION__ is available)
43 +-AC_COMPILE_IFELSE([AC_LANG_SOURCE([int main() { printf(__FUNCTION__); }])],
44 ++AC_COMPILE_IFELSE([AC_LANG_SOURCE([#include <stdio.h>
45 ++int main() { printf(__FUNCTION__); }])],
46 + [AC_DEFINE([HAVE___FUNCTION__], [1], [Is __FUNCTION__ available])
47 + AC_MSG_RESULT(yes)],
48 + [AC_MSG_RESULT(no)])
49 +
50
51 diff --git a/media-libs/raptor/raptor-2.0.15-r6.ebuild b/media-libs/raptor/raptor-2.0.15-r7.ebuild
52 similarity index 97%
53 rename from media-libs/raptor/raptor-2.0.15-r6.ebuild
54 rename to media-libs/raptor/raptor-2.0.15-r7.ebuild
55 index c13617839b54..6cc547d09459 100644
56 --- a/media-libs/raptor/raptor-2.0.15-r6.ebuild
57 +++ b/media-libs/raptor/raptor-2.0.15-r7.ebuild
58 @@ -47,6 +47,7 @@ PATCHES=(
59 "${FILESDIR}/${P}-use-pkg-config-icu.patch"
60 "${FILESDIR}/${P}-use-pkg-config-libxslt.patch"
61 "${FILESDIR}/${P}-clang-pointer-integer-warning.patch"
62 + "${FILESDIR}/${P}-configure-clang16.patch"
63 )
64
65 src_prepare() {