From patchwork Fri Mar 6 15:21:09 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 82714 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B982EFCB615 for ; Fri, 6 Mar 2026 15:21:20 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.71597.1772810475611674492 for ; Fri, 06 Mar 2026 07:21:16 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C7F80497 for ; Fri, 6 Mar 2026 07:21:08 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id AF9FE3F836 for ; Fri, 6 Mar 2026 07:21:14 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/2] tcl: prefer tcl's own tzdata Date: Fri, 6 Mar 2026 15:21:09 +0000 Message-ID: <20260306152110.47750-1-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 06 Mar 2026 15:21:20 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/232578 The little thread that was "one of the tcl test cases fails with system tzdata" has unravelled upstream into a series of problems with the tz code when the system tzdata is used: https://core.tcl-lang.org/tcl/tktview/51aa53616067cb63900b17ca1d71f07b094ffa1a Add a PACKAGECONFIG for the option, and default to using the tcl tzdata until the issues are resolved upstream. Signed-off-by: Ross Burton --- meta/recipes-devtools/tcltk/tcl_9.0.3.bb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/meta/recipes-devtools/tcltk/tcl_9.0.3.bb b/meta/recipes-devtools/tcltk/tcl_9.0.3.bb index 3c0a257238..18de3a333a 100644 --- a/meta/recipes-devtools/tcltk/tcl_9.0.3.bb +++ b/meta/recipes-devtools/tcltk/tcl_9.0.3.bb @@ -38,11 +38,10 @@ EXTRA_AUTORECONF = "--exclude=aclocal" EXTRA_OECONF = "--disable-rpath --enable-man-suffix=tcl9 --disable-zipfs" -# Prevent installing copy of tzdata based on tzdata installation on the build host -# It doesn't install tzdata if one of the following files exist on the host: -# /usr/share/zoneinfo/UTC /usr/share/zoneinfo/GMT /usr/share/lib/zoneinfo/UTC /usr/share/lib/zoneinfo/GMT /usr/lib/zoneinfo/UTC /usr/lib/zoneinfo/GMT -# otherwise "/usr/lib/tcl8.6/tzdata" is included in tcl package -EXTRA_OECONF += "--with-tzdata=no" +PACKAGECONFIG ??= "" +# Use of system tzdata is not recommended at present: +# https://core.tcl-lang.org/tcl/tktview/51aa53616067cb63900b17ca1d71f07b094ffa1a +PACKAGECONFIG[system-tzdata] = "--with-tzdata=no,--with-tzdata=yes,,tzdata" do_install() { autotools_do_install @@ -69,7 +68,7 @@ FILES:${PN}-dev += "${libdir}/tclConfig.sh ${libdir}/tclooConfig.sh" # isn't getting picked up by shlibs code RDEPENDS:${PN} += "tcl-lib" -RDEPENDS:${PN}-ptest += "libgcc locale-base-en-us tzdata" +RDEPENDS:${PN}-ptest += "libgcc locale-base-en-us" BBCLASSEXTEND = "native nativesdk"