aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/os
diff options
context:
space:
mode:
authorMike McQuaid2017-12-08 15:46:36 +0000
committerGitHub2017-12-08 15:46:36 +0000
commit1eca3330844dc4d28eaf5ad5e2c4d1db97936b18 (patch)
treea2b4150fa5949a462381d13c5bbb7dae4c4ae9f4 /Library/Homebrew/extend/os
parentc34cea3391638105b7b963c23a5559032b2f196c (diff)
parent0575d7b6109b566c0eb324dbad19478eb8506d71 (diff)
downloadbrew-1eca3330844dc4d28eaf5ad5e2c4d1db97936b18.tar.bz2
Merge pull request #3530 from sjackman/glibc
config: Print host glibc version [Linux]
Diffstat (limited to 'Library/Homebrew/extend/os')
-rw-r--r--Library/Homebrew/extend/os/linux/system_config.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/os/linux/system_config.rb b/Library/Homebrew/extend/os/linux/system_config.rb
index edb70058f..cf0176562 100644
--- a/Library/Homebrew/extend/os/linux/system_config.rb
+++ b/Library/Homebrew/extend/os/linux/system_config.rb
@@ -1,4 +1,5 @@
require "formula"
+require "os/linux/glibc"
class SystemConfig
class << self
@@ -14,6 +15,12 @@ class SystemConfig
end
end
+ def host_glibc_version
+ version = OS::Linux::Glibc.system_version
+ return "N/A" if version.null?
+ version
+ end
+
def host_gcc_version
gcc = Pathname.new "/usr/bin/gcc"
return "N/A" unless gcc.executable?
@@ -31,6 +38,7 @@ class SystemConfig
dump_generic_verbose_config(out)
out.puts "Kernel: #{`uname -mors`.chomp}"
out.puts "OS: #{host_os_version}"
+ out.puts "Host glibc: #{host_glibc_version}"
out.puts "/usr/bin/gcc: #{host_gcc_version}"
["glibc", "gcc", "xorg"].each do |f|
out.puts "#{f}: #{formula_linked_version f}"