autobuild 1.10.0.rc5 → 1.10.0.rc6
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/lib/autobuild.rb +3 -0
- data/lib/autobuild/environment.rb +2 -2
- data/lib/autobuild/parallel.rb +19 -3
- data/lib/autobuild/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 847879d0a9358e23c67213792adcf107c22ac905
|
4
|
+
data.tar.gz: faf239f772607f3a7d95ce23c7ace8f9c85a741c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5d197ecf8a24f1409a0567ebfbf65ef89cbbf638922eb6fddd611c1fe1ab3f09a16446786c3474a7242e1e122940f05c6522225d3fadfb075d4ac446d0b0aeb
|
7
|
+
data.tar.gz: 1089a0b99f8daa3d05baf5f661db41b41d6bf5d9863f4c0c36ae6d6505eb84e00b9a2108ff30ef247ff87d30d69173f69398cd19b56e29158af17a4acddb1502
|
data/lib/autobuild.rb
CHANGED
@@ -565,8 +565,8 @@ def update_environment(newprefix, includes = nil)
|
|
565
565
|
|
566
566
|
# Returns the system-wide search path that is embedded in pkg-config
|
567
567
|
def default_pkgconfig_search_suffixes
|
568
|
-
found_path_rx = /Scanning directory '(.*\/)((?:lib|lib64|share)\/.*)'$/
|
569
|
-
nonexistent_path_rx = /Cannot open directory '.*\/((?:lib|lib64|share)\/.*)' in package search path:.*/
|
568
|
+
found_path_rx = /Scanning directory (?:#\d+ )?'(.*\/)((?:lib|lib64|share)\/.*)'$/
|
569
|
+
nonexistent_path_rx = /Cannot open directory (?:#\d+ )?'.*\/((?:lib|lib64|share)\/.*)' in package search path:.*/
|
570
570
|
|
571
571
|
if !@default_pkgconfig_search_suffixes
|
572
572
|
output = `LANG=C PKG_CONFIG_PATH= #{Autobuild.tool("pkg-config")} --debug 2>&1`.split("\n")
|
data/lib/autobuild/parallel.rb
CHANGED
@@ -223,12 +223,12 @@ def invoke_parallel(required_tasks)
|
|
223
223
|
|
224
224
|
not_processed = tasks.find_all { |t| !t.already_invoked? }
|
225
225
|
if !not_processed.empty?
|
226
|
-
cycle = resolve_cycle(not_processed)
|
226
|
+
cycle = resolve_cycle(tasks, not_processed, reverse_dependencies)
|
227
227
|
raise "cycle in task graph: #{cycle.map(&:name).sort.join(", ")}"
|
228
228
|
end
|
229
229
|
end
|
230
230
|
|
231
|
-
def resolve_cycle(tasks)
|
231
|
+
def resolve_cycle(all_tasks, tasks, reverse_dependencies)
|
232
232
|
cycle = tasks.dup
|
233
233
|
chain = []
|
234
234
|
next_task = tasks.first
|
@@ -245,7 +245,23 @@ def resolve_cycle(tasks)
|
|
245
245
|
end
|
246
246
|
end
|
247
247
|
if !next_task
|
248
|
-
|
248
|
+
Autobuild.fatal "parallel processing stopped prematurely, but no cycle is present in the remaining tasks"
|
249
|
+
Autobuild.fatal "remaining tasks: #{cycle.map(&:name).join(", ")}"
|
250
|
+
Autobuild.fatal "known dependencies at initialization time that could block the processing of the remaining tasks"
|
251
|
+
reverse_dependencies.each do |task, parents|
|
252
|
+
if cycle.include?(task)
|
253
|
+
parents.each do |p|
|
254
|
+
Autobuild.fatal " #{p}: #{task}"
|
255
|
+
end
|
256
|
+
end
|
257
|
+
end
|
258
|
+
Autobuild.fatal "known dependencies right now that could block the processing of the remaining tasks"
|
259
|
+
all_tasks.each do |p|
|
260
|
+
(cycle & p.prerequisite_tasks).each do |t|
|
261
|
+
Autobuild.fatal " #{p}: #{t}"
|
262
|
+
end
|
263
|
+
end
|
264
|
+
raise "failed to resolve cycle in #{cycle.map(&:name).join(", ")}"
|
249
265
|
end
|
250
266
|
end
|
251
267
|
chain
|
data/lib/autobuild/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autobuild
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.0.
|
4
|
+
version: 1.10.0.rc6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvain Joyeux
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02
|
11
|
+
date: 2016-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|