diff options
author | Rasmus Thomsen <oss@cogitri.dev> | 2020-04-17 09:50:54 +0200 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-04-17 10:02:47 +0200 |
commit | 45fcaed542924f40a82ca4a3ac4c1500c22e87b0 (patch) | |
tree | d4fd9034e57f9590e1dacd8be4a3e9e3966e2f97 | |
parent | d01f80fd4c27e6ff3a818d890886a8b2d94769c8 (diff) | |
download | aports-45fcaed542924f40a82ca4a3ac4c1500c22e87b0.tar.bz2 aports-45fcaed542924f40a82ca4a3ac4c1500c22e87b0.tar.xz |
testing/libdparse: fix build on x86
-rw-r--r-- | testing/libdparse/389.patch | 23 | ||||
-rw-r--r-- | testing/libdparse/APKBUILD | 6 |
2 files changed, 27 insertions, 2 deletions
diff --git a/testing/libdparse/389.patch b/testing/libdparse/389.patch new file mode 100644 index 0000000000..027d2a8282 --- /dev/null +++ b/testing/libdparse/389.patch @@ -0,0 +1,23 @@ +From 052470ca738d5c683ab5511e47bdf335bf754db4 Mon Sep 17 00:00:00 2001 +From: Jan Jurzitza <gh@webfreak.org> +Date: Fri, 17 Apr 2020 08:47:24 +0200 +Subject: [PATCH] Fixed unittest on x86 (fix #388) + +--- + src/dparse/lexer.d | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/dparse/lexer.d b/src/dparse/lexer.d +index 2661543..22ab0c1 100644 +--- a/src/dparse/lexer.d ++++ b/src/dparse/lexer.d +@@ -1891,7 +1891,8 @@ unittest + { + assert(optimalBucketCount(1) == 2); + assert(optimalBucketCount(9000 * 32) == 16384); +- assert(optimalBucketCount(100_000_000_000UL) == 1 << 30); ++ static if (size_t.sizeof == ulong.sizeof) ++ assert(optimalBucketCount(100_000_000_000UL) == 1 << 30); + } + + /** diff --git a/testing/libdparse/APKBUILD b/testing/libdparse/APKBUILD index fb7e423e2d..aa7dd8343a 100644 --- a/testing/libdparse/APKBUILD +++ b/testing/libdparse/APKBUILD @@ -9,7 +9,8 @@ arch="x86 x86_64 aarch64" # ldc license="BSL-1.0" makedepends="meson ldc ldc-runtime stdx-allocator-dev" subpackages="$pkgname-dev" -source="https://github.com/dlang-community/libdparse/archive/v$pkgver/libdparse-$pkgver.tar.gz" +source="https://github.com/dlang-community/libdparse/archive/v$pkgver/libdparse-$pkgver.tar.gz + 389.patch" build() { meson \ @@ -30,4 +31,5 @@ package() { DESTDIR="$pkgdir" ninja -C output install } -sha512sums="c4c4ba232cf462ccfb43147284af55d587be58136072a1ac9d24265800e8418a72e5927607206b909f767455af1fd82da57d54183df4342a95cad0b40899c383 libdparse-0.14.0.tar.gz" +sha512sums="c4c4ba232cf462ccfb43147284af55d587be58136072a1ac9d24265800e8418a72e5927607206b909f767455af1fd82da57d54183df4342a95cad0b40899c383 libdparse-0.14.0.tar.gz +5e8fe47e04f52dbdbbcd9be525b7e67c00e78259342be617ec4b2bd8dc32b5a02fba6d66075babe2b1c0efdcc7b726911389419c7c4f427d76d2a2a0c1e998aa 389.patch" |