tebako 0.8.3 → 0.8.5

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: cf7f343e3ed1cef12b766eaa2cc0834c31882f7cf78629b5079856d9c5b94765
4
- data.tar.gz: 852554fa13a1c95a22bef4234a2063f0879b66ffd53b0cc2635b232c8dbfa1bd
3
+ metadata.gz: ebe002df1e8e8daadd33a026a9c6025942fbfd862a3db0c3ef1c65ffefa4b631
4
+ data.tar.gz: d814f2f7c57f01d497472afb7262f7ae635af13f16e107eaa3794dd180474309
5
5
  SHA512:
6
- metadata.gz: ad25d6a39cb8a2b3ff00d2f109299682da1cdceda1b852e9ea6b144b6bfbc4e087a70e9441295196623e10f5f9281390fefa2c9d9b40858e7beb622d6a860275
7
- data.tar.gz: fdcf01004d51fafd178f76fc7684140653cdf84dc8ea400c2956713c7034e0b8f99b7ff46f236babc1b8b313ac4f199b128d0c6fb8d5f71af93baa215c23e743
6
+ metadata.gz: c2e39d4b7869385b5ef17ed3e6233ea83040f18b8b791a8ac195c3a4c94846954e4a7a1ef64e6a176fd4f4c335cd81c234446b41602e8dcd45e03fdde137cf83
7
+ data.tar.gz: e97d5ffc1d62860a623d3a342a7258f43bbfd9922cb341a26cc6ffcdeda8d5efac2aafa1e67d6e0d8e5e1d7edf6860b5a91df7d739f6e38aa192fa3bc342addc
data/CMakeLists.txt CHANGED
@@ -33,8 +33,9 @@ if(${CMAKE_VERSION} VERSION_GREATER "3.23.10")
33
33
  cmake_policy(SET CMP0135 NEW)
34
34
  endif()
35
35
 
36
- include(${CMAKE_CURRENT_SOURCE_DIR}/tools/cmake-scripts/version.cmake)
37
- determine_version("${CMAKE_CURRENT_SOURCE_DIR}" TEBAKO)
36
+ if ("-${TEBAKO_VERSION}" STREQUAL "-")
37
+ message(FATAL_ERROR "Tebako version is not specified.")
38
+ endif()
38
39
 
39
40
  project(tebako_packager VERSION ${TEBAKO_VERSION})
40
41
 
@@ -203,7 +204,7 @@ string(CONCAT RUBY_API_VER ${RUBY_VER_BASE} ".0")
203
204
  # list(GET LIBDWARFS_WR_VER_COMPONENTS 2 LIBDWARFS_WR_VER_PATCH)
204
205
  # set (LIBDWARFS_WR_VER_M ${LIBDWARFS_WR_VER_MAJOR}.${LIBDWARFS_WR_VER_MINOR}.${LIBDWARFS_WR_VER_PATCH})
205
206
  #else(DWARFS_PRELOAD)
206
- def_ext_prj_g(DWARFS_WR "v0.5.8")
207
+ def_ext_prj_g(DWARFS_WR "v0.5.9")
207
208
  #endif(DWARFS_PRELOAD)
208
209
 
209
210
  set(LIBYAML_RUBY_OPTION "")
@@ -331,7 +332,7 @@ endif(DWARFS_PRELOAD)
331
332
  # Ruby
332
333
 
333
334
  set(RUBY_L_FLAGS "-L${DEPS_LIB_DIR} -L${CMAKE_CURRENT_BINARY_DIR}")
334
- set(RUBY_C_FLAGS "-pthread -I${DEPS_INCLUDE_DIR} -I${CMAKE_CURRENT_SOURCE_DIR}/include")
335
+ set(RUBY_C_FLAGS "-fPIC -I${DEPS_INCLUDE_DIR} -I${CMAKE_CURRENT_SOURCE_DIR}/include")
335
336
 
336
337
  # Shadow
337
338
  # https://github.com/deivid-rodriguez/byebug/issues/825
@@ -340,16 +341,13 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
340
341
  string(CONCAT RUBY_C_FLAGS ${RUBY_C_FLAGS} " -fdeclspec")
