Gems is over engineered

Eivind Eklund wrote:
> Until we do, however, I think that having Ruby implemented in a way
> that makes it possible to follow the standards reasonably well is
> necessary.
>
> And until I stop hearing complaints that it's impossible to package
> Rails and RailsGen properly (which I last heard from a new repackager
> a few days ago), I won't think this problem is solved.

Actually that's interesting. Perhaps the authors of the packages
themselves should have some sort of specfile to designate information
about their files which another build tool could use to build the
layout for particular distribution's needs. So the build tool could
have different adapters, FHS adaptor, Gentoo Adapter, Windows
Adaptor... not sure how the specfile mihgt look though.

This is the model I've been proposing to Austin. We're still
discussing if it is reasonable, and details.

> > Though I really wonder how many people do such a thing.
>
> Not many for each particular case. The ones that do are often very
> much power users, however, and contribute disproportionally to the
> system, and additionally there is a much larger number that don't use
> it, yet feel more comfortable with the system because it's there in
> case they need it.

That makes sense. Though I imagine, even in their case some of it is
overkill. Plus consider that even if it is all quite rational, if it is
just too complex how effective is it gogin to be anyway?

Exactly. Some parts are almost certainly overkill, and it's just
necessary to find out what parts.

Eivind.

···

On 10/4/05, Trans <transfire@gmail.com> wrote:

Lucas Nussbaum wrote:

···

On 05/10/05 at 05:36 +0900, Trans wrote:
>
> Eivind Eklund wrote:
> > [Gobolinux use a one-dir-per-package model. -Eivind]
> >
> > I think both models should be supported. Gentoo use the same model as
> > GoboLinux, I believe.

No, it doesn't. Gentoo uses a FHS-like model like all other Unix/Linux.

[...]

> P.S. Where does one put demo/example files in Debian/FHS?

/usr/share/doc/packagename/examples/

Thanks. So would that be

  /usr/share/doc/site_ruby/1.8/packagename/examples/

for ruby libs?

T.

no : docs and code aren't in the same folder. Here is the layout of a
package I develop on Debian :
/.
/usr
/usr/lib
/usr/lib/ruby
/usr/lib/ruby/1.8
/usr/lib/ruby/1.8/feed2imap.rb
/usr/lib/ruby/1.8/feed2imap
/usr/lib/ruby/1.8/feed2imap/textconverters.rb
/usr/lib/ruby/1.8/feed2imap/httpfetcher.rb
/usr/lib/ruby/1.8/feed2imap/cache.rb
/usr/lib/ruby/1.8/feed2imap/rubymail_patch.rb
/usr/lib/ruby/1.8/feed2imap/config.rb
/usr/lib/ruby/1.8/feed2imap/html2text-parser.rb
/usr/lib/ruby/1.8/feed2imap/imap.rb
/usr/lib/ruby/1.8/feed2imap/rexml_patch.rb
/usr/lib/ruby/1.8/feed2imap/channel.rb
/usr/lib/ruby/1.8/feed2imap/rubyimap.rb
/usr/lib/ruby/1.8/feed2imap/feed2imap.rb
/usr/lib/ruby/1.8/feed2imap/sgml-parser.rb
/usr/bin
/usr/bin/feed2imap-cleaner
/usr/bin/feed2imap-dumpconfig
/usr/bin/feed2imap
/usr/bin/feed2imap-opmlimport
/usr/share
/usr/share/doc
/usr/share/doc/feed2imap
/usr/share/doc/feed2imap/changelog.gz
/usr/share/doc/feed2imap/README
/usr/share/doc/feed2imap/copyright
/usr/share/doc/feed2imap/examples
/usr/share/doc/feed2imap/examples/feed2imaprc
/usr/share/doc/feed2imap/changelog.Debian.gz
/usr/share/man
/usr/share/man/man5
/usr/share/man/man5/feed2imaprc.5.gz
/usr/share/man/man1
/usr/share/man/man1/feed2imap-cleaner.1.gz
/usr/share/man/man1/feed2imap.1.gz
/usr/share/man/man1/feed2imap-dumpconfig.1.gz
/usr/share/man/man1/feed2imap-opmlimport.1.gz

And here is the layout when the same package is installed using
setup.rb (grepped install in the install log) :
install feed2imap-dumpconfig /usr/bin/
install feed2imap /usr/bin/
install feed2imap-opmlimport /usr/bin/
install feed2imap-cleaner /usr/bin/
install feed2imap.rb /usr/local/lib/site_ruby/1.8/
install textconverters.rb /usr/local/lib/site_ruby/1.8/feed2imap
install httpfetcher.rb /usr/local/lib/site_ruby/1.8/feed2imap
install cache.rb /usr/local/lib/site_ruby/1.8/feed2imap
install rubymail_patch.rb /usr/local/lib/site_ruby/1.8/feed2imap
install config.rb /usr/local/lib/site_ruby/1.8/feed2imap
install imap.rb /usr/local/lib/site_ruby/1.8/feed2imap
install rexml_patch.rb /usr/local/lib/site_ruby/1.8/feed2imap
install channel.rb /usr/local/lib/site_ruby/1.8/feed2imap
install feed2imap.rb /usr/local/lib/site_ruby/1.8/feed2imap
install html2text-parser.rb /usr/local/lib/site_ruby/1.8/feed2imap
install rubyimap.rb /usr/local/lib/site_ruby/1.8/feed2imap
install sgml-parser.rb /usr/local/lib/site_ruby/1.8/feed2imap
install feed2imaprc /usr/share/doc/feed2imap/examples
install feed2imaprc.5 /usr/share/man/man5
install feed2imap-dumpconfig.1 /usr/share/man/man1
install feed2imap-cleaner.1 /usr/share/man/man1
install feed2imap-opmlimport.1 /usr/share/man/man1
install feed2imap.1 /usr/share/man/man1

···

On 05/10/05 at 06:36 +0900, Trans wrote:

Lucas Nussbaum wrote:
> On 05/10/05 at 05:36 +0900, Trans wrote:
> >
> > Eivind Eklund wrote:
> > > [Gobolinux use a one-dir-per-package model. -Eivind]
> > >
> > > I think both models should be supported. Gentoo use the same model as
> > > GoboLinux, I believe.
>
> No, it doesn't. Gentoo uses a FHS-like model like all other Unix/Linux.
>
> [...]
>
> > P.S. Where does one put demo/example files in Debian/FHS?
>
> /usr/share/doc/packagename/examples/

Thanks. So would that be

  /usr/share/doc/site_ruby/1.8/packagename/examples/

for ruby libs?

--

Lucas Nussbaum
lucas@lucas-nussbaum.net http://www.lucas-nussbaum.net/ |
jabber: lucas@nussbaum.fr GPG: 1024D/023B3F4F |