]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-gui: Make TclTk 8.6 the minimum, allow 8.7
authorMark Levedahl <mlevedahl@gmail.com>
Sat, 17 May 2025 02:25:17 +0000 (22:25 -0400)
committerMark Levedahl <mlevedahl@gmail.com>
Fri, 18 Jul 2025 13:50:28 +0000 (09:50 -0400)
git-gui requires that Tcl and Tk are 8.5, though the check using
'package require' allows 8.6. As git-gui runs under wish, both Tcl and
Tk are always available and of the same version, so only one need be
checked.

The 8.5 requirement is very outdated as the earliest Tcl currently
shipping on any supported OS is 8.6. 8.7 is in alpha test and is
generally compatible with 8.6, so should also be allowed.  Tcl 9.0 has
planned compatibility breaking changes so cannot be allowed.

Let's update the requirements to be 8.6 or 8.7, and check only on Tcl as
Tk will be the same version.

Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
git-gui.sh

index c77c05edde3b544e3903167e82f6d6ab25843e14..fc224e0a34a7cd7d21f7635c5e89f39dcdfd8d44 100755 (executable)
@@ -30,9 +30,7 @@ along with this program; if not, see <https://www.gnu.org/licenses/>.}]
 ##
 ## Tcl/Tk sanity check
 
-if {[catch {package require Tcl 8.5} err]
- || [catch {package require Tk  8.5} err]
-} {
+if {[catch {package require Tcl 8.6-8.8} err]} {
        catch {wm withdraw .}
        tk_messageBox \
                -icon error \