summaryrefslogtreecommitdiff
path: root/lang/ocaml
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2020-05-23 20:33:51 +0000
committerrillig <rillig@pkgsrc.org>2020-05-23 20:33:51 +0000
commit9b41bf63b671b0b25d66bcf9e9c7b6475503b5b6 (patch)
tree2c8392effd081971c9a83d46a0a9515e91216b49 /lang/ocaml
parent96e8687fac92732d71ff85afb6363b8f3b1aac0a (diff)
downloadpkgsrc-9b41bf63b671b0b25d66bcf9e9c7b6475503b5b6.tar.gz
lang/ocaml: fix bashisms in tests
Diffstat (limited to 'lang/ocaml')
-rw-r--r--lang/ocaml/distinfo3
-rw-r--r--lang/ocaml/patches/patch-check-linker-version_sh19
2 files changed, 21 insertions, 1 deletions
diff --git a/lang/ocaml/distinfo b/lang/ocaml/distinfo
index cc31f3de7bc..e2d37a59510 100644
--- a/lang/ocaml/distinfo
+++ b/lang/ocaml/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.135 2020/04/15 09:50:54 jaapb Exp $
+$NetBSD: distinfo,v 1.136 2020/05/23 20:33:51 rillig Exp $
SHA1 (ocaml-4.09.1.tar.gz) = b4e7140e977c0fae5182074dd93b3c1b74f49ee7
RMD160 (ocaml-4.09.1.tar.gz) = 377e956327bac18a37f9e77b2558e9474fd07481
@@ -8,6 +8,7 @@ SHA1 (patch-Makefile) = 132a1cf1187dc05ec5338b496757d89047e91130
SHA1 (patch-Makefile.common.in) = fbf3dc0614073ed5ac9b220211a837f69a4ffcaf
SHA1 (patch-asmcomp_amd64_emit.mlp) = c2b90f50bc3c4bf9817916bdd455a8bfc03cb69b
SHA1 (patch-asmrun_amd64.S) = d4c33cb14c107ed03bf6a3704bbfe7c2799a048e
+SHA1 (patch-check-linker-version_sh) = c90242556207242ac58499d7f42519a10aedcca4
SHA1 (patch-configure) = 311b18383bcc88f2a67d83d4b0c6e35344bd2d0d
SHA1 (patch-lex_Makefile) = 18d1b8272ffb3e3a58c26d8a2494aaae6942426a
SHA1 (patch-man_Makefile) = b780c026aef5f7e6b22b142fce3ec87ef9d2ab22
diff --git a/lang/ocaml/patches/patch-check-linker-version_sh b/lang/ocaml/patches/patch-check-linker-version_sh
new file mode 100644
index 00000000000..2728a4c97b2
--- /dev/null
+++ b/lang/ocaml/patches/patch-check-linker-version_sh
@@ -0,0 +1,19 @@
+$NetBSD: patch-check-linker-version_sh,v 1.1 2020/05/23 20:33:52 rillig Exp $
+
+Fix bashisms.
+
+--- testsuite/tests/unwind/check-linker-version.sh.orig 2020-03-18 15:02:03.000000000 +0000
++++ testsuite/tests/unwind/check-linker-version.sh 2020-05-02 15:40:01.333410019 +0000
+@@ -3,10 +3,10 @@
+ LDFULL="`ld -v 2>&1`"
+ LD="`echo $LDFULL | grep -o \"ld64-[0-9]*\"`"
+ LDVER="`echo $LD | sed \"s/ld64-//\"`"
+-if [[ -z "$LD" ]]; then
++if [ -z "$LD" ]; then
+ echo "unknown linker: pattern ld64-[0-9]* not found in 'ld -v' output";
+ test_result=${TEST_SKIP};
+-elif [[ $LDVER -lt 224 ]]; then
++elif [ $LDVER -lt 224 ]; then
+ echo "ld version is $LDVER, only 224 or above are supported";
+ test_result=${TEST_SKIP};
+ else