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
Can you please attach the complete build log and comment with the output of `emerge --info`? Thank you in advance.
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!