commit:     fd7c76475ecd44f34e09b6421b281e4ec4243a86
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Nov  4 05:36:51 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Nov  4 05:37:00 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd7c7647

dev-libs/kpathsea: add upstream comment

Also, add configure.ac part, but it doesn't get used because of the autotools 
quirks
wrt texlive in ebuilds right now anyway.

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

 ...210325-Fix-Wimplicit-function-declaration.patch | 23 ++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

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
index ad8dc0e33342..89cf314856ae 100644
--- 
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
@@ -1,5 +1,24 @@
-diff --git a/configure b/configure
-index be42b2e..6a7efb0 100755
+Sent upstream to tlbuild mailing list. Not yet in archive.
+
+From: Sam James <[email protected]>
+Date: Fri, 4 Nov 2022 04:58:38 +0000
+Subject: [PATCH] Fix -Wimplicit-function-declaration
+
+Add <stdlib.h> includes for exit(). Clang 16 makes 
-Wimplicit-function-declaration an error by default.
+
+Signed-off-by: Sam James <[email protected]>
+--- a/configure.ac
++++ b/configure.ac
+@@ -45,7 +45,8 @@ if test "x$ac_cv_func_getcwd" = xyes; then
+ # We only need to run this if we have getcwd.
+ AC_CACHE_CHECK([whether getcwd uses fork or vfork],
+                [kb_cv_func_getcwd_forks],
+-               [AC_RUN_IFELSE([AC_LANG_PROGRAM([[int fork() { exit(1); }
++               [AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>
++                                                 int fork() { exit(1); }
+                                                  int vfork() { exit(1); }
+                                                  extern char *getcwd();
+                                                  char path[100];]],
 --- a/configure
 +++ b/configure
 @@ -13920,6 +13920,7 @@ else

Reply via email to