tebako 0.14.0 → 0.15.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.
- checksums.yaml +4 -4
- data/Brewfile +0 -5
- data/CMakeLists.txt +94 -46
- data/cmake/tebako-libtfs.cmake +456 -0
- data/common.env +1 -1
- data/include/tebako/tpkg.h +575 -0
- data/lib/tebako/cli.rb +91 -0
- data/lib/tebako/cli_helpers.rb +24 -0
- data/lib/tebako/error.rb +10 -0
- data/lib/tebako/launcher_abi.rb +99 -0
- data/lib/tebako/options_manager.rb +71 -0
- data/lib/tebako/packager/patch_libraries.rb +47 -27
- data/lib/tebako/packager.rb +40 -1
- data/lib/tebako/runtime_manager.rb +347 -0
- data/lib/tebako/stitcher.rb +255 -0
- data/lib/tebako/version.rb +1 -1
- data/src/tebako-main.cpp +577 -9
- data/tools/.github/workflows/test.yml +6 -6
- data/tools/cmake-scripts/macos-environment.cmake +11 -2
- metadata +7 -4
- data/tools/ci-scripts/patch-fbthrift.sh +0 -94
- data/tools/ci-scripts/patch-folly.sh +0 -551
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.
|
|
4
|
+
version: 0.15.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:
|
|
11
|
+
date: 2026-07-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -203,12 +203,14 @@ files:
|
|
|
203
203
|
- bin/console
|
|
204
204
|
- bin/setup
|
|
205
205
|
- cmake/copy_dir.cmake
|
|
206
|
+
- cmake/tebako-libtfs.cmake
|
|
206
207
|
- common.env
|
|
207
208
|
- exe/tebako
|
|
208
209
|
- exe/tebako-packager
|
|
209
210
|
- include/tebako/tebako-fs.h
|
|
210
211
|
- include/tebako/tebako-main.h
|
|
211
212
|
- include/tebako/tebako-prism.h
|
|
213
|
+
- include/tebako/tpkg.h
|
|
212
214
|
- lib/tebako.rb
|
|
213
215
|
- lib/tebako/build_helpers.rb
|
|
214
216
|
- lib/tebako/cache_manager.rb
|
|
@@ -217,6 +219,7 @@ files:
|
|
|
217
219
|
- lib/tebako/codegen.rb
|
|
218
220
|
- lib/tebako/deploy_helper.rb
|
|
219
221
|
- lib/tebako/error.rb
|
|
222
|
+
- lib/tebako/launcher_abi.rb
|
|
220
223
|
- lib/tebako/options_manager.rb
|
|
221
224
|
- lib/tebako/package_descriptor.rb
|
|
222
225
|
- lib/tebako/packager.rb
|
|
@@ -235,7 +238,9 @@ files:
|
|
|
235
238
|
- lib/tebako/packager_lite.rb
|
|
236
239
|
- lib/tebako/ruby_builder.rb
|
|
237
240
|
- lib/tebako/ruby_version.rb
|
|
241
|
+
- lib/tebako/runtime_manager.rb
|
|
238
242
|
- lib/tebako/scenario_manager.rb
|
|
243
|
+
- lib/tebako/stitcher.rb
|
|
239
244
|
- lib/tebako/stripper.rb
|
|
240
245
|
- lib/tebako/version.rb
|
|
241
246
|
- src/tebako-main.cpp
|
|
@@ -249,8 +254,6 @@ files:
|
|
|
249
254
|
- tools/ci-scripts/arm-brew-install.sh
|
|
250
255
|
- tools/ci-scripts/arm-brew-setup.sh
|
|
251
256
|
- tools/ci-scripts/level-up.sh
|
|
252
|
-
- tools/ci-scripts/patch-fbthrift.sh
|
|
253
|
-
- tools/ci-scripts/patch-folly.sh
|
|
254
257
|
- tools/ci-scripts/patch-glog.sh
|
|
255
258
|
- tools/ci-scripts/patch-zstd.sh
|
|
256
259
|
- tools/ci-scripts/tools.sh
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
#! /bin/bash
|
|
2
|
-
# Copyright (c) 2022-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="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
|
-
|
|
71
|
-
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then
|
|
72
|
-
re="ftruncate(file\.fd(), finalBufferSize),"
|
|
73
|
-
sbst="folly::portability::unistd::ftruncate(file.fd(), finalBufferSize), \/* tebako patched *\/"
|
|
74
|
-
do_patch "$1/thrift/lib/cpp2/frozen/FrozenUtil.h" "$re" "$sbst"
|
|
75
|
-
|
|
76
|
-
re="if (detail::platform_is_windows()) {"
|
|
77
|
-
sbst="if (false) { \/* tebako patched *\/"
|
|
78
|
-
do_patch "$1/thrift/compiler/source_location.cc" "$re" "$sbst"
|
|
79
|
-
|
|
80
|
-
re="#include <fmt\/fmt-format\.h>"
|
|
81
|
-
# shellcheck disable=SC2251
|
|
82
|
-
! IFS= read -r -d '' sbst << EOM
|
|
83
|
-
#include <fmt\/format.h>
|
|
84
|
-
|
|
85
|
-
\/* -- Start of tebako patch -- *\/
|
|
86
|
-
#include <fmt\/fmt-ranges.h>
|
|
87
|
-
\/* -- End of tebako patch -- *\/
|
|
88
|
-
EOM
|
|
89
|
-
|
|
90
|
-
do_patch_multiline "$1/thrift/compiler/lib/cpp2/util.h" "$re" "$sbst"
|
|
91
|
-
do_patch_multiline "$1/thrift/compiler/gen/cpp/namespace_resolver.cc" "$re" "$sbst"
|
|
92
|
-
do_patch_multiline "$1/thrift/compiler/ast/t_const_value.h" "$re" "$sbst"
|
|
93
|
-
|
|
94
|
-
fi
|