Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#15815 closed defect (fixed)

c2hs-0.14.5_1 fails to build - Setup.hs: Couldn't match expected type `()' against inferred type `ExitCode'

Reported by: CaptSolo Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: c2hs Cc:
Port:

Description

Build fails during configuring (on Mac OS X Leopard (10.5.4), MacPorts 1.6.0):

-->  Configuring c2hs
Error: Target org.macports.configure returned: shell command "ghc -o
Setup Setup.hs -package Cabal" returned error 1
Command output:
Setup.hs:12:57:
   Couldn't match expected type `()' against inferred type `ExitCode'
     Expected type: Args
                    -> InstallFlags
                    -> PackageDescription
                    -> LocalBuildInfo
                    -> IO ()
     Inferred type: Args
                    -> InstallFlags
                    -> PackageDescription
                    -> LocalBuildInfo
                    -> IO ExitCode
   In the `postInst' field of a record
   In the first argument of `defaultMainWithHooks', namely
       `defaultUserHooks {postInst = addWrapperAndLib}'

Error: Status 1 encountered during processing.

Can be fixed by updating portfile to the last version of c2hs (diff below):

5c5
< version		0.14.5
---
> version		0.15.1
23c23
< checksums	md5 8e04c1dfffbd4d27776fc406f15d24e5
---
> checksums	md5 69f99fba67419edd471b77efb0bd644f
27,30d26
< patchfiles	patch-Setup.hs	\
< 		patch-CLexer.hs	\
< 		patch-CParser.hs
< 

Change History (3)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to gwright@…

Assigning to maintainer.

comment:2 Changed 15 years ago by gwright@…

Resolution: fixed
Status: newclosed

I just verified that the previously checked in update to version 0.15.1 fixed this. Closing.

comment:3 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.