Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490198 - =dev-haskell/hdbc-postgresql-2.3.2.1 with <=dev-haskell/cabal-1.18.0 - .../work/HDBC-postgresql-2.3.2.1/Setup.hs:31:7: Couldn't match type `IO (Maybe FilePath)' with `ProgramSearchPath -> IO (Maybe FilePath)'
Summary: =dev-haskell/hdbc-postgresql-2.3.2.1 with <=dev-haskell/cabal-1.18.0 - .../wo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL: https://github.com/hdbc/hdbc-postgres...
Whiteboard:
Keywords:
Depends on: 491276
Blocks:
  Show dependency tree
 
Reported: 2013-11-02 21:50 UTC by Sławomir Nizio
Modified: 2013-11-15 17:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sławomir Nizio 2013-11-02 21:50:18 UTC
Compilation of this package fails (log below), very likely only when dev-haskell/cabal 1.18.0 is installed.

upstream bug report (this and one it links to):
https://github.com/haskell/cabal/issues/1467

With this commit:
https://github.com/hdbc/hdbc-postgresql/commit/e9b2fbab07b8f55ae6a9e120ab0b98c433842a8b
it compiles (fixed ebuild can be found in the sabayon overlay).

log:

>>> Preparing source in /var/tmp/portage/dev-haskell/hdbc-postgresql-2.3.2.1/work/HDBC-postgresql-2.3.2.1 ...
 * Applying HDBC-postgresql-2.3.2.1-ghc-7.6.patch ...                                                                     [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-haskell/hdbc-postgresql-2.3.2.1/work/HDBC-postgresql-2.3.2.1 ...
 * Using cabal-1.18.0.
 * Prepending /usr/lib64/ghc-7.6.3 to LD_LIBRARY_PATH
/usr/bin/ghc -package Cabal-1.18.0 --make /var/tmp/portage/dev-haskell/hdbc-postgresql-2.3.2.1/work/HDBC-postgresql-2.3.2.1/Setup
.hs -dynamic -o setup
[1 of 1] Compiling Main             ( /var/tmp/portage/dev-haskell/hdbc-postgresql-2.3.2.1/work/HDBC-postgresql-2.3.2.1/Setup.hs,
 /var/tmp/portage/dev-haskell/hdbc-postgresql-2.3.2.1/work/HDBC-postgresql-2.3.2.1/Setup.o )

/var/tmp/portage/dev-haskell/hdbc-postgresql-2.3.2.1/work/HDBC-postgresql-2.3.2.1/Setup.hs:31:7:
    Couldn't match type `IO (Maybe FilePath)'
                  with `ProgramSearchPath -> IO (Maybe FilePath)'
    Expected type: IO (Maybe FilePath)
                   -> (Maybe FilePath -> IO (Maybe FilePath))
                   -> ProgramSearchPath
                   -> IO (Maybe FilePath)
      Actual type: IO (Maybe FilePath)
                   -> (Maybe FilePath -> IO (Maybe FilePath)) -> IO (Maybe FilePath)
    In a stmt of a 'do' block:
      pgconfig <- findProgramLocation verbosity "pgconfig"
    In the expression:
      do { pgconfig <- findProgramLocation verbosity "pgconfig";
           pg_config <- findProgramLocation verbosity "pg_config";
           return (pgconfig `mplus` pg_config) }
    In the `programFindLocation' field of a record
/usr/bin/ghc -package Cabal-1.18.0 --make /var/tmp/portage/dev-haskell/hdbc-postgresql-2.3.2.1/work/HDBC-postgresql-2.3.2.1/Setup
.hs -o setup
[1 of 1] Compiling Main             ( /var/tmp/portage/dev-haskell/hdbc-postgresql-2.3.2.1/work/HDBC-postgresql-2.3.2.1/Setup.hs,
 /var/tmp/portage/dev-haskell/hdbc-postgresql-2.3.2.1/work/HDBC-postgresql-2.3.2.1/Setup.o )

/var/tmp/portage/dev-haskell/hdbc-postgresql-2.3.2.1/work/HDBC-postgresql-2.3.2.1/Setup.hs:31:7:
    Couldn't match type `IO (Maybe FilePath)'
                  with `ProgramSearchPath -> IO (Maybe FilePath)'
    Expected type: IO (Maybe FilePath)
                   -> (Maybe FilePath -> IO (Maybe FilePath))
                   -> ProgramSearchPath
                   -> IO (Maybe FilePath)
      Actual type: IO (Maybe FilePath)
                   -> (Maybe FilePath -> IO (Maybe FilePath)) -> IO (Maybe FilePath)
    In a stmt of a 'do' block:
      pgconfig <- findProgramLocation verbosity "pgconfig"
    In the expression:
      do { pgconfig <- findProgramLocation verbosity "pgconfig";
           pg_config <- findProgramLocation verbosity "pg_config";
           return (pgconfig `mplus` pg_config) }
    In the `programFindLocation' field of a record
 * ERROR: dev-haskell/hdbc-postgresql-2.3.2.1 failed (configure phase):
 *   compiling /var/tmp/portage/dev-haskell/hdbc-postgresql-2.3.2.1/work/HDBC-postgresql-2.3.2.1/Setup.hs failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 3138:  Called cabal_src_configure '--flags=-buildtests'
 *   environment, line  939:  Called haskell-cabal_src_configure '--flags=-buildtests'
 *   environment, line 2448:  Called cabal-bootstrap
 *   environment, line  714:  Called die
 * The specific snippet of code:
 *           } || make_setup "$@" || die "compiling ${setupmodule} failed";


Thanks. :)

Reproducible: Always
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-11-06 15:40:05 UTC
Can you please attach the complete build log and comment with the output of `emerge --info`? Thank you in advance.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2013-11-15 17:57:00 UTC
Pushed updated hackage version:

>*hdbc-postgresql-2.3.2.2 (15 Nov 2013)
>
>  15 Nov 2013; Sergei Trofimovich <slyfox@gentoo.org>
>  +hdbc-postgresql-2.3.2.2.ebuild:
>  Version bump (bug #491276 by Luis Ressel).

Thanks guys!