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

Update gcc prereqs: gmp, mpc, mpfr (#5682)

* Update gcc prereqs: gmp, mpc, mpfr

* Use specific commit for patches

* Update mpfr.rb
parent 9bfdad59
......@@ -3,36 +3,36 @@ require 'package'
class Gmp < Package
description 'GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers.'
homepage 'https://gmplib.org/'
version '6.2.0'
version '6.2.1'
license 'LGPL-3+ and GPL-2+'
compatibility 'all'
source_url 'https://gmplib.org/download/gmp/gmp-6.2.0.tar.lz'
source_sha256 '3f33f127bcb6b2c3601676cd3281df45824b148cbf688b73c0fc8248793667d9'
source_url 'https://gmplib.org/download/gmp/gmp-6.2.1.tar.lz'
source_sha256 '2c7f4f0d370801b2849c48c9ef3f59553b5f1d3791d070cffb04599f9fc67b41'
binary_url ({
aarch64: 'https://github.com/chromebrew/binaries/raw/main/armv7l/gmp-6.2.0-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/chromebrew/binaries/raw/main/armv7l/gmp-6.2.0-chromeos-armv7l.tar.xz',
i686: 'https://github.com/chromebrew/binaries/raw/main/i686/gmp-6.2.0-chromeos-i686.tar.xz',
x86_64: 'https://github.com/chromebrew/binaries/raw/main/x86_64/gmp-6.2.0-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://github.com/chromebrew/binaries/raw/main/armv7l/gmp-6.2.1-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/chromebrew/binaries/raw/main/armv7l/gmp-6.2.1-chromeos-armv7l.tar.xz',
i686: 'https://github.com/chromebrew/binaries/raw/main/i686/gmp-6.2.1-chromeos-i686.tar.xz',
x86_64: 'https://github.com/chromebrew/binaries/raw/main/x86_64/gmp-6.2.1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '2808a85d261fb740f5278be8ea25aca44de63e7512fbbf5a19bf133db5b5c152',
armv7l: '2808a85d261fb740f5278be8ea25aca44de63e7512fbbf5a19bf133db5b5c152',
i686: '0bc6669b80774effaaad213e4b13c624fc879f62804672beea1244634c02c1c2',
x86_64: '13f50bef5b6d30967fcd227dc750d972d5d2c1f471548c23dce5113dc952eeff',
binary_sha256({
aarch64: 'c9a07f1b3654f087dff322a5a0d5cbe98fba1e7c5b483621702655a0c879c152',
armv7l: 'c9a07f1b3654f087dff322a5a0d5cbe98fba1e7c5b483621702655a0c879c152',
i686: '2428a10b21a6b6bfaca1d2bd85b5c2adcd05aa3f48b6e9712d96ff84fa525478',
x86_64: '50847bd14c11de841c7c74696e2ff4503253bbaacd38e9ffb31814d6ccfb76f3'
})
def self.build
system "sed -i 's,/usr/bin/file,#{CREW_PREFIX}/bin/file,g' configure"
system './configure',
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}",
'--disable-maintainer-mode',
'--enable-cxx'
system 'filefix'
system "./configure \
#{CREW_OPTIONS} \
--disable-maintainer-mode \
--enable-cxx"
system 'make'
end
def self.check
# Run tests on armv7l after install
system 'make', 'check'
end
......
......@@ -3,34 +3,36 @@ require 'package'
class Mpc < Package
description 'Gnu Mpc is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result.'
homepage 'http://www.multiprecision.org/'
version '1.1.0'
version '1.2.1'
license 'LGPL-2.1'
compatibility 'all'
source_url 'https://ftpmirror.gnu.org/mpc/mpc-1.1.0.tar.gz'
source_sha256 '6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e'
source_url 'https://ftpmirror.gnu.org/mpc/mpc-1.2.1.tar.gz'
source_sha256 '17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459'
binary_url ({
aarch64: 'https://github.com/chromebrew/binaries/raw/main/armv7l/mpc-1.1.0-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/chromebrew/binaries/raw/main/armv7l/mpc-1.1.0-chromeos-armv7l.tar.xz',
i686: 'https://github.com/chromebrew/binaries/raw/main/i686/mpc-1.1.0-chromeos-i686.tar.xz',
x86_64: 'https://github.com/chromebrew/binaries/raw/main/x86_64/mpc-1.1.0-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://github.com/chromebrew/binaries/raw/main/armv7l/mpc-1.2.1-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/chromebrew/binaries/raw/main/armv7l/mpc-1.2.1-chromeos-armv7l.tar.xz',
i686: 'https://github.com/chromebrew/binaries/raw/main/i686/mpc-1.2.1-chromeos-i686.tar.xz',
x86_64: 'https://github.com/chromebrew/binaries/raw/main/x86_64/mpc-1.2.1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '93e218f15597b7fcbd6291986597e4c391e521d4f71ac19d815267cffcdeaf07',
armv7l: '93e218f15597b7fcbd6291986597e4c391e521d4f71ac19d815267cffcdeaf07',
i686: 'c952ab3fc51d56c6b0140534627888769f3a1bde43a645b279b9ef1010c7080f',
x86_64: '1fe81b949e466649174009019f96fbc09ea5161dfc99f0d5e462da196b5b64a1',
binary_sha256({
aarch64: '51f7b0de3567634f42cb4e563520243cd6c9eca00b8efb1add25fbae97b286ce',
armv7l: '51f7b0de3567634f42cb4e563520243cd6c9eca00b8efb1add25fbae97b286ce',
i686: '63b012cdf4a7c8e1e948ceff325ea6dd476e2a4330462d1ce4b2778b51529ca9',
x86_64: '57276bec912dabfed4d65d5edb3e18788c168056727057ee0c91aa8484eebdba'
})
depends_on 'mpfr' => :build
def self.build
system './configure',
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}",
'--disable-maintainer-mode'
system "./configure \
#{CREW_OPTIONS} \
--disable-maintainer-mode \
--enable-shared"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
......@@ -3,41 +3,51 @@ require 'package'
class Mpfr < Package
description 'The MPFR library is a C library for multiple-precision floating-point computations with correct rounding.'
homepage 'http://www.mpfr.org/'
version '4.0.1'
version '4.1.0'
license 'LGPL-2.1'
compatibility 'all'
source_url 'http://www.mpfr.org/mpfr-current/mpfr-4.0.1.tar.xz'
source_sha256 '67874a60826303ee2fb6affc6dc0ddd3e749e9bfcb4c8655e3953d0458a6e16e'
source_url 'http://www.mpfr.org/mpfr-current/mpfr-4.1.0.tar.xz'
source_sha256 '0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f'
binary_url ({
aarch64: 'https://github.com/chromebrew/binaries/raw/main/armv7l/mpfr-4.0.1-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/chromebrew/binaries/raw/main/armv7l/mpfr-4.0.1-chromeos-armv7l.tar.xz',
i686: 'https://github.com/chromebrew/binaries/raw/main/i686/mpfr-4.0.1-chromeos-i686.tar.xz',
x86_64: 'https://github.com/chromebrew/binaries/raw/main/x86_64/mpfr-4.0.1-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://github.com/chromebrew/binaries/raw/main/armv7l/mpfr-4.1.0-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/chromebrew/binaries/raw/main/armv7l/mpfr-4.1.0-chromeos-armv7l.tar.xz',
i686: 'https://github.com/chromebrew/binaries/raw/main/i686/mpfr-4.1.0-chromeos-i686.tar.xz',
x86_64: 'https://github.com/chromebrew/binaries/raw/main/x86_64/mpfr-4.1.0-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '95fb95f4a32a0c91e48c3dee207710614eb44d1e98f3e43d7d439c5be7c1e5eb',
armv7l: '95fb95f4a32a0c91e48c3dee207710614eb44d1e98f3e43d7d439c5be7c1e5eb',
i686: '1f2598510252794e1eb9c98a132ddc7ad394c2c369cdfa4a690f50a2c981026f',
x86_64: 'e5d43065f3f87eabf33debd0c9789988f980d68a0f1a91d6782b3f97916c0680',
binary_sha256({
aarch64: '02fc4dce2dfade4e7cb7ca539ddcf8142c1cb8839c9a1f83e5362e8f00f7a1e8',
armv7l: '02fc4dce2dfade4e7cb7ca539ddcf8142c1cb8839c9a1f83e5362e8f00f7a1e8',
i686: '2950b94cbcbcb11b0bb34a6e31d7e6e9982eb74d37edd73a17a3700c2b6abe41',
x86_64: 'a7e0a584a6d54b852d4869ef3ba8f9fdb076f48d6d3f2cb1f46842bc8975583a'
})
depends_on 'autoconf_archive' => :build
def self.patch
puts 'Applying current rolling patchset. See https://www.mpfr.org/mpfr-current/#bugs'
puts 'for more information.'
system 'curl -Ls "https://gforge.inria.fr/scm/viewvc.php/mpfr/misc/www/mpfr-4.1.0/allpatches?revision=14491&view=co" | \
hashpipe sha256 dfa7d8a14ec7cb3b344cb81cfd7bd7e22aba62379941cc9110759f11172ac013 | patch -NZp1 --binary'
end
def self.build
system './configure',
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}",
'--disable-static',
'--enable-shared'
system 'filefix'
system 'autoreconf -fiv'
system "./configure \
#{CREW_OPTIONS} \
--enable-shared"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
system "mkdir -p #{CREW_DEST_LIB_PREFIX}"
system "ln -s #{CREW_LIB_PREFIX}/libmpfr.so.6 #{CREW_DEST_LIB_PREFIX}/libmpfr.so.4"
end
def self.check
system "make", "check"
# Check only works after an install on x86_64
system "LD_LIBRARY_PATH=\$(pwd)/src/.libs:\$LD_LIBRARY_PATH make check"
end
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