From 68f980204de6c2d69eed8748edc90282879326a6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 2 Feb 2023 09:07:02 +0000 Subject: gentoo auto-resync : 02:02:2023 - 09:07:02 --- .../files/rasqal-0.9.33-configure-clang16.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 dev-libs/rasqal/files/rasqal-0.9.33-configure-clang16.patch (limited to 'dev-libs/rasqal/files/rasqal-0.9.33-configure-clang16.patch') diff --git a/dev-libs/rasqal/files/rasqal-0.9.33-configure-clang16.patch b/dev-libs/rasqal/files/rasqal-0.9.33-configure-clang16.patch new file mode 100644 index 000000000000..1916bdf45d36 --- /dev/null +++ b/dev-libs/rasqal/files/rasqal-0.9.33-configure-clang16.patch @@ -0,0 +1,22 @@ +https://github.com/dajobe/rasqal/pull/11 + +From 2e82a970a8856081a53fc075e6d1534251206810 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Timm=20B=C3=A4der?= +Date: Tue, 24 Jan 2023 09:14:02 +0100 +Subject: [PATCH] Define printf() before using it in a configure check + +Both clang and GCC will default to treating undefined functions as +errors in the near future. +--- a/configure.ac ++++ b/configure.ac +@@ -313,7 +313,8 @@ AC_C_CONST + AC_C_BIGENDIAN + + AC_MSG_CHECKING(whether __FUNCTION__ is available) +-AC_COMPILE_IFELSE([AC_LANG_SOURCE([int main() { printf(__FUNCTION__); }])], ++AC_COMPILE_IFELSE([AC_LANG_SOURCE([#include ++ int main() { printf(__FUNCTION__); }])], + [AC_DEFINE([HAVE___FUNCTION__], [1], [Is __FUNCTION__ available]) + AC_MSG_RESULT(yes)], + [AC_MSG_RESULT(no)]) + -- cgit v1.2.3