Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
  • Loading branch information
lamont-granquist committed Jan 25, 2022
1 parent 2cf5a2d commit d0a26be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/omnibus/health_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,7 @@ def health_check_freebsd
bad_libs = {}
good_libs = {}

pp shellout("find #{project.install_dir}/ -type f | xargs file").stdout

read_shared_libs("find #{project.install_dir}/ -type f | xargs file | grep \"ELF\" | awk -F: '{print $1}' | sed -e 's/:$//'", "xargs -n 1 echo") do |line|
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]
Expand Down Expand Up @@ -503,6 +501,7 @@ def read_shared_libs(find_command, ldd_command, &output_proc)
#
# feed the list of files to the "ldd" command
#
pp find_output.join

# this command will typically fail if the last file isn't a valid lib/binary which happens often
ldd_output = shellout(ldd_command, input: find_output.join).stdout
Expand Down

0 comments on commit d0a26be

Please sign in to comment.