tebako 0.13.2 → 0.13.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17e2c5b654cd6188dec1de9874d34ca4fddcc6fb3aa0f6bdd18ec18d3db14402
4
- data.tar.gz: 903cdc26d5f1daeb7e98379a337e941511c7ae9809e361430db83afde9ed8f63
3
+ metadata.gz: bd66721b801c97f1aea46d966e31f06f87e1c317a351c912b41243b65180e8ee
4
+ data.tar.gz: f232c76a4cb3624435785ad467fc90d88dd95e933685ce05fedbf5b73098f6d9
5
5
  SHA512:
6
- metadata.gz: ea09b89806414e713f47dedfc7ec276ccf3c9943f4f62bcdd46cadeefb1f65700faa63307f3e4329bdfc0e86cd84e5cb7575ec08ec1c52b8b63a51fceea58051
7
- data.tar.gz: 8f7ba88f3903ba9923fd410e45fbaab1d6b711c5c0d54a9f9af9cd44a931fbe55e7bd01f5f64fda60c64f3787e0b61f8d6bc3764ec396efced29d5841aeb94d7
6
+ metadata.gz: 3bafe4874a1a36fa91099f1aa55f9236bdb469363b6d3bc83daed7be6932f4b19dde841b4d2f1f4ab2c70d979407760b444e95e28e00bd28e8f7b09772f5cca8
7
+ data.tar.gz: 19683dd962edcc5e80d31e302874e09593b97c1a2c7eec5fd2ccc81f29ccd87054f1018359f37db20a121d3d59c9aea99d5e8bf4ad944c857ce331842ad42bc4
data/CMakeLists.txt CHANGED
@@ -319,7 +319,11 @@ endif(IS_GNU)
319
319
  # Ruby
320
320
 
321
321
  set(RUBY_L_FLAGS "-L${DEPS_LIB_DIR} -L${CMAKE_CURRENT_BINARY_DIR}")
322
- set(RUBY_C_FLAGS "-fPIC -I${DEPS_INCLUDE_DIR} -I${CMAKE_CURRENT_SOURCE_DIR}/include")
322
+ set(RUBY_C_FLAGS "-fPIC -I${DEPS_INCLUDE_DIR} -I${CMAKE_CURRENT_SOURCE_DIR}/include -Wno-incompatible-pointer-types")
323
+
324
+ if(${RUBY_VER} VERSION_LESS "3.2.0" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "15.0.0" AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
325
+ string(CONCAT RUBY_C_FLAGS ${RUBY_C_FLAGS} " -std=gnu17")
326
+ endif(${RUBY_VER} VERSION_LESS "3.2.0" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "15.0.0" AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
323
327
 
324
328
  # Shadow
325
329
  # https://github.com/deivid-rodriguez/byebug/issues/825
data/lib/tebako/cli.rb CHANGED
@@ -56,8 +56,9 @@ module Tebako
56
56
  desc: "tebako configuration file 'tebafile', '$PWD/.tebako.yml' by default"
57
57
  desc "clean", "Clean tebako packaging environment"
58
58
  def clean
59
- (_, cm) = bootstrap(clean: true)
59
+ (om, cm) = bootstrap(clean: true)
60
60
  cm.clean_cache
61
+ extra_win_clean([om.deps])
61
62
  end
62
63
 
63
64
  desc "clean_ruby", "Clean Ruby source from tebako packaging environment"
@@ -121,6 +121,11 @@ module Tebako
121
121
  "Logging::message \"=== Checking done. ===\\n\"" => OPENSSL_EXTCONF_RB_SUBST
122
122
  }.freeze
123
123
 
124
+ ENC_JIS_PROPS_H_PATCH = {
125
+ "static const struct enc_property *onig_jis_property(/*const char *str, unsigned int len*/);" =>
126
+ "/* tebako patched */ static const struct enc_property *onig_jis_property(const char *str, size_t len);"
127
+ }.freeze
128
+
124
129
  def initialize(mount_point, ruby_ver)
125
130
  super(mount_point)
126
131
  @ruby_ver = ruby_ver
@@ -161,6 +166,10 @@ module Tebako
161
166
  # fails to deal with a default gem from statically linked extension
162
167
  pm.store("lib/rubygems/openssl.rb", RUBYGEMS_OPENSSL_RB_PATCH) if @ruby_ver.ruby3x?
163
168
 
169
+ # ....................................................
170
+ # fix onig_jis_property signature (gcc 15 compatibility issue)
171
+ pm.store("enc/jis/props.h", ENC_JIS_PROPS_H_PATCH) unless @ruby_ver.ruby32?
172
+
164
173
  pm.freeze
165
174
  end
166
175
  end
@@ -189,6 +198,11 @@ module Tebako
189
198
  "wWinMain(HINSTANCE current, HINSTANCE prev, LPWSTR cmdline, int showcmd) /* tebako patched */"
190
199
  }.freeze
191
200
 
201
+ EXT_IO_CONSOLE_WIN32_VK_INC_PATCH = {
202
+ "static const struct vktable *console_win32_vk(/*const char *, unsigned int*/);" =>
203
+ "/* tebako patched */ static const struct vktable *console_win32_vk(const char *, size_t);"
204
+ }.freeze
205
+
192
206
  def patch_map
193
207
  pm = msys_patches
194
208
  pm.merge!(super)
@@ -229,7 +243,10 @@ module Tebako
229
243
  "cygwin/GNUmakefile.in" => gnumakefile_in_patch_p1,
230
244
  # ....................................................
231
245
  # RUBY_EXPORT=1 (shall be set for static builds but is missing in openssl extension)
232
- "ext/openssl/extconf.rb" => OPENSSL_EXTCONF_RB_PATCH
246
+ "ext/openssl/extconf.rb" => OPENSSL_EXTCONF_RB_PATCH,
247
+ # ....................................................
248
+ # Fix the signature of console_win32_vk
249
+ "ext/io/console/win32_vk.inc" => EXT_IO_CONSOLE_WIN32_VK_INC_PATCH
233
250
  }
234
251
  end
235
252
 
@@ -26,5 +26,5 @@
26
26
  # POSSIBILITY OF SUCH DAMAGE.
27
27
 
28
28
  module Tebako
29
- VERSION = "0.13.2"
29
+ VERSION = "0.13.4"
30
30
  end
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.2
4
+ version: 0.13.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: 2025-04-12 00:00:00.000000000 Z
11
+ date: 2025-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler