Ticket #8261: 0001-timeout-configure-use-cabal-instead-of-Setup-for-Win.patch

File 0001-timeout-configure-use-cabal-instead-of-Setup-for-Win.patch, 972 bytes (added by leroux, 7 months ago)

Patch: Switch from Setup.exe command to cabal.

  • timeout/Makefile

    From 2b0298f82bf86bae5f7bbd200203383664d4ccf2 Mon Sep 17 00:00:00 2001
    From: Muhaimin Ahsan <leroux@fezrev.com>
    Date: Tue, 10 Sep 2013 18:03:49 -0500
    Subject: [PATCH] timeout configure - use cabal instead of Setup for Windows.
     See #8261.
    
    ---
     timeout/Makefile | 9 +--------
     1 file changed, 1 insertion(+), 8 deletions(-)
    
    diff --git a/timeout/Makefile b/timeout/Makefile
    index e7335df..d2bfec6 100644
    a b else 
    3737# Haskell program on Windows 
    3838$(TIMEOUT_PROGRAM): timeout.hs 
    3939        rm -rf install-inplace 
    40         '$(TEST_HC)' --make Setup 
    41         ./Setup configure --with-compiler='$(TEST_HC)' \ 
    42                           --with-hc-pkg='$(GHC_PKG)' \ 
    43                           --with-hsc2hs='$(HSC2HS)' \ 
    44                           $(WITH_GCC) \ 
    45                           --ghc-option=-threaded --prefix='$(PREFIX)' 
    46         ./Setup build 
    47         ./Setup install 
     40        cabal install --prefix='$(PREFIX)' 
    4841endif 
    4942 
    5043boot all :: calibrate.out $(TIMEOUT_PROGRAM)