Skip to contentSkip to conversation

package/tcl: bump to version 9.0.3

PATCH In review Shubham Chakraborty 2 participants 7 messages May 3 – Oct 19

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/tcl: bump to version 9.0.3

Major version upgrade from 8.6 to 9.0 series.

Key changes in Tcl 9.0:
- Full Unicode support (UTF-16/UTF-32/UCS-2 encodings)
- 64-bit integer support
- Enhanced encoding with -profile/-failindex options
- Script library packaged with binary
- Improved virtual filesystem support

Also remove bundled itcl and thread packages to reduce bloat.

https://www.tcl-lang.org/software/tcltk/9.0.html

Tested Using:
- tils/test-pkg -n 13 -p tcl

---
 package/tcl/tcl.hash |  2 +-
 package/tcl/tcl.mk   | 12 +++++++-----
 2 files changed, 8 insertions(+), 6 deletions(-)
package/tcl/tcl.hash +1 -1
index d67a7c4e74..b5f401e83d 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  861e159753f2e2fbd6ec1484103715b0be56be3357522b858d3cbb5f893ffef1  tcl8.6.15-src.tar.gz
+sha256  2537ba0c86112c8c953f7c09d33f134dd45c0fb3a71f2d7f7691fd301d2c33a6  tcl9.0.3-src.tar.gz
 sha256  c0a69a2bfd757361ec7e6143973b103c90409316b49e9c88db26ad6388e79f16  license.terms
package/tcl/tcl.mk +7 -5
index 0cd242a2e9..4a34f71693 100644
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-TCL_VERSION_MAJOR = 8.6
-TCL_VERSION = $(TCL_VERSION_MAJOR).15
+TCL_VERSION_MAJOR = 9.0
+TCL_VERSION = $(TCL_VERSION_MAJOR).3
 TCL_SOURCE = tcl$(TCL_VERSION)-src.tar.gz
 TCL_SITE = http://downloads.sourceforge.net/project/tcl/Tcl/$(TCL_VERSION)
 TCL_LICENSE = TCL
@@ -28,17 +28,19 @@ HOST_TCL_CONF_OPTS = \
 # I haven't found a good way to force pkgs to not build
 # or configure without just removing the entire pkg directory.
 define HOST_TCL_REMOVE_PACKAGES
-	rm -fr $(@D)/pkgs/sqlite3* $(@D)/pkgs/tdbc*
+	rm -fr $(@D)/pkgs/itcl* $(@D)/pkgs/sqlite3* $(@D)/pkgs/tdbc* $(@D)/pkgs/thread*
 endef
 HOST_TCL_PRE_CONFIGURE_HOOKS += HOST_TCL_REMOVE_PACKAGES
 
 # We remove the bundled sqlite as we prefer to not use bundled stuff at all.
 define TCL_REMOVE_PACKAGES
-	rm -fr $(@D)/pkgs/sqlite3* \
+	rm -fr $(@D)/pkgs/itcl* \
+		$(@D)/pkgs/sqlite3* \
 		$(if $(BR2_PACKAGE_MARIADB),,$(@D)/pkgs/tdbcmysql*) \
 		$(@D)/pkgs/tdbcodbc* \
 		$(if $(BR2_PACKAGE_POSTGRESQL),,$(@D)/pkgs/tdbcpostgres*) \
-		$(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/tdbcsqlite3*)
+		$(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/tdbcsqlite3*) \
+		$(@D)/pkgs/thread*
 endef
 TCL_PRE_CONFIGURE_HOOKS += TCL_REMOVE_PACKAGES
 
Signature · 6 lines
2.54.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 8 lines · Shubham Chakraborty

Major version upgrade from 8.6 to 9.0 series.

Key changes in Tcl 9.0:
- Full Unicode support (UTF-16/UTF-32/UCS-2 encodings)
- 64-bit integer support
- Enhanced encoding with -profile/-failindex options
- Script library packaged with binary
- Improved virtual filesystem support

