aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorShaun Jackman2017-12-01 16:43:00 -0800
committerShaun Jackman2017-12-03 16:22:51 -0800
commitd79c5ade1abaad0fb1ea88f2b949def8dcfddb81 (patch)
treefec9016d552cd9290ef89dfdac5523822b3bce9c /Library/Homebrew
parente5847b652f93744d41f45b5636e67bb2748d67c7 (diff)
downloadbrew-d79c5ade1abaad0fb1ea88f2b949def8dcfddb81.tar.bz2
Implement linkage for Linux
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/extend/pathname.rb4
-rw-r--r--Library/Homebrew/os/mac/linkage_checker.rb2
-rw-r--r--Library/Homebrew/os/mac/mach.rb2
3 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 82cf10be0..32d57c1c4 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -470,6 +470,10 @@ class Pathname
end
}
end
+
+ def mach_o_bundle?
+ false
+ end
end
require "extend/os/pathname"
diff --git a/Library/Homebrew/os/mac/linkage_checker.rb b/Library/Homebrew/os/mac/linkage_checker.rb
index f6aa4c2f3..941a5a847 100644
--- a/Library/Homebrew/os/mac/linkage_checker.rb
+++ b/Library/Homebrew/os/mac/linkage_checker.rb
@@ -23,7 +23,7 @@ class LinkageChecker
def check_dylibs
@keg.find do |file|
next if file.symlink? || file.directory?
- next unless file.dylib? || file.mach_o_executable? || file.mach_o_bundle?
+ next unless file.dylib? || file.binary_executable? || file.mach_o_bundle?
# weakly loaded dylibs may not actually exist on disk, so skip them
# when checking for broken linkage
diff --git a/Library/Homebrew/os/mac/mach.rb b/Library/Homebrew/os/mac/mach.rb
index 9b53c4979..958618869 100644
--- a/Library/Homebrew/os/mac/mach.rb
+++ b/Library/Homebrew/os/mac/mach.rb
@@ -103,6 +103,8 @@ module MachOShim
mach_data.any? { |m| m.fetch(:type) == :executable }
end
+ alias binary_executable? mach_o_executable?
+
# @private
def mach_o_bundle?
mach_data.any? { |m| m.fetch(:type) == :bundle }