commit:     344cd785d060dc5d86d791416116cf5d4f89fbcb
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Nov  4 05:05:16 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Nov  4 05:05:16 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=344cd785

dev-libs/kpathsea: fix configure w/ clang 16

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

 ...-6.3.3_p20210325-Fix-Wimplicit-function-declaration.patch | 12 ++++++++++++
 ...3_p20210325.ebuild => kpathsea-6.3.3_p20210325-r1.ebuild} |  4 ++++
 2 files changed, 16 insertions(+)

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
new file mode 100644
index 000000000000..ad8dc0e33342
--- /dev/null
+++ 
b/dev-libs/kpathsea/files/kpathsea-6.3.3_p20210325-Fix-Wimplicit-function-declaration.patch
@@ -0,0 +1,12 @@
+diff --git a/configure b/configure
+index be42b2e..6a7efb0 100755
+--- a/configure
++++ b/configure
+@@ -13920,6 +13920,7 @@ else
+ else
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
++#include <stdlib.h>
+ int fork() { exit(1); }
+                                                  int vfork() { exit(1); }
+                                                  extern char *getcwd();

diff --git a/dev-libs/kpathsea/kpathsea-6.3.3_p20210325.ebuild 
b/dev-libs/kpathsea/kpathsea-6.3.3_p20210325-r1.ebuild
similarity index 97%
rename from dev-libs/kpathsea/kpathsea-6.3.3_p20210325.ebuild
rename to dev-libs/kpathsea/kpathsea-6.3.3_p20210325-r1.ebuild
index 43a961e05eb2..45e773f12628 100644
--- a/dev-libs/kpathsea/kpathsea-6.3.3_p20210325.ebuild
+++ b/dev-libs/kpathsea/kpathsea-6.3.3_p20210325-r1.ebuild
@@ -35,6 +35,10 @@ SRC_URI="${SRC_URI} ) "
 
 TEXMF_PATH=/usr/share/texmf-dist
 
+PATCHES=(
+       
"${FILESDIR}"/${PN}-6.3.3_p20210325-Fix-Wimplicit-function-declaration.patch
+)
+
 src_prepare() {
        default
        cd "${WORKDIR}/texlive-${PV#*_p}-source" || die

Reply via email to