341
342
  endif()
342
343
 
343
- set(C_FLAGS_DEST cppflags)
344
+ set(C_FLAGS_DEST cflags)
344
345
 
345
346
  if(IS_DARWIN)
346
347
  string(CONCAT RUBY_C_FLAGS ${RUBY_C_FLAGS} " -I${BREW_PREFIX}/opt/openssl@${OPENSSL_VER}/include -I${BREW_PREFIX}/opt/zlib/include -I${BREW_PREFIX}/include")
347
348
  string(CONCAT RUBY_L_FLAGS ${RUBY_L_FLAGS} " -L${BREW_PREFIX}/opt/openssl@${OPENSSL_VER}/lib -L${BREW_PREFIX}/opt/zlib/lib -L${BREW_PREFIX}/lib")
348
349
  set(OPENSSL_RUBY_OPTION "--with-openssl-dir=${BREW_PREFIX}/opt/openssl@${OPENSSL_VER}")
349
- set(C_FLAGS_DEST cflags)
350
350
  else(IS_DARWIN)
351
- string(CONCAT RUBY_L_FLAGS ${RUBY_L_FLAGS} " -static-libgcc")
352
-
353
351
  if(IS_MUSL)
354
352
  string(CONCAT RUBY_C_FLAGS ${RUBY_C_FLAGS} " -DENABLE_PATH_CHECK=0")
355
353
  endif(IS_MUSL)
@@ -357,7 +355,13 @@ else(IS_DARWIN)
357
355
  if(RB_W32)
358
356
  string(CONCAT RUBY_C_FLAGS ${RUBY_C_FLAGS} " -DRB_W32=1")
359
357
  string(CONCAT RUBY_L_FLAGS ${RUBY_L_FLAGS} " -l:libstdc++.a -L${TLIBD}")
358
+ set(C_FLAGS_DEST cppflags)
360
359
  endif(RB_W32)
360
+
361
+ # Ruby 2.7 configure script error
362
+ if(${RUBY_VER} VERSION_LESS "3.0.0")
363
+ set(C_FLAGS_DEST cppflags)
364
+ endif()
361
365
  endif(IS_DARWIN)
362
366
 
363
367
  message(STATUS "Ruby build ${C_FLAGS_DEST}='${RUBY_C_FLAGS}'")
@@ -484,6 +488,9 @@ else (${SETUP_MODE})
484
488
  ${DEPS_INCLUDE_DIR}/tebako/tebako-version.h
485
489
  )
486
490
 
491
+ #et_target_properties(tebako-fs PROPERTIES POSITION_INDEPENDENT_CODE ON)
492
+ #target_compile_options(tebako-fs PRIVATE -fPIE)
493
+
487
494
  if(${RUBY_VER} VERSION_LESS "3.3.0" AND "${OSTYPE_TXT}" MATCHES "^msys*")
488
495
  target_compile_definitions(tebako-fs PUBLIC RB_W32_PRE_33)
489
496
  endif(${RUBY_VER} VERSION_LESS "3.3.0" AND "${OSTYPE_TXT}" MATCHES "^msys*")
data/Rakefile CHANGED
@@ -33,14 +33,3 @@ RuboCop::RakeTask.new
33
33
  RSpec::Core::RakeTask.new(:spec)
34
34
 
35
35
  task default: %i[rubocop spec]
36
-
37
- desc "Generate version.txt"
38
- task "generate_version_txt" do
39
- require_relative "lib/tebako/version"
40
- version_without_rc = Tebako::VERSION.gsub(/\.rc\d+/, "")
41
- File.write(File.join(__dir__, "version.txt"), "#{version_without_rc}\n")
42
- puts "Generating #{File.join(__dir__, "version.txt")}; version = #{version_without_rc}"
43
- end
44
-
45
- task build: :generate_version_txt
46
- task release: :generate_version_txt
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.8
4
+ DWARFS_WR_TAG=v0.5.9
5
5
  RUBY_VER=3.2.5
@@ -55,7 +55,8 @@ module Tebako
55
55
  # So we have to use \"xxx\"
56
56
  @cfg_options ||=
