tebako 0.7.2.rc5 → 0.7.3.rc4

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: 446a6e7b682bc902e8f22715760ad946a1c35e62c8a5b634af7a0a60436213cf
4
- data.tar.gz: 8ea046fe2708966ff3cafb6c66ace15af072eabf0b83b588d1ed7525c9937bc1
3
+ metadata.gz: 3f3b44e8963dcb8233b713cecb17e415a7b8197f2ec7ac2273653643a4966e8c
4
+ data.tar.gz: def76f0080fb30b67a93c601e1d87d7d4d1e77dd3690fd4393b7814072c188ab
5
5
  SHA512:
6
- metadata.gz: 84f293aecf93beef4e2bbe7db8792a4acef9ed6e1d126f3f49b1c5c93231f2e2dfa8e5277b259e48f42239dd721b05029be3276e59587e44f979928c64f7de0a
7
- data.tar.gz: 7c644560f564737a05a557a9b1e97b6d34b82771d2eb45d76189b4c03723c9948d685528e424b99dea78f22968cac3b2104d965c87a551186c3999e73c01482c
6
+ metadata.gz: 2ef735655d9381b8c9ea00e126b310f1467ea5073aaed4d0e7d843c3d47689249840d7cf6d94603bdbd73052ccbad2e4f4900b64277486b93504f222443b7c7c
7
+ data.tar.gz: 40b6af3a9ae43db759b1853e7bbcf1f488a388eb6f0afefeb38158d725d37d3cc8b623b72e3213e8345371eb99ad191156ac984a1cad4f7ca61e8e0b55052b53
data/CMakeLists.txt CHANGED
@@ -211,7 +211,7 @@ if(DWARFS_PRELOAD)
211
211
  list(GET LIBDWARFS_WR_VER_COMPONENTS 2 LIBDWARFS_WR_VER_PATCH)
212
212
  set (LIBDWARFS_WR_VER_M ${LIBDWARFS_WR_VER_MAJOR}.${LIBDWARFS_WR_VER_MINOR}.${LIBDWARFS_WR_VER_PATCH})
213
213
  else(DWARFS_PRELOAD)
214
- def_ext_prj_g(DWARFS_WR "v0.5.3")
214
+ def_ext_prj_g(DWARFS_WR "v0.5.4")
215
215
  endif(DWARFS_PRELOAD)
216
216
 
217
217
  set(LIBYAML_RUBY_OPTION "")
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.3
4
+ DWARFS_WR_TAG=v0.5.4
5
5
  RUBY_VER=3.1.6
@@ -26,5 +26,5 @@
26
26
  # POSSIBILITY OF SUCH DAMAGE.
27
27
 
28
28
  module Tebako
29
- VERSION = "0.7.2.rc5"
29
+ VERSION = "0.7.3.rc4"
30
30
  end
@@ -42,7 +42,7 @@ jobs:
42
42
  strategy:
43
43
  fail-fast: false
44
44
  matrix:
45
- os: [ ubuntu-20.04, macos-11.0 ]
45
+ os: [ ubuntu-20.04, macos-12 ]
46
46
  steps:
47
47
  - name: Checkout
48
48
  uses: actions/checkout@v4
@@ -67,7 +67,7 @@ jobs:
67
67
  strategy:
68
68
  fail-fast: false
69
69
  matrix:
70
- os: [ ubuntu-20.04, macos-11.0 ]
70
+ os: [ ubuntu-20.04, macos-12 ]
71
71
  steps:
72
72
  - name: Checkout
73
73
  uses: actions/checkout@v4
@@ -89,7 +89,7 @@ jobs:
89
89
  strategy:
90
90
  fail-fast: false
91
91
  matrix:
92
- os: [ ubuntu-20.04, macos-11.0 ]
92
+ os: [ ubuntu-20.04, macos-12 ]
93
93
  steps:
94
94
  - name: Checkout
95
95
  uses: actions/checkout@v4
@@ -106,7 +106,7 @@ jobs:
106
106
 
107
107
  test-cross-brew-install:
108
108
  name: test arm-brew-setup/install
109
- runs-on: macos-11.0
109
+ runs-on: macos-12
110
110
  steps:
