1 |
commit: f8cf36e58ab9c3251bda4aef8f9b91c38f63c090 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 2 05:52:47 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 2 06:26:57 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8cf36e5 |
7 |
|
8 |
dev-libs/rasqal: fix configure w/ clang 16 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
.../files/rasqal-0.9.33-configure-clang16.patch | 22 ++++++++++++++++++++++ |
13 |
...asqal-0.9.33.ebuild => rasqal-0.9.33-r1.ebuild} | 14 ++++++++++---- |
14 |
2 files changed, 32 insertions(+), 4 deletions(-) |
15 |
|
16 |
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 |
17 |
new file mode 100644 |
18 |
index 000000000000..1916bdf45d36 |
19 |
--- /dev/null |
20 |
+++ b/dev-libs/rasqal/files/rasqal-0.9.33-configure-clang16.patch |
21 |
@@ -0,0 +1,22 @@ |
22 |
+https://github.com/dajobe/rasqal/pull/11 |
23 |
+ |
24 |
+From 2e82a970a8856081a53fc075e6d1534251206810 Mon Sep 17 00:00:00 2001 |
25 |
+From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbaeder@××××××.com> |
26 |
+Date: Tue, 24 Jan 2023 09:14:02 +0100 |
27 |
+Subject: [PATCH] Define printf() before using it in a configure check |
28 |
+ |
29 |
+Both clang and GCC will default to treating undefined functions as |
30 |
+errors in the near future. |
31 |
+--- a/configure.ac |
32 |
++++ b/configure.ac |
33 |
+@@ -313,7 +313,8 @@ AC_C_CONST |
34 |
+ AC_C_BIGENDIAN |
35 |
+ |
36 |
+ AC_MSG_CHECKING(whether __FUNCTION__ is available) |
37 |
+-AC_COMPILE_IFELSE([AC_LANG_SOURCE([int main() { printf(__FUNCTION__); }])], |
38 |
++AC_COMPILE_IFELSE([AC_LANG_SOURCE([#include <stdio.h> |
39 |
++ int main() { printf(__FUNCTION__); }])], |
40 |
+ [AC_DEFINE([HAVE___FUNCTION__], [1], [Is __FUNCTION__ available]) |
41 |
+ AC_MSG_RESULT(yes)], |
42 |
+ [AC_MSG_RESULT(no)]) |
43 |
+ |
44 |
|
45 |
diff --git a/dev-libs/rasqal/rasqal-0.9.33.ebuild b/dev-libs/rasqal/rasqal-0.9.33-r1.ebuild |
46 |
similarity index 88% |
47 |
rename from dev-libs/rasqal/rasqal-0.9.33.ebuild |
48 |
rename to dev-libs/rasqal/rasqal-0.9.33-r1.ebuild |
49 |
index 5c98ab136994..3b56db4ba01c 100644 |
50 |
--- a/dev-libs/rasqal/rasqal-0.9.33.ebuild |
51 |
+++ b/dev-libs/rasqal/rasqal-0.9.33-r1.ebuild |
52 |
@@ -1,9 +1,9 @@ |
53 |
-# Copyright 1999-2022 Gentoo Authors |
54 |
+# Copyright 1999-2023 Gentoo Authors |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
|
57 |
-EAPI=7 |
58 |
+EAPI=8 |
59 |
|
60 |
-inherit libtool |
61 |
+inherit autotools |
62 |
|
63 |
DESCRIPTION="Library that handles Resource Description Framework (RDF)" |
64 |
HOMEPAGE="http://librdf.org/rasqal/" |
65 |
@@ -38,9 +38,15 @@ BDEPEND=" |
66 |
DOCS=( AUTHORS ChangeLog NEWS README ) |
67 |
HTML_DOCS=( {NEWS,README,RELEASE}.html ) |
68 |
|
69 |
+PATCHES=( |
70 |
+ "${FILESDIR}"/${PN}-0.9.33-configure-clang16.patch |
71 |
+) |
72 |
+ |
73 |
src_prepare() { |
74 |
default |
75 |
- elibtoolize # g/fbsd .so versioning |
76 |
+ |
77 |
+ #elibtoolize # g/fbsd .so versioning |
78 |
+ eautoreconf # for clang 16 patch |
79 |
} |
80 |
|
81 |
src_configure() { |