Where is this list of key changes coming from? It doesn't match with what is at https://www.tcl-lang.org/software/tcltk/9.0.html. Is this just AI-generated slop?

Quoted 1 line

Also remove bundled itcl and thread packages to reduce bloat.

And this will not break existing users? Is it because those packages are new?

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

PATCH v2 1/1 package/tcl: bump to version 9.0.3

In reply to Shubham Chakraborty

Bump the version of tcl to 9.0.3. This is a major version upgrade from 8.6 to 9.0 series.

Notable changes in Tcl 9.0 include:
- 64-bit Capacity: Data values larger than 2Gb
- Unicode and Encodings: full codepoint range, added encodings, encoding profiles to govern I/O, and more.
- Zip Filesystems: mount zipfiles as filesystems
- Attached Archives: enable starkit-style deployment of apps, with support data in filesystem archives attached to executable or libraries. Build tclsh and wish this way.
- New Notifiers: The central event handling engine in Tcl is now constructed on top of the system calls epoll or kqueue when they are available. The select based implementation also remains for platforms where they are not.

Build / Cross-compilation fixes for Tcl 9.0 ZipFS:
- In Tcl 9.0, Zip virtual filesystems (ZipFS) are built into the core package and bundled packages (itcl, thread). Generating these zip archives during cross-compilation requires running a native tclsh.
- Add host-tcl to TCL_DEPENDENCIES and add a HOST_TCL_SYMLINK_TCLSH hook so $(HOST_DIR)/bin/tclsh is available.
- Pass TCLSH and TCLSH_PROG explicitly in TCL_MAKE_OPTS pointing to $(HOST_DIR)/bin/tclsh$(TCL_VERSION_MAJOR) to ensure sub-Makefiles use the native host interpreter without inheriting target LD_LIBRARY_PATH settings.

Note on bundled packages:
Unlike v1, we do not remove the bundled itcl (Incr Tcl) and thread packages. These packages were already present in 8.6 and built by default. Removing them in Tcl 9.0 would break compatibility for existing runtime scripts relying on them (Buildroot has no standalone packages for them).

More Details & Changelogs:
- https://www.tcl-lang.org/software/tcltk/9.0.html

Tested using:
utils/test-pkg -a -c /tmp/tcl.config -p tcl
(Result: 32 builds, 4 skipped, 0 build failed)

---
Changes v1 -> v2:
- Reverted removal of bundled 'itcl' and 'thread' packages to prevent breaking runtime scripts relying on them.
- Rewrote commit message highlights to accurately match official Tcl 9.0 release notes at https://www.tcl-lang.org/software/tcltk/9.0.html.
- Added explicit note on bundled packages rationale in commit body.
- Added host-tcl dependency and host tclsh symlink to fix ZipFS build failures during cross-compilation.
- Overrode TCLSH and TCLSH_PROG in TCL_MAKE_OPTS to prevent LD_LIBRARY_PATH pollution during cross-compilation.
- Ran full 32-toolchain test matrix via test-pkg -a (28 builds OK, 4 skipped, 0 failed).

---
 package/tcl/tcl.hash |  2 +-
 package/tcl/tcl.mk   | 14 ++++++++++++--
 2 files changed, 13 insertions(+), 3 deletions(-)
package/tcl/tcl.hash +1 -1
index d67a7c4e74..b5f401e83d 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  861e159753f2e2fbd6ec1484103715b0be56be3357522b858d3cbb5f893ffef1  tcl8.6.15-src.tar.gz
+sha256  2537ba0c86112c8c953f7c09d33f134dd45c0fb3a71f2d7f7691fd301d2c33a6  tcl9.0.3-src.tar.gz
 sha256  c0a69a2bfd757361ec7e6143973b103c90409316b49e9c88db26ad6388e79f16  license.terms
