Bug#845368: haskell-devscripts: Prevent ghc from reading the package .ghci file when computing os or arch

David Fox dsf at seereason.com
Tue Nov 22 19:47:05 UTC 2016


Package: haskell-devscripts
Version: 0.12-0+seereason1~trusty2
Severity: normal

Dear Maintainer,

patch:
>From 6b5eb542a018f966db070fc1ab802f2c94746b51 Mon Sep 17 00:00:00 2001
From: David Fox <dsf at seereason.com>
Date: Tue, 22 Nov 2016 09:28:47 -0800
Subject: =?UTF-8?q?Prevent=20ghc=20from=20looking=20at=20.ghci=20when=20pr?=
 =?UTF-8?q?inting=20arch=20and=20os.=20=20This=0Achange=20was=20provoked?=
 =?UTF-8?q?=20by=20a=20.ghci=20that=20tried=20to=20load=20source=20files?=
 =?UTF-8?q?=20from=0Athe=20package=20being=20configured.?=

---
 Dh_Haskell.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Dh_Haskell.sh b/Dh_Haskell.sh
index 9f07aff..8203f60 100644
--- a/Dh_Haskell.sh
+++ b/Dh_Haskell.sh
@@ -6,11 +6,11 @@ run () {
 }
 
 cpu(){
-  ghc -e 'putStr System.Info.arch'
+  ghc -ignore-dot-ghci -e 'putStr System.Info.arch'
 }
 
 os(){
-  ghc -e 'putStr System.Info.os'
+  ghc -ignore-dot-ghci -e 'putStr System.Info.os'
 }
 
 ghcjs_version(){
-- 
1.9.1



-- System Information:
Debian Release: jessie/sid
  APT prefers trusty-updates
  APT policy: (500, 'trusty-updates'), (500, 'trusty')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.19.0-22-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages haskell-devscripts depends on:
ii  haskell-devscripts-minimal  0.12-0+seereason1~trusty2
ii  hscolour                    1.20.3-2

haskell-devscripts recommends no packages.

haskell-devscripts suggests no packages.

-- no debconf information



More information about the Pkg-haskell-maintainers mailing list