diff options
author | Sam James <sam@gentoo.org> | 2022-11-04 03:14:00 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-11-04 03:25:07 +0000 |
commit | 5d6b66d8c11339660690afce73716a5a72c4658c (patch) | |
tree | 2d0be508b33f1545012031acd1a97aa926cce8d7 /dev-lang | |
parent | dev-lang/tk: HTTPSify HOMEPAGE (diff) | |
download | gentoo-5d6b66d8c11339660690afce73716a5a72c4658c.tar.gz gentoo-5d6b66d8c11339660690afce73716a5a72c4658c.tar.bz2 gentoo-5d6b66d8c11339660690afce73716a5a72c4658c.zip |
dev-lang/tcl: fix configure w/ clang 16
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/tcl/files/tcl-8.6.12-configure-clang16.patch | 31 | ||||
-rw-r--r-- | dev-lang/tcl/tcl-8.6.12-r1.ebuild (renamed from dev-lang/tcl/tcl-8.6.12.ebuild) | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/dev-lang/tcl/files/tcl-8.6.12-configure-clang16.patch b/dev-lang/tcl/files/tcl-8.6.12-configure-clang16.patch new file mode 100644 index 000000000000..8714faccbe1b --- /dev/null +++ b/dev-lang/tcl/files/tcl-8.6.12-configure-clang16.patch @@ -0,0 +1,31 @@ +https://github.com/tcltk/tcl/commit/5eb33c5c7e9d6b703275b680f337691ecfe38f2a + +From 5eb33c5c7e9d6b703275b680f337691ecfe38f2a Mon Sep 17 00:00:00 2001 +From: "jan.nijtmans" <nijtmans@users.sourceforge.net> +Date: Sun, 7 Nov 2021 21:34:08 +0000 +Subject: [PATCH] Fix [15845d9fd8]: unix/tcl.m4: implicit declaration of exit() + in timezone variable checks + +--- a/unix/tcl.m4 ++++ b/unix/tcl.m4 +@@ -2349,7 +2349,8 @@ AC_DEFUN([SC_TIME_HANDLER], [ + # (like convex) have timezone functions, etc. + # + AC_CACHE_CHECK([long timezone variable], tcl_cv_timezone_long, [ +- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], ++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h> ++#include <stdlib.h>]], + [[extern long timezone; + timezone += 1; + exit (0);]])], +@@ -2361,7 +2362,8 @@ AC_DEFUN([SC_TIME_HANDLER], [ + # On some systems (eg IRIX 6.2), timezone is a time_t and not a long. + # + AC_CACHE_CHECK([time_t timezone variable], tcl_cv_timezone_time, [ +- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], ++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h> ++#include <stdlib.h>]], + [[extern time_t timezone; + timezone += 1; + exit (0);]])], + diff --git a/dev-lang/tcl/tcl-8.6.12.ebuild b/dev-lang/tcl/tcl-8.6.12-r1.ebuild index 35226b4ca7ca..c7bd860d3075 100644 --- a/dev-lang/tcl/tcl-8.6.12.ebuild +++ b/dev-lang/tcl/tcl-8.6.12-r1.ebuild @@ -28,6 +28,7 @@ PATCHES=( "${FILESDIR}"/${PN}-8.6.10-multilib.patch "${FILESDIR}"/${PN}-8.6.8-conf.patch # Bug 125971 "${FILESDIR}"/${PN}-8.6.9-include-spec.patch # Bug 731120 + "${FILESDIR}"/${P}-configure-clang16.patch ) src_prepare() { |