in lib/omnibus/health_check.rb [346:379]
def health_check_solaris
current_library = nil
bad_libs = {}
good_libs = {}
read_shared_libs("find #{project.install_dir}/ -type f | xargs file | grep \"ELF\" | awk -F: '{print $1}' | sed -e 's/:$//'", "xargs ldd") do |line|
case line
when /^(.+):$/
current_library = Regexp.last_match[1]
when /^\s+(.+) \=\>\s+(.+)( \(.+\))?$/
name = Regexp.last_match[1]
linked = Regexp.last_match[2]
( bad_libs, good_libs ) = check_for_bad_library(bad_libs, good_libs, current_library, name, linked)
when /^\s+(.+) \(.+\)$/
next
when /^\s+statically linked$/
next
when /^\s+not a dynamic executable$/
else
log.warn(log_key) do
"Line did not match for #{current_library}\n#{line}"
end
end
end
[bad_libs, good_libs]
end