Bug 750317 - make ghc base package install all of ghc
Summary: make ghc base package install all of ghc
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ghc
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-31 17:18 UTC by fedvasu
Modified: 2011-12-02 21:33 UTC (History)
4 users (show)

Fixed In Version: ghc-7.0.2-16.8.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-23 23:32:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description fedvasu 2011-10-31 17:18:26 UTC
Description of problem:
I'm no haskell expert, but i'm sure your package for quickcheck doesn't work  


Version-Release number of selected component (if applicable):
GHC 7.0.4, fedora 16 default version.

How reproducible:
just install ghc-quicheck through yumex or yum or whatever

Steps to Reproduce:
1.install ghc-quickcheck
2.realiaze that it doesn't work no module Test.QuickCheck
3.
  
Actual results:
no Test.QuickCheck module , what's wrong?
you messed up big time with dependencies?

Expected results:
there should have been a module Test.QuickCheck after installing ghc-quickcheck
,should have worked like the vanilla package.

Additional info:
seriously, this makes me furious!! (i'm trying to learn haskell :()
No way, i can tell you what's wrong , i'm no haskell expert.

when i asked help in #haskell , there folks whined about, fedora splitting software.

Comment 1 Ben Boeckel 2011-10-31 17:59:18 UTC
Try:

    yum install ghc-QuickCheck-devel

The -devel packages contain what is needed to develop with. The base package is only what is needed if a program uses QuickCheck (and has already been compiled).

Comment 2 Jens Petersen 2011-11-01 06:25:15 UTC
What Ben said.

You probably want to install haskell-platform:

  sudo yum install haskell-platform

Comment 3 Jens Petersen 2011-11-01 06:26:56 UTC
Just a little more explanation: ghc-QuickCheck contains the shared
library and ghc-QuickCheck-devel contains the development files.
This is consist with other libraries in Fedora and other distros...

Comment 4 Jens Petersen 2011-11-01 06:36:05 UTC
Also if you only want the libraries included from ghc
you can "yum install ghc-devel".

Also use "yum list ghc-\*-devel" to list all Haskell development
packages in Fedora.  Personally I tend to "yum install ghc-\*-devel"
or "yum install @haskell" which installs nearly all of them
and various tools too.

Comment 5 Jens Petersen 2011-11-01 08:26:02 UTC
Okay I am going to ponder on this a little more.

Maybe we really want the ghc base package to be a meta package
that pulls in "everything" to make the initial install friendlier
for newcomers.

ie More or less swap around current ghc and ghc-devel.

Comment 6 fedvasu 2011-11-01 10:19:57 UTC
ok Jens, thanks for your speedy reply , but i find it hard to grok why fedora packages force user to do it differently ? just to give an example,same problem happened with cgns library which is still not resolved completely (cgns-devel libraries have to be explicitly linked , unlike given in standard documentation).

I appreciate the motivation of splitting static and shared version of library, but packages like ghc-quickcheck one would install to write programs.(static).

Comment 7 Jens Petersen 2011-11-01 12:34:15 UTC
Thanks again for the report.

(In reply to comment #5)
> Maybe we really want the ghc base package to be a meta package
> that pulls in "everything" to make the initial install friendlier
> for newcomers.

Ok, ghc-7.0.4-36.fc17 should provide a base metapackage
which installs all of ghc (ghc-compiler and ghc-devel).
So in future if you install ghc you will have a working
QuickCheck, etc out of the box.  

I am planning to backport this soon to F16 and F15.

Comment 8 Jens Petersen 2011-11-01 12:42:52 UTC
(In reply to comment #6)
> just to give an example,same problem
> happened with cgns library which is still not resolved completely

Hm, that sounds like another bug?  Have you reported it?

> I appreciate the motivation of splitting static and shared version of library,
> but packages like ghc-quickcheck one would install to write programs.(static).

Maybe, but I still think it cleaner to treat all the libraries equally.
Anyway I hope the newest packaging will work better for you. :)

Unfortunately F17 rawhide is now on a newer version gmp so
the f17 build can't be installed easily in f16.  Anyway I will
try to push an update soon for F16 before it is released.

Comment 9 Jens Petersen 2011-11-01 13:59:32 UTC
ghc-7.0.4-36.fc17 build:
http://koji.fedoraproject.org/koji/buildinfo?buildID=271798

Comment 10 fedvasu 2011-11-01 17:17:00 UTC
(In reply to comment #8)
> (In reply to comment #6)
> > just to give an example,same problem
> > happened with cgns library which is still not resolved completely
> 
> Hm, that sounds like another bug?  Have you reported it?
>
I did report a bug,but they just added the runtime dependency which was not there previously. I tried to explain that in official(upstream) documentation linking part is clearly explained and explicitly stated that it doesn't conform to that, may be i was too subtle(my first bug report), i didn't use poisonous words.that maintainer didn't get it! (or maybe he has little or no experience working with that package , i would grab that package from him as become a package maintainer for fedora.)

I apologize Jens for my inappropriate language (And poisonous words to gather attention) , but i like fedora as development platform i'm concerned with unexpected problems any newbie developer has to face.
 
> Unfortunately F17 rawhide is now on a newer version gmp so
> the f17 build can't be installed easily in f16.  Anyway I will
> try to push an update soon for F16 before it is released.

good to hear that, i'm not too concerned myself as workaround is known.

Comment 11 Jens Petersen 2011-11-02 06:49:48 UTC
(In reply to comment #10)
> I apologize Jens for my inappropriate language (And poisonous words to gather
> attention) , but i like fedora as development platform i'm concerned with
> unexpected problems any newbie developer has to face.

It is ok for me. :)  I am glad you raised this and think it will lead
to be a better Fedora ghc package. :-)
The Fedora ghc subpackaging is perhaps a bit extreme - I don't
think anyone does it (yet anyway) but it means we can build
packages faster in the buildsystem and at least gives one
the option to install only what one needs.

Sometimes one needs to make some extra noise to bring awareness
to problems and deficiencies - of course it can also backfire sometimes. :)

Let us know if you have any more feedback about Fedora Haskell
or other packaging.  Fedora also needs to continue improving. :)

Comment 12 Fedora Update System 2011-11-02 10:29:48 UTC
ghc-7.0.4-31.2.fc16,ghc-rpm-macros-0.14-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/ghc-7.0.4-31.2.fc16,ghc-rpm-macros-0.14-1.fc16

Comment 13 Fedora Update System 2011-11-02 17:57:38 UTC
Package ghc-7.0.4-31.2.fc16, ghc-rpm-macros-0.14-1.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ghc-7.0.4-31.2.fc16 ghc-rpm-macros-0.14-1.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-15308
then log in and leave karma (feedback).

Comment 14 fedvasu 2011-11-03 14:10:06 UTC
thats good.

Comment 15 fedvasu 2011-11-03 14:56:11 UTC
i haven't tried installing any other package which makes use of rpm-macros,as i already installed development packages, but anyway gave positive karma , for you handled this bug quite well. (atleast in my experience).

so far so good Jens.

cheers.

Comment 16 Fedora Update System 2011-11-12 03:23:52 UTC
Package ghc-rpm-macros-0.14-1.fc16, ghc-7.0.4-31.3.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ghc-rpm-macros-0.14-1.fc16 ghc-7.0.4-31.3.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-15308
then log in and leave karma (feedback).

Comment 17 Fedora Update System 2011-11-12 07:31:49 UTC
ghc-7.0.2-16.8.fc15, ghc-rpm-macros-0.14-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/FEDORA-2011-14846

Comment 18 Fedora Update System 2011-11-23 23:32:12 UTC
ghc-rpm-macros-0.14-1.fc16, ghc-7.0.4-31.3.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 19 Fedora Update System 2011-12-02 21:33:27 UTC
ghc-7.0.2-16.8.fc15, ghc-rpm-macros-0.14-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.