Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide compatibility with Tcl9.0b3 #6

Merged
merged 3 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions .github/workflows/linux-build-9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Linux (with Tcl 9.0)
on: [push]
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:

- name: Checkout Tcl
uses: actions/checkout@v4
with:
repository: tcltk/tcl
ref: core-9-0-b3
path: tcl
- name: Configure Tcl
working-directory: tcl/unix
run: |
./configure --prefix=$HOME/tcl_install || {
cat config.log
echo "::error::Failure during Configure Tcl"
exit 1
}
- name: Build Tcl
working-directory: tcl/unix
run: |
make -j || {
echo "::error::Failure during Build Tcl"
exit 1
}
- name: Install Tcl
working-directory: tcl/unix
run: |
make install || {
echo "::error::Failure during Install Tcl"
exit 1
}

- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Configure
run: |
./configure --with-tcl=$HOME/tcl_install/lib "--prefix=$HOME/install dir" "--exec-prefix=$HOME/install dir" || {
cat config.log
echo "::error::Failure during Configure"
exit 1
}
- name: Build
run: |
make || {
echo "::error::Failure during Build"
exit 1
}
- name: Run Tests
run: |
make test || {
echo "::error::Failure during Test"
exit 1
}
env:
ERROR_ON_FAILURES: 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
}
6 changes: 5 additions & 1 deletion .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,20 @@ defaults:
shell: bash
jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
timeout-minutes: 5
strategy:
matrix:
compiler:
- "gcc"
- "clang"
steps:

- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Environment (compiler=${{ matrix.compiler }})
run: |
sudo apt-get install tcl8.6-dev
Expand All @@ -29,6 +32,7 @@ jobs:
env:
COMPILER: ${{ matrix.compiler }}
OPTS: ${{ matrix.compiler }}

- name: Configure
run: |
./configure $CFGOPT "--prefix=$HOME/install dir" "--exec-prefix=$HOME/install dir" || {
Expand Down
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-09-09 Konstantin Kushnir <chpock@gmail.com>
* Provide compatibility with Tcl9.0b3

2024-06-06 Konstantin Kushnir <chpock@gmail.com>
* Bumped version to 1.2.0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ There are also alternatives, but they have their disadvantages:
## <a name='::Introduction-Compatibility'></a>Compatibility

This package requires Tcl 8.6 or later. However it has been tested
with Tcl 8.6.14 and 9.0b2.
with Tcl 8.6.14 and 9.0b3.

## <a name='::Introduction-How_to_build'></a>How to build

Expand Down
2 changes: 1 addition & 1 deletion tests/basic.test
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ test mtls-basic-1.1 { check that mtls::import preserves options } -constraints c

test mtls-basic-1.2 { check that mtls::import preserves options } -constraints client -body {
set s1 [socket google.com 443]
chan configure $s1 -blocking 0 -buffering none -buffersize 12345 -encoding binary -eofchar Z -translation binary
chan configure $s1 -blocking 0 -buffering none -buffersize 12345 -encoding iso8859-1 -eofchar Z -translation binary
set opts1 [chan configure $s1]
set s2 [::mtls::import $s1]
set opts2 [chan configure $s2]
Expand Down