Commit b40dd5e1 authored by satmandu's avatar satmandu Committed by GitHub

Have crew pull the true system Glibc version (#5819)

* crew:Get actual glibc version

* modify libc.so.6 logic for older glibc on i686
parent 3f791ced
# Defines common constants used in different parts of crew # Defines common constants used in different parts of crew
CREW_VERSION = '1.10.6' CREW_VERSION = '1.10.7'
ARCH_ACTUAL = `uname -m`.strip ARCH_ACTUAL = `uname -m`.strip
# This helps with virtualized builds on aarch64 machines # This helps with virtualized builds on aarch64 machines
...@@ -8,7 +8,10 @@ ARCH_ACTUAL = `uname -m`.strip ...@@ -8,7 +8,10 @@ ARCH_ACTUAL = `uname -m`.strip
ARCH = if ARCH_ACTUAL == 'armv8l' then 'armv7l' else ARCH_ACTUAL end ARCH = if ARCH_ACTUAL == 'armv8l' then 'armv7l' else ARCH_ACTUAL end
ARCH_LIB = if ARCH == 'x86_64' then 'lib64' else 'lib' 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? if ENV['CREW_PREFIX'].to_s.empty?
CREW_PREFIX = '/usr/local' CREW_PREFIX = '/usr/local'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment