Skip to content

Commit d0a26be

Browse files
debugging
Signed-off-by: Lamont Granquist <[email protected]>
1 parent 2cf5a2d commit d0a26be

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/omnibus/health_check.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,7 @@ def health_check_freebsd
380380
bad_libs = {}
381381
good_libs = {}
382382

383-
pp shellout("find #{project.install_dir}/ -type f | xargs file").stdout
384-
385-
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|
383+
read_shared_libs("find #{project.install_dir}/ -type f | xargs file | grep \"ELF\" | awk -F: '{print $1}' | sed -e 's/:$//'", "xargs ldd") do |line|
386384
case line
387385
when /^(.+):$/
388386
current_library = Regexp.last_match[1]
@@ -503,6 +501,7 @@ def read_shared_libs(find_command, ldd_command, &output_proc)
503501
#
504502
# feed the list of files to the "ldd" command
505503
#
504+
pp find_output.join
506505

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

0 commit comments

Comments
 (0)