tebako 0.15.5 → 0.15.7

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: 870838f8bc3e816c81e57029f0723175ec84c10ab8f06310ba7ede8b1c45ab37
4
- data.tar.gz: d0d1a2740cb0400a4e1c62696758fbb9a0abbe20c622a3ed8135c78308471e5c
3
+ metadata.gz: b4b2039af899920b877b932e2b7d41b9b341f80f94447e2c92f9a7737cc448ca
4
+ data.tar.gz: d13fca28934fceb1b242956524f6db65434668a4dd43aa081ca6884bb9ff9a01
5
5
  SHA512:
6
- metadata.gz: 3a5faf5d50ac825a8103f2ebdc6118f49e2bdbf8637b2aeecee26e3780dcddc1d71937d01c1ce8269f8a03c25b19d2b5b888c5bd2c2f1480647103e69ecb3860
7
- data.tar.gz: e9fccfd4b1573b2542f5ffcdac8fc19f7ab753ecdf7542bcb6199c364ea67c36b706560f8d00a6f7cf3036e65f0ceeaf3cb0067e21880b85fd5cd9807f3d516f
6
+ metadata.gz: 6ed176c55dabe69a9cfd56b6cba29a0049fb0d18412c68b9c92a191dcc0f49fa95bb0a12bfd84b0539b55684767a13beffd4806e8d8e1872767afd448ddad362
7
+ data.tar.gz: 5813adbecb08065f52ba8163bf9f3e0a7f50f72c3bd9f23cdbb2d8db9c5e1cde48a6d9cf28de9f87c37cae4df89d10f17af63745e577187ea7c0834ee1ea68e5
data/CMakeLists.txt CHANGED
@@ -112,6 +112,16 @@ elseif("${OSTYPE_TXT}" MATCHES "^darwin.*")
112
112
  set(IS_DARWIN ON)
113
113
  endif()
114
114
 
115
+ if(IS_MSYS AND DWARFS_PRELOAD)
116
+ # The prebuilt windows-ucrt64 libtfs package carries the modern API only:
117
+ # the legacy tebako API (tebako-io/memfs, which tebako-main.cpp consumes)
118
+ # is excluded from the standalone MinGW build by design because its
119
+ # ruby-win32 shims only compile inside the ruby build context. Windows
120
+ # runtimes therefore always build libtfs from source (tebako#345).
121
+ message(STATUS "DWARFS_PRELOAD forced OFF on msys (the prebuilt package lacks the legacy tebako API)")
122
+ set(DWARFS_PRELOAD OFF CACHE BOOL "Deploy the prebuilt libtfs package from the GitHub release" FORCE)
123
+ endif()
124
+
115
125
  if(${RUBY_VER} VERSION_LESS "3.1.0")
116
126
  set(OPENSSL_VER "1.1")
117
127
  else(${RUBY_VER} VERSION_LESS "3.1.0")
@@ -268,7 +268,10 @@ module Tebako
268
268
  "win32/win32.c" => WIN32_WIN32_C_CLOCK_PATCH,
269
269
  # ....................................................
270
270
  # Group-wrap the static-ext ruby.exe link libraries
271
- "common.mk" => COMMON_MK_STATIC_RUBY_LINK_PATCH
271
+ "common.mk" => COMMON_MK_STATIC_RUBY_LINK_PATCH,
272
+ # ....................................................
273
+ # Group-wrap the generated Makefile's PROGRAM link (msys)
274
+ "template/Makefile.in" => TEMPLATE_MAKEFILE_IN_STATIC_RUBY_LINK_PATCH
272
275
  }
273
276
  end
274
277
 
@@ -188,7 +188,10 @@ module Tebako
188
188
  "win32/win32.c" => WIN32_WIN32_C_MSYS_PATCHES,
189
189
  # Group-wrap the static-ext ruby.exe link libraries for the final
190
190
  # build (same common.mk STATIC_RUBY rule as the toolchain build)
191
- "common.mk" => COMMON_MK_STATIC_RUBY_LINK_PATCH
191
+ "common.mk" => COMMON_MK_STATIC_RUBY_LINK_PATCH,
192
+ # ....................................................
193
+ # Group-wrap the generated Makefile's PROGRAM link (msys)
194
+ "template/Makefile.in" => TEMPLATE_MAKEFILE_IN_STATIC_RUBY_LINK_PATCH
192
195
  }
193
196
  end
194
197
  end
@@ -56,6 +56,20 @@ module Tebako
56
56
  "-Wl,--end-group $(OUTFLAG)$@ # tebako patched"
57
57
  }.freeze
58
58
 
59
+ # The PROGRAM link in template/Makefile.in (the generated Makefile --
60
+ # the one the exts.mk submake actually links ruby.exe with) has the same
61
+ # static-lib ordering problem on msys. Ruby 3.3+ links
62
+ # MAINLIBS+EXTLIBS; 3.1/3.2 link MAINLIBS+LIBS+EXTLIBS -- wrap both
63
+ # shapes (only one matches per version, the other is a harmless no-op).
64
+ TEMPLATE_MAKEFILE_IN_STATIC_RUBY_LINK_PATCH = {
65
+ "$(LIBRUBYARG) $(MAINLIBS) $(EXTLIBS) $(OUTFLAG)$@" =>
66
+ "$(LIBRUBYARG) -Wl,--start-group $(MAINLIBS) $(EXTLIBS) -Wl,--end-group $(OUTFLAG)$@ " \
67
+ "# tebako patched",
68
+ "$(LIBRUBYARG) $(MAINLIBS) $(LIBS) $(EXTLIBS) $(OUTFLAG)$@" =>
69
+ "$(LIBRUBYARG) -Wl,--start-group $(MAINLIBS) $(LIBS) $(EXTLIBS) -Wl,--end-group " \
70
+ "$(OUTFLAG)$@ # tebako patched"
71
+ }.freeze
72
+
59
73
  # Ruby patching definitions (common base)
60
74
  class Patch
61
75
  def patch_map
@@ -26,5 +26,5 @@
26
26
  # POSSIBILITY OF SUCH DAMAGE.
27
27
 
28
28
  module Tebako
29
- VERSION = "0.15.5"
29
+ VERSION = "0.15.7"
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.15.5
4
+ version: 0.15.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-07-23 00:00:00.000000000 Z
11
+ date: 2026-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler