Module: OS::Linux::Glibc

Defined in:
brew/Library/Homebrew/os/linux/glibc.rb

Class Method Summary collapse

Class Method Details

.below_minimum_version?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'brew/Library/Homebrew/os/linux/glibc.rb', line 21

def below_minimum_version?
  system_version < minimum_version
end

.minimum_versionObject



17
18
19
# File 'brew/Library/Homebrew/os/linux/glibc.rb', line 17

def minimum_version
  Version.new "2.12"
end

.system_versionObject



8
9
10
11
12
13
14
15
# File 'brew/Library/Homebrew/os/linux/glibc.rb', line 8

def system_version
  return @system_version if @system_version

  version = Utils.popen_read("/usr/bin/ldd", "--version")[/ (\d+\.\d+)/, 1]
  return Version::NULL unless version

  @system_version = Version.new version
end