package/tcl/tcl.mk +12 -2
index 0cd242a2e9..9f50985263 100644
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-TCL_VERSION_MAJOR = 8.6
-TCL_VERSION = $(TCL_VERSION_MAJOR).15
+TCL_VERSION_MAJOR = 9.0
+TCL_VERSION = $(TCL_VERSION_MAJOR).3
 TCL_SOURCE = tcl$(TCL_VERSION)-src.tar.gz
 TCL_SITE = http://downloads.sourceforge.net/project/tcl/Tcl/$(TCL_VERSION)
 TCL_LICENSE = TCL
@@ -73,9 +73,19 @@ define TCL_REMOVE_EXTRA
 endef
 TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_EXTRA
 
+define HOST_TCL_SYMLINK_TCLSH
+	ln -sf tclsh$(TCL_VERSION_MAJOR) $(HOST_DIR)/bin/tclsh
+endef
+HOST_TCL_POST_INSTALL_HOOKS += HOST_TCL_SYMLINK_TCLSH
+
+TCL_MAKE_OPTS = \
+	TCLSH="$(HOST_DIR)/bin/tclsh$(TCL_VERSION_MAJOR)" \
+	TCLSH_PROG="$(HOST_DIR)/bin/tclsh$(TCL_VERSION_MAJOR)"
+
 TCL_DEPENDENCIES = $(if $(BR2_PACKAGE_SQLITE),sqlite) \
 	$(if $(BR2_PACKAGE_MARIADB),mariadb) \
 	$(if $(BR2_PACKAGE_POSTGRESQL),postgresql) \
+	host-tcl \
 	zlib
 
 $(eval $(autotools-package))
Signature · 6 lines
2.55.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

Hello,

Quoted 8 lines · Shubham Chakraborty
package/tcl/tcl.mk +2 -2
-TCL_VERSION_MAJOR = 8.6
-TCL_VERSION = $(TCL_VERSION_MAJOR).15
+TCL_VERSION_MAJOR = 9.0
+TCL_VERSION = $(TCL_VERSION_MAJOR).3
 TCL_SOURCE = tcl$(TCL_VERSION)-src.tar.gz
 TCL_SITE = http://downloads.sourceforge.net/project/tcl/Tcl/$(TCL_VERSION)
 TCL_LICENSE = TCL

package/tcl/tcl.mk define TCL_REMOVE_EXTRA · line 79

Quoted 7 lines
package/tcl/tcl.mk +4 -0
@@ -73,9 +73,19 @@ define TCL_REMOVE_EXTRA
 endef
 TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_EXTRA
 
+define HOST_TCL_SYMLINK_TCLSH
+	ln -sf tclsh$(TCL_VERSION_MAJOR) $(HOST_DIR)/bin/tclsh
+endef
+HOST_TCL_POST_INSTALL_HOOKS += HOST_TCL_SYMLINK_TCLSH

Are you sure you need to symlink, since...

package/tcl/tcl.mk define TCL_REMOVE_EXTRA · line 83

Quoted 4 lines
package/tcl/tcl.mk +4 -0
+
+TCL_MAKE_OPTS = \
+	TCLSH="$(HOST_DIR)/bin/tclsh$(TCL_VERSION_MAJOR)" \
+	TCLSH_PROG="$(HOST_DIR)/bin/tclsh$(TCL_VERSION_MAJOR)"

... you're passing the full path to
$(HOST_DIR)/bin/tclsh$(TCL_VERSION_MAJOR) here?

From my quick experiment, it seems like the symlink is not needed.

Also, could you verify that both TCLSH= and TCLSH_PROG= are needed?

package/tcl/tcl.mk define TCL_REMOVE_EXTRA · line 89

Quoted 6 lines
package/tcl/tcl.mk +2 -0
+
 TCL_DEPENDENCIES = $(if $(BR2_PACKAGE_SQLITE),sqlite) \
 	$(if $(BR2_PACKAGE_MARIADB),mariadb) \
 	$(if $(BR2_PACKAGE_POSTGRESQL),postgresql) \
