summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex@linutronix.de>2024-10-31 11:15:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-12 11:19:44 +0000
commitb33b064b4811fd270cb77be47668357722d38f65 (patch)
tree3b622043d6eaa9d8af10481b3ef946209f4648e8
parenta0f93fed3a5c491e64c6b491b6d96435483012f0 (diff)
downloadpoky-b33b064b4811fd270cb77be47668357722d38f65.tar.gz
tcl: update 8.6.15 -> 9.0.0
Make adjustments needed for ptests: among others, the binary.test needs 4G of RAM. Apply all patches unconditionally for ease of future upgrades. (From OE-Core rev: 372cfdd3f9355081942514c7db44119fa55ff58e) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/images/core-image-ptest.bb1
-rw-r--r--meta/recipes-devtools/tcltk/tcl/0001-tcl-Add-tcltk-from-OE.dev-but-with-legacy-staging-fu.patch (renamed from meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch)16
-rw-r--r--meta/recipes-devtools/tcltk/tcl/0002-tcl-fix-a-build-issue.patch (renamed from meta/recipes-devtools/tcltk/tcl/fix_non_native_build_issue.patch)37
-rw-r--r--meta/recipes-devtools/tcltk/tcl/0003-tcl-install-tcl-to-lib64-instead-of-lib-on-64bit-tar.patch (renamed from meta/recipes-devtools/tcltk/tcl/tcl-remove-hardcoded-install-path.patch)19
-rw-r--r--meta/recipes-devtools/tcltk/tcl/0004-tcl-update-the-header-location.patch (renamed from meta/recipes-devtools/tcltk/tcl/alter-includedir.patch)27
-rw-r--r--meta/recipes-devtools/tcltk/tcl/0005-tcl-fix-race-in-interp.test.patch (renamed from meta/recipes-devtools/tcltk/tcl/interp.patch)11
-rw-r--r--meta/recipes-devtools/tcltk/tcl/run-ptest7
-rw-r--r--meta/recipes-devtools/tcltk/tcl_9.0.0.bb (renamed from meta/recipes-devtools/tcltk/tcl_8.6.15.bb)25
8 files changed, 79 insertions, 64 deletions
diff --git a/meta/recipes-core/images/core-image-ptest.bb b/meta/recipes-core/images/core-image-ptest.bb
index 72081f938d..a0ff8d9528 100644
--- a/meta/recipes-core/images/core-image-ptest.bb
+++ b/meta/recipes-core/images/core-image-ptest.bb
@@ -32,6 +32,7 @@ QB_MEM = "-m 1024"
32QB_MEM:virtclass-mcextend-lttng-tools = "-m 4096" 32QB_MEM:virtclass-mcextend-lttng-tools = "-m 4096"
33QB_MEM:virtclass-mcextend-python3 = "-m 2048" 33QB_MEM:virtclass-mcextend-python3 = "-m 2048"
34QB_MEM:virtclass-mcextend-python3-cryptography = "-m 5100" 34QB_MEM:virtclass-mcextend-python3-cryptography = "-m 5100"
35QB_MEM:virtclass-mcextend-tcl = "-m 5100"
35 36
36TEST_SUITES = "ping ssh parselogs ptest" 37TEST_SUITES = "ping ssh parselogs ptest"
37 38
diff --git a/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch b/meta/recipes-devtools/tcltk/tcl/0001-tcl-Add-tcltk-from-OE.dev-but-with-legacy-staging-fu.patch
index a0195e263c..9472591a55 100644
--- a/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch
+++ b/meta/recipes-devtools/tcltk/tcl/0001-tcl-Add-tcltk-from-OE.dev-but-with-legacy-staging-fu.patch
@@ -1,7 +1,8 @@
1From b89fd73daf9b3eb2f889f65baba5f90d8a930c82 Mon Sep 17 00:00:00 2001 1From f69a01c5932af2d5ece6141e4424b14a2d645fd7 Mon Sep 17 00:00:00 2001
2From: Richard Purdie <rpurdie@linux.intel.com> 2From: Richard Purdie <rpurdie@linux.intel.com>
3Date: Wed, 9 Dec 2009 23:59:44 +0000 3Date: Wed, 9 Dec 2009 23:59:44 +0000
4Subject: [PATCH] tcl: Add tcltk from OE.dev but with legacy staging function 4Subject: [PATCH 1/5] tcl: Add tcltk from OE.dev but with legacy staging
5 function
5 6
6Upstream-Status: Pending 7Upstream-Status: Pending
7--- 8---
@@ -10,10 +11,10 @@ Upstream-Status: Pending
10 2 files changed, 7 insertions(+), 1 deletion(-) 11 2 files changed, 7 insertions(+), 1 deletion(-)
11 12
12diff --git a/unix/Makefile.in b/unix/Makefile.in 13diff --git a/unix/Makefile.in b/unix/Makefile.in
13index 7619afc..9dd053d 100644 14index 0ff1258..6e74458 100644
14--- a/unix/Makefile.in 15--- a/unix/Makefile.in
15+++ b/unix/Makefile.in 16+++ b/unix/Makefile.in
16@@ -904,7 +904,10 @@ install-binaries: binaries 17@@ -1027,7 +1027,10 @@ install-binaries: binaries
17 done 18 done
18 @echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/" 19 @echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/"
19 @@INSTALL_LIB@ 20 @@INSTALL_LIB@
@@ -26,10 +27,10 @@ index 7619afc..9dd053d 100644
26 @$(INSTALL_PROGRAM) ${TCL_EXE} "$(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}" 27 @$(INSTALL_PROGRAM) ${TCL_EXE} "$(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}"
27 @echo "Installing tclConfig.sh to $(CONFIG_INSTALL_DIR)/" 28 @echo "Installing tclConfig.sh to $(CONFIG_INSTALL_DIR)/"
28diff --git a/unix/tcl.m4 b/unix/tcl.m4 29diff --git a/unix/tcl.m4 b/unix/tcl.m4
29index 0307a06..37c4d67 100644 30index 99bc8bf..7e6e0da 100644
30--- a/unix/tcl.m4 31--- a/unix/tcl.m4
31+++ b/unix/tcl.m4 32+++ b/unix/tcl.m4
32@@ -1378,6 +1378,9 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ 33@@ -1269,6 +1269,9 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
33 # get rid of the warnings. 34 # get rid of the warnings.
34 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" 35 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
35 36
@@ -39,3 +40,6 @@ index 0307a06..37c4d67 100644
39 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared' 40 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
40 DL_OBJS="tclLoadDl.o" 41 DL_OBJS="tclLoadDl.o"
41 DL_LIBS="-ldl" 42 DL_LIBS="-ldl"
43--
442.39.5
45
diff --git a/meta/recipes-devtools/tcltk/tcl/fix_non_native_build_issue.patch b/meta/recipes-devtools/tcltk/tcl/0002-tcl-fix-a-build-issue.patch
index fac7ed7e28..53cfd8927d 100644
--- a/meta/recipes-devtools/tcltk/tcl/fix_non_native_build_issue.patch
+++ b/meta/recipes-devtools/tcltk/tcl/0002-tcl-fix-a-build-issue.patch
@@ -1,18 +1,18 @@
1From bd512547fc002fdb20808bf5b8b9feeb848b6512 Mon Sep 17 00:00:00 2001 1From 61ef40f2bc418ce072828ad1939eaa40f981e76e Mon Sep 17 00:00:00 2001
2From: Nitin A Kamble <nitin.a.kamble@intel.com> 2From: Nitin A Kamble <nitin.a.kamble@intel.com>
3Date: Fri, 13 Aug 2010 12:24:00 -0700 3Date: Fri, 13 Aug 2010 12:24:00 -0700
4Subject: [PATCH] tcl: fix a build issue 4Subject: [PATCH 2/5] tcl: fix a build issue
5 5
6Upstream-Status: Inappropriate [upstream does not support installed tests] 6Upstream-Status: Inappropriate [upstream does not support installed tests]
7--- 7---
8 unix/Makefile.in | 20 ++++++++++---------- 8 unix/Makefile.in | 19 +++++++++----------
9 1 file changed, 10 insertions(+), 10 deletions(-) 9 1 file changed, 9 insertions(+), 10 deletions(-)
10 10
11diff --git a/unix/Makefile.in b/unix/Makefile.in 11diff --git a/unix/Makefile.in b/unix/Makefile.in
12index 965f6da..a0bd63f 100644 12index 6e74458..bd0b818 100644
13--- a/unix/Makefile.in 13--- a/unix/Makefile.in
14+++ b/unix/Makefile.in 14+++ b/unix/Makefile.in
15@@ -723,7 +723,7 @@ tcltest-real: 15@@ -918,7 +918,7 @@ tcltest-real:
16 test: test-tcl test-packages 16 test: test-tcl test-packages
17 17
18 test-tcl: ${TCLTEST_EXE} 18 test-tcl: ${TCLTEST_EXE}
@@ -20,15 +20,12 @@ index 965f6da..a0bd63f 100644
20+ $(SHELL_ENV) ${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl $(TESTFLAGS) 20+ $(SHELL_ENV) ${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl $(TESTFLAGS)
21 21
22 gdb-test: ${TCLTEST_EXE} 22 gdb-test: ${TCLTEST_EXE}
23 @printf '%s ' set env @LD_LIBRARY_PATH_VAR@=\"`pwd`$${@LD_LIBRARY_PATH_VAR@:+:$${@LD_LIBRARY_PATH_VAR}}\" > gdb.run 23 $(SHELL_ENV) $(GDB) --args ./${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl \
24@@ -732,17 +732,17 @@ gdb-test: ${TCLTEST_EXE} 24@@ -928,15 +928,14 @@ lldb-test: ${TCLTEST_EXE}
25 @printf '\n' >>gdb.run 25 $(SHELL_ENV) $(LLDB) -- ./${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl \
26 @printf '%s ' set args $(call shquotequote,$(TOP_DIR))/tests/all.tcl\ 26 $(TESTFLAGS) -singleproc 1
27 $(call shquotequote,$(TESTFLAGS)) -singleproc 1 >> gdb.run
28- $(GDB) ./${TCLTEST_EXE} --command=gdb.run
29+ $(GDB) ${TCLTEST_EXE} --command=gdb.run
30 rm gdb.run
31 27
28-
32 # Useful target to launch a built tcltest with the proper path,... 29 # Useful target to launch a built tcltest with the proper path,...
33 runtest: ${TCLTEST_EXE} 30 runtest: ${TCLTEST_EXE}
34- $(SHELL_ENV) ./${TCLTEST_EXE} 31- $(SHELL_ENV) ./${TCLTEST_EXE}
@@ -37,12 +34,12 @@ index 965f6da..a0bd63f 100644
37 # Useful target for running the test suite with an unwritable current 34 # Useful target for running the test suite with an unwritable current
38 # directory... 35 # directory...
39 ro-test: ${TCLTEST_EXE} 36 ro-test: ${TCLTEST_EXE}
40- echo 'exec chmod -w .;package require tcltest;tcltest::temporaryDirectory /tmp;source -encoding utf-8 ../tests/all.tcl;exec chmod +w .' | $(SHELL_ENV) ./${TCLTEST_EXE} 37- echo 'exec chmod -w .;package require tcltest;tcltest::temporaryDirectory /tmp;source ../tests/all.tcl;exec chmod +w .' | $(SHELL_ENV) ./${TCLTEST_EXE}
41+ echo 'exec chmod -w .;package require tcltest;tcltest::temporaryDirectory /tmp;source -encoding utf-8 ../tests/all.tcl;exec chmod +w .' | $(SHELL_ENV) ${TCLTEST_EXE} 38+ echo 'exec chmod -w .;package require tcltest;tcltest::temporaryDirectory /tmp;source ../tests/all.tcl;exec chmod +w .' | $(SHELL_ENV) ${TCLTEST_EXE}
42 39
43 # The following target generates the shared libraries in dltest/ that are used 40 # The following target generates the shared libraries in dltest/ that are used
44 # for testing; they are included as part of the "tcltest" target (via the 41 # for testing; they are included as part of the "tcltest" target (via the
45@@ -760,28 +760,28 @@ dltest.marker: ${STUB_LIB_FILE} 42@@ -954,17 +953,17 @@ dltest.marker: ${STUB_LIB_FILE}
46 # This target can be used to run tclsh from the build directory 43 # This target can be used to run tclsh from the build directory
47 # via `make shell SCRIPT=/tmp/foo.tcl` 44 # via `make shell SCRIPT=/tmp/foo.tcl`
48 shell: ${TCL_EXE} 45 shell: ${TCL_EXE}
@@ -63,6 +60,9 @@ index 965f6da..a0bd63f 100644
63 $(TOP_DIR)/tests/all.tcl -singleproc 1 -constraints valgrind \ 60 $(TOP_DIR)/tests/all.tcl -singleproc 1 -constraints valgrind \
64 $(TESTFLAGS) 61 $(TESTFLAGS)
65 62
63@@ -990,13 +989,13 @@ valgrind_each: $(addprefix testresults/valgrind/,$(addsuffix .success,$(notdir\
64
65
66 valgrindshell: ${TCL_EXE} 66 valgrindshell: ${TCL_EXE}
67- $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ./${TCL_EXE} $(SCRIPT) 67- $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ./${TCL_EXE} $(SCRIPT)
68+ $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ${TCL_EXE} $(SCRIPT) 68+ $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ${TCL_EXE} $(SCRIPT)
@@ -77,3 +77,6 @@ index 965f6da..a0bd63f 100644
77 77
78 #-------------------------------------------------------------------------- 78 #--------------------------------------------------------------------------
79 # Installation rules 79 # Installation rules
80--
812.39.5
82
diff --git a/meta/recipes-devtools/tcltk/tcl/tcl-remove-hardcoded-install-path.patch b/meta/recipes-devtools/tcltk/tcl/0003-tcl-install-tcl-to-lib64-instead-of-lib-on-64bit-tar.patch
index 93e7877256..fb53404498 100644
--- a/meta/recipes-devtools/tcltk/tcl/tcl-remove-hardcoded-install-path.patch
+++ b/meta/recipes-devtools/tcltk/tcl/0003-tcl-install-tcl-to-lib64-instead-of-lib-on-64bit-tar.patch
@@ -1,7 +1,7 @@
1From 050fc597fbfa4da2c31bd0df58c871892a490470 Mon Sep 17 00:00:00 2001 1From 8af08b6f1e566af239e36864823a96c2c283e4ea Mon Sep 17 00:00:00 2001
2From: "Song.Li" <Song.Li@windriver.com> 2From: "Song.Li" <Song.Li@windriver.com>
3Date: Wed, 1 Aug 2012 19:05:51 +0800 3Date: Wed, 1 Aug 2012 19:05:51 +0800
4Subject: [PATCH] tcl:install tcl to lib64 instead of lib on 64bit target 4Subject: [PATCH 3/5] tcl:install tcl to lib64 instead of lib on 64bit target
5 5
6Remove hardcoded library install path. Change $(prefix)/lib/ to ${libdir}. 6Remove hardcoded library install path. Change $(prefix)/lib/ to ${libdir}.
7 7
@@ -13,14 +13,14 @@ Signed-off-by: Song.Li <Song.Li@windriver.com>
13Signed-off-by: Kai Kang <kai.kang@windriver.com> 13Signed-off-by: Kai Kang <kai.kang@windriver.com>
14Signed-off-by: Yi Zhao <yi.zhao@windriver.com> 14Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
15--- 15---
16 unix/configure.in | 2 +- 16 unix/configure.ac | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-) 17 1 file changed, 1 insertion(+), 1 deletion(-)
18 18
19diff --git a/unix/configure.in b/unix/configure.in 19diff --git a/unix/configure.ac b/unix/configure.ac
20index 4f62510..4974fb6 100644 20index 461b394..b6d2506 100644
21--- a/unix/configure.in 21--- a/unix/configure.ac
22+++ b/unix/configure.in 22+++ b/unix/configure.ac
23@@ -775,7 +775,7 @@ eval "TCL_LIB_FILE=libtcl${LIB_SUFFIX}" 23@@ -753,7 +753,7 @@ eval "TCL_LIB_FILE=libtcl${LIB_SUFFIX}"
24 24
25 eval "TCL_LIB_FILE=${TCL_LIB_FILE}" 25 eval "TCL_LIB_FILE=${TCL_LIB_FILE}"
26 26
@@ -29,3 +29,6 @@ index 4f62510..4974fb6 100644
29 PRIVATE_INCLUDE_DIR='$(includedir)' 29 PRIVATE_INCLUDE_DIR='$(includedir)'
30 HTML_DIR='$(DISTDIR)/html' 30 HTML_DIR='$(DISTDIR)/html'
31 31
32--
332.39.5
34
diff --git a/meta/recipes-devtools/tcltk/tcl/alter-includedir.patch b/meta/recipes-devtools/tcltk/tcl/0004-tcl-update-the-header-location.patch
index bfc718cfd3..7953dcecff 100644
--- a/meta/recipes-devtools/tcltk/tcl/alter-includedir.patch
+++ b/meta/recipes-devtools/tcltk/tcl/0004-tcl-update-the-header-location.patch
@@ -1,7 +1,7 @@
1From 3130dca60636dc12d0d12df75b002fd123349e21 Mon Sep 17 00:00:00 2001 1From 20870e9cd4f5a211fe94f484f707269ee1abd947 Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com> 2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Tue, 22 Nov 2022 18:48:27 +0800 3Date: Tue, 22 Nov 2022 18:48:27 +0800
4Subject: [PATCH] tcl: update the header location 4Subject: [PATCH 4/5] tcl: update the header location
5 5
6Lets install the include header and private header files into 6Lets install the include header and private header files into
7usr/include/tcl8.6 when version of tcl is 8.6.x 7usr/include/tcl8.6 when version of tcl is 8.6.x
@@ -21,16 +21,16 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
21Signed-off-by: Mingli Yu <mingli.yu@windriver.com> 21Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
22--- 22---
23 unix/Makefile.in | 2 +- 23 unix/Makefile.in | 2 +-
24 unix/configure.in | 4 ++-- 24 unix/configure.ac | 4 ++--
25 unix/tcl.pc.in | 2 +- 25 unix/tcl.pc.in | 2 +-
26 3 files changed, 4 insertions(+), 4 deletions(-) 26 3 files changed, 4 insertions(+), 4 deletions(-)
27 27
28diff --git a/unix/Makefile.in b/unix/Makefile.in 28diff --git a/unix/Makefile.in b/unix/Makefile.in
29index a3b7d69..969ddb8 100644 29index bd0b818..ddf2b67 100644
30--- a/unix/Makefile.in 30--- a/unix/Makefile.in
31+++ b/unix/Makefile.in 31+++ b/unix/Makefile.in
32@@ -57,7 +57,7 @@ SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TCL_LIBRARY) 32@@ -57,7 +57,7 @@ SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TCL_LIBRARY)
33 MODULE_INSTALL_DIR = $(SCRIPT_INSTALL_DIR)/../tcl8 33 MODULE_INSTALL_DIR = $(SCRIPT_INSTALL_DIR)/../tcl9
34 34
35 # Directory in which to install the include file tcl.h: 35 # Directory in which to install the include file tcl.h:
36-INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir) 36-INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)
@@ -38,11 +38,11 @@ index a3b7d69..969ddb8 100644
38 38
39 # Path to the private tcl header dir: 39 # Path to the private tcl header dir:
40 PRIVATE_INCLUDE_DIR = @PRIVATE_INCLUDE_DIR@ 40 PRIVATE_INCLUDE_DIR = @PRIVATE_INCLUDE_DIR@
41diff --git a/unix/configure.in b/unix/configure.in 41diff --git a/unix/configure.ac b/unix/configure.ac
42index 4974fb6..a72934f 100644 42index b6d2506..72a8b0d 100644
43--- a/unix/configure.in 43--- a/unix/configure.ac
44+++ b/unix/configure.in 44+++ b/unix/configure.ac
45@@ -776,7 +776,7 @@ eval "TCL_LIB_FILE=libtcl${LIB_SUFFIX}" 45@@ -754,7 +754,7 @@ eval "TCL_LIB_FILE=libtcl${LIB_SUFFIX}"
46 eval "TCL_LIB_FILE=${TCL_LIB_FILE}" 46 eval "TCL_LIB_FILE=${TCL_LIB_FILE}"
47 47
48 test -z "$TCL_LIBRARY" && TCL_LIBRARY='$(libdir)/tcl$(VERSION)' 48 test -z "$TCL_LIBRARY" && TCL_LIBRARY='$(libdir)/tcl$(VERSION)'
@@ -51,7 +51,7 @@ index 4974fb6..a72934f 100644
51 HTML_DIR='$(DISTDIR)/html' 51 HTML_DIR='$(DISTDIR)/html'
52 52
53 # Note: in the following variable, it's important to use the absolute 53 # Note: in the following variable, it's important to use the absolute
54@@ -897,7 +897,7 @@ TCL_BUILD_STUB_LIB_PATH="`pwd`/${TCL_STUB_LIB_FILE}" 54@@ -921,7 +921,7 @@ TCL_BUILD_STUB_LIB_PATH="`pwd`/${TCL_STUB_LIB_FILE}"
55 TCL_STUB_LIB_PATH="${TCL_STUB_LIB_DIR}/${TCL_STUB_LIB_FILE}" 55 TCL_STUB_LIB_PATH="${TCL_STUB_LIB_DIR}/${TCL_STUB_LIB_FILE}"
56 56
57 # Install time header dir can be set via --includedir 57 # Install time header dir can be set via --includedir
@@ -61,7 +61,7 @@ index 4974fb6..a72934f 100644
61 #------------------------------------------------------------------------ 61 #------------------------------------------------------------------------
62 # tclConfig.sh refers to this by a different name 62 # tclConfig.sh refers to this by a different name
63diff --git a/unix/tcl.pc.in b/unix/tcl.pc.in 63diff --git a/unix/tcl.pc.in b/unix/tcl.pc.in
64index 93b5e69..dcd51d7 100644 64index 9c6da82..8aa5ae8 100644
65--- a/unix/tcl.pc.in 65--- a/unix/tcl.pc.in
66+++ b/unix/tcl.pc.in 66+++ b/unix/tcl.pc.in
67@@ -3,7 +3,7 @@ 67@@ -3,7 +3,7 @@
@@ -73,3 +73,6 @@ index 93b5e69..dcd51d7 100644
73 libfile=@TCL_LIB_FILE@ 73 libfile=@TCL_LIB_FILE@
74 74
75 Name: Tool Command Language 75 Name: Tool Command Language
76--
772.39.5
78
diff --git a/meta/recipes-devtools/tcltk/tcl/interp.patch b/meta/recipes-devtools/tcltk/tcl/0005-tcl-fix-race-in-interp.test.patch
index 2e0dc94cff..dfb0b63a0e 100644
--- a/meta/recipes-devtools/tcltk/tcl/interp.patch
+++ b/meta/recipes-devtools/tcltk/tcl/0005-tcl-fix-race-in-interp.test.patch
@@ -1,7 +1,7 @@
1From 426aa2ff62dda77fd011e8f630b9d4ea17984817 Mon Sep 17 00:00:00 2001 1From 8a96171a33c886d1d9aab40e40f8aae2f621ca08 Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@arm.com> 2From: Ross Burton <ross.burton@arm.com>
3Date: Mon, 12 Jul 2021 14:50:13 +0100 3Date: Mon, 12 Jul 2021 14:50:13 +0100
4Subject: [PATCH] tcl: fix race in interp.test 4Subject: [PATCH 5/5] tcl: fix race in interp.test
5 5
6The interp-36.7 patch has race conditions and is missing cleanup. This patch by 6The interp-36.7 patch has race conditions and is missing cleanup. This patch by
7a Tcl maintainer should improve matters. 7a Tcl maintainer should improve matters.
@@ -13,10 +13,10 @@ Signed-off-by: Ross Burton <ross.burton@arm.com>
13 1 file changed, 4 insertions(+), 3 deletions(-) 13 1 file changed, 4 insertions(+), 3 deletions(-)
14 14
15diff --git a/tests/interp.test b/tests/interp.test 15diff --git a/tests/interp.test b/tests/interp.test
16index d742484..fc90990 100644 16index 30dc659..e7cd0ee 100644
17--- a/tests/interp.test 17--- a/tests/interp.test
18+++ b/tests/interp.test 18+++ b/tests/interp.test
19@@ -3595,17 +3595,18 @@ test interp-36.7 {ChildBgerror sets error handler of child [1999035]} -setup { 19@@ -3614,17 +3614,18 @@ test interp-36.7 {ChildBgerror sets error handler of child [1999035]} -setup {
20 variable result 20 variable result
21 set result [lindex $args 0] 21 set result [lindex $args 0]
22 } 22 }
@@ -38,3 +38,6 @@ index d742484..fc90990 100644
38 interp delete child 38 interp delete child
39 } -result foo 39 } -result foo
40 40
41--
422.39.5
43
diff --git a/meta/recipes-devtools/tcltk/tcl/run-ptest b/meta/recipes-devtools/tcltk/tcl/run-ptest
index c485e535c7..8a9f611b0f 100644
--- a/meta/recipes-devtools/tcltk/tcl/run-ptest
+++ b/meta/recipes-devtools/tcltk/tcl/run-ptest
@@ -1,9 +1,8 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# clock.test needs a timezone to be set 3export TCL_LIBRARY=/usr/lib/tcl/ptest/library
4export TZ="Europe/London"
5export TCL_LIBRARY=library
6export ERROR_ON_FAILURES=1 4export ERROR_ON_FAILURES=1
5export LANG=en-US.UTF-8
7 6
8# Some tests are overly strict with timings and fail on loaded systems. 7# Some tests are overly strict with timings and fail on loaded systems.
9SKIP="" 8SKIP=""
@@ -19,6 +18,8 @@ SKIP="$SKIP \*io-46.1"
19SKIP="$SKIP io-13.6" 18SKIP="$SKIP io-13.6"
20# 14825 19# 14825
21SKIP="$SKIP socket-\* socket_inet-\*" 20SKIP="$SKIP socket-\* socket_inet-\*"
21# tries to access google.com
22SKIP="$SKIP httpProxy-\*"
22 23
23for i in tests/*.test; do 24for i in tests/*.test; do
24 i=$(basename $i) 25 i=$(basename $i)
diff --git a/meta/recipes-devtools/tcltk/tcl_8.6.15.bb b/meta/recipes-devtools/tcltk/tcl_9.0.0.bb
index 340854056e..b3968b5be1 100644
--- a/meta/recipes-devtools/tcltk/tcl_8.6.15.bb
+++ b/meta/recipes-devtools/tcltk/tcl_9.0.0.bb
@@ -15,18 +15,15 @@ LIC_FILES_CHKSUM = "file://license.terms;md5=058f6229798281bbcac4239c788cfa38 \
15 15
16DEPENDS = "tcl-native zlib" 16DEPENDS = "tcl-native zlib"
17 17
18BASE_SRC_URI = "${SOURCEFORGE_MIRROR}/tcl/tcl-core${PV}-src.tar.gz \ 18SRC_URI = "${SOURCEFORGE_MIRROR}/tcl/tcl-core${PV}-src.tar.gz \
19 file://tcl-add-soname.patch"
20SRC_URI = "${BASE_SRC_URI} \
21 file://fix_non_native_build_issue.patch \
22 file://tcl-remove-hardcoded-install-path.patch \
23 file://alter-includedir.patch \
24 file://interp.patch \
25 file://run-ptest \ 19 file://run-ptest \
20 file://0001-tcl-Add-tcltk-from-OE.dev-but-with-legacy-staging-fu.patch \
21 file://0002-tcl-fix-a-build-issue.patch \
22 file://0003-tcl-install-tcl-to-lib64-instead-of-lib-on-64bit-tar.patch \
23 file://0004-tcl-update-the-header-location.patch \
24 file://0005-tcl-fix-race-in-interp.test.patch \
26 " 25 "
27SRC_URI[sha256sum] = "844775491e435e34d83d6ccfbadd1342f1855f1705253233a86152df0765e78d" 26SRC_URI[sha256sum] = "3186e23c7417359d90e3c46f531d442c76d3c05a2dba1081c02b75e32908b2b7"
28
29SRC_URI:class-native = "${BASE_SRC_URI}"
30 27
31UPSTREAM_CHECK_URI = "https://www.tcl.tk/software/tcltk/download.html" 28UPSTREAM_CHECK_URI = "https://www.tcl.tk/software/tcltk/download.html"
32UPSTREAM_CHECK_REGEX = "tcl(?P<pver>\d+(\.\d+)+)-src" 29UPSTREAM_CHECK_REGEX = "tcl(?P<pver>\d+(\.\d+)+)-src"
@@ -38,7 +35,7 @@ VER = "${PV}"
38inherit autotools ptest binconfig 35inherit autotools ptest binconfig
39 36
40AUTOTOOLS_SCRIPT_PATH = "${S}/unix" 37AUTOTOOLS_SCRIPT_PATH = "${S}/unix"
41EXTRA_OECONF = "--enable-threads --disable-rpath --enable-man-suffix" 38EXTRA_OECONF = "--disable-rpath --enable-man-suffix"
42 39
43# Prevent installing copy of tzdata based on tzdata installation on the build host 40# Prevent installing copy of tzdata based on tzdata installation on the build host
44# It doesn't install tzdata if one of the following files exist on the host: 41# It doesn't install tzdata if one of the following files exist on the host:
@@ -65,13 +62,13 @@ do_install() {
65SYSROOT_DIRS += "${bindir_crossscripts}" 62SYSROOT_DIRS += "${bindir_crossscripts}"
66 63
67PACKAGES =+ "tcl-lib" 64PACKAGES =+ "tcl-lib"
68FILES:tcl-lib = "${libdir}/libtcl8.6.so.*" 65FILES:tcl-lib = "${libdir}/libtcl9.0.so.*"
69FILES:${PN} += "${libdir}/tcl${VER} ${libdir}/tcl8.6 ${libdir}/tcl8" 66FILES:${PN} += "${libdir}/tcl${VER} ${libdir}/tcl9.0 ${libdir}/tcl9"
70FILES:${PN}-dev += "${libdir}/tclConfig.sh ${libdir}/tclooConfig.sh" 67FILES:${PN}-dev += "${libdir}/tclConfig.sh ${libdir}/tclooConfig.sh"
71 68
72# isn't getting picked up by shlibs code 69# isn't getting picked up by shlibs code
73RDEPENDS:${PN} += "tcl-lib" 70RDEPENDS:${PN} += "tcl-lib"
74RDEPENDS:${PN}-ptest += "libgcc" 71RDEPENDS:${PN}-ptest += "libgcc locale-base-en-us tzdata"
75 72
76BBCLASSEXTEND = "native nativesdk" 73BBCLASSEXTEND = "native nativesdk"
77 74