Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/kpathsea/files/
Date: Fri, 04 Nov 2022 05:37:10
Message-Id: 1667540220.fd7c76475ecd44f34e09b6421b281e4ec4243a86.sam@gentoo
1 commit: fd7c76475ecd44f34e09b6421b281e4ec4243a86
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 4 05:36:51 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 4 05:37:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd7c7647
7
8 dev-libs/kpathsea: add upstream comment
9
10 Also, add configure.ac part, but it doesn't get used because of the autotools quirks
11 wrt texlive in ebuilds right now anyway.
12
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 ...210325-Fix-Wimplicit-function-declaration.patch | 23 ++++++++++++++++++++--
16 1 file changed, 21 insertions(+), 2 deletions(-)
17
18 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
19 index ad8dc0e33342..89cf314856ae 100644
20 --- a/dev-libs/kpathsea/files/kpathsea-6.3.3_p20210325-Fix-Wimplicit-function-declaration.patch
21 +++ b/dev-libs/kpathsea/files/kpathsea-6.3.3_p20210325-Fix-Wimplicit-function-declaration.patch
22 @@ -1,5 +1,24 @@
23 -diff --git a/configure b/configure
24 -index be42b2e..6a7efb0 100755
25 +Sent upstream to tlbuild mailing list. Not yet in archive.
26 +
27 +From: Sam James <sam@g.o>
28 +Date: Fri, 4 Nov 2022 04:58:38 +0000
29 +Subject: [PATCH] Fix -Wimplicit-function-declaration
30 +
31 +Add <stdlib.h> includes for exit(). Clang 16 makes -Wimplicit-function-declaration an error by default.
32 +
33 +Signed-off-by: Sam James <sam@g.o>
34 +--- a/configure.ac
35 ++++ b/configure.ac
36 +@@ -45,7 +45,8 @@ if test "x$ac_cv_func_getcwd" = xyes; then
37 + # We only need to run this if we have getcwd.
38 + AC_CACHE_CHECK([whether getcwd uses fork or vfork],
39 + [kb_cv_func_getcwd_forks],
40 +- [AC_RUN_IFELSE([AC_LANG_PROGRAM([[int fork() { exit(1); }
41 ++ [AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>
42 ++ int fork() { exit(1); }
43 + int vfork() { exit(1); }
44 + extern char *getcwd();
45 + char path[100];]],
46 --- a/configure
47 +++ b/configure
48 @@ -13920,6 +13920,7 @@ else