diff options
Diffstat (limited to 'meta/recipes-devtools/tcltk/tcl')
6 files changed, 0 insertions, 304 deletions
diff --git a/meta/recipes-devtools/tcltk/tcl/0001-tcl-Add-tcltk-from-OE.dev-but-with-legacy-staging-fu.patch b/meta/recipes-devtools/tcltk/tcl/0001-tcl-Add-tcltk-from-OE.dev-but-with-legacy-staging-fu.patch deleted file mode 100644 index cefcb24433..0000000000 --- a/meta/recipes-devtools/tcltk/tcl/0001-tcl-Add-tcltk-from-OE.dev-but-with-legacy-staging-fu.patch +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | From 822a73a5dec13549cb20e6c7338b059ece2ea95a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Richard Purdie <rpurdie@linux.intel.com> | ||
| 3 | Date: Wed, 9 Dec 2009 23:59:44 +0000 | ||
| 4 | Subject: [PATCH] tcl: add .0 to libtcl.so filename | ||
| 5 | |||
| 6 | This patch is fixing the issue after the fact; the issue | ||
| 7 | is that upstream defines the shared library filename as | ||
| 8 | libtcl.so (without version) for all platforms in unix/tcl.m4, | ||
| 9 | and I (AlexK) suspect they won't be interested in | ||
| 10 | changing that. | ||
| 11 | |||
| 12 | Upstream-Status: Inappropriate [see above] | ||
| 13 | --- | ||
| 14 | unix/Makefile.in | 5 ++++- | ||
| 15 | unix/tcl.m4 | 3 +++ | ||
| 16 | 2 files changed, 7 insertions(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/unix/Makefile.in b/unix/Makefile.in | ||
| 19 | index b72b0da..2de7b2f 100644 | ||
| 20 | --- a/unix/Makefile.in | ||
| 21 | +++ b/unix/Makefile.in | ||
| 22 | @@ -1021,7 +1021,10 @@ install-binaries: binaries | ||
| 23 | done | ||
| 24 | @echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/" | ||
| 25 | @@INSTALL_LIB@ | ||
| 26 | - @chmod 555 "$(DLL_INSTALL_DIR)/$(LIB_FILE)" | ||
| 27 | + mv "$(DLL_INSTALL_DIR)"/$(LIB_FILE) "$(DLL_INSTALL_DIR)"/$(LIB_FILE).0 | ||
| 28 | + ln -sf $(LIB_FILE).0 "$(DLL_INSTALL_DIR)"/$(LIB_FILE) | ||
| 29 | + ln -sf "$(DLL_INSTALL_DIR)"/$(LIB_FILE).0 ./ | ||
| 30 | + @chmod 555 "$(DLL_INSTALL_DIR)"/$(LIB_FILE).0 | ||
| 31 | @echo "Installing ${TCL_EXE} as $(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}" | ||
| 32 | @$(INSTALL_PROGRAM) ${TCL_EXE} "$(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}" | ||
| 33 | @echo "Installing tclConfig.sh to $(CONFIG_INSTALL_DIR)/" | ||
| 34 | diff --git a/unix/tcl.m4 b/unix/tcl.m4 | ||
| 35 | index 4265832..49ad5ab 100644 | ||
| 36 | --- a/unix/tcl.m4 | ||
| 37 | +++ b/unix/tcl.m4 | ||
| 38 | @@ -1269,6 +1269,9 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ | ||
| 39 | # get rid of the warnings. | ||
| 40 | #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" | ||
| 41 | |||
| 42 | + # following line added by CW for Debian GNU/Linux | ||
| 43 | + TCL_SHLIB_LD_EXTRAS="-Wl,-soname,\${TCL_LIB_FILE}.0" | ||
| 44 | + | ||
| 45 | SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared' | ||
| 46 | DL_OBJS="tclLoadDl.o" | ||
| 47 | DL_LIBS="-ldl" | ||
diff --git a/meta/recipes-devtools/tcltk/tcl/0002-tcl-fix-a-build-issue.patch b/meta/recipes-devtools/tcltk/tcl/0002-tcl-fix-a-build-issue.patch deleted file mode 100644 index a2d5622528..0000000000 --- a/meta/recipes-devtools/tcltk/tcl/0002-tcl-fix-a-build-issue.patch +++ /dev/null | |||
| @@ -1,79 +0,0 @@ | |||
| 1 | From 363d9d8fb329b26d1e59ece7f269a7a28e6722c5 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
| 3 | Date: Fri, 13 Aug 2010 12:24:00 -0700 | ||
| 4 | Subject: [PATCH] tcl: fix a build issue | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate [upstream does not support installed tests] | ||
| 7 | --- | ||
| 8 | unix/Makefile.in | 19 +++++++++---------- | ||
| 9 | 1 file changed, 9 insertions(+), 10 deletions(-) | ||
| 10 | |||
| 11 | diff --git a/unix/Makefile.in b/unix/Makefile.in | ||
| 12 | index 2de7b2f..b5f9ab7 100644 | ||
| 13 | --- a/unix/Makefile.in | ||
| 14 | +++ b/unix/Makefile.in | ||
| 15 | @@ -912,7 +912,7 @@ tcltest-real: | ||
| 16 | test: test-tcl test-packages | ||
| 17 | |||
| 18 | test-tcl: ${TCLTEST_EXE} | ||
| 19 | - $(SHELL_ENV) ./${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl $(TESTFLAGS) | ||
| 20 | + $(SHELL_ENV) ${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl $(TESTFLAGS) | ||
| 21 | |||
| 22 | gdb-test: ${TCLTEST_EXE} | ||
| 23 | $(SHELL_ENV) $(GDB) --args ./${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl \ | ||
| 24 | @@ -922,15 +922,14 @@ lldb-test: ${TCLTEST_EXE} | ||
| 25 | $(SHELL_ENV) $(LLDB) -- ./${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl \ | ||
| 26 | $(TESTFLAGS) -singleproc 1 | ||
| 27 | |||
| 28 | - | ||
| 29 | # Useful target to launch a built tcltest with the proper path,... | ||
| 30 | runtest: ${TCLTEST_EXE} | ||
| 31 | - $(SHELL_ENV) ./${TCLTEST_EXE} | ||
| 32 | + $(SHELL_ENV) ${TCLTEST_EXE} | ||
| 33 | |||
| 34 | # Useful target for running the test suite with an unwritable current | ||
| 35 | # directory... | ||
| 36 | ro-test: ${TCLTEST_EXE} | ||
| 37 | - echo 'exec chmod -w .;package require tcltest;tcltest::temporaryDirectory /tmp;source ../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} | ||
| 39 | |||
| 40 | # The following target generates the shared libraries in dltest/ that are used | ||
| 41 | # for testing; they are included as part of the "tcltest" target (via the | ||
| 42 | @@ -948,17 +947,17 @@ dltest.marker: ${STUB_LIB_FILE} | ||
| 43 | # This target can be used to run tclsh from the build directory | ||
| 44 | # via `make shell SCRIPT=/tmp/foo.tcl` | ||
| 45 | shell: ${TCL_EXE} | ||
| 46 | - $(SHELL_ENV) ./${TCL_EXE} $(SCRIPT) | ||
| 47 | + $(SHELL_ENV) ${TCL_EXE} $(SCRIPT) | ||
| 48 | |||
| 49 | # This target can be used to run tclsh inside either gdb or insight | ||
| 50 | gdb: ${TCL_EXE} | ||
| 51 | - $(SHELL_ENV) $(GDB) ./${TCL_EXE} | ||
| 52 | + $(SHELL_ENV) $(GDB) ${TCL_EXE} | ||
| 53 | |||
| 54 | lldb: ${TCL_EXE} | ||
| 55 | $(SHELL_ENV) $(LLDB) ./${TCL_EXE} | ||
| 56 | |||
| 57 | valgrind: ${TCL_EXE} ${TCLTEST_EXE} | ||
| 58 | - $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ./${TCLTEST_EXE} \ | ||
| 59 | + $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ${TCLTEST_EXE} \ | ||
| 60 | $(TOP_DIR)/tests/all.tcl -singleproc 1 -constraints valgrind \ | ||
| 61 | $(TESTFLAGS) | ||
| 62 | |||
| 63 | @@ -984,13 +983,13 @@ valgrind_each: $(addprefix testresults/valgrind/,$(addsuffix .success,$(notdir\ | ||
| 64 | |||
| 65 | |||
| 66 | valgrindshell: ${TCL_EXE} | ||
| 67 | - $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ./${TCL_EXE} $(SCRIPT) | ||
| 68 | + $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ${TCL_EXE} $(SCRIPT) | ||
| 69 | |||
| 70 | trace-shell: ${TCL_EXE} | ||
| 71 | - $(SHELL_ENV) ${TRACE} $(TRACE_OPTS) ./${TCL_EXE} $(SCRIPT) | ||
| 72 | + $(SHELL_ENV) ${TRACE} $(TRACE_OPTS) ${TCL_EXE} $(SCRIPT) | ||
| 73 | |||
| 74 | trace-test: ${TCLTEST_EXE} | ||
| 75 | - $(SHELL_ENV) ${TRACE} $(TRACE_OPTS) ./${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl -singleproc 1 $(TESTFLAGS) | ||
| 76 | + $(SHELL_ENV) ${TRACE} $(TRACE_OPTS) ${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl -singleproc 1 $(TESTFLAGS) | ||
| 77 | |||
| 78 | #-------------------------------------------------------------------------- | ||
| 79 | # Installation rules | ||
diff --git a/meta/recipes-devtools/tcltk/tcl/0003-tcl-install-tcl-to-lib64-instead-of-lib-on-64bit-tar.patch b/meta/recipes-devtools/tcltk/tcl/0003-tcl-install-tcl-to-lib64-instead-of-lib-on-64bit-tar.patch deleted file mode 100644 index 8a425637c6..0000000000 --- a/meta/recipes-devtools/tcltk/tcl/0003-tcl-install-tcl-to-lib64-instead-of-lib-on-64bit-tar.patch +++ /dev/null | |||
| @@ -1,31 +0,0 @@ | |||
| 1 | From 964b9649f8d044d38fdc8c4201075692e5f537a0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "Song.Li" <Song.Li@windriver.com> | ||
| 3 | Date: Wed, 1 Aug 2012 19:05:51 +0800 | ||
| 4 | Subject: [PATCH] tcl:install tcl to lib64 instead of lib on 64bit target | ||
| 5 | |||
| 6 | Remove hardcoded library install path. Change $(prefix)/lib/ to ${libdir}. | ||
| 7 | |||
| 8 | [YOCTO #2876] | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | |||
| 12 | Signed-off-by: Song.Li <Song.Li@windriver.com> | ||
| 13 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
| 14 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
| 15 | --- | ||
| 16 | unix/configure.ac | 2 +- | ||
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/unix/configure.ac b/unix/configure.ac | ||
| 20 | index 7f012d4..43ec7e4 100644 | ||
| 21 | --- a/unix/configure.ac | ||
| 22 | +++ b/unix/configure.ac | ||
| 23 | @@ -725,7 +725,7 @@ eval "TCL_LIB_FILE=libtcl${LIB_SUFFIX}" | ||
| 24 | |||
| 25 | eval "TCL_LIB_FILE=${TCL_LIB_FILE}" | ||
| 26 | |||
| 27 | -test -z "$TCL_LIBRARY" && TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)' | ||
| 28 | +test -z "$TCL_LIBRARY" && TCL_LIBRARY='$(libdir)/tcl$(VERSION)' | ||
| 29 | PRIVATE_INCLUDE_DIR='$(includedir)' | ||
| 30 | HTML_DIR='$(DISTDIR)/html' | ||
| 31 | |||
diff --git a/meta/recipes-devtools/tcltk/tcl/0004-tcl-update-the-header-location.patch b/meta/recipes-devtools/tcltk/tcl/0004-tcl-update-the-header-location.patch deleted file mode 100644 index 50a4a27256..0000000000 --- a/meta/recipes-devtools/tcltk/tcl/0004-tcl-update-the-header-location.patch +++ /dev/null | |||
| @@ -1,75 +0,0 @@ | |||
| 1 | From d2fa5a1efa5e4f07b294660c2513766c168137ce Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Mingli Yu <mingli.yu@windriver.com> | ||
| 3 | Date: Tue, 22 Nov 2022 18:48:27 +0800 | ||
| 4 | Subject: [PATCH] tcl: update the header location | ||
| 5 | |||
| 6 | Lets install the include header and private header files into | ||
| 7 | usr/include/tcl8.6 when version of tcl is 8.6.x | ||
| 8 | |||
| 9 | Upstream-Status: Inappropriate [Configuration Specific] | ||
| 10 | |||
| 11 | Signed-off-by: Khem Raj <raj.khem@gmai.com> | ||
| 12 | |||
| 13 | Fixed the TCL_INCLUDE_SPEC | ||
| 14 | |||
| 15 | Also update the header location in tcl.pc to correct the header | ||
| 16 | location in case some package such python3 which use pkg-config | ||
| 17 | to detect tcl doesn't find the header. | ||
| 18 | |||
| 19 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
| 20 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
| 21 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
| 22 | --- | ||
| 23 | unix/Makefile.in | 2 +- | ||
| 24 | unix/configure.ac | 4 ++-- | ||
| 25 | unix/tcl.pc.in | 2 +- | ||
| 26 | 3 files changed, 4 insertions(+), 4 deletions(-) | ||
| 27 | |||
| 28 | diff --git a/unix/Makefile.in b/unix/Makefile.in | ||
| 29 | index b5f9ab7..fbc87a2 100644 | ||
| 30 | --- a/unix/Makefile.in | ||
| 31 | +++ b/unix/Makefile.in | ||
| 32 | @@ -57,7 +57,7 @@ SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TCL_LIBRARY) | ||
| 33 | MODULE_INSTALL_DIR = $(SCRIPT_INSTALL_DIR)/../tcl9 | ||
| 34 | |||
| 35 | # Directory in which to install the include file tcl.h: | ||
| 36 | -INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir) | ||
| 37 | +INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)/tcl$(VERSION) | ||
| 38 | |||
| 39 | # Path to the private tcl header dir: | ||
| 40 | PRIVATE_INCLUDE_DIR = @PRIVATE_INCLUDE_DIR@ | ||
| 41 | diff --git a/unix/configure.ac b/unix/configure.ac | ||
| 42 | index 43ec7e4..19524d1 100644 | ||
| 43 | --- a/unix/configure.ac | ||
| 44 | +++ b/unix/configure.ac | ||
| 45 | @@ -726,7 +726,7 @@ eval "TCL_LIB_FILE=libtcl${LIB_SUFFIX}" | ||
| 46 | eval "TCL_LIB_FILE=${TCL_LIB_FILE}" | ||
| 47 | |||
| 48 | test -z "$TCL_LIBRARY" && TCL_LIBRARY='$(libdir)/tcl$(VERSION)' | ||
| 49 | -PRIVATE_INCLUDE_DIR='$(includedir)' | ||
| 50 | +PRIVATE_INCLUDE_DIR='$(includedir)/tcl$(VERSION)' | ||
| 51 | HTML_DIR='$(DISTDIR)/html' | ||
| 52 | |||
| 53 | # Note: in the following variable, it's important to use the absolute | ||
| 54 | @@ -893,7 +893,7 @@ TCL_BUILD_STUB_LIB_PATH="`pwd`/${TCL_STUB_LIB_FILE}" | ||
| 55 | TCL_STUB_LIB_PATH="${TCL_STUB_LIB_DIR}/${TCL_STUB_LIB_FILE}" | ||
| 56 | |||
| 57 | # Install time header dir can be set via --includedir | ||
| 58 | -eval "TCL_INCLUDE_SPEC=\"-I${includedir}\"" | ||
| 59 | +eval "TCL_INCLUDE_SPEC=\"-I${includedir}/tcl${VERSION}\"" | ||
| 60 | |||
| 61 | #------------------------------------------------------------------------ | ||
| 62 | # tclConfig.sh refers to this by a different name | ||
| 63 | diff --git a/unix/tcl.pc.in b/unix/tcl.pc.in | ||
| 64 | index 9c6da82..8aa5ae8 100644 | ||
| 65 | --- a/unix/tcl.pc.in | ||
| 66 | +++ b/unix/tcl.pc.in | ||
| 67 | @@ -3,7 +3,7 @@ | ||
| 68 | prefix=@prefix@ | ||
| 69 | exec_prefix=@exec_prefix@ | ||
| 70 | libdir=@libdir@ | ||
| 71 | -includedir=@includedir@ | ||
| 72 | +includedir=@includedir@/tcl@PACKAGE_VERSION@ | ||
| 73 | libfile=@TCL_LIB_FILE@ | ||
| 74 | |||
| 75 | Name: Tool Command Language | ||
diff --git a/meta/recipes-devtools/tcltk/tcl/0005-tcl-fix-race-in-interp.test.patch b/meta/recipes-devtools/tcltk/tcl/0005-tcl-fix-race-in-interp.test.patch deleted file mode 100644 index 07912da5b3..0000000000 --- a/meta/recipes-devtools/tcltk/tcl/0005-tcl-fix-race-in-interp.test.patch +++ /dev/null | |||
| @@ -1,40 +0,0 @@ | |||
| 1 | From fd75e3613613726786c54a25ee611c5176b33510 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ross Burton <ross.burton@arm.com> | ||
| 3 | Date: Mon, 12 Jul 2021 14:50:13 +0100 | ||
| 4 | Subject: [PATCH] tcl: fix race in interp.test | ||
| 5 | |||
| 6 | The interp-36.7 patch has race conditions and is missing cleanup. This patch by | ||
| 7 | a Tcl maintainer should improve matters. | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
| 11 | --- | ||
| 12 | tests/interp.test | 7 ++++--- | ||
| 13 | 1 file changed, 4 insertions(+), 3 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/tests/interp.test b/tests/interp.test | ||
| 16 | index 0092a03..eecfd3b 100644 | ||
| 17 | --- a/tests/interp.test | ||
| 18 | +++ b/tests/interp.test | ||
| 19 | @@ -3614,17 +3614,18 @@ test interp-36.7 {ChildBgerror sets error handler of child [1999035]} -setup { | ||
| 20 | variable result | ||
| 21 | set result [lindex $args 0] | ||
| 22 | } | ||
| 23 | + set tout [after 5000 {set result timeout}] | ||
| 24 | } -body { | ||
| 25 | child eval { | ||
| 26 | variable done {} | ||
| 27 | after 0 error foo | ||
| 28 | - after 10 [list ::set [namespace which -variable done] {}] | ||
| 29 | - vwait [namespace which -variable done] | ||
| 30 | } | ||
| 31 | + vwait result | ||
| 32 | set result | ||
| 33 | } -cleanup { | ||
| 34 | + after cancel $tout | ||
| 35 | variable result {} | ||
| 36 | - unset -nocomplain result | ||
| 37 | + unset -nocomplain result tout | ||
| 38 | interp delete child | ||
| 39 | } -result foo | ||
| 40 | |||
diff --git a/meta/recipes-devtools/tcltk/tcl/run-ptest b/meta/recipes-devtools/tcltk/tcl/run-ptest deleted file mode 100644 index be067f13ea..0000000000 --- a/meta/recipes-devtools/tcltk/tcl/run-ptest +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | export TCL_LIBRARY=@libdir@/tcl/ptest/library | ||
| 4 | export ERROR_ON_FAILURES=1 | ||
| 5 | export LANG=en-US.UTF-8 | ||
| 6 | |||
| 7 | # Some tests are overly strict with timings and fail on loaded systems. | ||
| 8 | SKIP="" | ||
| 9 | # 15321 | ||
| 10 | SKIP="$SKIP async-\* event-\*" | ||
| 11 | # 14882 | ||
| 12 | SKIP="$SKIP cmdMZ-6.6" | ||
| 13 | # 15081 | ||
| 14 | SKIP="$SKIP exit-1.\*" | ||
| 15 | # 15407 15421 | ||
| 16 | SKIP="$SKIP \*io-46.1" | ||
| 17 | # io-13.6 explicitly says it can fail on slow/loaded machines | ||
| 18 | SKIP="$SKIP io-13.6" | ||
| 19 | # 14825 | ||
| 20 | SKIP="$SKIP socket-\* socket_inet-\*" | ||
| 21 | # tries to access google.com | ||
| 22 | SKIP="$SKIP httpProxy-\*" | ||
| 23 | |||
| 24 | for i in tests/*.test; do | ||
| 25 | i=$(basename $i) | ||
| 26 | ./tcltest tests/all.tcl -file $i -skip "$SKIP" | ||
| 27 | if [ $? -eq 0 ]; then | ||
| 28 | echo "PASS: $i" | ||
| 29 | else | ||
| 30 | echo "FAIL: $i" | ||
| 31 | fi | ||
| 32 | done | ||
