mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Have crew pull the true system Glibc version (#5819)
* crew:Get actual glibc version * modify libc.so.6 logic for older glibc on i686
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Defines common constants used in different parts of crew
|
||||
|
||||
CREW_VERSION = '1.10.6'
|
||||
CREW_VERSION = '1.10.7'
|
||||
|
||||
ARCH_ACTUAL = `uname -m`.strip
|
||||
# This helps with virtualized builds on aarch64 machines
|
||||
@@ -8,7 +8,10 @@ ARCH_ACTUAL = `uname -m`.strip
|
||||
ARCH = if ARCH_ACTUAL == 'armv8l' then 'armv7l' else ARCH_ACTUAL end
|
||||
|
||||
ARCH_LIB = if ARCH == 'x86_64' then 'lib64' else 'lib' end
|
||||
LIBC_VERSION = if File.exist? "/#{ARCH_LIB}/libc-2.27.so" then '2.27' else '2.23' end
|
||||
|
||||
# Glibc version can be found from the output of libc.so.6
|
||||
@libcvertokens= %x[/#{ARCH_LIB}/libc.so.6].lines.first.chomp.split(/[\s]/)
|
||||
LIBC_VERSION = @libcvertokens[@libcvertokens.find_index("version") + 1].sub!(/[[:punct:]]?$/,'')
|
||||
|
||||
if ENV['CREW_PREFIX'].to_s.empty?
|
||||
CREW_PREFIX = '/usr/local'
|
||||
|
||||
Reference in New Issue
Block a user