aboutsummaryrefslogtreecommitdiffstats
path: root/community/ghc/0001-testsuite-Fix-T8602-on-musl.patch
blob: 3c0e617b3a1c17c931c833a779a5ce7f42a470b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 81608e82dfed7e78c1bba189f26c8c760f7c196a Mon Sep 17 00:00:00 2001
From: Ben Gamari <ben@smart-cactus.org>
Date: Tue, 11 Jun 2019 12:45:24 -0400
Subject: testsuite: Fix T8602 on musl

Musl wants hash-bangs on all executables.
---
 testsuite/tests/driver/T8602/T8602.script | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testsuite/tests/driver/T8602/T8602.script b/testsuite/tests/driver/T8602/T8602.script
index 746fb096bf..4729bd4e1e 100644
--- a/testsuite/tests/driver/T8602/T8602.script
+++ b/testsuite/tests/driver/T8602/T8602.script
@@ -1,3 +1,4 @@
-:! echo 'echo $4 $5 $6; exit 1' > t8602.sh
+:! echo '#!/bin/sh' > t8602.sh
+:! echo 'echo $4 $5 $6; exit 1' >> t8602.sh
 :! chmod +x t8602.sh
 :load A
-- 
2.17.1