tebako 0.13.4 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CMakeLists.txt +1 -1
  3. data/README.adoc +0 -1
  4. data/common.env +2 -2
  5. data/lib/tebako/packager/pass2msys_patch.rb +5 -1
  6. data/lib/tebako/scenario_manager.rb +2 -0
  7. data/lib/tebako/version.rb +1 -1
  8. data/tools/.github/workflows/build-containers.yml +1 -1
  9. data/tools/.github/workflows/lint.yml +1 -1
  10. data/tools/.github/workflows/test.yml +11 -29
  11. data/tools/ci-scripts/arm-brew-install.sh +1 -1
  12. data/tools/ci-scripts/arm-brew-setup.sh +1 -1
  13. data/tools/ci-scripts/level-up.sh +1 -1
  14. data/tools/ci-scripts/patch-fbthrift.sh +17 -1
  15. data/tools/ci-scripts/patch-folly.sh +27 -2
  16. data/tools/ci-scripts/patch-glog.sh +57 -0
  17. data/tools/ci-scripts/patch-zstd.sh +57 -0
  18. data/tools/ci-scripts/tools.sh +1 -1
  19. data/tools/ci-scripts/x86-brew-install.sh +1 -1
  20. data/tools/ci-scripts/x86-brew-setup.sh +1 -1
  21. data/tools/cmake-scripts/def-external-project.cmake +1 -1
  22. data/tools/cmake-scripts/macos-environment.cmake +1 -1
  23. data/tools/cmake-scripts/msys-environment.cmake +1 -1
  24. data/tools/cmake-scripts/setup-libarchive.cmake +3 -7
  25. data/tools/cmake-scripts/setup-libfmt.cmake +1 -1
  26. data/tools/cmake-scripts/setup-libhowardhinnerdate.cmake +1 -1
  27. data/tools/cmake-scripts/version.cmake +1 -1
  28. data/tools/dwarfs-test-helper/CMakeLists.txt +1 -1
  29. data/tools/include/pro-statvfs.h +1 -1
  30. data/tools/tests/cmake/CMakeLists.txt +1 -1
  31. data/tools/tests/setup-libfmt/CMakeLists.txt +1 -1
  32. data/tools/tests/setup-libhowardhinnerdate/CMakeLists.txt +1 -1
  33. data/tools/tests/setup-librachive/CMakeLists.txt +1 -1
  34. data/tools/tests/setup-libutfcpp/CMakeLists.txt +1 -1
  35. data/tools/tests/setup-openssl/CMakeLists.txt +1 -1
  36. metadata +4 -3
  37. data/tools/cmake-scripts/setup-openssl-1.1.1.cmake +0 -95
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd66721b801c97f1aea46d966e31f06f87e1c317a351c912b41243b65180e8ee
4
- data.tar.gz: f232c76a4cb3624435785ad467fc90d88dd95e933685ce05fedbf5b73098f6d9
3
+ metadata.gz: 4dcc229108a9b5326a4bcb8b0b5759309a1ab5f6811e5a8ab7fd2137ea962039
4
+ data.tar.gz: 0efd3f0bbaac72b4baf9e7f738d530a98643657e0d8a40fa9700e06943575d82
5
5
  SHA512:
6
- metadata.gz: 3bafe4874a1a36fa91099f1aa55f9236bdb469363b6d3bc83daed7be6932f4b19dde841b4d2f1f4ab2c70d979407760b444e95e28e00bd28e8f7b09772f5cca8
7
- data.tar.gz: 19683dd962edcc5e80d31e302874e09593b97c1a2c7eec5fd2ccc81f29ccd87054f1018359f37db20a121d3d59c9aea99d5e8bf4ad944c857ce331842ad42bc4
6
+ metadata.gz: d182cfef39a103bd9c5b4cd2aaf2dd230bd10c4383d172920948a55f6994673fc53783fe07305fbc27219d2888ff9f3e92ab0d701fd47436ad7510e7f50f4958
7
+ data.tar.gz: 1a7bc54186bdece6993acedce77d40e20ab032a01b1d0243d33e39082cfb3ca36704517ca8725dbf8064706d191690942f8ee3f821ae7881bd52d38cdc2af97d
data/CMakeLists.txt CHANGED
@@ -178,7 +178,7 @@ string(CONCAT RUBY_API_VER ${RUBY_VER_BASE} ".0")
178
178
  # list(GET LIBDWARFS_WR_VER_COMPONENTS 2 LIBDWARFS_WR_VER_PATCH)
