From fd7c76475ecd44f34e09b6421b281e4ec4243a86 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 4 Nov 2022 05:36:51 +0000 Subject: 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 --- ...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 +Date: Fri, 4 Nov 2022 04:58:38 +0000 +Subject: [PATCH] Fix -Wimplicit-function-declaration + +Add includes for exit(). Clang 16 makes -Wimplicit-function-declaration an error by default. + +Signed-off-by: Sam James +--- 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 ++ int fork() { exit(1); } + int vfork() { exit(1); } + extern char *getcwd(); + char path[100];]], --- a/configure +++ b/configure @@ -13920,6 +13920,7 @@ else -- cgit v1.2.3-65-gdbad