On Fri, Jun 16, 2006 at 12:16:10AM +0100, Esteban Manchado Velázquez wrote:
Hi Esteban
>     I've made an ugly hack to try to fix this bug. Could you please try it
> out? It seems to work for me, but...
> 
>     I'm sending attached the new ruby-extconf-rb.mk. Please put it in
> /usr/share/ruby-pkg-tools/1/class/, after making a backup of the original
> file, just in case.
> 
>     Let me know if it works for you...

I needed to patch it a little to get it to work.. Patch attached. 
Two things needed to be changed:
  * Using $(strip $(DEB_RUBY_LIBDIR)) instead of $(DEB_RUBY_LIBDIR) to get rid
    of the trailing space.  
  * Using $(DEB_DESTDIR) instead of $$(DESTDIR), as $(DESTDIR) in global.rb
    won't be expanded.. (Maybe that should be cdbs_pkgdir instead of
    DEB_DESTDIR, though not sure)

  Sjoerd
-- 
IN MY OPINION anyone interested in improving himself should not rule out
becoming pure energy.
                -- Jack Handley, The New Mexican, 1988.
--- /home/sjoerd/ruby-extconf-rb.mk     2006-06-16 20:17:20.000000000 +0200
+++ ruby-extconf-rb.mk  2006-06-16 20:57:57.000000000 +0200
@@ -27,7 +27,7 @@
 # Build simple packages.
 $(patsubst %,build/%,$(DEB_RUBY_SIMPLE_PACKAGES)) :: build/% :
        cd $(DEB_SRCDIR)
-       echo '$$extout = "$$(DESTDIR)/$(DEB_RUBY_LIBDIR)/$(cdbs_ruby_ver)"' 
>global.rb
+       echo '$$extout = "$(DEB_DESTDIR)/$(strip 
$(DEB_RUBY_LIBDIR))/$(cdbs_ruby_ver)"' >global.rb
        /usr/bin/ruby $(DEB_RUBY_SETUP_RUBY_ARGS) $(DEB_RUBY_SETUP_CMD) 
$(DEB_RUBY_SETUP_ARGS)
        $(MAKE)
 
@@ -40,7 +40,7 @@
 $(patsubst %,install/%,$(DEB_RUBY_REAL_LIB_PACKAGES)) :: install/% :
        cd $(DEB_SRCDIR) 
        -$(MAKE) distclean
-       echo '$$extout = "$$(DESTDIR)/$(DEB_RUBY_LIBDIR)/$(cdbs_ruby_ver)"' 
>global.rb
+       echo '$$extout = "$(DEB_DESTDIR)/$(strip 
$(DEB_RUBY_LIBDIR))/$(cdbs_ruby_ver)"' >global.rb
        /usr/bin/ruby$(cdbs_ruby_ver) $(DEB_RUBY_SETUP_RUBY_ARGS) 
$(DEB_RUBY_SETUP_CMD) $(DEB_RUBY_SETUP_ARGS)
        $(MAKE)
        $(MAKE) install $(DEB_RUBY_INSTALL_ARGS)

Attachment: signature.asc
Description: Digital signature

Reply via email to