public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/raptor/files/, media-libs/raptor/
Date: Fri,  4 Nov 2022 02:24:17 +0000 (UTC)	[thread overview]
Message-ID: <1667528536.69cddc64a2c8fba7b5023097d4160035b012b4cc.sam@gentoo> (raw)

commit:     69cddc64a2c8fba7b5023097d4160035b012b4cc
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Nov  4 01:56:17 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Nov  4 02:22:16 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69cddc64

media-libs/raptor: fix configure w/ clang 16

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/raptor-2.0.15-configure-clang16.patch    | 28 ++++++++++++++++++++++
 ...or-2.0.15-r6.ebuild => raptor-2.0.15-r7.ebuild} |  1 +
 2 files changed, 29 insertions(+)

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
new file mode 100644
index 000000000000..ab62fd9bff0c
--- /dev/null
+++ b/media-libs/raptor/files/raptor-2.0.15-configure-clang16.patch
@@ -0,0 +1,28 @@
+https://github.com/dajobe/raptor/pull/55
+
+From b7c252e1d5601321a5a6f6627745753b5c704762 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Fri, 4 Nov 2022 01:53:32 +0000
+Subject: [PATCH] configure.ac: fix -Wimplicit-function-declaration in
+ HAVE___FUNCTION__ test
+
+This breaks with Clang 16 which makes such errors fatal:
+```
+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]
+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]
+```
+
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/configure.ac
++++ b/configure.ac
+@@ -335,7 +335,8 @@ AC_C_BIGENDIAN
+ AC_C_INLINE
+ 
+ AC_MSG_CHECKING(whether __FUNCTION__ is available)
+-AC_COMPILE_IFELSE([AC_LANG_SOURCE([int main() { printf(__FUNCTION__); }])],
++AC_COMPILE_IFELSE([AC_LANG_SOURCE([#include <stdio.h>
++int main() { printf(__FUNCTION__); }])],
+     [AC_DEFINE([HAVE___FUNCTION__], [1], [Is __FUNCTION__ available])
+      AC_MSG_RESULT(yes)],
+     [AC_MSG_RESULT(no)])
+

diff --git a/media-libs/raptor/raptor-2.0.15-r6.ebuild b/media-libs/raptor/raptor-2.0.15-r7.ebuild
similarity index 97%
rename from media-libs/raptor/raptor-2.0.15-r6.ebuild
rename to media-libs/raptor/raptor-2.0.15-r7.ebuild
index c13617839b54..6cc547d09459 100644
--- a/media-libs/raptor/raptor-2.0.15-r6.ebuild
+++ b/media-libs/raptor/raptor-2.0.15-r7.ebuild
@@ -47,6 +47,7 @@ PATCHES=(
 	"${FILESDIR}/${P}-use-pkg-config-icu.patch"
 	"${FILESDIR}/${P}-use-pkg-config-libxslt.patch"
 	"${FILESDIR}/${P}-clang-pointer-integer-warning.patch"
+	"${FILESDIR}/${P}-configure-clang16.patch"
 )
 
 src_prepare() {


             reply	other threads:[~2022-11-04  2:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-04  2:24 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-11 12:20 [gentoo-commits] repo/gentoo:master commit in: media-libs/raptor/files/, media-libs/raptor/ Miroslav Šulc
2022-09-10  1:57 Sam James
2022-07-17 14:23 Sam James
2021-04-29  7:55 Miroslav Šulc
2019-02-09 12:59 Lars Wendler
2018-10-03 14:51 Andreas Sturmlechner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1667528536.69cddc64a2c8fba7b5023097d4160035b012b4cc.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox