diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-08-13 13:31:56 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-08-13 13:56:59 +0200 |
commit | 49dc71f68e91de4dd1ca94ec71a4b9d39289a6ec (patch) | |
tree | 32e609a40967610aee0c53707b5bc0819c96474c /community/crystal | |
parent | aa6d1b69a612262a48f656c477212ee5e586c44c (diff) | |
download | alpine_aports-49dc71f68e91de4dd1ca94ec71a4b9d39289a6ec.tar.bz2 alpine_aports-49dc71f68e91de4dd1ca94ec71a4b9d39289a6ec.tar.xz alpine_aports-49dc71f68e91de4dd1ca94ec71a4b9d39289a6ec.zip |
community/crystal: upgrade to 0.26.0
Diffstat (limited to 'community/crystal')
-rw-r--r-- | community/crystal/APKBUILD | 8 | ||||
-rw-r--r-- | community/crystal/specs-tempdir-separate-helper.patch | 46 | ||||
-rw-r--r-- | community/crystal/tests-libressl.patch | 29 |
3 files changed, 33 insertions, 50 deletions
diff --git a/community/crystal/APKBUILD b/community/crystal/APKBUILD index 17599c2a57..acda357124 100644 --- a/community/crystal/APKBUILD +++ b/community/crystal/APKBUILD | |||
@@ -1,7 +1,7 @@ | |||
1 | # Contributor: Jakub Jirutka <jakub@jirutka.cz> | 1 | # Contributor: Jakub Jirutka <jakub@jirutka.cz> |
2 | # Maintainer: Jakub Jirutka <jakub@jirutka.cz> | 2 | # Maintainer: Jakub Jirutka <jakub@jirutka.cz> |
3 | pkgname=crystal | 3 | pkgname=crystal |
4 | pkgver=0.25.1 | 4 | pkgver=0.26.0 |
5 | pkgrel=0 | 5 | pkgrel=0 |
6 | _bootver=0.25.0 | 6 | _bootver=0.25.0 |
7 | _llvmver=5 | 7 | _llvmver=5 |
@@ -23,7 +23,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/crystal-lang/$pkgname/archiv | |||
23 | disable-specs-using-GB2312-encoding.patch | 23 | disable-specs-using-GB2312-encoding.patch |
24 | fix-spec-time-location.patch | 24 | fix-spec-time-location.patch |
25 | libressl.patch | 25 | libressl.patch |
26 | specs-tempdir-separate-helper.patch | 26 | tests-libressl.patch |
27 | " | 27 | " |
28 | builddir="$srcdir/$pkgname-$pkgver" | 28 | builddir="$srcdir/$pkgname-$pkgver" |
29 | 29 | ||
@@ -120,11 +120,11 @@ zshcomp() { | |||
120 | "$subpkgdir"/usr/share/zsh/site-functions/_$pkgname | 120 | "$subpkgdir"/usr/share/zsh/site-functions/_$pkgname |
121 | } | 121 | } |
122 | 122 | ||
123 | sha512sums="b4b79985f0d47d56e2c22b74ac593ea8d21cc21c8e247e7043b6604c0a16906f1b8a9531c8902018f6fab35810177920eae26d3ada6874581e45713f69c9e8fb crystal-0.25.1.tar.gz | 123 | sha512sums="45a62a2496d477cd72666e98b36bdcbfff958a8f5f0e71f04101f2ba72fc87117d53c8c098a72edb55e9be192b68b73529d5f76e4c660033332ed6e88a372519 crystal-0.26.0.tar.gz |
124 | b443520d994355f849e18d5432dc136f6e403eb77a432a53e3d38e5a050a7547632bbe7a99a3a4c193f91fdf2240a1629acd516291d16c3bbfa14a9ec47435b2 crystal-0.25.0-x86_64-alpine-linux-musl.tar.gz | 124 | b443520d994355f849e18d5432dc136f6e403eb77a432a53e3d38e5a050a7547632bbe7a99a3a4c193f91fdf2240a1629acd516291d16c3bbfa14a9ec47435b2 crystal-0.25.0-x86_64-alpine-linux-musl.tar.gz |
125 | 43b058e94f990e853f2ade5bf234aaea4547176172beff8ed372c5158ec8bb59c3925e0bb3bf7c2e4024193bcd48652faebba3ce08c5f0e25425ca073a66adb0 crystal-0.25.0-aarch64-alpine-linux-musl.tar.gz | 125 | 43b058e94f990e853f2ade5bf234aaea4547176172beff8ed372c5158ec8bb59c3925e0bb3bf7c2e4024193bcd48652faebba3ce08c5f0e25425ca073a66adb0 crystal-0.25.0-aarch64-alpine-linux-musl.tar.gz |
126 | dec4ed7abfd215eec825bed97b1e40bf3aa8bd959a4ec7153ea1bc51d409d892ebec19ddb0372e3a543e74c7018aca0c1f3cf956fa1d95efb946c8c3417c8749 paxmark.patch | 126 | dec4ed7abfd215eec825bed97b1e40bf3aa8bd959a4ec7153ea1bc51d409d892ebec19ddb0372e3a543e74c7018aca0c1f3cf956fa1d95efb946c8c3417c8749 paxmark.patch |
127 | 269976fbc990dde075769e651c9fac6e7e0b39681e55cbd067c6d2a790c58a096bdc9981f62ae69b5217623025ba768daa63bc5316bd8ddd18192d88839aedcb disable-specs-using-GB2312-encoding.patch | 127 | 269976fbc990dde075769e651c9fac6e7e0b39681e55cbd067c6d2a790c58a096bdc9981f62ae69b5217623025ba768daa63bc5316bd8ddd18192d88839aedcb disable-specs-using-GB2312-encoding.patch |
128 | 518f06dd191e43e4052c0f8c4963d31dfc7ed3b414d1bb2e7a82265af13853f85380b5507ef3c5a5a25f6091d7173d5322f379e354666eec4165264dd502e70b fix-spec-time-location.patch | 128 | 518f06dd191e43e4052c0f8c4963d31dfc7ed3b414d1bb2e7a82265af13853f85380b5507ef3c5a5a25f6091d7173d5322f379e354666eec4165264dd502e70b fix-spec-time-location.patch |
129 | 31fd94f07edb83eb6ff43dd20f99a52e3c28dc0bf67f7e0b5c473c40d455febfbd0cdf9fe1fe599dbf080fd4c05a2a2d9ad8745f9effc8dfb565e19fa0e49509 libressl.patch | 129 | 31fd94f07edb83eb6ff43dd20f99a52e3c28dc0bf67f7e0b5c473c40d455febfbd0cdf9fe1fe599dbf080fd4c05a2a2d9ad8745f9effc8dfb565e19fa0e49509 libressl.patch |
130 | 78df92a5f9df00f5cbad1d6643148fee4724e1e07a08c366ebce6c837c7b3bba19ff69a1c78d072fe24b04f68f92bc464d557601116342120143651aa4e854a9 specs-tempdir-separate-helper.patch" | 130 | 35764190eb4df353057c771935c6b6588cddb3a164e624e3a07371c78e49f4dc938fd1296fdb048c08c482b5066b56f6d0b5eab5f48fdba80b01d2cf6e0ad24e tests-libressl.patch" |
diff --git a/community/crystal/specs-tempdir-separate-helper.patch b/community/crystal/specs-tempdir-separate-helper.patch deleted file mode 100644 index 9d07c0f8e6..0000000000 --- a/community/crystal/specs-tempdir-separate-helper.patch +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | From 5f4c3697641654959a313a0332fbba59334f8ca3 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Johannes=20M=C3=BCller?= <straightshoota@gmail.com> | ||
3 | Date: Mon, 2 Jul 2018 12:39:25 +0200 | ||
4 | Subject: [PATCH] Fix: Rename datapath helper to compiler_datapath for compiler specs | ||
5 | |||
6 | Patch-Source: https://github.com/crystal-lang/crystal/pull/6312 | ||
7 | See-Also: https://github.com/crystal-lang/crystal/pull/5951#issuecomment-400986673 | ||
8 | --- | ||
9 | spec/compiler/compiler_spec.cr | 4 ++-- | ||
10 | spec/compiler/spec_helper.cr | 2 +- | ||
11 | 2 files changed, 3 insertions(+), 3 deletions(-) | ||
12 | |||
13 | diff --git a/spec/compiler/compiler_spec.cr b/spec/compiler/compiler_spec.cr | ||
14 | index 7fdbca20db..426a5324e0 100644 | ||
15 | --- a/spec/compiler/compiler_spec.cr | ||
16 | +++ b/spec/compiler/compiler_spec.cr | ||
17 | @@ -4,7 +4,7 @@ require "./spec_helper" | ||
18 | describe "Compiler" do | ||
19 | it "compiles a file" do | ||
20 | with_tempfile "compiler_spec_output" do |path| | ||
21 | - Crystal::Command.run ["build", datapath("compiler_sample"), "-o", path] | ||
22 | + Crystal::Command.run ["build", compiler_datapath("compiler_sample"), "-o", path] | ||
23 | |||
24 | File.exists?(path).should be_true | ||
25 | |||
26 | @@ -13,7 +13,7 @@ describe "Compiler" do | ||
27 | end | ||
28 | |||
29 | it "runs subcommand in preference to a filename " do | ||
30 | - Dir.cd datapath do | ||
31 | + Dir.cd compiler_datapath do | ||
32 | with_tempfile "compiler_spec_output" do |path| | ||
33 | Crystal::Command.run ["build", "compiler_sample", "-o", path] | ||
34 | |||
35 | diff --git a/spec/compiler/spec_helper.cr b/spec/compiler/spec_helper.cr | ||
36 | index 536691a5ad..8a7e40b314 100644 | ||
37 | --- a/spec/compiler/spec_helper.cr | ||
38 | +++ b/spec/compiler/spec_helper.cr | ||
39 | @@ -1,6 +1,6 @@ | ||
40 | require "../spec_helper" | ||
41 | require "../support/tempfile" | ||
42 | |||
43 | -def datapath(*components) | ||
44 | +def compiler_datapath(*components) | ||
45 | File.join("spec", "compiler", "data", *components) | ||
46 | end | ||
diff --git a/community/crystal/tests-libressl.patch b/community/crystal/tests-libressl.patch new file mode 100644 index 0000000000..9513c122c5 --- /dev/null +++ b/community/crystal/tests-libressl.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | Hacks needed to make tests pass on LibreSSL. | ||
2 | |||
3 | --- a/spec/std/openssl/ssl/context_spec.cr | ||
4 | +++ b/spec/std/openssl/ssl/context_spec.cr | ||
5 | @@ -194,13 +194,13 @@ | ||
6 | expect_raises(ArgumentError, "missing private key") do | ||
7 | OpenSSL::SSL::Context::Client.from_hash({} of String => String) | ||
8 | end | ||
9 | - expect_raises(OpenSSL::Error, "SSL_CTX_use_PrivateKey_file: error:02001002:system library:fopen:No such file or directory") do | ||
10 | + expect_raises(OpenSSL::Error, "SSL_CTX_use_PrivateKey_file: error:02FFF002:system library:func(4095):No such file or directory") do | ||
11 | OpenSSL::SSL::Context::Client.from_hash({"key" => "foo"}) | ||
12 | end | ||
13 | expect_raises(ArgumentError, "missing certificate") do | ||
14 | OpenSSL::SSL::Context::Client.from_hash({"key" => private_key}) | ||
15 | end | ||
16 | - expect_raises(OpenSSL::Error, "SSL_CTX_use_certificate_chain_file: error:02001002:system library:fopen:No such file or directory") do | ||
17 | + expect_raises(OpenSSL::Error, "SSL_CTX_use_certificate_chain_file: error:02FFF002:system library:func(4095):No such file or directory") do | ||
18 | OpenSSL::SSL::Context::Client.from_hash({"key" => private_key, "cert" => "foo"}) | ||
19 | end | ||
20 | expect_raises(ArgumentError, "Invalid SSL context: missing CA certificate") do | ||
21 | @@ -212,7 +212,7 @@ | ||
22 | expect_raises(ArgumentError, "Invalid SSL context: missing CA certificate") do | ||
23 | OpenSSL::SSL::Context::Client.from_hash({"key" => private_key, "cert" => certificate, "verify_mode" => "peer"}) | ||
24 | end | ||
25 | - expect_raises(OpenSSL::Error, "SSL_CTX_load_verify_locations: error:02001002:system library:fopen:No such file or directory") do | ||
26 | + expect_raises(OpenSSL::Error, "SSL_CTX_load_verify_locations: error:02FFF002:system library:func(4095):No such file or directory") do | ||
27 | OpenSSL::SSL::Context::Client.from_hash({"key" => private_key, "cert" => certificate, "ca" => "foo"}) | ||
28 | end | ||
29 | end | ||