tebako 0.7.3 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CMakeLists.txt +20 -29
- data/README.adoc +659 -174
- data/common.env +1 -1
- data/exe/tebako-packager +10 -20
- data/lib/tebako/cli.rb +2 -2
- data/lib/tebako/cli_rubies.rb +3 -5
- data/lib/tebako/deploy_helper.rb +18 -5
- data/lib/tebako/packager/pass1.rb +7 -4
- data/lib/tebako/packager/pass2.rb +14 -16
- data/lib/tebako/packager/patch_buildsystem.rb +41 -7
- data/lib/tebako/packager/patch_helpers.rb +8 -4
- data/lib/tebako/packager/patch_libraries.rb +84 -65
- data/lib/tebako/packager/patch_literals.rb +15 -17
- data/lib/tebako/packager.rb +15 -13
- data/lib/tebako/stripper.rb +30 -7
- data/lib/tebako/version.rb +1 -1
- data/src/tebako-main.cpp +7 -0
- data/version.txt +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 690c1fae126210478beca87208f26cc10aaad5b7081f41d7e25bcc994677d201
|
4
|
+
data.tar.gz: 6cce9afe63c5195679c8fb31a2462a52dce5e31be005e4b1187e2c95672cb2f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e507d6cb7f1cae51c154c10678a14f2954bca20876950979d3c47d9cccbce098e62bfc11f0a1d0514e3de49bf5f51dc5c9acad842a34ea30bddcf1db3a481d70
|
7
|
+
data.tar.gz: cf04ee58de3be8691c9f1e949707f5161d76fd0b056f039c6aa9b5cfd1261978d7458714810e7d5a62c4e73bb4eee536dc2a7a4c42646f9d283dc96c7f6f0ed3
|
data/CMakeLists.txt
CHANGED
@@ -116,13 +116,9 @@ set(IS_MUSL OFF)
|
|
116
116
|
set(IS_MSYS OFF)
|
117
117
|
set(IS_DARWIN OFF)
|
118
118
|
set(RB_W32 OFF)
|
119
|
-
set(RUBY_WITHOUT_EXT "dbm,win32,win32ole
|
119
|
+
set(RUBY_WITHOUT_EXT "dbm,win32,win32ole,-test-/*")
|
120
120
|
set(RUBY_NAME "ruby")
|
121
|
-
set(RUBY_SUFFIX "")
|
122
121
|
set(EXE_SUFFIX "")
|
123
|
-
set(CMD_SUFFIX "")
|
124
|
-
set(BAT_SUFFIX "")
|
125
|
-
set(RUBY_MAKEFILE "")
|
126
122
|
set(DWARFS_PRELOAD OFF)
|
127
123
|
|
128
124
|
if("${OSTYPE_TXT}" MATCHES "^linux-musl.*")
|
@@ -131,12 +127,8 @@ elseif("${OSTYPE_TXT}" MATCHES "^msys*")
|
|
131
127
|
set(IS_MSYS ON)
|
132
128
|
# set(DWARFS_PRELOAD ON)
|
133
129
|
set(RB_W32 ON)
|
134
|
-
set(RUBY_WITHOUT_EXT "dbm,syslog,pty,gdbm,readline
|
135
|
-
#set(RUBY_SUFFIX "w")
|
130
|
+
set(RUBY_WITHOUT_EXT "dbm,syslog,pty,gdbm,readline,-test-/*")
|
136
131
|
set(EXE_SUFFIX ".exe")
|
137
|
-
set(CMD_SUFFIX ".cmd")
|
138
|
-
set(BAT_SUFFIX ".bat")
|
139
|
-
#set(RUBY_MAKEFILE "--file=GNUmakefile")
|
140
132
|
elseif("${OSTYPE_TXT}" MATCHES "^darwin.*")
|
141
133
|
set(IS_DARWIN ON)
|
142
134
|
if(${RUBY_VER} VERSION_LESS "3.1.0")
|
@@ -202,7 +194,7 @@ string(SUBSTRING ${RUBY_VER} 0 3 RUBY_VER_BASE)
|
|
202
194
|
string(CONCAT RUBY_API_VER ${RUBY_VER_BASE} ".0")
|
203
195
|
|
204
196
|
if(DWARFS_PRELOAD)
|
205
|
-
def_ext_prj_t(LIBDWARFS_WR "0.5.
|
197
|
+
def_ext_prj_t(LIBDWARFS_WR "0.5.5" "7bf8e5b4432f35b65f6034f614067c2018995c1bebaf935e8cdddc1a3e045c01")
|
206
198
|
|
207
199
|
string(REGEX REPLACE "^([0-9]+)\\.([0-9]+)\\.([0-9]+).*" "\\1;\\2;\\3" LIBDWARFS_WR_VER_COMPONENTS ${LIBDWARFS_WR_VER})
|
208
200
|
|
@@ -211,7 +203,7 @@ if(DWARFS_PRELOAD)
|
|
211
203
|
list(GET LIBDWARFS_WR_VER_COMPONENTS 2 LIBDWARFS_WR_VER_PATCH)
|
212
204
|
set (LIBDWARFS_WR_VER_M ${LIBDWARFS_WR_VER_MAJOR}.${LIBDWARFS_WR_VER_MINOR}.${LIBDWARFS_WR_VER_PATCH})
|
213
205
|
else(DWARFS_PRELOAD)
|
214
|
-
def_ext_prj_g(DWARFS_WR "v0.5.
|
206
|
+
def_ext_prj_g(DWARFS_WR "v0.5.5")
|
215
207
|
endif(DWARFS_PRELOAD)
|
216
208
|
|
217
209
|
set(LIBYAML_RUBY_OPTION "")
|
@@ -385,8 +377,8 @@ ExternalProject_Add(${RUBY_PRJ}
|
|
385
377
|
${C_FLAGS_DEST}=\"${RUBY_C_FLAGS}\" \
|
386
378
|
LDFLAGS=\"${RUBY_L_FLAGS}\""
|
387
379
|
COMMAND ruby ${EXE}/tebako-packager pass1a ${RUBY_SOURCE_DIR}
|
388
|
-
BUILD_COMMAND make
|
389
|
-
INSTALL_COMMAND make ${
|
380
|
+
BUILD_COMMAND make -j${NCORES}
|
381
|
+
INSTALL_COMMAND make install -j${NCORES}
|
390
382
|
COMMAND ${GNU_BASH} -c "ruby ${EXE}/tebako-packager pass2 ${OSTYPE_TXT} ${RUBY_SOURCE_DIR} ${DEPS_LIB_DIR} ${DATA_SRC_DIR} ${RUBY_STASH_DIR} ${RUBY_VER}"
|
391
383
|
)
|
392
384
|
|
@@ -462,7 +454,6 @@ else (${SETUP_MODE})
|
|
462
454
|
)
|
463
455
|
|
464
456
|
add_custom_target(packaged_filesystem
|
465
|
-
COMMAND ruby ${EXE}/tebako-packager strip ${OSTYPE_TXT} ${DATA_SRC_DIR}
|
466
457
|
COMMAND ${GNU_BASH} -c "chmod +x ${DEPS_BIN_DIR}/mkdwarfs${EXE_SUFFIX}"
|
467
458
|
# No progress below is critical since in reporting mode mkdwarfs tries to work directly with terminal
|
468
459
|
# and it creates issues for stderr redirects (&2 > 1) used by Ninja and our test srcipts
|
@@ -484,25 +475,25 @@ else (${SETUP_MODE})
|
|
484
475
|
${DEPS_INCLUDE_DIR}/tebako/tebako-version.h
|
485
476
|
)
|
486
477
|
|
478
|
+
if(${RUBY_VER} VERSION_LESS "3.3.0" AND "${OSTYPE_TXT}" MATCHES "^msys*")
|
479
|
+
target_compile_definitions(tebako-fs PUBLIC RB_W32_PRE_33)
|
480
|
+
endif(${RUBY_VER} VERSION_LESS "3.3.0" AND "${OSTYPE_TXT}" MATCHES "^msys*")
|
481
|
+
|
487
482
|
add_dependencies(tebako-fs packaged_filesystem)
|
488
483
|
|
489
484
|
if (${RUBY_VER} VERSION_LESS "3.0.0")
|
490
|
-
add_custom_target(
|
491
|
-
COMMAND ${CMAKE_COMMAND} -E chdir ${RUBY_SOURCE_DIR} make
|
492
|
-
|
485
|
+
add_custom_target(tebako
|
486
|
+
COMMAND ${CMAKE_COMMAND} -E chdir ${RUBY_SOURCE_DIR} make -j${NCORES}
|
487
|
+
COMMAND ruby ${EXE}/tebako-packager finalize ${OSTYPE_TXT} ${RUBY_SOURCE_DIR} ${APP_NAME}
|
488
|
+
)
|
493
489
|
else()
|
494
|
-
add_custom_target(
|
495
|
-
COMMAND ${CMAKE_COMMAND} -E chdir ${RUBY_SOURCE_DIR} make ruby
|
496
|
-
COMMAND ${CMAKE_COMMAND} -E chdir ${RUBY_SOURCE_DIR} make
|
497
|
-
|
490
|
+
add_custom_target(tebako
|
491
|
+
COMMAND ${CMAKE_COMMAND} -E chdir ${RUBY_SOURCE_DIR} make ruby -j${NCORES}
|
492
|
+
COMMAND ${CMAKE_COMMAND} -E chdir ${RUBY_SOURCE_DIR} make -j${NCORES}
|
493
|
+
COMMAND ruby ${EXE}/tebako-packager finalize ${OSTYPE_TXT} ${RUBY_SOURCE_DIR} ${APP_NAME}
|
494
|
+
)
|
498
495
|
endif()
|
499
496
|
|
500
|
-
add_dependencies(
|
501
|
-
|
502
|
-
add_custom_target(tebako ALL
|
503
|
-
COMMAND ${CMAKE_COMMAND} -E copy ${RUBY_SOURCE_DIR}/ruby${RUBY_SUFFIX}${EXE_SUFFIX} ${APP_NAME}${EXE_SUFFIX}
|
504
|
-
COMMAND ${CMAKE_COMMAND} -E echo "Tebako packaging has completed"
|
505
|
-
DEPENDS patched_ruby
|
506
|
-
)
|
497
|
+
add_dependencies(tebako setup tebako-fs)
|
507
498
|
|
508
499
|
endif(${SETUP_MODE})
|