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

binutils: Use binutils to provide system libiberty (#4783)

* Use binutils to provide system libiberty
* do check but ignore it.
* Add binaries
parent a566200f
...@@ -3,22 +3,22 @@ require 'package' ...@@ -3,22 +3,22 @@ require 'package'
class Binutils < Package class Binutils < Package
description 'The GNU Binutils are a collection of binary tools.' description 'The GNU Binutils are a collection of binary tools.'
homepage 'https://www.gnu.org/software/binutils/' homepage 'https://www.gnu.org/software/binutils/'
version '2.35.1' version '2.35.1-1'
compatibility 'all' compatibility 'all'
source_url 'https://ftpmirror.gnu.org/binutils/binutils-2.35.1.tar.xz' source_url 'https://ftpmirror.gnu.org/binutils/binutils-2.35.1.tar.xz'
source_sha256 '3ced91db9bf01182b7e420eab68039f2083aed0a214c0424e257eae3ddee8607' source_sha256 '3ced91db9bf01182b7e420eab68039f2083aed0a214c0424e257eae3ddee8607'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.35.1-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.35.1-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.35.1-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.35.1-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.35.1-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.35.1-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.35.1-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.35.1-1-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: 'c259bdd15e70638c5db025fb66f01272ee6125126efa66ad642ba1ca8c59ea1f', aarch64: 'ccadf54533ef07715dfe17e4dec9639a0c6e1c34e1df780f936ede7d7233db27',
armv7l: 'c259bdd15e70638c5db025fb66f01272ee6125126efa66ad642ba1ca8c59ea1f', armv7l: 'ccadf54533ef07715dfe17e4dec9639a0c6e1c34e1df780f936ede7d7233db27',
i686: '49e95626126656d02074397e60137bd652d01578582243ed313ce95182ea3f68', i686: '5fda35d6de84ae32d29d7369a36b4e8220a1304ed978d76b9fdcc5bc17961565',
x86_64: '31511a8be2ead994bdf00cd61d6741eff3f8b2259177ff431dca28e57d2985dd', x86_64: '20fd8355151fd24dab6a82123a1d04c7a9dcb94cb2841df2795c6bc21a1107df',
}) })
depends_on 'filecmd' depends_on 'filecmd'
...@@ -39,11 +39,17 @@ class Binutils < Package ...@@ -39,11 +39,17 @@ class Binutils < Package
--enable-64-bit-bfd \ --enable-64-bit-bfd \
--enable-lto \ --enable-lto \
--enable-vtable-verify \ --enable-vtable-verify \
--disable-werror" --enable-install-libiberty"
system 'make' system 'make'
end end
end end
def self.check
Dir.chdir 'build' do
system 'make check || true'
end
end
def self.install def self.install
Dir.chdir 'build' do Dir.chdir 'build' do
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install' system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
......
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