diff options
| author | Geod24 <pro.mathias.lang@gmail.com> | 2020-01-09 23:19:52 +0900 |
|---|---|---|
| committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-02-16 13:29:22 +0100 |
| commit | cc7c85b706da6f1a88f271e2a556979e9e66a2dd (patch) | |
| tree | d7758c8fa0a6e1aadd911f4d4230aefa08fc0add /testing | |
| parent | 3e79eb3b13e98d85abf3941f8bf54e0743a86896 (diff) | |
| download | aports-cc7c85b706da6f1a88f271e2a556979e9e66a2dd.tar.bz2 aports-cc7c85b706da6f1a88f271e2a556979e9e66a2dd.tar.xz | |
testing/ldc: Update to 1.20.0
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/ldc/01-conf.patch (renamed from testing/ldc/02-conf.patch) | 0 | ||||
| -rw-r--r-- | testing/ldc/01-stdio-fseek.patch | 37 | ||||
| -rw-r--r-- | testing/ldc/APKBUILD | 15 |
3 files changed, 7 insertions, 45 deletions
diff --git a/testing/ldc/02-conf.patch b/testing/ldc/01-conf.patch index ad01f92d58..ad01f92d58 100644 --- a/testing/ldc/02-conf.patch +++ b/testing/ldc/01-conf.patch diff --git a/testing/ldc/01-stdio-fseek.patch b/testing/ldc/01-stdio-fseek.patch deleted file mode 100644 index 7736def277..0000000000 --- a/testing/ldc/01-stdio-fseek.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- a/runtime/phobos/std/stdio.d 2019-10-25 12:00:00.000000000 +0900 -+++ b/runtime/phobos/std/stdio.d 2019-10-25 12:42:42.000000000 +0900 -@@ -1098,6 +1098,14 @@ Throws: `Exception` if the file is not o - import std.conv : to, text; - import std.exception : enforce, errnoEnforce; - -+ // Some libc sanitize the whence input (e.g. glibc), but some don't, -+ // e.g. Microsoft runtime crashes on an invalid origin, -+ // and Musl additionally accept SEEK_DATA & SEEK_HOLE (Linux extension). -+ // To provide a consistent behavior cross platform, we use the glibc check -+ // See also https://issues.dlang.org/show_bug.cgi?id=19797 -+ enforce(origin == SEEK_SET || origin == SEEK_CUR || origin == SEEK_END, -+ "Invalid `origin` argument passed to `seek`, must be one of: SEEK_SET, SEEK_CUR, SEEK_END"); -+ - enforce(isOpen, "Attempting to seek() in an unopened file"); - version (Windows) - { -@@ -1105,9 +1113,6 @@ Throws: `Exception` if the file is not o - { - alias fseekFun = _fseeki64; - alias off_t = long; -- // Issue 19797 -- enforce(origin >= SEEK_SET && origin <= SEEK_END, -- "Could not seek in file `"~_name~"' (Invalid argument)"); - } - else - { -@@ -1151,7 +1156,8 @@ Throws: `Exception` if the file is not o - // f.rawWrite("abcdefghijklmnopqrstuvwxyz"); - // f.seek(-3, SEEK_END); - // assert(f.readln() == "xyz"); -- assertThrown(f.seek(0, 3)); -+ -+ assertThrown(f.seek(0, ushort.max)); - } - - /** diff --git a/testing/ldc/APKBUILD b/testing/ldc/APKBUILD index 0af982d72f..568d5569a4 100644 --- a/testing/ldc/APKBUILD +++ b/testing/ldc/APKBUILD @@ -1,11 +1,11 @@ # Contributor: Mathias LANG <pro.mathias.lang@gmail.com> # Maintainer: Mathias LANG <pro.mathias.lang@gmail.com> pkgname=ldc -pkgver=1.19.0 -pkgrel=1 +pkgver=1.20.0 +pkgrel=0 pkgdesc="The LLVM-based D Compiler" url="https://github.com/ldc-developers/ldc" -# Currently limited to x86_64 because of issues with GDC +# LDC does not support host compiling on most of the architecture Alpine supports arch="x86_64" license="BSD-3-Clause AND BSL-1.0 AND ( Artistic-1.0 OR GPL-2.0-or-later ) AND NCSA AND MIT" depends="libexecinfo tzdata" @@ -15,8 +15,8 @@ checkdepends="bash gdb grep llvm9-test-utils" # a dynamically-linked D program. subpackages="$pkgname-runtime $pkgname-static" source="https://github.com/ldc-developers/ldc/releases/download/v$pkgver/ldc-$pkgver-src.tar.gz - 01-stdio-fseek.patch - 02-conf.patch" + 01-conf.patch + " builddir="$srcdir/ldc-$pkgver-src/" build() { @@ -92,6 +92,5 @@ static() { mv "$pkgdir"/usr/lib/*.a "$subpkgdir/usr/lib/" } -sha512sums="ffd1b085c7c8fe76162051234cc73e92f08a391cebac3f405c9dc6d03fcbf459d5e99295066ab4b0bd931bdce84dce53e23c33c1bc8ad35327f1b283f8e8f10a ldc-1.19.0-src.tar.gz -20d6bb560867052edeed6005e15473dae25c62002c7bd47f0e37610ffd5e94a50b49244c2a9b814f4858babca403f120ae6028cd86f964dd4734736eda068536 01-stdio-fseek.patch -eb86e4be0ecf72aaabbd5608c8056bb9cede035895e766330b6d14f14c06dc513fcecc1b6e56ab6fc9fc26c220a689cc8b1394a30a319189c414f1e067c1d983 02-conf.patch" +sha512sums="6a94400a9f28bc5fe0d12d5ab5aa188eb84d929c61ee79f3d87e9719f4e72cc1b658c4290d30e038ee6f741ca55f81007965102b0c591d75234aa4ea57d6f21f ldc-1.20.0-src.tar.gz +eb86e4be0ecf72aaabbd5608c8056bb9cede035895e766330b6d14f14c06dc513fcecc1b6e56ab6fc9fc26c220a689cc8b1394a30a319189c414f1e067c1d983 01-conf.patch" |