111
111
  - name: Checkout
112
112
  uses: actions/checkout@v4
@@ -122,3 +122,24 @@ jobs:
122
122
  set -o errexit -o pipefail -o noclobber -o nounset
123
123
  test -f $PWD/arm-homebrew/lib/libgflags.dylib
124
124
  test -f $PWD/arm-homebrew/lib/libglog.dylib
125
+
126
+ test-macos-environment-script:
127
+ name: test macos-environment.cmake on ${{ matrix.os }}
128
+ runs-on: ${{ matrix.os }}
129
+ strategy:
130
+ fail-fast: false
131
+ matrix:
132
+ os: [ macos-12, macos-13, macos-14 ]
133
+
134
+ steps:
135
+ - name: Checkout
136
+ uses: actions/checkout@v4
137
+
138
+ - name: Checkout
139
+ uses: actions/checkout@v4
140
+
141
+ - name: Install packages
142
+ run: brew install flex bison bash
143
+
144
+ - name: Run CMake test
145
+ run: cmake -B test.build -S tests/cmake
@@ -56,4 +56,8 @@ if [[ "$OSTYPE" == "msys" ]]; then
56
56
  re="ftruncate(file\.fd(), finalBufferSize),"
57
57
  sbst="folly::portability::unistd::ftruncate(file.fd(), finalBufferSize), \/* tebako patched *\/"
58
58
  do_patch "$1/thrift/lib/cpp2/frozen/FrozenUtil.h" "$re" "$sbst"
59
+
60
+ re="if (detail::platform_is_windows()) {"
61
+ sbst="if (false) { \/* tebako patched *\/"
62
+ do_patch "$1/thrift/compiler/source_location.cc" "$re" "$sbst"
59
63
  fi
@@ -146,7 +146,7 @@ if [[ "$OSTYPE" == "linux-musl"* ]]; then
146
146
  # https://github.com/facebook/folly/issues/1478
147
147
  re="#elif defined(__FreeBSD__)"
148
148
  sbst="#elif defined(__FreeBSD__) || defined(__musl__) \/* Tebako patched *\/"
149
- do_patch "$1/folly/experimental/symbolizer/Elf.cpp" "$re" "$sbst"
149
+ do_patch "$1/folly/debugging/symbolizer/Elf.cpp" "$re" "$sbst"
150
150
 
151
151
  restore_and_save "$1/CMake/FollyConfigChecks.cmake"
152
152
  re="FOLLY_HAVE_IFUNC"
@@ -289,23 +289,23 @@ EOM
289
289
  sbst="(\/* tebako patched *\/ folly::portability::unistd::dup2,"
290
290
  "$GNU_SED" -i "s/$re/$sbst/g" "$1/folly/FileUtil.cpp"
291
291
 
292
- # --- folly/experimental/TestUtil.cpp ---
293
- defined_win32_to_msc_ver "$1/folly/experimental/TestUtil.cpp"
292
+ # --- folly/testing/TestUtil.cpp ---
293
+ defined_win32_to_msc_ver "$1/folly/testing/TestUtil.cpp"
294
294
  re="dup("
295
295
  sbst="\/* tebako patched *\/ folly::portability::unistd::dup("
296
- "$GNU_SED" -i "s/$re/$sbst/g" "$1/folly/experimental/TestUtil.cpp"
296
+ "$GNU_SED" -i "s/$re/$sbst/g" "$1/folly/testing/TestUtil.cpp"
297
297
 
298
298
  re="dup2("
299
299
  sbst="\/* tebako patched *\/ folly::portability::unistd::dup2("
300
- "$GNU_SED" -i "s/$re/$sbst/g" "$1/folly/experimental/TestUtil.cpp"
300
+ "$GNU_SED" -i "s/$re/$sbst/g" "$1/folly/testing/TestUtil.cpp"
301
301
 
302
302
  re="lseek("
303
303
  sbst="\/* tebako patched *\/ folly::portability::unistd::lseek("
304
- "$GNU_SED" -i "s/$re/$sbst/g" "$1/folly/experimental/TestUtil.cpp"
304
+ "$GNU_SED" -i "s/$re/$sbst/g" "$1/folly/testing/TestUtil.cpp"
305
305
 