57
57
  "-DCMAKE_BUILD_TYPE=Release -DRUBY_VER:STRING=\"#{ruby_ver}\" -DRUBY_HASH:STRING=\"#{ruby_hash}\" " \
58
- "-DDEPS:STRING=\"#{deps}\" -G \"#{m_files}\" -B \"#{output_folder}\" -S \"#{source}\""
58
+ "-DDEPS:STRING=\"#{deps}\" -G \"#{m_files}\" -B \"#{output_folder}\" -S \"#{source}\" " \
59
+ "-DTEBAKO_VERSION:STRING=\"#{Tebako::VERSION}\""
59
60
  end
60
61
 
61
62
  def clean_cache
@@ -100,7 +100,7 @@ module Tebako
100
100
  end
101
101
 
102
102
  def needs_bundler?
103
- @gf_length.positive?
103
+ @gf_length.positive? && !@ruby_ver.ruby31?
104
104
  end
105
105
 
106
106
  def update_rubygems
@@ -171,14 +171,28 @@ module Tebako
171
171
  end
172
172
 
173
173
  def configure_commands
174
- @cmd_suffix = @os_type =~ /msys/ ? ".cmd" : ""
175
- @bat_suffix = @os_type =~ /msys/ ? ".bat" : ""
174
+ if @os_type =~ /msys/
175
+ configure_commands_msys
176
+ else
177
+ configure_commands_not_msys
178
+ end
176
179
 
177
180
  @gem_command = File.join(@tbd, "gem#{@cmd_suffix}")
178
181
  @bundler_command = File.join(@tbd, "bundle#{@bat_suffix}")
182
+ end
183
+
184
+ def configure_commands_msys
185
+ @cmd_suffix = ".cmd"
186
+ @bat_suffix = ".bat"
187
+ @force_ruby_platform = "true"
188
+ @nokogiri_option = "--use-system-libraries"
189
+ end
179
190
 
180
- @force_ruby_platform = @os_type =~ /msys|linux-musl/ ? "true" : "false"
181
- @nokogiri_option = @os_type =~ /msys/ ? "--use-system-libraries" : "--no-use-system-libraries"
191
+ def configure_commands_not_msys
192
+ @cmd_suffix = ""
193
+ @bat_suffix = ""
194
+ @force_ruby_platform = "false"
195
+ @nokogiri_option = "--no-use-system-libraries"
182
196
  end
183
197
 
184
198
  def configure_scenario
@@ -71,7 +71,6 @@ module Tebako
71
71
 
72
72
  class << self
73
73
  def get_main_c_patch(ruby_ver)
74
- puts get_main_c_main_pattern(ruby_ver)
75
74
  {
76
75
  get_main_c_main_pattern(ruby_ver) => get_main_c_main_subst(ruby_ver),
77
76
  "ruby_init();" => MAIN_C_SUBST_RB_MAIN_INNER,
@@ -26,5 +26,5 @@
26
26
  # POSSIBILITY OF SUCH DAMAGE.
27
27
 
28
28
  module Tebako
29
- VERSION = "0.8.3"
29
+ VERSION = "0.8.5"
30
30
  end
data/tebako.gemspec CHANGED
@@ -55,8 +55,6 @@ Gem::Specification.new do |spec|
55
55
  end
56
56
  end
57
57
 
58
- spec.files << "version.txt"
59
-
60
58
  spec.bindir = "exe"
61
59
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
62
60
  spec.require_paths = %w[cmake exe ext include lib resources src tools/ci-scripts tools/cmake-scripts tools/includes]
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.8.3
4
+ version: 0.8.5
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-08-14 00:00:00.000000000 Z
11
+ date: 2024-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -209,7 +209,6 @@ files:
209
209
  - tools/tests/setup-libhowardhinnerdate/CMakeLists.txt
210
210
  - tools/tests/setup-librachive/CMakeLists.txt
211
211
  - tools/tests/setup-libutfcpp/CMakeLists.txt
212
- - version.txt
213
212
  homepage: https://github.com/tamatebako/tebako
214
213
  licenses:
215
214
  - BSD-2-Clause
data/version.txt DELETED
@@ -1 +0,0 @@
1
- 0.8.3