179
179
  # set (LIBDWARFS_WR_VER_M ${LIBDWARFS_WR_VER_MAJOR}.${LIBDWARFS_WR_VER_MINOR}.${LIBDWARFS_WR_VER_PATCH})
180
180
  #else(DWARFS_PRELOAD)
181
- def_ext_prj_g(DWARFS_WR "v0.10.3")
181
+ def_ext_prj_g(DWARFS_WR "v0.11.0")
182
182
  #endif(DWARFS_PRELOAD)
183
183
 
184
184
  def_ext_prj_g(PATCHELF "65e14792061c298f1d2bc44becd48a10cbf0bc81")
data/README.adoc CHANGED
@@ -84,7 +84,6 @@ architectures.
84
84
  | Alpine 3.17 | amd64 | gcc/g+\+: default; clang/clang++: default
85
85
 
86
86
  3+| **macOS**
87
- | macOS 13 (Ventura) | amd64, arm64 | tested agains xcode: [14.3.1]
88
87
  | macOS 14 (Sonoma) | amd64, arm64 | tested agains xcode: [15.0.1, 15.4]
89
88
  | macOS 15 (Sequoia) | amd64, arm64 | tested agains xcode: [16.1]
90
89
 
data/common.env CHANGED
@@ -1,5 +1,5 @@
1
1
  BUILD_TYPE=Release
2
2
  DEPS=deps
3
- INCBIN_TAG=348e36b
4
- DWARFS_WR_TAG=v0.10.3
3
+ INCBIN_TAG=6e576cae5ab5810f25e2631f2e0b80cbe7dc8cbf
4
+ DWARFS_WR_TAG=v0.11.0
5
5
  RUBY_VER=3.3.7
@@ -113,7 +113,11 @@ module Tebako
113
113
  WIN32_WIN32_C_MSYS_PATCHES = {
114
114
  "#if defined _MSC_VER && _MSC_VER <= 1200" =>
115
115
  "#{PatchLiterals::C_FILE_SUBST_LESS}\n#if defined _MSC_VER && _MSC_VER <= 1200",
116
- "len = GetCurrentDirectoryW(0, NULL);" => WIN32_WIN32_C_MSYS_SUBST
116
+ "len = GetCurrentDirectoryW(0, NULL);" => WIN32_WIN32_C_MSYS_SUBST,
117
+ "clock_gettime(clockid_t clock_id, struct timespec *sp)" =>
118
+ "_dummy_clock_gettime(clockid_t clock_id, struct timespec *sp)",
119
+ "clock_getres(clockid_t clock_id, struct timespec *sp)" =>
120
+ "_dummy_clock_getres(clockid_t clock_id, struct timespec *sp)"
117
121
  }.freeze
118
122
 
119
123
  # Msys Pass2 patches
@@ -56,6 +56,8 @@ module Tebako
56
56
  def b_env
57
57
  u_flags = if @macos
58
58
  "-DTARGET_OS_SIMULATOR=0 -DTARGET_OS_IPHONE=0 #{ENV.fetch("CXXFLAGS", nil)}"
59
+ elsif @msys
60
+ "-DGFLAGS_IS_A_DLL=0 #{ENV.fetch("CXXFLAGS", nil)}"
59
61
  else
60
62
  ENV.fetch("CXXFLAGS", nil)
61
63
  end
@@ -26,5 +26,5 @@
26
26
  # POSSIBILITY OF SUCH DAMAGE.
27
27
 
28
28
  module Tebako
