tebako 0.12.1 → 0.12.2.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tebako/packager/patch_helpers.rb +8 -4
- data/lib/tebako/packager.rb +23 -21
- data/lib/tebako/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06e1e30ca9498fc820c4542d21d2538595cdda40a6e2ec11ca7e659cf08f719c
|
4
|
+
data.tar.gz: a557881dc9479db05f80619f0f5fddcd0c4750ca4e876729dfd56b2a73c03d0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '02589f8549280219cbdfff069cca76d78f65b38ba2bcfce8f594bb068a2ef4258a356825e83154eed837c3ee0bb20dab48760e308421751f7275a928e47b52b8'
|
7
|
+
data.tar.gz: efa5b3bcd94ff118540fbce181669a93c72634abecb4d34b1352301ea4c59f09005ef3ab303f7b012b8931dc839759c95b68c3845770d85198ef5b57493b54c9
|
@@ -91,8 +91,12 @@ module Tebako
|
|
91
91
|
FileUtils.mkdir(dirname)
|
92
92
|
end
|
93
93
|
|
94
|
-
def restore_and_save(fname)
|
95
|
-
|
94
|
+
def restore_and_save(fname, strict: true)
|
95
|
+
unless File.exist?(fname)
|
96
|
+
return unless strict
|
97
|
+
|
98
|
+
raise Tebako::Error, "Could not save #{fname} because it does not exist."
|
99
|
+
end
|
96
100
|
|
97
101
|
old_fname = "#{fname}.old"
|
98
102
|
if File.exist?(old_fname)
|
@@ -102,9 +106,9 @@ module Tebako
|
|
102
106
|
FileUtils.cp(fname, old_fname)
|
103
107
|
end
|
104
108
|
|
105
|
-
def restore_and_save_files(files, ruby_source_dir)
|
109
|
+
def restore_and_save_files(files, ruby_source_dir, strict: true)
|
106
110
|
files.each do |fname|
|
107
|
-
restore_and_save
|
111
|
+
restore_and_save("#{ruby_source_dir}/#{fname}", strict: strict)
|
108
112
|
end
|
109
113
|
end
|
110
114
|
|
data/lib/tebako/packager.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (c) 2021-
|
3
|
+
# Copyright (c) 2021-2025 [Ribose Inc](https://www.ribose.com).
|
4
4
|
# All rights reserved.
|
5
5
|
# This file is a part of tebako
|
6
6
|
#
|
@@ -43,25 +43,29 @@ module Tebako
|
|
43
43
|
# Tebako packaging support (internal)
|
44
44
|
module Packager
|
45
45
|
FILES_TO_RESTORE = %w[
|
46
|
-
|
46
|
+
common.mk
|
47
|
+
configure
|
48
|
+
config.status
|
47
49
|
dir.c
|
48
50
|
dln.c
|
49
51
|
file.c
|
50
|
-
io.c
|
51
|
-
tool/mkconfig.rb
|
52
52
|
gem_prelude.rb
|
53
|
-
|
54
|
-
|
55
|
-
|
53
|
+
io.c
|
54
|
+
main.c
|
55
|
+
Makefile
|
56
56
|
ruby.c
|
57
|
-
win32/file.c
|
58
|
-
].freeze
|
59
|
-
# Do not need to restore cygwin/GNUmakefile.in
|
60
|
-
# because it is patched (differently) both on pass 1 and pass2
|
61
|
-
# cygwin/GNUmakefile.in
|
62
|
-
|
63
|
-
FILES_TO_RESTORE_MUSL = %w[
|
64
57
|
thread_pthread.c
|
58
|
+
util.c
|
59
|
+
ext/bigdecimal/bigdecimal.h
|
60
|
+
ext/Setup
|
61
|
+
cygwin/GNUmakefile.in
|
62
|
+
include/ruby/onigmo.h
|
63
|
+
lib/rubygems/openssl.rb
|
64
|
+
lib/rubygems/path_support.rb
|
65
|
+
template/Makefile.in
|
66
|
+
tool/mkconfig.rb
|
67
|
+
win32/winmain.c
|
68
|
+
win32/file.c
|
65
69
|
].freeze
|
66
70
|
|
67
71
|
class << self
|
@@ -118,16 +122,14 @@ module Tebako
|
|
118
122
|
# Executed before Ruby build, patching ensures that Ruby itself is linked statically
|
119
123
|
def pass1(ostype, ruby_source_dir, mount_point, src_dir, ruby_ver)
|
120
124
|
puts "-- Running pass1 script"
|
121
|
-
|
122
125
|
PatchHelpers.recreate(src_dir)
|
123
|
-
patch = crt_pass1_patch(ostype, mount_point, ruby_ver)
|
124
|
-
do_patch(patch.patch_map, ruby_source_dir)
|
125
126
|
|
126
|
-
# Roll
|
127
|
+
# Roll all known patches
|
127
128
|
# Just in case we are recovering after some error
|
128
|
-
PatchHelpers.restore_and_save_files(FILES_TO_RESTORE, ruby_source_dir)
|
129
|
-
|
130
|
-
|
129
|
+
PatchHelpers.restore_and_save_files(FILES_TO_RESTORE, ruby_source_dir, strict: false)
|
130
|
+
|
131
|
+
patch = crt_pass1_patch(ostype, mount_point, ruby_ver)
|
132
|
+
do_patch(patch.patch_map, ruby_source_dir)
|
131
133
|
end
|
132
134
|
|
133
135
|
# Pass1A
|
data/lib/tebako/version.rb
CHANGED
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.12.
|
4
|
+
version: 0.12.2.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -243,9 +243,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
243
243
|
version: 2.7.0
|
244
244
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
245
245
|
requirements:
|
246
|
-
- - "
|
246
|
+
- - ">"
|
247
247
|
- !ruby/object:Gem::Version
|
248
|
-
version:
|
248
|
+
version: 1.3.1
|
249
249
|
requirements: []
|
250
250
|
rubygems_version: 3.4.19
|
251
251
|
signing_key:
|