306
306
  re="(close("
307
307
  sbst="(\/* tebako patched *\/ folly::portability::unistd::close("
308
- "$GNU_SED" -i "s/$re/$sbst/g" "$1/folly/experimental/TestUtil.cpp"
308
+ "$GNU_SED" -i "s/$re/$sbst/g" "$1/folly/testing/TestUtil.cpp"
309
309
 
310
310
  # --- folly/system/MemoryMapping.cpp ---
311
311
  re="0 == ftruncate("
@@ -475,11 +475,6 @@ EOM
475
475
  sbst="T uninit = 0; \/* tebako patched *\/"
476
476
  do_patch "$1/folly/Utility.h" "$re" "$sbst"
477
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
478
  # --- folly/portability/Unistd.cpp ---
484
479
  re="res = lseek64(fd, offset, whence);"
485
480
  sbst="res = folly::portability::unistd::lseek64(fd, offset, whence); \/* tebako patched *\/ "
@@ -488,8 +483,13 @@ EOM
488
483
  re="res = lseek(fd, offset, whence);"
489
484
  sbst="res = folly::portability::unistd::lseek(fd, offset, whence); \/* tebako patched *\/ "
490
485
  "$GNU_SED" -i "s/$re/$sbst/g" "$1/folly/portability/Unistd.cpp"
491
- # ---
492
486
 
487
+ # --- folly/io/async/AsyncUDPSocket.cpp
488
+ re="#elif _WIN32"
489
+ sbst="#elif _MSC_VER \/* tebako patched *\/ "
490
+ do_patch "$1/folly/io/async/AsyncUDPSocket.cpp" "$re" "$sbst"
491
+
492
+ # ---
493
493
  defined_msc_ver_to_win32 "$1/folly/external/farmhash/farmhash.cpp"
494
494
  defined_msc_ver_to_win32 "$1/folly/detail/IPAddressSource.h"
