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-lang/tcl/files/, dev-lang/tcl/
Date: Fri, 04 Nov 2022 03:49:16
Message-Id: 1667532307.5d6b66d8c11339660690afce73716a5a72c4658c.sam@gentoo
1 commit: 5d6b66d8c11339660690afce73716a5a72c4658c
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 4 03:14:00 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 4 03:25:07 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d6b66d8
7
8 dev-lang/tcl: fix configure w/ clang 16
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 .../tcl/files/tcl-8.6.12-configure-clang16.patch | 31 ++++++++++++++++++++++
13 .../{tcl-8.6.12.ebuild => tcl-8.6.12-r1.ebuild} | 1 +
14 2 files changed, 32 insertions(+)
15
16 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
17 new file mode 100644
18 index 000000000000..8714faccbe1b
19 --- /dev/null
20 +++ b/dev-lang/tcl/files/tcl-8.6.12-configure-clang16.patch
21 @@ -0,0 +1,31 @@
22 +https://github.com/tcltk/tcl/commit/5eb33c5c7e9d6b703275b680f337691ecfe38f2a
23 +
24 +From 5eb33c5c7e9d6b703275b680f337691ecfe38f2a Mon Sep 17 00:00:00 2001
25 +From: "jan.nijtmans" <nijtmans@×××××××××××××××××.net>
26 +Date: Sun, 7 Nov 2021 21:34:08 +0000
27 +Subject: [PATCH] Fix [15845d9fd8]: unix/tcl.m4: implicit declaration of exit()
28 + in timezone variable checks
29 +
30 +--- a/unix/tcl.m4
31 ++++ b/unix/tcl.m4
32 +@@ -2349,7 +2349,8 @@ AC_DEFUN([SC_TIME_HANDLER], [
33 + # (like convex) have timezone functions, etc.
34 + #
35 + AC_CACHE_CHECK([long timezone variable], tcl_cv_timezone_long, [
36 +- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]],
37 ++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>
38 ++#include <stdlib.h>]],
39 + [[extern long timezone;
40 + timezone += 1;
41 + exit (0);]])],
42 +@@ -2361,7 +2362,8 @@ AC_DEFUN([SC_TIME_HANDLER], [
43 + # On some systems (eg IRIX 6.2), timezone is a time_t and not a long.
44 + #
45 + AC_CACHE_CHECK([time_t timezone variable], tcl_cv_timezone_time, [
46 +- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]],
47 ++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>
48 ++#include <stdlib.h>]],
49 + [[extern time_t timezone;
50 + timezone += 1;
51 + exit (0);]])],
52 +
53
54 diff --git a/dev-lang/tcl/tcl-8.6.12.ebuild b/dev-lang/tcl/tcl-8.6.12-r1.ebuild
55 similarity index 98%
56 rename from dev-lang/tcl/tcl-8.6.12.ebuild
57 rename to dev-lang/tcl/tcl-8.6.12-r1.ebuild
58 index 35226b4ca7ca..c7bd860d3075 100644
59 --- a/dev-lang/tcl/tcl-8.6.12.ebuild
60 +++ b/dev-lang/tcl/tcl-8.6.12-r1.ebuild
61 @@ -28,6 +28,7 @@ PATCHES=(
62 "${FILESDIR}"/${PN}-8.6.10-multilib.patch
63 "${FILESDIR}"/${PN}-8.6.8-conf.patch # Bug 125971
64 "${FILESDIR}"/${PN}-8.6.9-include-spec.patch # Bug 731120
65 + "${FILESDIR}"/${P}-configure-clang16.patch
66 )
67
68 src_prepare() {