leptris 1.9.412.2-ppc64le-linux → 1.9.412.4-ppc64le-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 +4 -4
- data/Rakefile +26 -1
- data/ext/leptris/native/extconf.rb +13 -1
- data/lib/leptris/version.rb +1 -1
- data/lib/libleptris.so +0 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 40cc1166f634ae7f04e234ef530e6caa18d12015bb43095a999150f37b66fcad
|
|
4
|
+
data.tar.gz: a7b72a967f1b32bd028947bc52c85e87c3e9dddd3aab2f53ddca1ca33c4fa7ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 63c9a75e8010b59848e4d0764b73857c92b4f18c62a96e12cfa8e6222a8ec30aaac2b1bfbe4da90ec6d025f9ff398166be5468014d641fade80d6f614a7dfb56
|
|
7
|
+
data.tar.gz: 33860512d21854f529c1187f6b4b2a18fac8b2a310718838ae44b0a2037a1ca292f0c0ca7fafa1f9ff9c27893d95aa952506764fd5fbaa2563cdfac48916cee8
|
data/Rakefile
CHANGED
|
@@ -181,9 +181,34 @@ task :compile do
|
|
|
181
181
|
# 11.0 = the oldest macOS GitHub still hosts runners for;
|
|
182
182
|
# matches extconf.rb.
|
|
183
183
|
ENV["MACOSX_DEPLOYMENT_TARGET"] ||= "11.0" if RUBY_PLATFORM =~ /darwin/
|
|
184
|
+
# Linux: the vendored libutf8proc sits BESIDE libleptris in the gem's
|
|
185
|
+
# lib/ — resolve it by $ORIGIN, not by the build prefix's absolute
|
|
186
|
+
# RUNPATH and not by the ffi pre-load trick. The trick works on glibc
|
|
187
|
+
# and dyld (both reuse an already-loaded SONAME/install-name when
|
|
188
|
+
# resolving a later NEEDED entry) but NOT on musl, whose dependency
|
|
189
|
+
# search consults the filesystem paths only — the tebako musl smoke
|
|
190
|
+
# (packed-metanorma) failed exactly there: libleptris loaded, its
|
|
191
|
+
# libutf8proc.so.3 unfound. $ORIGIN is honored by glibc, musl, and
|
|
192
|
+
# any ELF loader; `-z origin` sets DF_ORIGIN for the loaders that
|
|
193
|
+
# gate on it. The `\$` survives Rake's `sh` (a shell).
|
|
194
|
+
# macOS keeps @rpath + the ffi pre-load (working, and $ORIGIN is not
|
|
195
|
+
# the macOS spelling); Windows has no rpath at all.
|
|
196
|
+
# The whole -D value must be ONE shell word: cmake_base runs through
|
|
197
|
+
# Rake's `sh` (bash), and an unquoted space splits it — cmake then
|
|
198
|
+
# sees SHARED_LINKER_FLAGS="-Wl,-z,origin" (rpath lost as a stray
|
|
199
|
+
# positional; the 1.9.412.3 gems shipped without the $ORIGIN RUNPATH
|
|
200
|
+
# for exactly this reason). The embedded double quotes survive bash;
|
|
201
|
+
# the backslash keeps $ORIGIN literal through the same shell.
|
|
202
|
+
origin_rpath =
|
|
203
|
+
if RUBY_PLATFORM =~ /linux/
|
|
204
|
+
'"-DCMAKE_SHARED_LINKER_FLAGS=-Wl,-z,origin -Wl,-rpath,\\$ORIGIN"'
|
|
205
|
+
else
|
|
206
|
+
""
|
|
207
|
+
end
|
|
184
208
|
cmake_base =
|
|
185
209
|
"#{CMAKE_FLAGS.join(' ').sub('-DLEPTRIS_ENABLE_UTF8PROC=OFF', '-DLEPTRIS_ENABLE_UTF8PROC=ON')} " \
|
|
186
|
-
"-DCMAKE_PREFIX_PATH=#{u8_prefix} #{cflags.empty? ? '' : "-DCMAKE_C_FLAGS=#{cflags}"}"
|
|
210
|
+
"-DCMAKE_PREFIX_PATH=#{u8_prefix} #{cflags.empty? ? '' : "-DCMAKE_C_FLAGS=#{cflags}"} " \
|
|
211
|
+
"#{origin_rpath}".strip
|
|
187
212
|
|
|
188
213
|
# Two-stage PGO (engine CMake: LEPTRIS_ENABLE_PGO GENERATE/USE;
|
|
189
214
|
# measured ~20% CPU on the DOM parse path, v1.9.188 worktree A/B,
|
|
@@ -69,13 +69,25 @@ if !prebuilt && File.directory?(File.join(vendored, "libleptris")) &&
|
|
|
69
69
|
eng_src = File.join(vendored, "libleptris")
|
|
70
70
|
eng_bld = File.join(vendored, "libleptris-build")
|
|
71
71
|
FileUtils.mkpath(eng_bld)
|
|
72
|
+
# Linux: resolve the vendored libutf8proc by $ORIGIN (it installs
|
|
73
|
+
# BESIDE libleptris in the gem's lib/). glibc/dyld forgive the
|
|
74
|
+
# missing rpath through their soname/install-name reuse of the ffi
|
|
75
|
+
# pre-load; musl does not (its dependency search reads filesystem
|
|
76
|
+
# paths only). Array spawn: no shell, `$ORIGIN` passes literally.
|
|
77
|
+
origin_flags =
|
|
78
|
+
if RUBY_PLATFORM =~ /linux/
|
|
79
|
+
["-DCMAKE_SHARED_LINKER_FLAGS=-Wl,-z,origin -Wl,-rpath,$ORIGIN"]
|
|
80
|
+
else
|
|
81
|
+
[]
|
|
82
|
+
end
|
|
72
83
|
sh_ok.call("cmake", "-B", eng_bld, "-S", eng_src,
|
|
73
84
|
"-DCMAKE_BUILD_TYPE=Release",
|
|
74
85
|
"-DLEPTRIS_BUILD_SHARED=ON", "-DLEPTRIS_BUILD_STATIC=OFF",
|
|
75
86
|
"-DBUILD_TESTING=OFF", "-DLEPTRIS_BUILD_CLI=OFF",
|
|
76
87
|
"-DLEPTRIS_BUILD_BENCHMARKS=OFF", "-DLEPTRIS_BUILD_MAN_PAGES=OFF",
|
|
77
88
|
"-DLEPTRIS_ENABLE_UTF8PROC=ON",
|
|
78
|
-
"-DCMAKE_PREFIX_PATH=#{u8_pre}"
|
|
89
|
+
"-DCMAKE_PREFIX_PATH=#{u8_pre}",
|
|
90
|
+
*origin_flags)
|
|
79
91
|
sh_ok.call("cmake", "--build", eng_bld, "--config", "Release",
|
|
80
92
|
ENV.fetch("MAKEFLAGS", "-j4").split.first || "-j4")
|
|
81
93
|
built = Dir.glob(File.join(eng_bld, "**", "libleptris.{so,dylib,dll}")).first
|
data/lib/leptris/version.rb
CHANGED
data/lib/libleptris.so
CHANGED
|
Binary file
|