tebako 0.7.4 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CMakeLists.txt +23 -27
- data/README.adoc +689 -173
- data/common.env +1 -1
- data/lib/tebako/cli_rubies.rb +3 -5
- data/lib/tebako/packager/pass1.rb +25 -12
- data/lib/tebako/packager/pass2.rb +14 -16
- data/lib/tebako/packager/patch_buildsystem.rb +41 -7
- data/lib/tebako/packager/patch_helpers.rb +0 -4
- data/lib/tebako/packager/patch_libraries.rb +85 -68
- data/lib/tebako/packager/patch_literals.rb +15 -17
- data/lib/tebako/version.rb +1 -1
- data/src/tebako-main.cpp +7 -0
- data/version.txt +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91362403f264faf856ec42bf6eb6d8411a595ba037e8d102132147301975f4b1
|
4
|
+
data.tar.gz: 559b3f4aa269c5b0d0b271ebce87046f591adf229afb51a2f5715ac184b2e3de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40d38a252bd29670656293ba1d5beb9bf166159a15380e2e8862448d0312146364882bb441c20891d53aa9742ff07c918f3ff2bb5bb1963b7978392376eb8ea4
|
7
|
+
data.tar.gz: 91228cf1d10a6392b0725418eacfb35a00f982f8a111ed95811c37353a10720f7e786bc169036e41f335faf38e148caf7cdb63410b0fa025bdbf032401b481c5
|
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,-test
|
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,-test
|
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")
|
@@ -201,18 +193,18 @@ set(RUBY_STASH_DIR ${DEPS}/stash_${RUBY_VER})
|
|
201
193
|
string(SUBSTRING ${RUBY_VER} 0 3 RUBY_VER_BASE)
|
202
194
|
string(CONCAT RUBY_API_VER ${RUBY_VER_BASE} ".0")
|
203
195
|
|
204
|
-
if(DWARFS_PRELOAD)
|
205
|
-
def_ext_prj_t(LIBDWARFS_WR "0.5.
|
206
|
-
|
207
|
-
string(REGEX REPLACE "^([0-9]+)\\.([0-9]+)\\.([0-9]+).*" "\\1;\\2;\\3" LIBDWARFS_WR_VER_COMPONENTS ${LIBDWARFS_WR_VER})
|
208
|
-
|
209
|
-
list(GET LIBDWARFS_WR_VER_COMPONENTS 0 LIBDWARFS_WR_VER_MAJOR)
|
210
|
-
list(GET LIBDWARFS_WR_VER_COMPONENTS 1 LIBDWARFS_WR_VER_MINOR)
|
211
|
-
list(GET LIBDWARFS_WR_VER_COMPONENTS 2 LIBDWARFS_WR_VER_PATCH)
|
212
|
-
set (LIBDWARFS_WR_VER_M ${LIBDWARFS_WR_VER_MAJOR}.${LIBDWARFS_WR_VER_MINOR}.${LIBDWARFS_WR_VER_PATCH})
|
213
|
-
else(DWARFS_PRELOAD)
|
214
|
-
|
215
|
-
endif(DWARFS_PRELOAD)
|
196
|
+
#if(DWARFS_PRELOAD)
|
197
|
+
# def_ext_prj_t(LIBDWARFS_WR "0.5.5" "7bf8e5b4432f35b65f6034f614067c2018995c1bebaf935e8cdddc1a3e045c01")
|
198
|
+
#
|
199
|
+
# string(REGEX REPLACE "^([0-9]+)\\.([0-9]+)\\.([0-9]+).*" "\\1;\\2;\\3" LIBDWARFS_WR_VER_COMPONENTS ${LIBDWARFS_WR_VER})
|
200
|
+
#
|
201
|
+
# list(GET LIBDWARFS_WR_VER_COMPONENTS 0 LIBDWARFS_WR_VER_MAJOR)
|
202
|
+
# list(GET LIBDWARFS_WR_VER_COMPONENTS 1 LIBDWARFS_WR_VER_MINOR)
|
203
|
+
# list(GET LIBDWARFS_WR_VER_COMPONENTS 2 LIBDWARFS_WR_VER_PATCH)
|
204
|
+
# set (LIBDWARFS_WR_VER_M ${LIBDWARFS_WR_VER_MAJOR}.${LIBDWARFS_WR_VER_MINOR}.${LIBDWARFS_WR_VER_PATCH})
|
205
|
+
#else(DWARFS_PRELOAD)
|
206
|
+
def_ext_prj_g(DWARFS_WR "v0.5.7")
|
207
|
+
#endif(DWARFS_PRELOAD)
|
216
208
|
|
217
209
|
set(LIBYAML_RUBY_OPTION "")
|
218
210
|
if(${RUBY_VER} VERSION_LESS "3.2.0")
|
@@ -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
|
|
@@ -483,17 +475,21 @@ else (${SETUP_MODE})
|
|
483
475
|
${DEPS_INCLUDE_DIR}/tebako/tebako-version.h
|
484
476
|
)
|
485
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
|
+
|
486
482
|
add_dependencies(tebako-fs packaged_filesystem)
|
487
483
|
|
488
484
|
if (${RUBY_VER} VERSION_LESS "3.0.0")
|
489
485
|
add_custom_target(tebako
|
490
|
-
COMMAND ${CMAKE_COMMAND} -E chdir ${RUBY_SOURCE_DIR} make
|
486
|
+
COMMAND ${CMAKE_COMMAND} -E chdir ${RUBY_SOURCE_DIR} make -j${NCORES}
|
491
487
|
COMMAND ruby ${EXE}/tebako-packager finalize ${OSTYPE_TXT} ${RUBY_SOURCE_DIR} ${APP_NAME}
|
492
488
|
)
|
493
489
|
else()
|
494
490
|
add_custom_target(tebako
|
495
|
-
COMMAND ${CMAKE_COMMAND} -E chdir ${RUBY_SOURCE_DIR} make ruby
|
496
|
-
COMMAND ${CMAKE_COMMAND} -E chdir ${RUBY_SOURCE_DIR} make
|
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}
|
497
493
|
COMMAND ruby ${EXE}/tebako-packager finalize ${OSTYPE_TXT} ${RUBY_SOURCE_DIR} ${APP_NAME}
|
498
494
|
)
|
499
495
|
endif()
|