tebako 0.6.2 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d208b7629dd786cecb0861c1958099047988c471122286028d7b1ca047df3c33
4
- data.tar.gz: 7246a876406c06abd60d05808d5686844f8bd3fda1c4a69384b3d4aaaab513d7
3
+ metadata.gz: 6801b020721b24c392eeaa2bd9d90d0a9956f9e58f9be52923b09e88ace99921
4
+ data.tar.gz: 6b9ca98620896137036801269a5f2b741842679d237fa926912fa61f15454e12
5
5
  SHA512:
6
- metadata.gz: fa0eef41e50f5aa1fc52010c221004d7e5b038ae0b98a293e3731ce4a742e7e4ea8dcc7c166bb937dd8d74ec78573a88d63ee46e2028d5c71e41c05e1aa5f350
7
- data.tar.gz: 78a564e010d2892bf0243de1b2b90c86bbe2c727f75196629132ee867b8f7116bb874044ec705cd6fc154ed85059a450773a38975c5d1f5d4c90d494055fa26a
6
+ metadata.gz: 7fc14c5e8bc6866bdc6249821a0ffd647484838083f8a28de9e61d2cc6224968c202eb0eefcf1afc393e2db31cbc42da0b72e95ca8eb1dc48b81fde7524316ff
7
+ data.tar.gz: 9629168174744693f2400108ec2a446fda1ed9aafc3db47e0d84357e9a99cb34bc814ca49b639508dc3c8f0950a9a29ed2ee735d720357c985906f1f804d6af1
data/CMakeLists.txt CHANGED
@@ -214,7 +214,7 @@ if(DWARFS_PRELOAD)
214
214
  list(GET LIBDWARFS_WR_VER_COMPONENTS 2 LIBDWARFS_WR_VER_PATCH)
215
215
  set (LIBDWARFS_WR_VER_M ${LIBDWARFS_WR_VER_MAJOR}.${LIBDWARFS_WR_VER_MINOR}.${LIBDWARFS_WR_VER_PATCH})
216
216
  else(DWARFS_PRELOAD)
217
- def_ext_prj_g(DWARFS_WR "v0.5.1")
217
+ def_ext_prj_g(DWARFS_WR "v0.5.2")
218
218
  endif(DWARFS_PRELOAD)
219
219
 
220
220
  set(LIBYAML_RUBY_OPTION "")
data/README.adoc CHANGED
@@ -5,7 +5,6 @@ image:https://github.com/tamatebako/tebako/actions/workflows/alpine.yml/badge.sv
5
5
  image:https://github.com/tamatebako/tebako/actions/workflows/macos.yml/badge.svg["MacOS amd64", link="https://github.com/tamatebako/tebako/actions/workflows/macos.yml"]
6
6
  image:https://github.com/tamatebako/tebako/actions/workflows/windows-msys.yml/badge.svg["Windows msys", link="https://github.com/tamatebako/tebako/actions/workflows/windows-msys.yml"]
7
7
 
8
- image:https://api.cirrus-ci.com/github/tamatebako/tebako.svg?branch=main&task=macos-arm64["MacOS arm64", link="https://cirrus-ci.com/github/tamatebako/tebako"]
9
8
  image:https://api.cirrus-ci.com/github/tamatebako/tebako.svg?branch=main&task=ubuntu-aarch64["Ubuntu aarch64", link="https://cirrus-ci.com/github/tamatebako/tebako"]
10
9
 
11
10
  image:https://github.com/tamatebako/tebako/actions/workflows/lint.yml/badge.svg["lint", link="https://github.com/tamatebako/tebako/actions/workflows/lint.yml"]
@@ -36,7 +35,7 @@ In the future:
36
35
  The Tebako packager is tested on the following platforms:
37
36
 
38
37
  * Linux: Ubuntu 20.04; Alpine 3.17
39
- * MacOS: macOS 12 (Monterey), 13 (Ventura)
38
+ * MacOS: macOS 12 (Monterey), 13 (Ventura), 14 (Sonoma)
40
39
  * Windows: 2019, 2022 (using MinGW ucrt64 toolchain)
41
40
 
42
41
  Please note that Windows support is in pre-release and is a subject of further testing and optimization
data/common.env CHANGED
@@ -1,5 +1,5 @@
1
1
  BUILD_TYPE=Release
2
2
  DEPS=deps
3
3
  INCBIN_TAG=348e36b
4
- DWARFS_WR_TAG=v0.5.1
4
+ DWARFS_WR_TAG=v0.5.2
5
5
  RUBY_VER=3.1.4
@@ -26,5 +26,5 @@
26
26
  # POSSIBILITY OF SUCH DAMAGE.
27
27
 
28
28
  module Tebako
29
- VERSION = "0.6.2"
29
+ VERSION = "0.6.4"
30
30
  end
@@ -1,5 +1,5 @@
1
1
  #! /bin/bash
2
- # Copyright (c) 2022,2024 [Ribose Inc](https://www.ribose.com).
2
+ # Copyright (c) 2022, [Ribose Inc](https://www.ribose.com).
3
3
  # All rights reserved.
