Module: OS::Linux::Glibc Private
- Defined in:
- Library/Homebrew/os/linux/glibc.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Helper functions for querying glibc
information.
Class Method Summary collapse
- .below_minimum_version? ⇒ Boolean private
- .minimum_version ⇒ Object private
- .system_version ⇒ Object private
Class Method Details
.below_minimum_version? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 |
# File 'Library/Homebrew/os/linux/glibc.rb', line 25 def below_minimum_version? system_version < minimum_version end |
.minimum_version ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 |
# File 'Library/Homebrew/os/linux/glibc.rb', line 21 def minimum_version Version.new "2.13" end |
.system_version ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 15 16 17 18 19 |
# File 'Library/Homebrew/os/linux/glibc.rb', line 12 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 |