health_check_aix

in lib/omnibus/health_check.rb [317:339]


    def health_check_aix
      current_library = nil
      bad_libs = {}
      good_libs = {}

      read_shared_libs("find #{project.install_dir}/ -type f | xargs file | grep \"XCOFF\" | awk -F: '{print $1}'", "xargs -n 1 ldd") do |line|
        case line
        when /^(.+) needs:$/
          current_library = Regexp.last_match[1]
          log.debug(log_key) { "Analyzing dependencies for #{current_library}" }
        when /^\s+(.+)$/
          name = Regexp.last_match[1]
          linked = Regexp.last_match[1]
          ( bad_libs, good_libs ) = check_for_bad_library(bad_libs, good_libs, current_library, name, linked)
        when /File is not an executable XCOFF file/ 
        else
          log.warn(log_key) { "Line did not match for #{current_library}\n#{line}" }
        end
      end

      [bad_libs, good_libs]
    end