Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 326053 - dev-haskell/cabal-1.8.0.6-r1 fails to emerge (ghc-6.8.2)
Summary: dev-haskell/cabal-1.8.0.6-r1 fails to emerge (ghc-6.8.2)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-28 19:38 UTC by Vikraman (RETIRED)
Modified: 2011-01-30 12:50 UTC (History)
1 user (show)

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


Attachments
Build log (dev-haskell:cabal-1.8.0.6-r1:20100702-174219.log,19.08 KB, text/plain)
2010-07-02 17:47 UTC, Vikraman (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vikraman (RETIRED) gentoo-dev 2010-06-28 19:38:44 UTC
emerge of dev-haskell/cabal-1.8.0.6-r1 fails while registering Cabal-1.8.0.6 because of bad arguments to ghc-pkg

Reproducible: Always

Steps to Reproduce:
1. emerge -av1 =dev-haskell/cabal-1.8.0.6-r1

Actual Results:  
[57 of 58] Compiling Distribution.Simple.UserHooks ( Distribution/Simple/UserHooks.hs, dist/build/Distribution/Simple/UserHooks.o )
[58 of 58] Compiling Distribution.Simple ( Distribution/Simple.hs, dist/build/Distribution/Simple.o )
Registering Cabal-1.8.0.6...
setup: ghc-pkg: unrecognized option `--no-user-package-conf'
Usage:
ghc-pkg register {filename | -}
Register the package using the specified installed package
description. The syntax for the latter is given in the ghc-pkg
documentation.
ghc-pkg update {filename | -}
Register the package, overwriting any other package with the
same name.
ghc-pkg unregister {pkg-id}
Unregister the specified package.
ghc-pkg expose {pkg-id}
Expose the specified package.
ghc-pkg hide {pkg-id}
Hide the specified package.
ghc-pkg list [pkg]
List registered packages in the global database, and also the
user database if --user is given. If a package name is given
all the registered versions will be listed in ascending order.
Accepts the --simple-output flag.
ghc-pkg latest pkg
Prints the highest registered version of a package.
ghc-pkg check
Check the consistency of package depenencies and list broken packages.
Accepts the --simple-output flag.
ghc-pkg describe {pkg-id}
Give the registered description for the specified package. The
description is returned in precisely the syntax required by ghc-pkg
register.
ghc-pkg field {pkg-id} {field}
Extract the specified field of the package description for the
specified package.
The following optional flags are also accepted:
--user use the current user's package database
--global (default) use the global package database
-f FILE --package-conf=FILE act upon specified package config file (only)
--global-conf=FILE location of the global package config
--force ignore missing dependencies, directories, and libraries
--force-files ignore missing directories and libraries only
-g --auto-ghci-libs automatically build libs for GHCi (with register)
-? --help display this help and exit
-V --version output version information and exit
--simple-output print output in easy-to-parse format for some commands
--names-only only print package names, not versions; can only be used with
list --simple-output
 * ERROR: dev-haskell/cabal-1.8.0.6-r1 failed:
 *   setup build failed
 * 
 * Call stack:
 *     ebuild.sh, line   47:  Called src_compile
 *   environment, line 3107:  Called cabal-build
 *   environment, line  463:  Called die
 * The specific snippet of code:
 *       ./setup build || die "setup build failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-haskell/cabal-1.8.0.6-r1',
 * the complete build log and the output of 'emerge -pqv =dev-haskell/cabal-1.8.0.6-r1'.
 * The complete build log is located at '/var/log/portage/dev-haskell:cabal-1.8.0.6-r1:20100628-192843.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/cabal-1.8.0.6-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-haskell/cabal-1.8.0.6-r1/work/Cabal-1.8.0.6'

>>> Failed to emerge dev-haskell/cabal-1.8.0.6-r1, Log file:

>>>  '/var/log/portage/dev-haskell:cabal-1.8.0.6-r1:20100628-192843.log'
Comment 1 Ivan 2010-07-02 02:41:10 UTC
Which version of GHC are you using?  It appears to be a rather old one (and may in fact be a bug in upstream as we don't use --no-user-package-conf anywhere explicitly that I can find, which is strange since Duncan Coutts tests Cabal against versions of GHC going back as far as 6.2 if memory serves).
Comment 2 Vikraman (RETIRED) gentoo-dev 2010-07-02 06:16:38 UTC
(In reply to comment #1)
> Which version of GHC are you using?  It appears to be a rather old one (and may
> in fact be a bug in upstream as we don't use --no-user-package-conf anywhere
> explicitly that I can find, which is strange since Duncan Coutts tests Cabal
> against versions of GHC going back as far as 6.2 if memory serves).
> 

dev-haskell/ghc-6.8.2-r1
Comment 3 Lennart Kolmodin (RETIRED) gentoo-dev 2010-07-02 13:39:33 UTC
Please attach the full output of the build.

Also paste the output of

ghc -V
ghc-pkg -V
Comment 4 Vikraman (RETIRED) gentoo-dev 2010-07-02 17:47:07 UTC
Created attachment 237293 [details]
Build log

Added build log
Comment 5 Vikraman (RETIRED) gentoo-dev 2010-07-02 17:49:13 UTC
(In reply to comment #3)
> Also paste the output of
> 
> ghc -V
> ghc-pkg -V
> 

% ghc -V
The Glorious Glasgow Haskell Compilation System, version 6.8.2
% ghc-pkg -V
GHC package manager version 6.8.2
Comment 6 seenxu 2010-07-04 11:52:33 UTC
confirm, I am having the same problem.

ghc -V
The Glorious Glasgow Haskell Compilation System, version 6.8.2

ghc-pkg -V
GHC package manager version 6.8.2
Comment 7 gogonkt 2010-07-06 19:10:33 UTC
(In reply to comment #6)
> confirm, I am having the same problem.
> 
> ghc -V
> The Glorious Glasgow Haskell Compilation System, version 6.8.2
> 
> ghc-pkg -V
> GHC package manager version 6.8.2
> 

same bug too :(
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2010-07-06 20:00:57 UTC
> CPV:  dev-haskell/cabal-1.8.0.6-r1
> REPO: funtoo

dev-haskell/cabal-1.8.0.6-r1 is marked as ~arch (unstable keyword)
while ghc-6.8.2 is arch (stable), so it's not a high priority bug for us.

If upstream will fix it I'll happily update it in tree.
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2010-07-06 20:53:27 UTC
Main upstream branch even got the patch:

Fri May 21 07:10:48 PDT 2010  Duncan Coutts <duncan@haskell.org>
  * Fix building packages with ghc-6.8 or older

    M ./Distribution/Simple/Program/HcPkg.hs -2 +13

View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=20100521141048-adfee-8f786193d7fef17d11f7d51ebaa624e57f2429cc.gz

It is need to be ported to 1.8 branch
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2011-01-30 12:50:12 UTC
ghc-6.12.3 is stable on most of arches (bug #338652). It should fix the problem.

As soon as it will go stable on ppc and ppc64 we will remove ghc-6.8 support from
portage tree.