FS#11638 - [ruby] /usr/share/ri: when you Gvim eats too much
Attached to Project:
Arch Linux
Opened by Fnord Popos (noddy) - Thursday, 02 October 2008, 07:42 GMT
Last edited by Allan McRae (Allan) - Sunday, 07 June 2009, 03:06 GMT
Opened by Fnord Popos (noddy) - Thursday, 02 October 2008, 07:42 GMT
Last edited by Allan McRae (Allan) - Sunday, 07 June 2009, 03:06 GMT
|
Details
Description:
Ruby is a dep for a (growing) number of packages. A good number of Arch installs get their Ruby that way. GTK Vim will pull it in, for example. Case in point, not every Ruby instalation is part a developer's kit. But the package comes with 45MB of off-line documentation in the form of Ruby Index, in /usr/share/ri. On small systems that Arch is (still) good for, this is a lot. Couldn't ri be split off in a separate package? It's trivial to make another simple PKGBUILD that does make install-doc from the same sources, and remove it from the main package. Pretty please? +sugar? Additional info: * package version(s) ruby-1.8.7_p72-2 |
This task depends upon
Closed by Allan McRae (Allan)
Sunday, 07 June 2009, 03:06 GMT
Reason for closing: Fixed
Additional comments about closing: ruby 1.8.7_p160-1
Sunday, 07 June 2009, 03:06 GMT
Reason for closing: Fixed
Additional comments about closing: ruby 1.8.7_p160-1
Let me turn this question sideways a bit. If you had the ability to remove this stuff after install, would that fix things? That is, you'd still "waste" the download, but would automated removal be a happy medium?
Thing is, the install is getting a bit bloated lately, and it really shows on ultraportables. Rich locales in /usr/share/locale, a really fat lump in /usr/share/libgweather, the invasion of low-level docs (do you hack XCB or libX11 often enough to keep their apis and examples on your *other* computer..?), ruby index, etc, etc. It all comes down to too much developer documentation and incredible amounts of localization files.
I'm pruning that with cron atm. But i really think it would be worthwhile to investigate a better solution, no matter how unimportant this is on most installs, because other than that Arch is A++ God-given for small installs (too). ;)
/etc/pacman.conf:
NoInstall /usr/share/info/*
NoInstall /usr/share/doc/*
and
$ pacman --noinstall '/etc/profile.d/*' -S foobar
I think functionality like this would solve a lot of our issues, and would give the user more choice and more control. I imagine we could do the matching using filesystem globbing (fnmatch), as that syntax makes more sense here.
NoInstall *.a
NoInstall /usr/include/*
NoInstall /usr/share/{doc,info}/*
This might actually make sense on the ISOs too (though we want man and info pages)
DontYouNever "/usr/share/locale/(?!klingon|lojban).+"
DontYouNever "/usr/share/doc/(?!ghc|nhc|uhc|ehc|yhc|hugs).+"
...with globs.
Also, if you take this approach, why not just augment NoExtract?
But yeah, local hooks would rock even more.
That comes down to usability vs download size and bandwidth use on the servers.