emf2svg 1.8.2.0-x86_64-linux → 1.8.2.1-x86_64-linux

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: ca0ab6f460417ed0442ca9d8d6d0a9a2f2c4c823d8b4380382c3ebe6caee6475
4
- data.tar.gz: c87e654f5960ec26026295c9baa190ab636a14364467abfa35cb7f4f57d9f3c1
3
+ metadata.gz: 2e75877df205536667950fd9906a83a19d0825c33aeaa91ab19be53802061e75
4
+ data.tar.gz: eb3c490951fbe321d3500fa123c4af5f9ac7c3ea0629ca1c7f99dde7e1849c48
5
5
  SHA512:
6
- metadata.gz: 04c5ea5379145d37eb3a99d6a5c3279d8bb0f7763f7d2b489e7202c8cb4220413cfb632b6bef2447dd515918a788a5427bb7dcc2a8ab0255f2d61b7e3e84a661
7
- data.tar.gz: d7cff931e8531ba0835a43d31fa6577bcd257f8d1556459c06aa49a74f48c768768d73d5212597e799b1caebec5ad335582ee9414e7a48d3714c15d050ae5d18
6
+ metadata.gz: 6a9be932b12eb3ede6db42614cd24593302635d6b41c694d0e2c82ead471ee690bf6b67adb11133fe9e3174b8f77b4ed3e19daa05db5cacba944ba2ff60d37a3
7
+ data.tar.gz: 26fb0383cc98f3e2ad61576812e10cb67c3200f023a8dc77dfcf3096683545988e6f49beeecda8f76606c6dc9617cf31b88d04e0eddb25c61ca23bcf26967dee
Binary file
@@ -41,9 +41,27 @@ module Emf2svg
41
41
  # vcpkg into the work path before CMake configure runs.
42
42
  def configure
43
43
  bootstrap_vcpkg
44
+ export_toolchain_to_env
44
45
  super
45
46
  end
46
47
 
48
+ # Downstream consumers (e.g. metanorma) sometimes patch RbConfig at
49
+ # runtime to point Ruby's toolchain at a known-good compiler, but
50
+ # those overrides live in the Ruby process and don't reach the raw
51
+ # cmake subprocess that mini_portile2 spawns. The result is
52
+ # "CMAKE_C_COMPILER not set" when the deploy environment has a
53
+ # stripped PATH. Mirror the resolved RbConfig toolchain into ENV so
54
+ # the subprocess sees the same compiler the running Ruby was built
55
+ # with.
56
+ def export_toolchain_to_env
57
+ %w[CC CXX LDFLAGS].each do |var|
58
+ val = RbConfig::CONFIG[var]
59
+ next if val.nil? || val.empty?
60
+
61
+ ENV[var] = val
62
+ end
63
+ end
64
+
47
65
  def bootstrap_vcpkg
48
66
  vcpkg_root = File.join(work_path, "vcpkg")
49
67
  return if vcpkg_bootstrapped?(vcpkg_root)
@@ -13,6 +13,6 @@ module Emf2svg
13
13
  #
14
14
  # See README.adoc -> "Versioning" for the rationale and examples.
15
15
  LIBEMF2SVG_VERSION = "1.8.2"
16
- LIBEMF2SVG_RUBY_ITERATION = 0
16
+ LIBEMF2SVG_RUBY_ITERATION = 1
17
17
  VERSION = "#{LIBEMF2SVG_VERSION}.#{LIBEMF2SVG_RUBY_ITERATION}"
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emf2svg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2.0
4
+ version: 1.8.2.1
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Ribose