summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-11-12 18:56:14 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-11-12 18:56:14 (GMT)
commitf43f72e2784d0139fb1610485983dac14bbf99e5 (patch)
tree0e9865846c71b8fe09c23b392ebe90b4719108b6
parent8acdad3fd67a17ad88c9ba7142574202c7b1aeff (diff)
downloadtk-f43f72e2784d0139fb1610485983dac14bbf99e5.zip
tk-f43f72e2784d0139fb1610485983dac14bbf99e5.tar.gz
tk-f43f72e2784d0139fb1610485983dac14bbf99e5.tar.bz2
Prepare "trunk" for Tk 9.0 development
-rw-r--r--.github/workflows/linux-build.yml5
-rw-r--r--.github/workflows/linux-with-tcl86-build.yml177
-rw-r--r--.github/workflows/linux-with-tcl87-build.yml (renamed from .github/workflows/linux-with-tcl9-build.yml)7
-rw-r--r--.github/workflows/linux-with-tcl91-build.yml1
-rw-r--r--.github/workflows/mac-build.yml9
-rw-r--r--.github/workflows/onefiledist.yml15
-rw-r--r--.github/workflows/win-build.yml9
-rw-r--r--.travis.yml1
-rw-r--r--README.md8
-rw-r--r--generic/tk.h31
-rw-r--r--library/tk.tcl2
-rw-r--r--unix/Makefile.in2
-rwxr-xr-xunix/configure49
-rw-r--r--unix/configure.ac27
-rw-r--r--unix/tcl.m412
-rw-r--r--unix/tk.spec6
-rw-r--r--win/README2
-rwxr-xr-xwin/configure43
-rw-r--r--win/configure.ac27
-rw-r--r--win/tcl.m48
20 files changed, 110 insertions, 331 deletions
diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml
index 15273de..7a39e2f 100644
--- a/.github/workflows/linux-build.yml
+++ b/.github/workflows/linux-build.yml
@@ -3,6 +3,7 @@ on:
push:
branches:
- "main"
+ - "core-8-branch"
- "core-8-6-branch"
tags:
- "core-**"
@@ -38,7 +39,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Setup Environment (compiler=${{ matrix.compiler }})
run: |
@@ -142,7 +143,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Setup Environment (compiler=${{ matrix.compiler }})
run: |
diff --git a/.github/workflows/linux-with-tcl86-build.yml b/.github/workflows/linux-with-tcl86-build.yml
deleted file mode 100644
index 769da62..0000000
--- a/.github/workflows/linux-with-tcl86-build.yml
+++ /dev/null
@@ -1,177 +0,0 @@
-name: Linux (with Tcl 8.6)
-on:
- push:
- branches:
- - "main"
- - "core-8-6-branch"
- tags:
- - "core-**"
-permissions:
- contents: read
-defaults:
- run:
- shell: bash
- working-directory: tk/unix
-env:
- ERROR_ON_FAILURES: 1
-jobs:
- build:
- runs-on: ubuntu-22.04
- strategy:
- matrix:
- compiler:
- - "gcc"
- - "clang"
- cfgopt:
- - ""
- - "CFLAGS=-DTK_NO_DEPRECATED=1"
- - "--disable-shared"
- - "--disable-xft"
- - "--disable-xss"
- - "--enable-symbols"
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- with:
- path: tk
- - name: Checkout Tcl
- uses: actions/checkout@v4
- with:
- repository: tcltk/tcl
- ref: core-8-6-branch
- path: tcl
- - name: Setup Environment (compiler=${{ matrix.compiler }})
- run: |
- sudo apt-get install libxss-dev libxft-dev
- mkdir "$HOME/install dir"
- touch tk/doc/man.macros tk/generic/tkStubInit.c
- echo "CFGOPT=$CFGOPT" >> $GITHUB_ENV
- echo "CC=$COMPILER" >> $GITHUB_ENV
- echo "TOOL_DIR=$(cd tcl/tools;pwd)" >> $GITHUB_ENV
- echo "BUILD_CONFIG_ID=$OPTS" >> $GITHUB_ENV
- working-directory: "."
- env:
- CFGOPT: ${{ matrix.cfgopt }}
- COMPILER: ${{ matrix.compiler }}
- OPTS: ${{ matrix.compiler }}${{ matrix.cfgopt }}
- - name: Configure and Build Tcl
- run: |
- ./configure $CFGOPT "--prefix=$HOME/install dir" || {
- cat config.log
- echo "::warning::Failure during Tcl Configure"
- exit 1
- }
- make all install || {
- echo "::warning::Failure during Tcl Build"
- exit 1
- }
- echo "TCL_CONFIG_PATH=`pwd`" >> $GITHUB_ENV
- working-directory: tcl/unix
- - name: Configure (opts=${{ matrix.cfgopt }})
- run: |
- ./configure $CFGOPT --with-tcl=$TCL_CONFIG_PATH --disable-zipfs "--prefix=$HOME/install dir" || {
- cat config.log
- echo "::error::Failure during Configure"
- exit 1
- }
- - name: Build
- run: |
- make binaries libraries || {
- echo "::error::Failure during Build"
- exit 1
- }
- - name: Build Test Harness
- run: |
- make tktest || {
- echo "::error::Failure during Build"
- exit 1
- }
- - name: Test-Drive Installation
- run: |
- make install || {
- echo "::error::Failure during Install"
- exit 1
- }
- - name: Create Distribution Package
- run: |
- make dist || {
- echo "::error::Failure during Distribute"
- exit 1
- }
- - name: Convert Documentation to HTML
- run: |
- make html-tk TOOL_DIR=$TOOL_DIR || {
- echo "::error::Failure during Distribute"
- exit 1
- }
- test:
- runs-on: ubuntu-22.04
- strategy:
- matrix:
- compiler:
- - "gcc"
- cfgopt:
- - ""
- - "--disable-xft"
- - "--enable-symbols"
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- with:
- path: tk
- - name: Checkout Tcl
- uses: actions/checkout@v4
- with:
- repository: tcltk/tcl
- ref: core-8-6-branch
- path: tcl
- - name: Setup Environment (compiler=${{ matrix.compiler }})
- run: |
- sudo apt-get install libxss-dev libxft-dev xvfb libicu-dev
- mkdir "$HOME/install dir"
- touch tk/doc/man.macros tk/generic/tkStubInit.c
- echo "CFGOPT=$CFGOPT" >> $GITHUB_ENV
- echo "CC=$COMPILER" >> $GITHUB_ENV
- working-directory: "."
- env:
- CFGOPT: ${{ matrix.cfgopt }}
- COMPILER: ${{ matrix.compiler }}
- - name: Configure and Build Tcl
- run: |
- ./configure $CFGOPT "--prefix=$HOME/install dir" || {
- cat config.log
- echo "::warning::Failure during Tcl Configure"
- exit 1
- }
- make all install || {
- echo "::warning::Failure during Tcl Build"
- exit 1
- }
- echo "TCL_CONFIG_PATH=`pwd`" >> $GITHUB_ENV
- working-directory: tcl/unix
- - name: Configure ${{ matrix.cfgopt }}
- run: |
- ./configure $CFGOPT --with-tcl=$TCL_CONFIG_PATH "--prefix=$HOME/install dir" || {
- cat config.log
- echo "::error::Failure during Configure"
- exit 1
- }
- - name: Build
- run: |
- make binaries libraries tktest || {
- echo "::error::Failure during Build"
- exit 1
- }
- - name: Run Tests
- run: |
- xvfb-run --auto-servernum make test-classic | tee out-classic.txt
- xvfb-run --auto-servernum make test-ttk | tee out-ttk.txt
- grep -q "Failed 0" out-classic.txt || {
- echo "::error::Failure during Test"
- exit 1
- }
- grep -q "Failed 0" out-ttk.txt || {
- echo "::error::Failure during Test"
- exit 1
- }
- timeout-minutes: 15
diff --git a/.github/workflows/linux-with-tcl9-build.yml b/.github/workflows/linux-with-tcl87-build.yml
index 6a4dd4e..557b0e9 100644
--- a/.github/workflows/linux-with-tcl9-build.yml
+++ b/.github/workflows/linux-with-tcl87-build.yml
@@ -1,8 +1,9 @@
-name: Linux (with Tcl 9.0)
+name: Linux (with Tcl 8.7)
on:
push:
branches:
- "main"
+ - "core-8-branch"
- "core-8-6-branch"
tags:
- "core-**"
@@ -38,7 +39,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: main
+ ref: core-8-branch
path: tcl
- name: Setup Environment (compiler=${{ matrix.compiler }})
run: |
@@ -123,7 +124,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: main
+ ref: core-8-branch
path: tcl
- name: Setup Environment (compiler=${{ matrix.compiler }})
run: |
diff --git a/.github/workflows/linux-with-tcl91-build.yml b/.github/workflows/linux-with-tcl91-build.yml
index b40e6eb..4672b54 100644
--- a/.github/workflows/linux-with-tcl91-build.yml
+++ b/.github/workflows/linux-with-tcl91-build.yml
@@ -3,6 +3,7 @@ on:
push:
branches:
- "main"
+ - "core-8-branch"
- "core-8-6-branch"
tags:
- "core-**"
diff --git a/.github/workflows/mac-build.yml b/.github/workflows/mac-build.yml
index 43f08d6..0dc2bc7 100644
--- a/.github/workflows/mac-build.yml
+++ b/.github/workflows/mac-build.yml
@@ -3,6 +3,7 @@ on:
push:
branches:
- "main"
+ - "core-8-branch"
- "core-8-6-branch"
tags:
- "core-**"
@@ -22,11 +23,11 @@ jobs:
uses: actions/checkout@v4
with:
path: tk
- - name: Check out Tcl 8.7
+ - name: Check out Tcl 9.0
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Prepare checked out repositories
run: |
@@ -74,11 +75,11 @@ jobs:
uses: actions/checkout@v4
with:
path: tk
- - name: Check out Tcl 8.7
+ - name: Check out Tcl 9.0
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Prepare checked out repositories
env:
diff --git a/.github/workflows/onefiledist.yml b/.github/workflows/onefiledist.yml
index 92bc0ff..37f4895 100644
--- a/.github/workflows/onefiledist.yml
+++ b/.github/workflows/onefiledist.yml
@@ -3,6 +3,7 @@ on:
push:
branches:
- "main"
+ - "core-8-branch"
- "core-8-6-branch"
tags:
- "core-**"
@@ -23,11 +24,11 @@ jobs:
uses: actions/checkout@v4
with:
path: tk
- - name: Checkout Tcl 8.7
+ - name: Checkout Tcl 9.0
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Setup Environment
run: |
@@ -57,7 +58,7 @@ jobs:
# TODO: need the Tk version separately for distro naming below
- name: Package
run: |
- cp bin/wish8.7 ${BUILD_NAME}
+ cp bin/wish9.0 ${BUILD_NAME}
chmod +x ${BUILD_NAME}
tar -cf ${BUILD_NAME}.tar ${BUILD_NAME}
working-directory: ${{ env.INST_DIR }}
@@ -87,11 +88,11 @@ jobs:
uses: actions/checkout@v4
with:
path: tk
- - name: Checkout Tcl 8.7
+ - name: Checkout Tcl 9.0
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Checkout create-dmg
uses: actions/checkout@v4
@@ -175,11 +176,11 @@ jobs:
uses: actions/checkout@v4
with:
path: tk
- - name: Checkout Tcl 8.7
+ - name: Checkout Tcl 9.0
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Setup Environment
run: |
diff --git a/.github/workflows/win-build.yml b/.github/workflows/win-build.yml
index b7b2ae8..851774f 100644
--- a/.github/workflows/win-build.yml
+++ b/.github/workflows/win-build.yml
@@ -3,6 +3,7 @@ on:
push:
branches:
- "main"
+ - "core-8-branch"
- "core-8-6-branch"
tags:
- "core-**"
@@ -28,11 +29,11 @@ jobs:
uses: actions/checkout@v4
with:
path: tk
- - name: Checkout Tcl 8.7
+ - name: Checkout Tcl 9.0
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Init MSVC
uses: ilammy/msvc-dev-cmd@v1
@@ -117,11 +118,11 @@ jobs:
install: git mingw-w64-x86_64-toolchain make zip
- name: Checkout Tk
uses: actions/checkout@v4
- - name: Checkout Tcl 8.7
+ - name: Checkout Tcl 9.0
uses: actions/checkout@v4
with:
repository: tcltk/tcl
- ref: core-8-branch
+ ref: main
path: tcl
- name: Prepare
run: |
diff --git a/.travis.yml b/.travis.yml
index 7268340..1767ecb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,7 +16,6 @@ addons:
- libnotify-dev
- libglib2.0-dev
- libxss-dev
- - libxft-dev
- xvfb
homebrew:
packages:
diff --git a/README.md b/README.md
index f9fceb6..eb88ba9 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# README: Tk
-This is the **Tk 8.7a6** source distribution.
+This is the **Tk 9.0b1** source distribution.
You can get any source release of Tk from [our distribution
site](https://sourceforge.net/projects/tcl/files/Tcl/).
@@ -11,6 +11,10 @@ site](https://sourceforge.net/projects/tcl/files/Tcl/).
[![Build Status](https://github.com/tcltk/tk/workflows/macOS/badge.svg?branch=core-8-6-branch)](https://github.com/tcltk/tk/actions?query=workflow%3A%22macOS%22+branch%3Acore-8-6-branch)
<br>
8.7 (in development, daily build))
+[![Build Status](https://github.com/tcltk/tk/workflows/Linux/badge.svg?branch=core-8-branch)](https://github.com/tcltk/tk/actions?query=workflow%3A%22Linux%22+branch%3Acore-8-branch)
+[![Build Status](https://github.com/tcltk/tk/workflows/Windows/badge.svg?branch=core-8-branch)](https://github.com/tcltk/tk/actions?query=workflow%3A%22Windows%22+branch%3Acore-8-branch)
+[![Build Status](https://github.com/tcltk/tk/workflows/macOS/badge.svg?branch=core-8-branch)](https://github.com/tcltk/tk/actions?query=workflow%3A%22macOS%22+branch%3Acore-8-branch)
+9.0 (in development, daily build))
[![Build Status](https://github.com/tcltk/tk/workflows/Linux/badge.svg?branch=main)](https://github.com/tcltk/tk/actions?query=workflow%3A%22Linux%22+branch%3Amain)
[![Build Status](https://github.com/tcltk/tk/workflows/Windows/badge.svg?branch=main)](https://github.com/tcltk/tk/actions?query=workflow%3A%22Windows%22+branch%3Amain)
[![Build Status](https://github.com/tcltk/tk/workflows/macOS/badge.svg?branch=main)](https://github.com/tcltk/tk/actions?query=workflow%3A%22macOS%22+branch%3Amain)
@@ -21,7 +25,7 @@ This directory contains the sources and documentation for Tk, a
cross-platform GUI toolkit implemented with the Tcl scripting language.
For details on features, incompatibilities, and potential problems with
-this release, see [the Tcl/Tk 8.7 Web page](https://www.tcl-lang.org/software/tcltk/8.7.html)
+this release, see [the Tcl/Tk 9.0 Web page](https://www.tcl-lang.org/software/tcltk/9.0.html)
or refer to the "changes" file in this directory, which contains a
historical record of all changes to Tk.
diff --git a/generic/tk.h b/generic/tk.h
index 481714a..241eca5 100644
--- a/generic/tk.h
+++ b/generic/tk.h
@@ -17,8 +17,8 @@
#define _TK
#include <tcl.h>
-#if (TCL_MAJOR_VERSION < 8) || (TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION < 6)
-# error Tk 8.7 must be compiled with tcl.h from Tcl 8.6 or better
+#if (TCL_MAJOR_VERSION < 8) || (TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION < 7)
+# error Tk 9.0 must be compiled with tcl.h from Tcl 8.7 or better
#endif
#ifndef EXTERN
@@ -66,17 +66,16 @@ extern "C" {
*/
#ifndef TK_MAJOR_VERSION
-# define TK_MAJOR_VERSION 8
+# define TK_MAJOR_VERSION 9
#endif
-#if TK_MAJOR_VERSION != 8
-# error "This header-file is for Tk 8 only"
-#endif
-#define TK_MINOR_VERSION 7
-#define TK_RELEASE_LEVEL TCL_ALPHA_RELEASE
-#define TK_RELEASE_SERIAL 6
-
-#define TK_VERSION "8.7"
-#define TK_PATCH_LEVEL "8.7a6"
+#if TK_MAJOR_VERSION == 9
+# define TK_MINOR_VERSION 0
+# define TK_RELEASE_LEVEL TCL_BETA_RELEASE
+# define TK_RELEASE_SERIAL 0
+
+# define TK_VERSION "9.0"
+# define TK_PATCH_LEVEL "9.0b1"
+#endif /* TK_MAJOR_VERSION */
/*
* A special definition used to allow this header file to be included from
@@ -146,14 +145,6 @@ typedef struct Tk_StyledElement_ *Tk_StyledElement;
*/
typedef const char *Tk_Uid;
-
-#if (TCL_MAJOR_VERSION < 9) && (TCL_MINOR_VERSION < 7)
-# ifndef Tcl_Size
-# define Tcl_Size int
-# endif
-# define TCL_SIZE_MAX INT_MAX
-# define TCL_SIZE_MODIFIER ""
-#endif
/*
*----------------------------------------------------------------------
diff --git a/library/tk.tcl b/library/tk.tcl
index a6dc37c..1fc0ab9 100644
--- a/library/tk.tcl
+++ b/library/tk.tcl
@@ -11,7 +11,7 @@
# this file, and for a DISCLAIMER OF ALL WARRANTIES.
# Verify that we have Tk binary and script components from the same release
-package require -exact tk 8.7a6
+package require -exact tk 9.0b1
# Create a ::tk namespace
namespace eval ::tk {
diff --git a/unix/Makefile.in b/unix/Makefile.in
index 9fce557..82c9480 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -112,7 +112,7 @@ TCL_PLATFORM_DIR = $(TCLDIR)/unix
# for this version of Tk:
TCL_BIN_DIR = @TCL_BIN_DIR@
-# The linker flags needed to link in the Tcl library (ex: -ltcl8.7)
+# The linker flags needed to link in the Tcl library (ex: -ltcl9.0)
TCL_LIB_FLAG = @TCL_LIB_FLAG@
# Flag, 1: we're building a shared lib, 0 we're not
diff --git a/unix/configure b/unix/configure
index 065c0bf..146c35f 100755
--- a/unix/configure
+++ b/unix/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.71 for tk 8.7.
+# Generated by GNU Autoconf 2.71 for tk 9.0.
#
#
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
@@ -608,8 +608,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='tk'
PACKAGE_TARNAME='tk'
-PACKAGE_VERSION='8.7'
-PACKAGE_STRING='tk 8.7'
+PACKAGE_VERSION='9.0'
+PACKAGE_STRING='tk 9.0'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@@ -1382,7 +1382,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures tk 8.7 to adapt to many kinds of systems.
+\`configure' configures tk 9.0 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1448,7 +1448,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of tk 8.7:";;
+ short | recursive ) echo "Configuration of tk 9.0:";;
esac
cat <<\_ACEOF
@@ -1564,7 +1564,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-tk configure 8.7
+tk configure 9.0
generated by GNU Autoconf 2.71
Copyright (C) 2021 Free Software Foundation, Inc.
@@ -1920,7 +1920,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by tk $as_me 8.7, which was
+It was created by tk $as_me 9.0, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ $0$ac_configure_args_raw
@@ -2582,10 +2582,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
-TK_VERSION=8.7
-TK_MAJOR_VERSION=8
-TK_MINOR_VERSION=7
-TK_PATCH_LEVEL="a6"
+TK_VERSION=9.0
+TK_MAJOR_VERSION=9
+TK_MINOR_VERSION=0
+TK_PATCH_LEVEL="b1"
VERSION=${TK_VERSION}
LOCALES="cs da de el en en_gb eo es fr hu it nl pl pt ru sv"
@@ -2678,11 +2678,11 @@ printf "%s\n" "$as_me: WARNING: --with-tcl argument should refer to directory co
`ls -d /usr/local/lib 2>/dev/null` \
`ls -d /usr/contrib/lib 2>/dev/null` \
`ls -d /usr/pkg/lib 2>/dev/null` \
- `ls -d /usr/lib/tcl8.7 2>/dev/null` \
+ `ls -d /usr/lib/tcl9.0 2>/dev/null` \
`ls -d /usr/lib 2>/dev/null` \
`ls -d /usr/lib64 2>/dev/null` \
- `ls -d /usr/local/lib/tcl8.7 2>/dev/null` \
- `ls -d /usr/local/lib/tcl/tcl8.7 2>/dev/null` \
+ `ls -d /usr/local/lib/tcl9.0 2>/dev/null` \
+ `ls -d /usr/local/lib/tcl/tcl9.0 2>/dev/null` \
; do
if test -f "$i/tclConfig.sh" ; then
ac_cv_c_tclconfig="`(cd $i; pwd)`"
@@ -2780,12 +2780,8 @@ printf "%s\n" "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
if test "${TCL_MAJOR_VERSION}" -lt 9 ; then
-if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
- as_fn_error $? "${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.6+
-Found config for Tcl ${TCL_VERSION}" "$LINENO" 5
-fi
-if test "${TCL_MINOR_VERSION}" -lt 6 ; then
- as_fn_error $? "${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.6+
+if test "${TCL_MINOR_VERSION}" -lt 7 ; then
+ as_fn_error $? "${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.7+
Found config for Tcl ${TCL_VERSION}" "$LINENO" 5
fi
fi
@@ -8919,17 +8915,8 @@ fi
#--------------------------------------------------------------------
# Replace ${VERSION} with contents of ${TK_VERSION}
-if test "${TCL_MAJOR_VERSION}" -gt 8 ; then
TK_STUB_LIB_FILE="libtkstub.a"
TK_STUB_LIB_FLAG="-ltkstub"
-else
- eval "TK_STUB_LIB_FILE=libtkstub${TK_UNSHARED_LIB_SUFFIX}"
-if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
- TK_STUB_LIB_FLAG="-ltkstub${TK_VERSION}"
-else
- TK_STUB_LIB_FLAG="-ltkstub`echo ${TK_VERSION} | tr -d .`"
-fi
-fi
eval "TK_STUB_LIB_DIR=\"${libdir}\""
TK_BUILD_STUB_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}"
@@ -9551,7 +9538,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by tk $as_me 8.7, which was
+This file was extended by tk $as_me 9.0, which was
generated by GNU Autoconf 2.71. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -9610,7 +9597,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
-tk config.status 8.7
+tk config.status 9.0
configured by $0, generated by GNU Autoconf 2.71,
with options \\"\$ac_cs_config\\"
diff --git a/unix/configure.ac b/unix/configure.ac
index 38eda9d..6c0433a 100644
--- a/unix/configure.ac
+++ b/unix/configure.ac
@@ -3,7 +3,7 @@ dnl This file is an input file used by the GNU "autoconf" program to
dnl generate the file "configure", which is run during Tk installation
dnl to configure the system for the local environment.
-AC_INIT([tk],[8.7])
+AC_INIT([tk],[9.0])
AC_PREREQ([2.69])
dnl This is only used when included from macosx/configure.ac
@@ -23,10 +23,10 @@ m4_ifdef([SC_USE_CONFIG_HEADERS], [
#endif /* _TKCONFIG */])
])
-TK_VERSION=8.7
-TK_MAJOR_VERSION=8
-TK_MINOR_VERSION=7
-TK_PATCH_LEVEL="a6"
+TK_VERSION=9.0
+TK_MAJOR_VERSION=9
+TK_MINOR_VERSION=0
+TK_PATCH_LEVEL="b1"
VERSION=${TK_VERSION}
LOCALES="cs da de el en en_gb eo es fr hu it nl pl pt ru sv"
@@ -38,12 +38,8 @@ SC_PATH_TCLCONFIG
SC_LOAD_TCLCONFIG
if test "${TCL_MAJOR_VERSION}" -lt 9 ; then
-if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
- AC_MSG_ERROR([${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.6+
-Found config for Tcl ${TCL_VERSION}])
-fi
-if test "${TCL_MINOR_VERSION}" -lt 6 ; then
- AC_MSG_ERROR([${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.6+
+if test "${TCL_MINOR_VERSION}" -lt 7 ; then
+ AC_MSG_ERROR([${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.7+
Found config for Tcl ${TCL_VERSION}])
fi
fi
@@ -714,17 +710,8 @@ AC_SUBST(INSTALL_MSGS)
#--------------------------------------------------------------------
# Replace ${VERSION} with contents of ${TK_VERSION}
-if test "${TCL_MAJOR_VERSION}" -gt 8 ; then
TK_STUB_LIB_FILE="libtkstub.a"
TK_STUB_LIB_FLAG="-ltkstub"
-else
- eval "TK_STUB_LIB_FILE=libtkstub${TK_UNSHARED_LIB_SUFFIX}"
-if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
- TK_STUB_LIB_FLAG="-ltkstub${TK_VERSION}"
-else
- TK_STUB_LIB_FLAG="-ltkstub`echo ${TK_VERSION} | tr -d .`"
-fi
-fi
eval "TK_STUB_LIB_DIR=\"${libdir}\""
TK_BUILD_STUB_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}"
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index a46478c..9e1040c 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -93,11 +93,11 @@ AC_DEFUN([SC_PATH_TCLCONFIG], [
`ls -d /usr/local/lib 2>/dev/null` \
`ls -d /usr/contrib/lib 2>/dev/null` \
`ls -d /usr/pkg/lib 2>/dev/null` \
- `ls -d /usr/lib/tcl8.7 2>/dev/null` \
+ `ls -d /usr/lib/tcl9.0 2>/dev/null` \
`ls -d /usr/lib 2>/dev/null` \
`ls -d /usr/lib64 2>/dev/null` \
- `ls -d /usr/local/lib/tcl8.7 2>/dev/null` \
- `ls -d /usr/local/lib/tcl/tcl8.7 2>/dev/null` \
+ `ls -d /usr/local/lib/tcl9.0 2>/dev/null` \
+ `ls -d /usr/local/lib/tcl/tcl9.0 2>/dev/null` \
; do
if test -f "$i/tclConfig.sh" ; then
ac_cv_c_tclconfig="`(cd $i; pwd)`"
@@ -226,11 +226,11 @@ AC_DEFUN([SC_PATH_TKCONFIG], [
`ls -d /usr/local/lib 2>/dev/null` \
`ls -d /usr/contrib/lib 2>/dev/null` \
`ls -d /usr/pkg/lib 2>/dev/null` \
- `ls -d /usr/lib/tk8.7 2>/dev/null` \
+ `ls -d /usr/lib/tk9.0 2>/dev/null` \
`ls -d /usr/lib 2>/dev/null` \
`ls -d /usr/lib64 2>/dev/null` \
- `ls -d /usr/local/lib/tk8.7 2>/dev/null` \
- `ls -d /usr/local/lib/tcl/tk8.7 2>/dev/null` \
+ `ls -d /usr/local/lib/tk9.0 2>/dev/null` \
+ `ls -d /usr/local/lib/tcl/tk9.0 2>/dev/null` \
; do
if test -f "$i/tkConfig.sh" ; then
ac_cv_c_tkconfig="`(cd $i; pwd)`"
diff --git a/unix/tk.spec b/unix/tk.spec
index 6a6924c..208877f 100644
--- a/unix/tk.spec
+++ b/unix/tk.spec
@@ -4,15 +4,15 @@
Name: tk
Summary: Tk graphical toolkit for the Tcl scripting language.
-Version: 8.7a6
+Version: 9.0b1
Release: 2
License: BSD
Group: Development/Languages
Source: http://prdownloads.sourceforge.net/tcl/tk%{version}-src.tar.gz
URL: https://www.tcl-lang.org/
Buildroot: /var/tmp/%{name}%{version}
-Buildrequires: XFree86-devel tcl >= 8.6.0
-Requires: tcl >= 8.6.0
+Buildrequires: XFree86-devel tcl >= 8.7.0
+Requires: tcl >= 8.7.0
%description
The Tcl (Tool Command Language) provides a powerful platform for
diff --git a/win/README b/win/README
index e371a2c..b8ac0cc 100644
--- a/win/README
+++ b/win/README
@@ -1,4 +1,4 @@
-Tk 8.7 for Windows
+Tk 9.0 for Windows
Originally by Scott Stanton while at Sun Microsystems Labs
diff --git a/win/configure b/win/configure
index ba80bbb..3798e14 100755
--- a/win/configure
+++ b/win/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.71 for tk 8.7.
+# Generated by GNU Autoconf 2.71 for tk 9.0.
#
#
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
@@ -608,8 +608,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='tk'
PACKAGE_TARNAME='tk'
-PACKAGE_VERSION='8.7'
-PACKAGE_STRING='tk 8.7'
+PACKAGE_VERSION='9.0'
+PACKAGE_STRING='tk 9.0'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@@ -1364,7 +1364,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures tk 8.7 to adapt to many kinds of systems.
+\`configure' configures tk 9.0 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1426,7 +1426,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of tk 8.7:";;
+ short | recursive ) echo "Configuration of tk 9.0:";;
esac
cat <<\_ACEOF
@@ -1524,7 +1524,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-tk configure 8.7
+tk configure 9.0
generated by GNU Autoconf 2.71
Copyright (C) 2021 Free Software Foundation, Inc.
@@ -1728,7 +1728,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by tk $as_me 8.7, which was
+It was created by tk $as_me 9.0, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ $0$ac_configure_args_raw
@@ -2393,10 +2393,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
# /bin/sh. The bash shell seems to suffer from some strange failures.
SHELL=/bin/sh
-TK_VERSION=8.7
-TK_MAJOR_VERSION=8
-TK_MINOR_VERSION=7
-TK_PATCH_LEVEL="a6"
+TK_VERSION=9.0
+TK_MAJOR_VERSION=9
+TK_MINOR_VERSION=0
+TK_PATCH_LEVEL="b1"
VER=$TK_MAJOR_VERSION$TK_MINOR_VERSION
#------------------------------------------------------------------------
@@ -4037,15 +4037,10 @@ printf "%s\n" "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
if test "${TCL_MAJOR_VERSION}" -lt 9 ; then
-if test "${TCL_MAJOR_VERSION}" != "${TK_MAJOR_VERSION}"; then
+if test "${TCL_MINOR_VERSION}" -lt 7; then
as_fn_error $? "${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}.
-Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl 8.6+.
-Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.6 or better." "$LINENO" 5
-fi
-if test "${TCL_MINOR_VERSION}" -lt 6; then
- as_fn_error $? "${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}.
-Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl 8.6+.
-Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.6 or better." "$LINENO" 5
+Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl 8.7+.
+Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.7 or better." "$LINENO" 5
fi
fi
@@ -5797,11 +5792,7 @@ else
fi
fi
-if test "${TCL_MAJOR_VERSION}" -gt 8 ; then
- eval "TK_STUB_LIB_FILE=${LIBPREFIX}tkstub${LIBSUFFIX}" ;
-else
- eval "TK_STUB_LIB_FILE=${LIBPREFIX}tkstub${VER}${LIBSUFFIX}" ;
-fi
+eval "TK_STUB_LIB_FILE=${LIBPREFIX}tkstub${LIBSUFFIX}" ;
# FIXME: All of this var junk needs to be done in tcl.m4 !!!!
# I left out the other vars that also need to get defined here.
# we also need to double check about spaces in path names
@@ -6475,7 +6466,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by tk $as_me 8.7, which was
+This file was extended by tk $as_me 9.0, which was
generated by GNU Autoconf 2.71. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -6530,7 +6521,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
-tk config.status 8.7
+tk config.status 9.0
configured by $0, generated by GNU Autoconf 2.71,
with options \\"\$ac_cs_config\\"
diff --git a/win/configure.ac b/win/configure.ac
index 08e0af7..3c29be1 100644
--- a/win/configure.ac
+++ b/win/configure.ac
@@ -3,7 +3,7 @@
# generate the file "configure", which is run during Tk installation
# to configure the system for the local environment.
-AC_INIT([tk],[8.7])
+AC_INIT([tk],[9.0])
AC_CONFIG_SRCDIR([../generic/tk.h])
AC_PREREQ([2.69])
@@ -12,10 +12,10 @@ AC_PREREQ([2.69])
# /bin/sh. The bash shell seems to suffer from some strange failures.
SHELL=/bin/sh
-TK_VERSION=8.7
-TK_MAJOR_VERSION=8
-TK_MINOR_VERSION=7
-TK_PATCH_LEVEL="a6"
+TK_VERSION=9.0
+TK_MAJOR_VERSION=9
+TK_MINOR_VERSION=0
+TK_PATCH_LEVEL="b1"
VER=$TK_MAJOR_VERSION$TK_MINOR_VERSION
#------------------------------------------------------------------------
@@ -77,15 +77,10 @@ SC_PATH_TCLCONFIG($TK_PATCH_LEVEL)
SC_LOAD_TCLCONFIG
if test "${TCL_MAJOR_VERSION}" -lt 9 ; then
-if test "${TCL_MAJOR_VERSION}" != "${TK_MAJOR_VERSION}"; then
+if test "${TCL_MINOR_VERSION}" -lt 7; then
AC_MSG_ERROR([${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}.
-Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl 8.6+.
-Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.6 or better.])
-fi
-if test "${TCL_MINOR_VERSION}" -lt 6; then
- AC_MSG_ERROR([${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}.
-Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl 8.6+.
-Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.6 or better.])
+Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl 8.7+.
+Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.7 or better.])
fi
fi
@@ -247,11 +242,7 @@ else
fi
fi
-if test "${TCL_MAJOR_VERSION}" -gt 8 ; then
- eval "TK_STUB_LIB_FILE=${LIBPREFIX}tkstub${LIBSUFFIX}" ;
-else
- eval "TK_STUB_LIB_FILE=${LIBPREFIX}tkstub${VER}${LIBSUFFIX}" ;
-fi
+eval "TK_STUB_LIB_FILE=${LIBPREFIX}tkstub${LIBSUFFIX}" ;
# FIXME: All of this var junk needs to be done in tcl.m4 !!!!
# I left out the other vars that also need to get defined here.
# we also need to double check about spaces in path names
diff --git a/win/tcl.m4 b/win/tcl.m4
index fff706b..4bac910 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -985,13 +985,13 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
#------------------------------------------------------------------------
AC_DEFUN([SC_WITH_TCL], [
- if test -d ../../tcl8.7$1/win; then
- TCL_BIN_DEFAULT=../../tcl8.7$1/win
+ if test -d ../../tcl9.0$1/win; then
+ TCL_BIN_DEFAULT=../../tcl9.0$1/win
else
- TCL_BIN_DEFAULT=../../tcl8.7/win
+ TCL_BIN_DEFAULT=../../tcl9.0/win
fi
- AC_ARG_WITH(tcl, [ --with-tcl=DIR use Tcl 8.7 binaries from DIR],
+ AC_ARG_WITH(tcl, [ --with-tcl=DIR use Tcl 9.0 binaries from DIR],
TCL_BIN_DIR=$withval, TCL_BIN_DIR=`cd $TCL_BIN_DEFAULT; pwd`)
if test ! -d $TCL_BIN_DIR; then
AC_MSG_ERROR(Tcl directory $TCL_BIN_DIR does not exist)