Fix some false-positive build-time dep audits
This commit is contained in:
parent
36051b6a71
commit
51023ef15b
@ -148,13 +148,11 @@ class FormulaAuditor
|
|||||||
|
|
||||||
case dep.name
|
case dep.name
|
||||||
when *BUILD_TIME_DEPS
|
when *BUILD_TIME_DEPS
|
||||||
# TODO: this should really be only dep.build? but maybe some formula
|
next if dep.build?
|
||||||
# depends on the current behavior to be audit-clean?
|
next if dep.name == 'autoconf' && f.name =~ /automake/
|
||||||
next if dep.tags.any?
|
next if dep.name == 'libtool' && %w{imagemagick libgphoto2 libp11}.any? { |n| f.name == n }
|
||||||
next if f.name =~ /automake/ && dep.name == 'autoconf'
|
next if dep.name =~ /autoconf|pkg-config/ && f.name == 'ruby-build'
|
||||||
# This is actually a libltdl dep that gets converted to a non-build time
|
|
||||||
# libtool dep, but I don't of a good way to encode this in the dep object
|
|
||||||
next if f.name == 'imagemagick' && dep.name == 'libtool'
|
|
||||||
problem %{#{dep} dependency should be "depends_on '#{dep}' => :build"}
|
problem %{#{dep} dependency should be "depends_on '#{dep}' => :build"}
|
||||||
when "git", "ruby", "emacs", "mercurial"
|
when "git", "ruby", "emacs", "mercurial"
|
||||||
problem <<-EOS.undent
|
problem <<-EOS.undent
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user