+	host-tcl \
 	zlib

With your patch:

- host-tcl fails to build because <zlib.h> is not found. Seems like host-zlib is now needed as a dependency of host-tcl. Make sure to build in a minimal Docker container to figure out this kind of issue. You can trivially do that in Buildroot: "./utils/docker-run make".

- tcllib fails to build, because version 1.21 is not designed to work with Tcl 9.0, you need to bump tcllib to 2.0 apparently.

Could you look into these different issues, and get back to us with an updated patch?

Thanks a lot!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

v3 cover package/tcl: bump to version 9.0.3

In reply to Shubham Chakraborty

This series bumps tcl to version 9.0.3 and addresses review comments from Thomas Petazzoni on the v2 submission:

1. package/tcllib: bump to version 2.0
- Tcllib 1.21 does not support Tcl 9.0. Tcllib 2.0 adds Tcl 9.0 support while maintaining compatibility with Tcl 8.5+.
- In 2.0, upstream set "all: install" in its Makefile, which attempted to install into host /usr when DESTDIR was empty during the build stage. Overriding TCLLIB_BUILD_CMDS to a no-op resolves this cleanly.

2. package/tcl: bump to version 9.0.3
- Add host-zlib to HOST_TCL_DEPENDENCIES because <zlib.h> is required by host-tcl in minimal container environments.
- Remove redundant HOST_TCL_SYMLINK_TCLSH hook as no packages in Buildroot rely on an unversioned host tclsh symlink.
- Drop TCLSH_PROG from TCL_MAKE_OPTS, keeping only TCLSH= to avoid polluting LD_LIBRARY_PATH with target architecture directories when bundled pkgs/thread generates its zipfs archive.