495
495
  defined_msc_ver_to_win32 "$1/folly/portability/Sockets.cpp"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2023, [Ribose Inc](https://www.ribose.com).
1
+ # Copyright (c) 2021-2024, [Ribose Inc](https://www.ribose.com).
2
2
  # All rights reserved.
3
3
  # This file is a part of tamatebako
4
4
  #
@@ -25,14 +25,32 @@
25
25
  #
26
26
 
27
27
  if (CMAKE_HOST_SYSTEM_NAME MATCHES "Darwin")
28
+
29
+ function(find_and_set_homebrew_prefix package_name pkg_name executable_name)
30
+ execute_process(
31
+ COMMAND brew --prefix ${package_name}
32
+ RESULT_VARIABLE BREW_${pkg_name}_RESULT
33
+ OUTPUT_VARIABLE BREW_${pkg_name}_PREFIX_TMP
34
+ OUTPUT_STRIP_TRAILING_WHITESPACE
35
+ )
36
+ if (BREW_${pkg_name}_RESULT EQUAL 0 AND EXISTS "${BREW_${pkg_name}_PREFIX_TMP}")
37
+ set(BREW_${pkg_name}_PREFIX "${BREW_${pkg_name}_PREFIX_TMP}" CACHE PATH "${package_name} prefix")
38
+ message(STATUS "Found ${package_name} keg installed by Homebrew at ${BREW_${pkg_name}_PREFIX}")
39
+ set(${executable_name} "${BREW_${pkg_name}_PREFIX}/bin/${package_name}" CACHE FILEPATH "${executable_name} executable")
40
+ endif()
41
+ endfunction()
42
+
43
+
28
44
  execute_process(
29
45
  COMMAND brew --prefix
30
46
  RESULT_VARIABLE BREW_PREFIX_RES
31
- OUTPUT_VARIABLE BREW_PREFIX
47
+ OUTPUT_VARIABLE BREW_PREFIX_TMP
32
48
  OUTPUT_STRIP_TRAILING_WHITESPACE
33
49
  )
34
- if(NOT (BREW_PREFIX_RES EQUAL 0 AND EXISTS ${BREW_PREFIX}))
50
+ if(NOT (BREW_PREFIX_RES EQUAL 0 AND EXISTS ${BREW_PREFIX_TMP}))
35
51
  message(FATAL "Could not find build brew setup")
52
+ else()
53
+ set(BREW_PREFIX "${BREW_PREFIX_TMP}" CACHE PATH "Brew installation prefix")
36
54
  endif()
37
55
 
38
56
  message(STATUS "Using brew environment at ${BREW_PREFIX}")
@@ -40,47 +58,24 @@ if (CMAKE_HOST_SYSTEM_NAME MATCHES "Darwin")
40
58
  set(OPENSSL_ROOT_DIR "${BREW_PREFIX}/opt/openssl@3")
41
59
  set(CMAKE_PREFIX_PATH "${BREW_PREFIX}")
42
60
  include_directories("${OPENSSL_ROOT_DIR}/include")
43
- include_directories("${TARGET_BREW_PREFIX}/include")
61
+ include_directories("${BREW_PREFIX}/include")
44
62
 
45
63
  # https://stackoverflow.com/questions/53877344/cannot-configure-cmake-to-look-for-homebrew-installed-version-of-bison
46
- execute_process(
47
- COMMAND brew --prefix bison
48
- RESULT_VARIABLE BREW_BISON
49
- OUTPUT_VARIABLE BREW_BISON_PREFIX
50
- OUTPUT_STRIP_TRAILING_WHITESPACE
51
- )
52
- if (BREW_BISON EQUAL 0 AND EXISTS "${BREW_BISON_PREFIX}")
53
- message(STATUS "Found Bison keg installed by Homebrew at ${BREW_BISON_PREFIX}")
54
- set(BISON_EXECUTABLE "${BREW_BISON_PREFIX}/bin/bison")
55
- endif()
56
-
57
- execute_process(
58
- COMMAND brew --prefix flex
59
- RESULT_VARIABLE BREW_FLEX
60
- OUTPUT_VARIABLE BREW_FLEX_PREFIX
61
- OUTPUT_STRIP_TRAILING_WHITESPACE
62
- )
63
- if (BREW_FLEX EQUAL 0 AND EXISTS "${BREW_FLEX_PREFIX}")
64
- message(STATUS "Found Flex keg installed by Homebrew at ${BREW_FLEX_PREFIX}")
65
- set(FLEX_EXECUTABLE "${BREW_FLEX_PREFIX}/bin/flex")
66
- endif()
67
-
68
- execute_process(
69
- COMMAND brew --prefix bash
70
- RESULT_VARIABLE BREW_BASH
71
- OUTPUT_VARIABLE BREW_BASH_PREFIX
72
- OUTPUT_STRIP_TRAILING_WHITESPACE
73
- )
74
- if (BREW_BASH EQUAL 0 AND EXISTS "${BREW_BASH_PREFIX}")
75
- message(STATUS "Found GNU bash keg installed by Homebrew at ${BREW_BASH_PREFIX}")
76
- set(GNU_BASH "${BREW_BASH_PREFIX}/bin/bash")
77
- endif()
64
+ find_and_set_homebrew_prefix("bison" "BISON" "BISON_EXECUTABLE")
65
+ find_and_set_homebrew_prefix("flex" "FLEX" "FLEX_EXECUTABLE")
66
+ find_and_set_homebrew_prefix("bash" "BASH" "GNU_BASH")
78
67
 
79
68
  # Suppress superfluous randlib warnings about "*.a" having no symbols on MacOSX.
80
69
  set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>")
81
70
  set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>")
82
- set(CMAKE_C_ARCHIVE_FINISH "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>")
83
- set(CMAKE_CXX_ARCHIVE_FINISH "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>")
71
+
72
+ if (CMAKE_C_COMPILER_ID STREQUAL "AppleClang")
73
+ set(CMAKE_C_ARCHIVE_FINISH "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>")
74
+ endif (CMAKE_C_COMPILER_ID STREQUAL "AppleClang")
75
+
76
+ if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
77
+ set(CMAKE_CXX_ARCHIVE_FINISH "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>")
78
+ endif (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
84
79
 
85
80
  set(CMAKE_CXX_FLAGS "-DTARGET_OS_SIMULATOR=0 -DTARGET_OS_IPHONE=0")
86
81
 
@@ -0,0 +1,81 @@
1
+ # Copyright (c) 2024, [Ribose Inc](https://www.ribose.com).
2
+ # All rights reserved.
3
+ # This file is a part of tebako
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
+ cmake_minimum_required(VERSION 3.15)
27
+ project(cmake-tests)
28
+
29
+
30
+ # Adjust the path to where your macos-environment.cmake is located
31
+ include("${CMAKE_CURRENT_LIST_DIR}/../../cmake-scripts/macos-environment.cmake")
32
+
33
+ # Function to check if a variable is set (not empty)
34
+ function(check_variable_set VAR_NAME)
35
+ if(NOT ${VAR_NAME})
36
+ message(FATAL_ERROR "${VAR_NAME} is not set.")
37
+ endif()
38
+ endfunction()
39
+
40
+ # Function to check if a file/directory exists at the path specified by a variable
41
+ function(check_exists VAR_NAME TYPE)
42
+ if(NOT EXISTS "${${VAR_NAME}}")
43
+ if(TYPE STREQUAL "FILE")
44
+ message(FATAL_ERROR "The file specified in ${VAR_NAME} does not exist: ${${VAR_NAME}}")
45
+ elseif(TYPE STREQUAL "DIRECTORY")
46
+ message(FATAL_ERROR "The directory specified in ${VAR_NAME} does not exist: ${${VAR_NAME}}")
47
+ endif()
48
+ endif()
49
+ endfunction()
50
+
51
+ message(STATUS "BREW_PREFIX: ${BREW_PREFIX}")
52
+ check_variable_set(BREW_PREFIX)
53
+ check_exists(BREW_PREFIX DIRECTORY)
54
+
55
+ message(STATUS "OPENSSL_ROOT_DIR: ${OPENSSL_ROOT_DIR}")
56
+ check_variable_set(OPENSSL_ROOT_DIR)
57
+ check_exists(OPENSSL_ROOT_DIR DIRECTORY)
58
+
59
+ message(STATUS "CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}")
60
+ check_variable_set(CMAKE_PREFIX_PATH)
61
+ check_exists(CMAKE_PREFIX_PATH DIRECTORY)
62
+
63
+ message(STATUS "BREW_BISON_PREFIX: ${BREW_BISON_PREFIX}")
64
+ check_variable_set(BREW_BISON_PREFIX)
65
+ check_exists(BREW_BISON_PREFIX DIRECTORY)
66
+
67
+ message(STATUS "BREW_FLEX_PREFIX: ${BREW_FLEX_PREFIX}")
68
+ check_variable_set(BREW_FLEX_PREFIX)
69
+ check_exists(BREW_FLEX_PREFIX DIRECTORY)
70
+
71
+ message(STATUS "FLEX_EXECUTABLE: ${FLEX_EXECUTABLE}")
72
+ check_variable_set(FLEX_EXECUTABLE)
73
+ check_exists(FLEX_EXECUTABLE FILE)
74
+
75
+ message(STATUS "BREW_BASH_PREFIX: ${BREW_BASH_PREFIX}")
76
+ check_variable_set(BREW_BASH_PREFIX)
77
+ check_exists(BREW_BASH_PREFIX DIRECTORY)
78
+
79
+ message(STATUS "GNU_BASH: ${GNU_BASH}")
80
+ check_variable_set(GNU_BASH)
81
+ check_exists(GNU_BASH FILE)
data/version.txt CHANGED
@@ -1 +1 @@
1
- 0.7.2
1
+ 0.7.3
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.7.2.rc5
4
+ version: 0.7.3.rc4
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-07-09 00:00:00.000000000 Z
11
+ date: 2024-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -104,6 +104,7 @@ files:
104
104
  - tools/cmake-scripts/setup-openssl.cmake
105
105
  - tools/cmake-scripts/version.cmake
106
106
  - tools/include/pro-statvfs.h
107
+ - tools/tests/cmake/CMakeLists.txt
107
108
  - tools/tests/setup-libhowardhinnerdate/CMakeLists.txt
108
109
  - tools/tests/setup-librachive/CMakeLists.txt
109
110
  - tools/tests/setup-libutfcpp/CMakeLists.txt