1 |
commit: 344cd785d060dc5d86d791416116cf5d4f89fbcb |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 4 05:05:16 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 4 05:05:16 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=344cd785 |
7 |
|
8 |
dev-libs/kpathsea: fix configure w/ clang 16 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
...-6.3.3_p20210325-Fix-Wimplicit-function-declaration.patch | 12 ++++++++++++ |
13 |
...3_p20210325.ebuild => kpathsea-6.3.3_p20210325-r1.ebuild} | 4 ++++ |
14 |
2 files changed, 16 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/kpathsea/files/kpathsea-6.3.3_p20210325-Fix-Wimplicit-function-declaration.patch b/dev-libs/kpathsea/files/kpathsea-6.3.3_p20210325-Fix-Wimplicit-function-declaration.patch |
17 |
new file mode 100644 |
18 |
index 000000000000..ad8dc0e33342 |
19 |
--- /dev/null |
20 |
+++ b/dev-libs/kpathsea/files/kpathsea-6.3.3_p20210325-Fix-Wimplicit-function-declaration.patch |
21 |
@@ -0,0 +1,12 @@ |
22 |
+diff --git a/configure b/configure |
23 |
+index be42b2e..6a7efb0 100755 |
24 |
+--- a/configure |
25 |
++++ b/configure |
26 |
+@@ -13920,6 +13920,7 @@ else |
27 |
+ else |
28 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
29 |
+ /* end confdefs.h. */ |
30 |
++#include <stdlib.h> |
31 |
+ int fork() { exit(1); } |
32 |
+ int vfork() { exit(1); } |
33 |
+ extern char *getcwd(); |
34 |
|
35 |
diff --git a/dev-libs/kpathsea/kpathsea-6.3.3_p20210325.ebuild b/dev-libs/kpathsea/kpathsea-6.3.3_p20210325-r1.ebuild |
36 |
similarity index 97% |
37 |
rename from dev-libs/kpathsea/kpathsea-6.3.3_p20210325.ebuild |
38 |
rename to dev-libs/kpathsea/kpathsea-6.3.3_p20210325-r1.ebuild |
39 |
index 43a961e05eb2..45e773f12628 100644 |
40 |
--- a/dev-libs/kpathsea/kpathsea-6.3.3_p20210325.ebuild |
41 |
+++ b/dev-libs/kpathsea/kpathsea-6.3.3_p20210325-r1.ebuild |
42 |
@@ -35,6 +35,10 @@ SRC_URI="${SRC_URI} ) " |
43 |
|
44 |
TEXMF_PATH=/usr/share/texmf-dist |
45 |
|
46 |
+PATCHES=( |
47 |
+ "${FILESDIR}"/${PN}-6.3.3_p20210325-Fix-Wimplicit-function-declaration.patch |
48 |
+) |
49 |
+ |
50 |
src_prepare() { |
51 |
default |
52 |
cd "${WORKDIR}/texlive-${PV#*_p}-source" || die |