4
4
  # This file is a part of tebako
5
5
  #
@@ -43,17 +43,70 @@ do_patch_multiline() {
43
43
  "$gSed" -i "s/$re/${sbst//$'\n'/"\\n"}/g" "$1"
44
44
  }
45
45
 
46
+ # ....................................................
47
+ # Surprise, surprise ... Upstream project shall found boost libraries for fbthrift
48
+ # https://github.com/facebook/fbthrift/commit/c23af9dee42374d43d2f10e0e07edf1c1c97c328
49
+
50
+
46
51
  if [[ "$OSTYPE" == "linux-gnu"* || "$OSTYPE" == "linux-musl"* || "$OSTYPE" == "msys" ]]; then
47
52
  gSed="sed"
53
+ # shellcheck disable=SC2251
54
+ ! IFS= read -r -d '' sbst << EOM
55
+ find_package(OpenSSL REQUIRED)
56
+ # -- Start of tebako patch --
57
+ find_package(Boost 1.65 REQUIRED COMPONENTS filesystem)
58
+ include_directories(\${Boost_INCLUDE_DIRS})
59
+ # -- End of tebako patch --
60
+ EOM
61
+
48
62
  elif [[ "$OSTYPE" == "darwin"* ]]; then
49
63
  gSed="gsed"
64
+
65
+ # shellcheck disable=SC2251
66
+ ! IFS= read -r -d '' sbst << EOM
67
+ find_package(OpenSSL REQUIRED)
68
+ # -- Start of tebako patch --
69
+ find_package(Boost 1.65 REQUIRED COMPONENTS filesystem)
70
+ include_directories(\${Boost_INCLUDE_DIRS})
71
+ # Suppress superfluous randlib warnings about \"*.a\" having no symbols on MacOSX.
72
+ set(CMAKE_C_ARCHIVE_CREATE \"<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>\")
73
+ set(CMAKE_CXX_ARCHIVE_CREATE \"<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>\")
74
+ set(CMAKE_C_ARCHIVE_FINISH \"<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>\")
75
+ set(CMAKE_CXX_ARCHIVE_FINISH \"<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>\")
76
+ # -- End of tebako patch --
77
+ EOM
78
+
50
79
  else
51
80
  echo "Unknown OSTYPE=$OSTYPE"
52
81
  exit 1
53
82
  fi
54
83
 
84
+ restore_and_save "$1/CMakeLists.txt"
85
+ re="find_package(OpenSSL REQUIRED)"
86
+ "$gSed" -i "s/$re/${sbst//$'\n'/"\\n"}/g" "$1/CMakeLists.txt"
87
+
88
+ # GCC 13 compatibility
89
+ # --- thrift/compiler/lib/cpp2/util.cc ---
90
+ re="#include <stdexcept>"
91
+ # shellcheck disable=SC2251
92
+ ! IFS= read -r -d '' sbst << EOM
93
+ #include <stdexcept>
94
+
95
+ \/* -- Start of tebako patch -- *\/
96
+ #include <cstdint>
97
+ \/* -- End of tebako patch -- *\/
98
+ EOM
99
+
100
+ do_patch_multiline "$1/thrift/compiler/lib/cpp2/util.cc"
101
+
102
+
55
103
  if [[ "$OSTYPE" == "msys" ]]; then
56
- re="ftruncate(file\.fd(), finalBufferSize),"
57
- sbst="folly::portability::unistd::ftruncate(file.fd(), finalBufferSize), \/* tebako patched *\/"
104
+ re="if(WIN32)"
105
+ sbst="if(MSVC) # tebako patched"
106
+ do_patch "$1/thrift/compiler/CMakeLists.txt" "$re" "$sbst"
107
+
108
+ re="ftruncate(file\.fd(), finalBufferSize);"
109
+ sbst="folly::portability::unistd::ftruncate(file.fd(), finalBufferSize); \/* tebako patched *\/"
58
110
  do_patch "$1/thrift/lib/cpp2/frozen/FrozenUtil.h" "$re" "$sbst"
111
+
59
112
  fi
@@ -1,5 +1,5 @@
1
1
  #! /bin/bash
2
- # Copyright (c) 2022-2024, [Ribose Inc](https://www.ribose.com).
2
+ # Copyright (c) 2022-2023, [Ribose Inc](https://www.ribose.com).
3
3
  # All rights reserved.
4
4
  # This file is a part of tebako
5
5
  #
@@ -41,7 +41,6 @@ restore_and_save() {
41
41
 
42
42
  do_patch() {
43
43
  restore_and_save "$1"
44
- # echo "$GNU_SED" -i "s/$2/$3/g" "$1"
45
44
  "$GNU_SED" -i "s/$2/$3/g" "$1"
46
45
  }
47
46
 
@@ -317,6 +316,15 @@ EOM
317
316
  sbst=" \/* tebako patched *\/ folly::portability::unistd::lseek(fd,"
318
317
  do_patch "$1/folly/portability/SysUio.cpp" "$re" "$sbst"
319
318
 
319
+ # --- folly/portability/Unistd.cpp ---
320
+ re="(lseek(fd,"
321
+ sbst="( \/* tebako patched *\/ folly::portability::unistd::lseek(fd,"
322
+ do_patch "$1/folly/portability/Unistd.cpp" "$re" "$sbst"
323
+
324
+ re="lseek(fd, 0,"
325
+ sbst=" \/* tebako patched *\/ folly::portability::unistd::lseek(fd, 0,"
326
+ "$GNU_SED" -i "s/$re/$sbst/g" "$1/folly/portability/Unistd.cpp"
327
+
320
328
  # --- folly/logging/ImmediateFileWriter.h ---
321
329
  re="isatty(file"
322
330
  sbst=" \/* tebako patched *\/ folly::portability::unistd::isatty(file"
@@ -394,7 +402,6 @@ EOM
394
402
  #ifdef __MINGW32__
395
403
  #include <mswsock.h>
396
404
  using cmsghdr = WSACMSGHDR;
397
- #define CMSG_SPACE WSA_CMSG_SPACE
398
405
  #endif
399
406
  \/* -- End of tebako patch -- *\/
400
407
 
@@ -441,55 +448,7 @@ EOM
441
448
  sbst="#if defined(__XROS__) || defined(__MINGW32__) \/* tebako patched *\/"
442
449
  "$GNU_SED" -i "s/$re/$sbst/g" "$1/folly/system/ThreadName.cpp"
443
450
 
444
- # --- folly/net/NetOps.h ---
445
-
446
- re="#include <WS2tcpip\.h> \/\/ @manual"
447
- # shellcheck disable=SC2251
448
- ! IFS= read -r -d '' sbst << EOM
449
- #include <WS2tcpip.h> \/\/ @manual
450
-
451
- \/* -- Start of tebako patch -- *\/
452
- #ifdef __MINGW32__
453
- #include <memory>
454
- #include <mswsock.h>
455
- #endif
456
- \/* -- End of tebako patch -- *\/
457
- EOM
458
- do_patch_multiline "$1/folly/net/NetOps.h" "$re" "$sbst"
459
-
460
- # --- folly/Random.cpp ---
461
-
462
- re="#include <folly\/synchronization\/RelaxedAtomic\.h>"
463
- # shellcheck disable=SC2251
464
- ! IFS= read -r -d '' sbst << EOM
465
- #include <folly\/synchronization\/RelaxedAtomic.h>
466
-
467
- \/* -- Start of tebako patch -- *\/
468
- #include <folly\/portability\/Fcntl.h>
469
- \/* -- End of tebako patch -- *\/
470
- EOM
471
- do_patch_multiline "$1/folly/Random.cpp" "$re" "$sbst"
472
-
473
- # --- folly/Utility.h ---
474
- re="T uninit;"
475
- sbst="T uninit = 0; \/* tebako patched *\/"
476
- do_patch "$1/folly/Utility.h" "$re" "$sbst"
477
-
478
- # --- folly/experimental/io/AsyncBase.cpp ---
479
- re="CHECK_ERR(close(pollFd_));"
480
- sbst="CHECK_ERR(folly::portability::unistd::close(pollFd_)); \/* tebako patched *\/"
481
- do_patch "$1/folly/experimental/io/AsyncBase.cpp" "$re" "$sbst"
482
-
483
- # --- folly/portability/Unistd.cpp ---
484
- re="res = lseek64(fd, offset, whence);"
485
- sbst="res = folly::portability::unistd::lseek64(fd, offset, whence); \/* tebako patched *\/ "
486
- do_patch "$1/folly/portability/Unistd.cpp" "$re" "$sbst"
487
-
488
- re="res = lseek(fd, offset, whence);"
489
- sbst="res = folly::portability::unistd::lseek(fd, offset, whence); \/* tebako patched *\/ "
490
- "$GNU_SED" -i "s/$re/$sbst/g" "$1/folly/portability/Unistd.cpp"
491
451
  # ---
492
-
493
452
  defined_msc_ver_to_win32 "$1/folly/external/farmhash/farmhash.cpp"
494
453
  defined_msc_ver_to_win32 "$1/folly/detail/IPAddressSource.h"
495
454
  defined_msc_ver_to_win32 "$1/folly/portability/Sockets.cpp"
@@ -512,6 +471,5 @@ EOM
512
471
  # while gettimeofday is provided by MSys, the other two functions are lost
513
472
  defined_n_win32_to_msc_ver "$1/folly/portability/SysTime.h"
514
473
  defined_win32_to_msc_ver "$1/folly/portability/SysTime.cpp"
515
- defined_win32_to_msc_ver "$1/folly/lang/Exception.cpp"
516
474
 
517
475
  fi
data/version.txt CHANGED
@@ -1 +1 @@
1
- 0.6.2
1
+ 0.6.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.6.2
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-17 00:00:00.000000000 Z
11
+ date: 2024-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  requirements: []
138
- rubygems_version: 3.5.3
138
+ rubygems_version: 3.5.9
139
139
  signing_key:
140
140
  specification_version: 4
141
141
  summary: Packager for Ruby executables