Tested using:
utils/test-pkg -a -c /tmp/tcl.config -p tcl (Result: 32 builds, 4 skipped, 0 build failed) utils/test-pkg -c tcllib.config -p tcllib (Result: 6 builds, 2 skipped, 0 build failed) utils/check-package package/tcl/* package/tcllib/* (Result: 168 lines processed, 0 warnings)

Shubham Chakraborty (2):
package/tcllib: bump to version 2.0
package/tcl: bump to version 9.0.3

 package/tcl/tcl.hash       |  2 +-
 package/tcl/tcl.mk         |  9 +++++++--
 package/tcllib/tcllib.hash |  4 ++--
 package/tcllib/tcllib.mk   | 11 +++++++++--
 4 files changed, 19 insertions(+), 7 deletions(-)
Signature · 6 lines
2.56.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

PATCH v3 1/2 package/tcllib: bump to version 2.0

Bump tcllib to version 2.0. This is the first major revision of Tcllib after the 1.x series.

Key changes in Tcllib 2.0:
- Adds support for Tcl 9 (Tcllib 1.21 and older do not work with Tcl 9).
- Drops support for Tcl versions before 8.5 (all packages require Tcl 8.5 as their minimum runtime).
- 440 packages updated across 131 modules.

Update the site URL from http:// to https://.

In Tcllib 2.0, upstream changed the Makefile's default 'all' target to 'install' (to install Tcllib and optional Critcl accelerators). Since Buildroot runs 'make all' during the build phase when DESTDIR is empty, this attempts to install directly to the host filesystem (/usr/lib/tcllib2.0). Override TCLLIB_BUILD_CMDS to a no-op as Tcllib is an interpreted Tcl script package with no compilation step, allowing the standard target installation step (make DESTDIR=$(TARGET_DIR) install) to install cleanly.

More Details & Changelogs:
- https://core.tcl-lang.org/tcllib/doc/tcllib-2-0/support/releases/history/README-2.0.txt

Tested using:
utils/test-pkg -c tcllib.config -p tcllib
(Result: 6 builds, 2 skipped, 0 build failed)

---
 package/tcllib/tcllib.hash |  4 ++--
 package/tcllib/tcllib.mk   | 11 +++++++++--
 2 files changed, 11 insertions(+), 4 deletions(-)
package/tcllib/tcllib.hash +2 -2
index fe0ece238e..b7e8e7b335 100644
@@ -1,5 +1,5 @@
-# From https://core.tcl-lang.org/tcllib/uv/tcllib-1.21.SHA256
-sha256  10c7749e30fdd6092251930e8a1aa289b193a3b7f1abf17fee1d4fa89814762f  tcllib-1.21.tar.xz
+# From https://core.tcl-lang.org/tcllib/uv/tcllib-2.0.SHA256
+sha256  642c2c679c9017ab6fded03324e4ce9b5f4292473b62520e82aacebb63c0ce20  tcllib-2.0.tar.xz
 
 # Locally computed:
 sha256  38e1f556213f4008cfd280457af57c76a1fe043dc026ece1c704c09b5f6e865c  license.terms
package/tcllib/tcllib.mk +9 -2
index 1f2b575b29..37745041a1 100644
@@ -4,12 +4,19 @@
 #
 ################################################################################
 
-TCLLIB_VERSION = 1.21
+TCLLIB_VERSION = 2.0
 TCLLIB_SOURCE = tcllib-$(TCLLIB_VERSION).tar.xz
-TCLLIB_SITE = http://downloads.sourceforge.net/project/tcllib/tcllib/$(TCLLIB_VERSION)
+TCLLIB_SITE = https://downloads.sourceforge.net/project/tcllib/tcllib/$(TCLLIB_VERSION)
 TCLLIB_LICENSE = TCL
 TCLLIB_LICENSE_FILES = license.terms
 TCLLIB_DEPENDENCIES = host-tcl
 TCLLIB_CONF_ENV = ac_cv_path_tclsh="$(HOST_DIR)/bin/tclsh$(TCL_VERSION_MAJOR)"
 
+# tcllib is a pure Tcl library with no compilation step. Upstream 2.0 set
+# "all: install" in its Makefile, which tries to install to host /usr during
+# the build stage when DESTDIR is empty. Override BUILD_CMDS to do nothing.
+define TCLLIB_BUILD_CMDS
+	true
+endef
+
 $(eval $(autotools-package))
Signature · 6 lines
2.56.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

PATCH v3 2/2 package/tcl: bump to version 9.0.3

In reply to Shubham Chakraborty

Bump the version of tcl to 9.0.3. This is a major version upgrade from 8.6 to 9.0 series.

Notable changes in Tcl 9.0 include:
- 64-bit Capacity: Data values larger than 2Gb
- Unicode and Encodings: full codepoint range, added encodings, encoding profiles to govern I/O, and more.
- Zip Filesystems: mount zipfiles as filesystems
- Attached Archives: enable starkit-style deployment of apps, with support data in filesystem archives attached to executable or libraries. Build tclsh and wish this way.
- New Notifiers: The central event handling engine in Tcl is now constructed on top of the system calls epoll or kqueue when they are available. The select based implementation also remains for platforms where they are not.

Build / Cross-compilation fixes for Tcl 9.0 ZipFS:
- In Tcl 9.0, Zip virtual filesystems (ZipFS) are built into the core package and bundled packages (itcl, thread). Generating these zip archives during cross-compilation requires running a native tclsh.
- Add host-tcl to TCL_DEPENDENCIES.
- Add host-zlib to HOST_TCL_DEPENDENCIES as <zlib.h> is now required for host-tcl in minimal build environments.
- Pass TCLSH in TCL_MAKE_OPTS pointing to $(HOST_DIR)/bin/tclsh$(TCL_VERSION_MAJOR) to ensure sub-Makefiles use the native host interpreter without inheriting target LD_LIBRARY_PATH settings.

Note on bundled packages:
Unlike v1, we do not remove the bundled itcl (Incr Tcl) and thread packages. These packages were already present in 8.6 and built by default. Removing them in Tcl 9.0 would break compatibility for existing runtime scripts relying on them (Buildroot has no standalone packages for them).

More Details & Changelogs:
- https://www.tcl-lang.org/software/tcltk/9.0.html

Tested using:
utils/test-pkg -a -c /tmp/tcl.config -p tcl
(Result: 32 builds, 4 skipped, 0 build failed)

---
Changes v2 -> v3:
- Add host-zlib dependency to HOST_TCL_DEPENDENCIES to fix host-tcl build failures in minimal environments lacking system zlib headers (reported by Thomas Petazzoni).
- Remove HOST_TCL_SYMLINK_TCLSH post-install hook as no packages in Buildroot rely on an unversioned host tclsh symlink (suggested by Thomas Petazzoni).
- Drop redundant TCLSH_PROG from TCL_MAKE_OPTS, keeping only TCLSH= (suggested by Thomas Petazzoni).
- Preceded by a patch bumping tcllib to 2.0 to resolve Tcl 9.0 build breakage (reported by Thomas Petazzoni).

Changes v1 -> v2:
- Reverted removal of bundled 'itcl' and 'thread' packages to prevent breaking runtime scripts relying on them.
- Rewrote commit message highlights to accurately match official Tcl 9.0 release notes at https://www.tcl-lang.org/software/tcltk/9.0.html.
- Added explicit note on bundled packages rationale in commit body.
- Added host-tcl dependency and host tclsh symlink to fix ZipFS build failures during cross-compilation.
- Overrode TCLSH and TCLSH_PROG in TCL_MAKE_OPTS to prevent LD_LIBRARY_PATH pollution during cross-compilation.
- Ran full 32-toolchain test matrix via test-pkg -a (28 builds OK, 4 skipped, 0 failed).

---
 package/tcl/tcl.hash | 2 +-
 package/tcl/tcl.mk   | 9 +++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)
package/tcl/tcl.hash +1 -1
index d67a7c4e74..b5f401e83d 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  861e159753f2e2fbd6ec1484103715b0be56be3357522b858d3cbb5f893ffef1  tcl8.6.15-src.tar.gz
+sha256  2537ba0c86112c8c953f7c09d33f134dd45c0fb3a71f2d7f7691fd301d2c33a6  tcl9.0.3-src.tar.gz
 sha256  c0a69a2bfd757361ec7e6143973b103c90409316b49e9c88db26ad6388e79f16  license.terms
package/tcl/tcl.mk +7 -2
index 0cd242a2e9..bb85f57c13 100644
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-TCL_VERSION_MAJOR = 8.6
-TCL_VERSION = $(TCL_VERSION_MAJOR).15
+TCL_VERSION_MAJOR = 9.0
+TCL_VERSION = $(TCL_VERSION_MAJOR).3
 TCL_SOURCE = tcl$(TCL_VERSION)-src.tar.gz
 TCL_SITE = http://downloads.sourceforge.net/project/tcl/Tcl/$(TCL_VERSION)
 TCL_LICENSE = TCL
@@ -73,10 +73,15 @@ define TCL_REMOVE_EXTRA
 endef
 TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_EXTRA
 
+TCL_MAKE_OPTS = TCLSH="$(HOST_DIR)/bin/tclsh$(TCL_VERSION_MAJOR)"
+
 TCL_DEPENDENCIES = $(if $(BR2_PACKAGE_SQLITE),sqlite) \
 	$(if $(BR2_PACKAGE_MARIADB),mariadb) \
 	$(if $(BR2_PACKAGE_POSTGRESQL),postgresql) \
+	host-tcl \
 	zlib
 
+HOST_TCL_DEPENDENCIES = host-zlib
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
Signature · 6 lines
2.56.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot