--- a/rakelib/rbspec.rb Mon Dec 12 22:43:48 2016 +0000
+++ b/rakelib/rbspec.rb Tue Dec 13 13:33:24 2016 +0000
@@ -432,11 +432,16 @@
if not (mandatory or referenced) then
raise Exception.new("Nor mandator nor referenced prereqs asked. Must specify either `mandatoryy: true` or `referenced: true` or both")
end
+
# Special hack for stx:stc and stx:librun which are actually
# not a smalltalk packages.
- if @name == 'stx:stc' or @name == 'stx:librun' then
+ if @name == 'stx:stc'
return []
end
+ if @name == 'stx:librun'
+ # stx:librun depends on STC
+ return ['stx:stc']
+ end
root = BUILD_DIR if (not root && defined? BUILD_DIR)
if not root then
@@ -452,7 +457,8 @@
source << line
end
source.encode!('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '')
- prereqs = []
+ # All packaged depends on STC - one cannot compile them without it!
+ prereqs = ['stx:stc']
if mandatory then
prereqs += source.scan(/^mandatoryPreRequisites(.*?)!$/m).flatten.to_s.scan(/#'([^']+)'/).flatten
end