29
- VERSION = "0.13.4"
29
+ VERSION = "0.14.0"
30
30
  end
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2025, [Ribose Inc](https://www.ribose.com).
1
+ # Copyright (c) 2025 [Ribose Inc](https://www.ribose.com).
2
2
  # All rights reserved.
3
3
  # This file is a part of the Tebako project.
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2022-2025, [Ribose Inc](https://www.ribose.com).
1
+ # Copyright (c) 2022-2025 [Ribose Inc](https://www.ribose.com).
2
2
  # All rights reserved.
3
3
  # This file is a part of the Tebako project.
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2024-2025, [Ribose Inc](https://www.ribose.com).
1
+ # Copyright (c) 2024-2025 [Ribose Inc](https://www.ribose.com).
2
2
  # All rights reserved.
3
3
  # This file is a part of the Tebako project.
4
4
  #
@@ -28,7 +28,13 @@ name: test
28
28
  on:
29
29
  push:
30
30
  branches: [ master, main ]
31
+ paths-ignore:
32
+ - 'docker/**'
33
+ - '.github/workflows/build-containers.yml'
31
34
  pull_request:
35
+ paths-ignore:
36
+ - 'docker/**'
37
+ - '.github/workflows/build-containers.yml'
32
38
  workflow_dispatch:
33
39
 
34
40
  concurrency:
@@ -144,7 +150,6 @@ jobs:
144
150
  run: |
145
151
  set -o errexit -o pipefail -o noclobber -o nounset
146
152
  test -f build/setup-librachive/deps/lib/pkgconfig/libarchive.pc
147
- test -f build/setup-librachive/deps/lib/libarchive.so || test -f build/setup-librachive/deps/lib/libarchive.dylib
148
153
  test -f build/setup-librachive/deps/lib/libarchive.a
149
154
  test -f build/setup-librachive/deps/include/archive.h
150
155
  test -f build/setup-librachive/deps/include/archive_entry.h
@@ -178,7 +183,6 @@ jobs:
178
183
  run: |
179
184
  set -o errexit -o pipefail -o noclobber -o nounset
180
185
  test -f build/setup-librachive/deps/lib/pkgconfig/libarchive.pc
181
- test -f build/setup-librachive/deps/lib/libarchive.so || test -f build/setup-librachive/deps/lib/libarchive.dylib
182
186
  test -f build/setup-librachive/deps/lib/libarchive.a
183
187
  test -f build/setup-librachive/deps/include/archive.h
184
188
  test -f build/setup-librachive/deps/include/archive_entry.h
@@ -288,6 +292,7 @@ jobs:
288
292
  test-cross-brew-install:
289
293
  name: test arm-brew-setup/install
290
294
  runs-on: macos-13
295
+ continue-on-error: true
291
296
  steps:
292
297
  - name: Checkout
293
298
  uses: actions/checkout@v4
@@ -316,34 +321,11 @@ jobs:
316
321
  - name: Checkout
317
322
  uses: actions/checkout@v4
318
323
 
324
+ - name: Checkout
325
+ uses: actions/checkout@v4
326
+
319
327
  - name: Install packages
320
328
  run: brew install flex bison bash
321
329
 
322
330
  - name: Run CMake test
323
331
  run: cmake -B test.build -S tests/cmake
324
-
325
- test-setup-openssl-alpine:
326
- name: test openssl 1.1.1 setup on alpine
327
- runs-on: ubuntu-latest
328
- container:
329
- image: 'ghcr.io/${{ github.repository_owner }}/tebako-alpine-3.17-dev'
330
-
331
- steps:
332
- - name: Install packages
333
- run: |
334
- apk --no-cache --upgrade add git bash cmake make build-base autoconf binutils-dev linux-headers
335
- git config --global --add safe.directory $PWD
336
-
337
- - name: Checkout
338
- uses: actions/checkout@v4
339
-
340
- - name: Run cmake script
341
- run: |
342
- cmake -B build/setup-openssl tests/setup-openssl
343
- cmake --build build/setup-openssl
344
-
345
- - name: Test
346
- run: |
347
- set -o errexit -o pipefail -o noclobber -o nounset
348
- v=$(build/setup-openssl/deps/bin/openssl version)
349
- [ "$v" = "OpenSSL 1.1.1w 11 Sep 2023" ]
@@ -1,6 +1,6 @@
1
1
  #! /bin/bash
2
2
  #
3
- # Copyright (c) 2022, [Ribose Inc](https://www.ribose.com).
3
+ # Copyright (c) 2022-2025 [Ribose Inc](https://www.ribose.com).
4
4
  # All rights reserved.
5
5
  # This file is a part of the Tebako project.
6
6
  #
@@ -1,6 +1,6 @@
1
1
  #! /bin/bash
2
2
  #
3
- # Copyright (c) 2022, [Ribose Inc](https://www.ribose.com).
3
+ # Copyright (c) 2022-2025 [Ribose Inc](https://www.ribose.com).
4
4
  # All rights reserved.
5
5
  # This file is a part of the Tebako project.
6
6
  #
@@ -1,6 +1,6 @@
1
1
  #! /bin/bash
2
2
  #
3
- # Copyright (c) 2022, [Ribose Inc](https://www.ribose.com).
3
+ # Copyright (c) 2022-2025 [Ribose Inc](https://www.ribose.com).
4
4
  # All rights reserved.
5
5
  # This file is a part of the Tebako project.
6
6
  #
@@ -1,5 +1,5 @@
1
1
  #! /bin/bash
2
- # Copyright (c) 2022,2024 [Ribose Inc](https://www.ribose.com).
2
+ # Copyright (c) 2022-2025 [Ribose Inc](https://www.ribose.com).
3
3
  # All rights reserved.
4
4
  # This file is a part of the Tebako project.
5
5
  #
@@ -52,6 +52,22 @@ else
52
52
  exit 1
53
53
  fi
54
54
 
55
+ re="find_package(Boost REQUIRED filesystem)"
56
+ # shellcheck disable=SC2251
57
+ ! IFS= read -r -d '' sbst << EOM
58
+ if (POLICY CMP0167)
59
+ cmake_policy(SET CMP0167 NEW)
60
+ endif()
61
+
62
+ find_package(Boost REQUIRED filesystem)
63
+ EOM
64
+ do_patch_multiline "$1/CMakeLists.txt" "$re" "$sbst"
65
+
66
+ re="cmake_minimum_required(VERSION 3.1.3 FATAL_ERROR)"
67
+ sbst="cmake_minimum_required(VERSION 3.24.0)"
68
+ "$gSed" -i "s/$re/$sbst/g" "$1/CMakeLists.txt"
69
+
70
+
55
71
  if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then
56
72
  re="ftruncate(file\.fd(), finalBufferSize),"
57
73
  sbst="folly::portability::unistd::ftruncate(file.fd(), finalBufferSize), \/* tebako patched *\/"
@@ -1,5 +1,5 @@
1
1
  #! /bin/bash
2
- # Copyright (c) 2022-2025, [Ribose Inc](https://www.ribose.com).
2
+ # Copyright (c) 2022-2025 [Ribose Inc](https://www.ribose.com).
3
3
  # All rights reserved.
4
4
  # This file is a part of the Tebako project.
5
5
  #
@@ -140,6 +140,10 @@ funky_time_patch() {
140
140
  re="tm\* localtime_r(const time_t\* t, tm\* o)"
141
141
  sbst="tm* _folly_localtime_r(const time_t* t, tm* o) \/* tebako patched *\/"
142
142
  "$GNU_SED" -i "s/$re/$sbst/g" "$1"
143
+
144
+ re="int nanosleep(const struct timespec\* request, struct timespec\* remain) {"
145
+ sbst="int _folly_nanosleep(const struct timespec* request, struct timespec* remain) { \/* tebako patched *\/"
146
+ "$GNU_SED" -i "s/$re/$sbst/g" "$1"
143
147
  }
144
148
 
145
149
  funky_formatter_patch() {
@@ -148,6 +152,27 @@ funky_formatter_patch() {
148
152
  do_patch "$1" "$re" "$sbst"
149
153
  }
150
154
 
155
+
156
+ re="cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)"
157
+ sbst="cmake_minimum_required(VERSION 3.24.0)"
158
+ do_patch "$1/CMakeLists.txt" "$re" "$sbst"
159
+
160
+
161
+ re="find_package(Boost 1.51.0 MODULE"
162
+ # shellcheck disable=SC2251
163
+ ! IFS= read -r -d '' sbst << EOM
164
+ if (POLICY CMP0167)
165
+ cmake_policy(SET CMP0167 NEW)
166
+ endif()
167
+
168
+ find_package(Boost 1.67.0 COMPONENTS
169
+ EOM
170
+ do_patch_multiline "$1/CMake/folly-deps.cmake" "$re" "$sbst"
171
+
172
+ re=" system"
173
+ sbst="# system tebako patched"
174
+ "$GNU_SED" -i "s/$re/$sbst/g" "$1/CMake/folly-deps.cmake"
175
+
151
176
  if [[ "$OSTYPE" == "linux-musl"* ]]; then
152
177
  # https://github.com/facebook/folly/issues/1478
153
178
  re="#elif defined(__FreeBSD__)"
@@ -191,7 +216,7 @@ elif [[ "$OSTYPE" == "darwin"* ]]; then
191
216
  # -- End of tebako patch --
192
217
  EOM
193
218
 
194
- do_patch_multiline "$1/CMakeLists.txt" "$re" "$sbst"
219
+ "$GNU_SED" -i "s/$re/${sbst//$'\n'/"\\n"}/g" "$1/CMakeLists.txt"
195
220
 
196
221
  re="set(OPENSSL_LIBRARIES \"\/usr\/local\/opt\/openssl\/lib\" )"
197
222
  sbst="set(OPENSSL_LIBRARIES \"\${OPENSSL_ROOT_DIR}\/lib\") # tebako patched"
@@ -0,0 +1,57 @@
1
+ #! /bin/bash
2
+ # Copyright (c) 2025 [Ribose Inc](https://www.ribose.com).
3
+ # All rights reserved.
4
+ # This file is a part of the Tebako project.
5
+ #
6
+ # Redistribution and use in source and binary forms, with or without
7
+ # modification, are permitted provided that the following conditions
8
+ # are met:
9
+ # 1. Redistributions of source code must retain the above copyright
10
+ # notice, this list of conditions and the following disclaimer.
11
+ # 2. Redistributions in binary form must reproduce the above copyright
12
+ # notice, this list of conditions and the following disclaimer in the
13
+ # documentation and/or other materials provided with the distribution.
14
+ #
15
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16
+ # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17
+ # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18
+ # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
19
+ # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20
+ # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21
+ # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22
+ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23
+ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24
+ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25
+ # POSSIBILITY OF SUCH DAMAGE.
26
+
27
+ set -o errexit -o pipefail -o noclobber -o nounset
28
+
29
+ # ....................................................
30
+ restore_and_save() {
31
+ echo "Patching $1"
32
+ test -e "$1.old" && cp -f "$1.old" "$1"
33
+ cp -f "$1" "$1.old"
34
+ }
35
+
36
+ do_patch() {
37
+ restore_and_save "$1"
38
+ "$gSed" -i "s/$2/$3/g" "$1"
39
+ }
40
+
41
+ do_patch_multiline() {
42
+ restore_and_save "$1"
43
+ "$gSed" -i "s/$re/${sbst//$'\n'/"\\n"}/g" "$1"
44
+ }
45
+
46
+ if [[ "$OSTYPE" == "linux-gnu"* || "$OSTYPE" == "linux-musl"* || "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then
47
+ gSed="sed"
48
+ elif [[ "$OSTYPE" == "darwin"* ]]; then
49
+ gSed="gsed"
50
+ else
51
+ echo "Unknown OSTYPE=$OSTYPE"
52
+ exit 1
53
+ fi
54
+
55
+ re="cmake_policy (VERSION 3.3)"
56
+ sbst="cmake_policy (VERSION 3.16...3.27)"
57
+ do_patch "$1/cmake/GetCacheVariables.cmake" "$re" "$sbst"
@@ -0,0 +1,57 @@
1
+ #! /bin/bash
2
+ # Copyright (c) 2025 [Ribose Inc](https://www.ribose.com).
3
+ # All rights reserved.
4
+ # This file is a part of the Tebako project.
5
+ #
6
+ # Redistribution and use in source and binary forms, with or without
7
+ # modification, are permitted provided that the following conditions
8
+ # are met:
9
+ # 1. Redistributions of source code must retain the above copyright
10
+ # notice, this list of conditions and the following disclaimer.
11
+ # 2. Redistributions in binary form must reproduce the above copyright
12
+ # notice, this list of conditions and the following disclaimer in the
13
+ # documentation and/or other materials provided with the distribution.
14
+ #
15
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16
+ # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17
+ # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18
+ # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
19
+ # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20
+ # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21
+ # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22
+ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23
+ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24
+ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25
+ # POSSIBILITY OF SUCH DAMAGE.
26
+
27
+ set -o errexit -o pipefail -o noclobber -o nounset
28
+
29
+ # ....................................................
30
+ restore_and_save() {
31
+ echo "Patching $1"
32
+ test -e "$1.old" && cp -f "$1.old" "$1"
33
+ cp -f "$1" "$1.old"
34
+ }
35
+
36
+ do_patch() {
37
+ restore_and_save "$1"
38
+ "$gSed" -i "s/$2/$3/g" "$1"
39
+ }
40
+
41
+ do_patch_multiline() {
42
+ restore_and_save "$1"
43
+ "$gSed" -i "s/$re/${sbst//$'\n'/"\\n"}/g" "$1"
44
+ }
45
+
46
+ if [[ "$OSTYPE" == "linux-gnu"* || "$OSTYPE" == "linux-musl"* || "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then
47
+ gSed="sed"
48
+ elif [[ "$OSTYPE" == "darwin"* ]]; then
49
+ gSed="gsed"
50
+ else
51
+ echo "Unknown OSTYPE=$OSTYPE"
52
+ exit 1
53
+ fi
54
+
55
+ re="cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)"
56
+ sbst="cmake_minimum_required(VERSION 3.24.0)"
57
+ do_patch "$1/build/cmake/CMakeLists.txt" "$re" "$sbst"
@@ -1,5 +1,5 @@
1
1
  #!/bin/bash
2
- # Copyright (c) 2023, [Ribose Inc](https://www.ribose.com).
2
+ # Copyright (c) 2023-2025 [Ribose Inc](https://www.ribose.com).
3
3
  # All rights reserved.
4
4
  # This file is a part of the Tebako project.
5
5
  #
@@ -1,6 +1,6 @@
1
1
  #! /bin/bash
2
2
  #
3
- # Copyright (c) 2022, [Ribose Inc](https://www.ribose.com).
3
+ # Copyright (c) 2022-2025 [Ribose Inc](https://www.ribose.com).
4
4
  # All rights reserved.
5
5
  # This file is a part of the Tebako project.
6
6
  #
@@ -1,6 +1,6 @@
1
1
  #! /bin/bash
2
2
  #
3
- # Copyright (c) 2022, [Ribose Inc](https://www.ribose.com).
3
+ # Copyright (c) 2022-2025 [Ribose Inc](https://www.ribose.com).
4
4
  # All rights reserved.
5
5
  # This file is a part of the Tebako project.
6
6
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2022 [Ribose Inc](https://www.ribose.com).
1
+ # Copyright (c) 2021-2025 [Ribose Inc](https://www.ribose.com).
2
2
  # All rights reserved.
3
3
  # This file is a part of the Tebako project.
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2025, [Ribose Inc](https://www.ribose.com).
1
+ # Copyright (c) 2021-2025 [Ribose Inc](https://www.ribose.com).
2
2
  # All rights reserved.
3
3
  # This file is a part of the Tebako project.
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2022, [Ribose Inc](https://www.ribose.com).
1
+ # Copyright (c) 2022-2025 [Ribose Inc](https://www.ribose.com).
2
2
  # All rights reserved.
3
3
  # This file is a part of the Tebako project.
4
4
  #
@@ -23,7 +23,7 @@
23
23
  # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24
24
  # POSSIBILITY OF SUCH DAMAGE.
25
25
 
26
- def_ext_prj_t(LIBARCHIVE "3.6.2" "9e2c1b80d5fbe59b61308fdfab6c79b5021d7ff4ff2489fb12daf0a96a83551d")
26
+ def_ext_prj_t(LIBARCHIVE "3.7.9" "ed8b5732e4cd6e30fae909fb945cad8ff9cb7be5c6cdaa3944ec96e4a200c04c")
27
27
 
28
28
  message(STATUS "Collecting libarchive - " v${LIBARCHIVE_VER} " at " ${LIBARCHIVE_SOURCE_DIR})
29
29
 
@@ -74,15 +74,11 @@ endif(DEFINED TEBAKO_BUILD_TARGET)
74
74
  # Method #1 is implemented here.
75
75
  # ...................................................................
76
76
 
77
- if(${IS_MSYS})
78
- set(__LIBARCHIVE "${DEPS}/lib/libarchive_static.a")
79
- else(${IS_MSYS})
80
- set(__LIBARCHIVE "${DEPS}/lib/libarchive.a")
81
- endif(${IS_MSYS})
77
+ set(__LIBARCHIVE "${DEPS}/lib/libarchive.a")
82
78
 
83
79
  ExternalProject_Add(${LIBARCHIVE_PRJ}
84
80
  PREFIX "${DEPS}"
85
- URL http://www.libarchive.org/downloads/libarchive-${LIBARCHIVE_VER}.tar.xz
81
+ URL https://www.libarchive.org/downloads/libarchive-${LIBARCHIVE_VER}.tar.xz
86
82
  URL_HASH SHA256=${LIBARCHIVE_HASH}
87
83
  DOWNLOAD_NO_PROGRESS true
88
84
  UPDATE_COMMAND ""
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2024 [Ribose Inc](https://www.ribose.com).
1
+ # Copyright (c) 2024-2025 [Ribose Inc](https://www.ribose.com).
2
2
  # All rights reserved.
3
3
  # This file is a part of the Tebako project.
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2024 [Ribose Inc](https://www.ribose.com).
1
+ # Copyright (c) 2024-2025 [Ribose Inc](https://www.ribose.com).
2
2
  # All rights reserved.
3
3
  # This file is a part of the Tebako project.
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2018-2021 Ribose Inc.
1
+ # Copyright (c) 2018-2025 Ribose Inc.
2
2
  # All rights reserved.
3
3
  #
4
4
  # Redistribution and use in source and binary forms, with or without
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2025, [Ribose Inc](https://www.ribose.com).
1
+ # Copyright (c) 2025 [Ribose Inc](https://www.ribose.com).
2
2
  # All rights reserved.
3
3
  # This file is a part of the Tebako project.
4
4
  #
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  *
3
- * Copyright (c) 2022, [Ribose Inc](https://www.ribose.com).
3
+ * Copyright (c) 2022-2025 [Ribose Inc](https://www.ribose.com).
4
4
  * All rights reserved.
5
5
  * This file is a part of the Tebako project. (libdwarfs-wr)
6
6
  *
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2024, [Ribose Inc](https://www.ribose.com).
1
+ # Copyright (c) 2024-2025 [Ribose Inc](https://www.ribose.com).
2
2
  # All rights reserved.
3
3
  # This file is a part of the Tebako project.
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2024, [Ribose Inc](https://www.ribose.com).
1
+ # Copyright (c) 2024-2025 [Ribose Inc](https://www.ribose.com).
2
2
  # All rights reserved.
3
3
  # This file is a part of the Tebako project.
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2024, [Ribose Inc](https://www.ribose.com).
1
+ # Copyright (c) 2024-2025 [Ribose Inc](https://www.ribose.com).
2
2
  # All rights reserved.
3
3
  # This file is a part of the Tebako project.
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2024, [Ribose Inc](https://www.ribose.com).
1
+ # Copyright (c) 2024-2025
2
2
  # All rights reserved.
3
3
  # This file is a part of the Tebako project.
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2024, [Ribose Inc](https://www.ribose.com).
1
+ # Copyright (c) 2024-2025 [Ribose Inc](https://www.ribose.com).
2
2
  # All rights reserved.
3
3
  # This file is a part of the Tebako project.
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2025, [Ribose Inc](https://www.ribose.com).
1
+ # Copyright (c) 2025-2025 [Ribose Inc](https://www.ribose.com).
2
2
  # All rights reserved.
3
3
  # This file is a part of the Tebako project.
4
4
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tebako
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.4
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-05-02 00:00:00.000000000 Z
11
+ date: 2025-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -251,6 +251,8 @@ files:
251
251
  - tools/ci-scripts/level-up.sh
252
252
  - tools/ci-scripts/patch-fbthrift.sh
253
253
  - tools/ci-scripts/patch-folly.sh
254
+ - tools/ci-scripts/patch-glog.sh
255
+ - tools/ci-scripts/patch-zstd.sh
254
256
  - tools/ci-scripts/tools.sh
255
257
  - tools/ci-scripts/x86-brew-install.sh
256
258
  - tools/ci-scripts/x86-brew-setup.sh
@@ -261,7 +263,6 @@ files:
261
263
  - tools/cmake-scripts/setup-libfmt.cmake
262
264
  - tools/cmake-scripts/setup-libhowardhinnerdate.cmake
263
265
  - tools/cmake-scripts/setup-libutfcpp.cmake
264
- - tools/cmake-scripts/setup-openssl-1.1.1.cmake
265
266
  - tools/cmake-scripts/version.cmake
266
267
  - tools/docker/alpine-3.17-dev.Dockerfile
267
268
  - tools/docker/tools/tools.sh
@@ -1,95 +0,0 @@
1
- # Copyright (c) 2023-2025 [Ribose Inc](https://www.ribose.com).
2
- # All rights reserved.
3
- # This file is a part of the Tebako project.
4
- #
5
- # Redistribution and use in source and binary forms, with or without
6
- # modification, are permitted provided that the following conditions
7
- # are met:
8
- # 1. Redistributions of source code must retain the above copyright
9
- # notice, this list of conditions and the following disclaimer.
10
- # 2. Redistributions in binary form must reproduce the above copyright
11
- # notice, this list of conditions and the following disclaimer in the
12
- # documentation and/or other materials provided with the distribution.
13
- #
14
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15
- # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
16
- # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17
- # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
18
- # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19
- # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20
- # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22
- # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24
- # POSSIBILITY OF SUCH DAMAGE.
25
-
26
- set(WITH_OPENSSL_BUILD ON)
27
-
28
- execute_process(
29
- COMMAND "${DEPS}/bin/openssl" "version"
30
- RESULT_VARIABLE OPENSSL_RES
31
- OUTPUT_VARIABLE OPENSSL_VER_STR
32
- OUTPUT_STRIP_TRAILING_WHITESPACE
33
- )
34
-
35
- if(OPENSSL_RES EQUAL 0)
36
- string(REGEX MATCH "^OpenSSL ([1-9][.][0-9][.][0-9])" OPENSSL_VER_TMP ${OPENSSL_VER_STR})
37
- set(OPENSSL_VER ${CMAKE_MATCH_1})
38
- message(STATUS "Found OpenSSL version ${OPENSSL_VER} at ${DEPS}/bin/openssl")
39
- if((${OPENSSL_VER} VERSION_GREATER_EQUAL "1.1.0") AND (${OPENSSL_VER} VERSION_LESS "3.0.0"))
40
- set(WITH_OPENSSL_BUILD OFF)
41
- set(OPENSSL_ROOT_DIR "${DEPS}")
42
- endif((${OPENSSL_VER} VERSION_GREATER_EQUAL "1.1.0") AND (${OPENSSL_VER} VERSION_LESS "3.0.0"))
43
- endif(OPENSSL_RES EQUAL 0)
44
-
45
- if(WITH_OPENSSL_BUILD)
46
- execute_process(
47
- COMMAND "openssl" "version"
48
- RESULT_VARIABLE OPENSSL_RES
49
- OUTPUT_VARIABLE OPENSSL_VER_STR
50
- OUTPUT_STRIP_TRAILING_WHITESPACE
51
- )
52
- if(OPENSSL_RES EQUAL 0)
53
- execute_process(
54
- COMMAND "which" "openssl"
55
- RESULT_VARIABLE OPENSSL_RES
56
- OUTPUT_VARIABLE OPENSSL_LOC
57
- OUTPUT_STRIP_TRAILING_WHITESPACE
58
- )
59
- if(NOT OPENSSL_RES EQUAL 0)
60
- set(OPENSSL_LOC "<unknown>")
61
- endif(NOT OPENSSL_RES EQUAL 0)
62
-
63
- string(REGEX MATCH "^OpenSSL ([1-9][.][0-9][.][0-9])" OPENSSL_VER_TMP ${OPENSSL_VER_STR})
64
- set(OPENSSL_VER ${CMAKE_MATCH_1})
65
- message(STATUS "Found OpenSSL version ${OPENSSL_VER} at ${OPENSSL_LOC}")
66
- if((${OPENSSL_VER} VERSION_GREATER_EQUAL "1.1.0") AND (${OPENSSL_VER} VERSION_LESS "3.0.0"))
67
- set(WITH_OPENSSL_BUILD OFF)
68
- endif((${OPENSSL_VER} VERSION_GREATER_EQUAL "1.1.0") AND (${OPENSSL_VER} VERSION_LESS "3.0.0"))
69
- endif(OPENSSL_RES EQUAL 0)
70
- endif(WITH_OPENSSL_BUILD)
71
-
72
- if(WITH_OPENSSL_BUILD)
73
- message(STATUS "Building OpenSSL 1.1.1w")
74
- def_ext_prj_g(OPENSSL "OpenSSL_1_1_1w")
75
-
76
- set(__LIBSSL "${DEPS}/lib/libssl.a")
77
- set(__LIBCRYPTO "${DEPS}/lib/libcrypto.a")
78
-
79
- ExternalProject_Add(${OPENSSL_PRJ}
80
- PREFIX ${DEPS}
81
- GIT_REPOSITORY "https://github.com/openssl/openssl.git"
82
- GIT_TAG ${OPENSSL_TAG}
83
- UPDATE_COMMAND ""
84
- SOURCE_DIR ${OPENSSL_SOURCE_DIR}
85
- BINARY_DIR ${OPENSSL_BINARY_DIR}
86
- CONFIGURE_COMMAND ${GNU_BASH} -c "${OPENSSL_SOURCE_DIR}/config \
87
- --openssldir=${DEPS} \
88
- --prefix=${DEPS} \
89
- no-shared"
90
- BUILD_BYPRODUCTS ${__LIBSSL} ${__LIBCRYPTO}
91
- )
92
-
93
- set(OPENSSL_ROOT_DIR "${DEPS}")
94
-
95
- endif(WITH_OPENSSL_BUILD)