 1882ae4f6e
			
		
	
	
		1882ae4f6e
		
			
		
	
	
	
	
		
			
			* Glibc 2.26+ (we use 2.35) require Linux kernel 3.2 or later. * Remove GCC requirement given it doesn't matter for bottles (we install GCC ourselves if too old) and is probably wrong for the build-from-source case. * Remove libxcrypt-compat requirement given we don't use libcrypt.so.1 anymore.
		
			
				
	
	
		
			25 lines
		
	
	
		
			418 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			418 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # typed: true
 | |
| # frozen_string_literal: true
 | |
| 
 | |
| module OS
 | |
|   module Linux
 | |
|     # Helper functions for querying Linux kernel information.
 | |
|     #
 | |
|     # @api private
 | |
|     module Kernel
 | |
|       extend T::Sig
 | |
| 
 | |
|       module_function
 | |
| 
 | |
|       sig { returns(Version) }
 | |
|       def minimum_version
 | |
|         Version.new "3.2"
 | |
|       end
 | |
| 
 | |
|       def below_minimum_version?
 | |
|         OS.kernel_version < minimum_version
 | |
|       end
 | |
|     end
 | |
|   end
 | |
| end
 |