Bug 760461

Summary: Missing requires on ghc-compiler
Product: [Fedora] Fedora Reporter: Stanislav Ochotnicky <sochotni>
Component: cabal-installAssignee: Jens Petersen <petersen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: haskell-devel, lakshminaras2002, petersen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cabal-install-0.10.2-5.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-10 21:56:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Stanislav Ochotnicky 2011-12-06 09:11:33 UTC
Description of problem:
After installing cabal-install and trying to install a hackage with it:
# cabal install yeganesh
Config file path source is default config file.
Config file /root/.cabal/config not found.
Writing default configuration to /root/.cabal/config
cabal: The program ghc version >=6.4 is required but it could not be found.


I guess a Requires: ghc-compiler is missing in the spec.

Comment 1 Narasimhan 2011-12-07 04:34:37 UTC
Hi,
Can you provide some details here,
OS
version of cabal-install. Use rpmquery -i cabal-install
version of ghc (if installed). Use rpmquery -i ghc

Thanks,

Comment 2 Stanislav Ochotnicky 2011-12-07 14:22:56 UTC
I would have assumed filing this bug against F16 means I've tested this with F16 stable packages, but OK. Here goes:
> rpm -q cabal-install ghc ghc-compiler
cabal-install-0.10.2-3.fc16.x86_64
ghc-7.0.4-31.3.fc16.x86_64
ghc-compiler-7.0.4-31.3.fc16.x86_64

Comment 3 Narasimhan 2011-12-07 14:35:20 UTC
Thanks,
Can you check whether ghc-ghc-devel package is installed?I think installing that package that might solve this issue.

Comment 4 Stanislav Ochotnicky 2011-12-07 15:50:43 UTC
ghc-ghc-devel requires ghc-compiler so it of course fixes this bug, but for cabal to run on my machine it doesn't need the rest of ghc-ghc-devel. It would be like requiring whole KDE environment because you have an application that required qt.

Comment 5 Jens Petersen 2011-12-16 05:50:23 UTC
Hi Stanislav, sorry for the slow reply - I was away for a week.

Ok I guess I could bring back the ghc requires
dropping that was probably a bit too impractical.

The reason I dropped it was that I thought it would be
nice to support using local versions of ghc
without being forced to install all of fedora ghc
but I guess that is a bit of a corner use-case.

But you probably want haskell-platform anyway?

Alternatively a cabal-install-core subpackage could
be added perhaps without the ghc dependency.

Comment 6 Jens Petersen 2011-12-16 06:16:08 UTC
This should be fixed first in cabal-install-0.10.2-5.fc17.

I plan to push a package to testing for f16 soon.

Comment 7 Stanislav Ochotnicky 2011-12-16 08:41:26 UTC
Frankly I just wanted to try out one haskell package (I ended up not using it in the end). And on my way to compile/install it, I encountered this problem. I assumed this was a non-deliberate thing (i.e. developer doesn't notice dependency because he always has it installed). However you seem to have a use case and there is no strict guideline about this, so it's up to you

Comment 8 Fedora Update System 2012-01-26 02:32:50 UTC
cabal-install-0.10.2-5.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/cabal-install-0.10.2-5.fc15

Comment 9 Fedora Update System 2012-01-26 02:32:59 UTC
cabal-install-0.10.2-5.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/cabal-install-0.10.2-5.fc16

Comment 10 Fedora Update System 2012-01-26 22:54:15 UTC
Package cabal-install-0.10.2-5.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cabal-install-0.10.2-5.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-0947/cabal-install-0.10.2-5.fc15
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2012-02-10 21:56:24 UTC
cabal-install-0.10.2-5.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2012-02-25 08:28:26 UTC
cabal-install-0.10.2-5.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.