Bug 911725 - better name for ghc-libraries
Summary: better name for ghc-libraries
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: ghc
Version: 18
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-15 19:14 UTC by fedvasu
Modified: 2014-01-23 01:55 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-23 01:55:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
script used to measure size of the package installed,although one could see it through packagekit (141 bytes, text/plain)
2013-02-15 19:14 UTC, fedvasu
no flags Details

Description fedvasu 2013-02-15 19:14:04 UTC
Created attachment 697959 [details]
script used to measure size of the package installed,although one could see it through packagekit

Description of problem:
I am the culprit for this bloat problem 
https://bugzilla.redhat.com/show_bug.cgi?id=750317

ghc-ghc-devel is for hacking on ghc, it is the entir ghc platform(compiler,RTS etc as a library). This pacakge should not be part of base install 

Version-Release number of selected component (if applicable):
ghc-7.4.1

this package takes up too much space (~ 240 MB installed) 
and 34 MB

puts considerable strain on bandwidth and diskspace (OK not so much on diskspace,but would be nice to get rid of it)

How reproducible:
just install ghc, 'yum install ghc'

Steps to Reproduce:
1.yum install ghc
2.say yes
3.
  
Actual results:
installs static library of entire ghc, which is not required for those

Expected results:
should not install ghc-ghc-devel package as part of base install.

Additional info:
This bug, is due to another request by me regarding quickCheck. Bug 750317
https://bugzilla.redhat.com/show_bug.cgi?id=750317

*note the title changed*

This is what Jens wrote : "
> 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 should have said no to it at that time itself, but i was not very well-informed (not that I am now, just less ignorant),by adding ghc-ghc-devel, we have internals/implementation of ghc as static library not static/devel packages of quickCheck,parsec etc. {I am pretty sure about this} 


I think it is correct and OK (infact necessary) to provide, -devel packages by default for libraries of haskell, like ghc-parsec and ghc-parsec-devel, ghc-xml and ghc-xml-devl,ghc-pango and ghc-pango-devel etc.

but ghc-ghc-devel is going too far. Only those who hack on ghc need this (specifically who want to hack on this particular version others will track and program for latest git/darcs version). 

I think, it is possible to make this change. no ghc-ghc-devel in base install,but whenever one installs any other library corresponding -devel packages should also be installed  

I didn't realize about this space problem, untill I ran out of space on my old Fedora 16 on my root partition, found out that ghc installation took ~530 MB installed space.

I am not sure about ghc-compiler package though, anyone more experienced in haskell packaging can chime in.

I think this thing, needs better testing and some discussion so no need to hurry out the changes, so that we make sure we do the right thing.

Comment 1 fedvasu 2013-02-15 19:18:49 UTC
I humbly apologize,to all fedora users, who downloaded and installed ghc after the changes of to fix the previous bug mentioned in the description above.

One may be interested in this question, about general bloatedness of GHC, one of the main GHC developer answered(accepted) this question.

http://stackoverflow.com/questions/4858585/why-is-ghc-so-large-big

Comment 2 Jens Petersen 2013-02-18 08:47:05 UTC
(In reply to comment #0)
> I am the culprit for this bloat problem 

Why do you install the main "ghc" binary package?

> this package takes up too much space (~ 240 MB installed) 
> and 34 MB

Then don't install it. :)

> Expected results:
> should not install ghc-ghc-devel package as part of base install.

If you don't want ghc-ghc* installed then you can just
install the ghc-devel (ghc-libraries) metapackage instead.

> This is what Jens wrote : "
> > 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.  
> "

> by adding
> ghc-ghc-devel, we have internals/implementation of ghc as static library not
> static/devel packages of quickCheck,parsec etc.

Pardon?

> but ghc-ghc-devel is going too far. Only those who hack on ghc need this
> (specifically who want to hack on this particular version others will track
> and program for latest git/darcs version). 

So just "yum remove ghc-ghc".

> I didn't realize about this space problem, untill I ran out of space on my
> old Fedora 16 on my root partition, found out that ghc installation took
> ~530 MB installed space.

Yes there are a lot of big libs and they take up space.
If you don't need them then it is find to remove them.

> I am not sure about ghc-compiler package though, anyone more experienced in
> haskell packaging can chime in.

What about it?

Comment 3 Jens Petersen 2013-02-18 08:50:32 UTC
Additionally if you install haskell-platform instead of ghc
then you will not get ghc-ghc-devel installed either.

I think this is Notabug and no plans to change the current packaging.
But I still welcome feedback and suggestions how to improve/present
the packaging better.

Comment 4 fedvasu 2013-02-19 19:42:53 UTC
(In reply to comment #2)
> (In reply to comment #0) 
> > this package takes up too much space (~ 240 MB installed) 
> > and 34 MB
> 
> Then don't install it. :)
> 
> > Expected results:
> > should not install ghc-ghc-devel package as part of base install.
> 
> If you don't want ghc-ghc* installed then you can just
> install the ghc-devel (ghc-libraries) metapackage instead.
> 
> > This is what Jens wrote : "
> > > 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.  
> > "
> 
> > by adding
> > ghc-ghc-devel, we have internals/implementation of ghc as static library not
> > static/devel packages of quickCheck,parsec etc.
> 
> Pardon?
> 
> > but ghc-ghc-devel is going too far. Only those who hack on ghc need this
> > (specifically who want to hack on this particular version others will track
> > and program for latest git/darcs version). 
> 
> So just "yum remove ghc-ghc".
> 

uninstalling ghc-ghc-devel also gets rid of ghc package(base O MB) but then again why should I download 34 MB if I know I am gonna uninstall it anyway ?.

I think it is natural for anyone who wants to install ghc, to do 
yum install ghc , the problem is ghc-ghc-devel is set as dependency, I can't install ghc without ghc-ghc-devel.

I don't want to install haskell-platform, it comes with some other things, which I don't need/want or even know how to use.

My request is simple, remove ghc-ghc-devel package from the deps of ghc. I can live with current  deps (grudgingly :)),but would be cool if u remove some bloat though.

Comment 5 Jens Petersen 2013-02-20 03:21:00 UTC
If I remove it then I will get bug reports from others complaining
"why doesn't Fedora's ghc include the ghc library?".
Like your original report. ;-)

I have no plan to change this.  I feel the current behaviour
is what most people would expect.

But if you have a good suggestion for a better name of
the meta-subpackage that doesn't install ghc-ghc-devel
then that would be helpful.  (Currently it is "ghc-libraries"
which also provides "ghc-devel".)

What do you use ghc for?

Comment 6 fedvasu 2013-02-20 10:51:11 UTC
(In reply to comment #5)
> If I remove it then I will get bug reports from others complaining
> "why doesn't Fedora's ghc include the ghc library?".
> Like your original report. ;-)
> 
> I have no plan to change this.  I feel the current behaviour
> is what most people would expect.
> 
> But if you have a good suggestion for a better name of
> the meta-subpackage that doesn't install ghc-ghc-devel
> then that would be helpful.  (Currently it is "ghc-libraries"
> which also provides "ghc-devel".)
> 
> What do you use ghc for?

how about ghc-minimal? like it should give, ghci(interpreter),ghc(compiler),runghc for shebang style-scripts and the standard libraries with -devel of each of them.

At the time of my original bug-report, I was just learning haskell, I now prototype data-driven programs in haskell, before writing them in fortran/C.

I used to do that in python previously, even now I use python heavily, just that haskell is way cooler :)

Comment 7 Jens Petersen 2013-03-22 07:14:10 UTC
Hmm, "ghc-minimal" sounds smaller than the current ghc-libraries,
maybe close to current ghc-compiler.  Let me think more about the name.

Comment 8 Fedora End Of Life 2013-12-21 15:22:52 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 9 Jens Petersen 2014-01-01 08:45:19 UTC
Still no better idea about the name.

I guess not many people look for/install ghc-libraries
rather haskell-platform.  Conversely I have also been asked
why Fedora haskell-platform does not install ghc-ghc-devel...

These days I encourage people to use cblrpm to install depends
of cabal packages via yum.

Comment 10 Jens Petersen 2014-01-23 01:55:31 UTC
Closing this for now.


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