File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ def support_dynamic_linking?
62
62
63
63
# Retrieves the root directory of the Ruby project.
64
64
# The root directory contains the following stuff:
65
- # * patches/*.patch
65
+ # * patches/{source}/ *.patch
66
66
# * build_manifest.json
67
67
# * rubies
68
68
# * build
@@ -84,13 +84,11 @@ def root
84
84
85
85
# Retrieves the alias definitions for the Ruby sources.
86
86
def self . build_source_aliases ( root )
87
- patches = Dir [ File . join ( root , "patches" , "*.patch" ) ]
88
87
sources = {
89
88
"head" => {
90
89
type : "github" ,
91
90
repo : "ruby/ruby" ,
92
- rev : "master" ,
93
- patches : patches . map { |p | File . expand_path ( p ) }
91
+ rev : "master"
94
92
} ,
95
93
"3.3" => {
96
94
type : "tarball" ,
@@ -101,7 +99,12 @@ def self.build_source_aliases(root)
101
99
url : "https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.3.tar.gz"
102
100
}
103
101
}
104
- sources . each { |name , source | source [ :name ] = name }
102
+ sources . each do |name , source |
103
+ source [ :name ] = name
104
+ patches = Dir [ File . join ( root , "patches" , name , "*.patch" ) ]
105
+ . map { |p | File . expand_path ( p ) }
106
+ source [ :patches ] = patches
107
+ end
105
108
106
109
build_manifest = File . join ( root , "build_manifest.json" )
107
110
if File . exist? ( build_manifest )
You can’t perform that action at this time.
0 commit comments