Commit da25c534 authored by lyxell's avatar lyxell Committed by GitHub

Merge pull request #592 from jam7/update/glibc

Change glibc package to install appropriate version of glibc
parents 19fa7199 9d4dd562
require 'package' require 'package'
class Glibc < Package class Glibc < Package
version '2.19' version '1.0'
binary_url ({
aarch64: 'https://github.com/jam7/chromebrew/releases/download/newtoolchains/glibc-2.19-chromeos-armv7l.tar.xz', is_fake
armv7l: 'https://github.com/jam7/chromebrew/releases/download/newtoolchains/glibc-2.19-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chromebrew/releases/download/newtoolchains/glibc-2.19-chromeos-i686.tar.xz', if (File.exist? "/lib/libc-2.23.so") || (File.exist? "/lib64/libc-2.23.so")
x86_64: 'https://github.com/jam7/chromebrew/releases/download/newtoolchains/glibc-2.19-chromeos-x86_64.tar.xz', depends_on 'glibc223'
}) # Check previous version
binary_sha1 ({ if File.exist? CREW_CONFIG_PATH + "meta/glibc219.filelist"
aarch64: 'c4da258eacf411833494bbe6903918909fb5629c', conflict_solve = "`sudo crew remove glibc219`"
armv7l: 'c4da258eacf411833494bbe6903918909fb5629c', end
i686: '7d7f4e8e137bbb96dea2b2792dc12a7e61c729d9', else
x86_64: '073545bf8aa4b29fbf9084d31848b40f1df1b4ef', depends_on 'glibc219'
}) end
# Check old glibc
if File.exist? CREW_CONFIG_PATH + "meta/glibc.filelist"
if File.exist? CREW_CONFIG_PATH + "meta/glibc223.filelist"
# Already installed old glibc and glibc223, so need to remove both once
conflict_solve = "`sudo crew remove glibc223` AND `sudo crew remove glibc`"
else
# Already installed old glibc, so need it once
conflict_solve = "`sudo crew remove glibc`"
end
end
if conflict_solve
puts
puts "IN ORDER TO INSTALL/UPGRADE GLIBC, PLEASE PERFORMS #{conflict_solve} FIRST"
puts
exit 1
end
end end
require 'package'
class Glibc219 < Package
version '2.19'
binary_url ({
aarch64: 'https://github.com/jam7/chromebrew/releases/download/newtoolchains/glibc-2.19-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chromebrew/releases/download/newtoolchains/glibc-2.19-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chromebrew/releases/download/newtoolchains/glibc-2.19-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chromebrew/releases/download/newtoolchains/glibc-2.19-chromeos-x86_64.tar.xz',
})
binary_sha1 ({
aarch64: 'c4da258eacf411833494bbe6903918909fb5629c',
armv7l: 'c4da258eacf411833494bbe6903918909fb5629c',
i686: '7d7f4e8e137bbb96dea2b2792dc12a7e61c729d9',
x86_64: '073545bf8aa4b29fbf9084d31848b40f1df1b4ef',
})
end
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