[DRE-maint] Bug#593325: Bug#593325: Patch to uncompress examples
Lucas Nussbaum
lucas at lucas-nussbaum.net
Sun Nov 6 11:23:48 UTC 2011
On 06/11/11 at 09:08 -0200, Antonio Terceiro wrote:
> Paul van Tilburg escreveu isso aí:
> > Hey all,
> >
> > On Sun, Oct 16, 2011 at 07:42:57PM +0200, Olivier Sallou wrote:
> > > Tags: patch
> > >
> > > Here is patch to remove compression of examples in ruby-gtk2
> > >
> > > Only impact is in debian/rules.
> > >
> > >
> > > Olivier
> >
> > > diff -Nru ruby-gnome2-1.0.0/debian/rules ruby-gnome2-1.0.0/debian/rules
> > > --- ruby-gnome2-1.0.0/debian/rules 2011-10-16 17:01:52.000000000 +0200
> > > +++ ruby-gnome2-1.0.0/debian/rules 2011-10-16 18:47:38.000000000 +0200
> > > @@ -17,3 +17,7 @@
> > > dh_strip -p$$i --dbg-package=$$i-dbg ; \
> > > done
> > > dh_strip
> > > +
> > > +
> > > +override_dh_compress:
> > > + dh_compress -X.rb
> >
> > I also noticed this in one of the packages that I migrated as well...
> > the examples are compressed, which I find inconvenient.
> > a long time ago we agreed that ruby-pkg-tools should do this by default
> > (i.e not compressing examples). I assume this is just overlooked
> > for gem2deb so I guess that this bug report should be reassigned to
> > gem2deb? However, before doing this I wanted to recheck with the
> > maintainers/community/you guys.
>
> There is a slight difference between ruby-pkg-tools and gem2deb. While
> ruby-pkg-tools called CDBS and could modify most things in how CDBS
> operates, gem2deb does not call debhelper, but is called by it. I don't
> see a way for dh_ruby to influence the other debhelper programs, except
> perhaps by generating a debian/rules with lots of override_dh_* targets,
> which seems dirty to me.
>
> Of course, if anyone comes up with an idea of how to implement this on
> the gem2deb side, we will totally consider it.
Hi,
gem2deb is a dh buildsystem, so it's called by debhelper for each
action, such as configure, build, test, install, clean.
but it's also a dh sequence, so it can plug itself at any point of the
debhelper build. For example, it's done after dh_shlibdeps to hack the
dependencies for packages building native extensions.
You could easily insert into the dh process to override dh_compress that
way. See debhelper7/sequence/ruby.pm for details on how it is done for
dh_shlibdeps.
Lucas
More information about the Pkg-ruby-extras-maintainers
mailing list