I hacked a config file in to specify an override file for where to
place the extension. I'm not sure if there are any other packages with
this issue or not, so it is hard to gauge the appropriate fix. With
this change to gem2deb, adding a debian/extension_path.overrides file
that contains 'yajl' produces a good yajl-ruby deb using gem2deb for
me.

Note that somewhere along the line the vendor_ruby/VERSION/ARCH
directory included in the $LOAD_PATH for i386 changed, which caused me
a little trouble debugging.

/usr/lib/ruby/vendor_ruby/1.8/i486-linux (lucid)
/usr/lib/ruby/vendor_ruby/1.8/i686-linux (maverick)

Bryan

https://github.com/btm/gem2deb/tree/621500
https://github.com/btm/gem2deb/commit/e133ee81c27176889cb3cacf19e0f95ee27b1607

commit e133ee81c27176889cb3cacf19e0f95ee27b1607
Author: Bryan McLellan <b...@opscode.com>
Date:   Tue Apr 19 18:39:09 2011 +0000

    621500: add override for extension path subdirectories

diff --git a/lib/gem2deb/extension_builder.rb b/lib/gem2deb/extension_builder.rb
index bd09e6b..1938541 100644
--- a/lib/gem2deb/extension_builder.rb
+++ b/lib/gem2deb/extension_builder.rb
@@ -57,7 +57,12 @@ module Gem2Deb
           exit(1)
         end
       begin
-        target = File.expand_path(File.join('debian', @package,
RbConfig::CONFIG['vendorarchdir']))
+        if File::exists?('debian/extension_path.overrides')
+          extension_path = File.new('debian/extension_path.overrides').gets
+          target = File.expand_path(File.join('debian', @package,
RbConfig::CONFIG['vendorarchdir'], extension_path))
+        else
+          target = File.expand_path(File.join('debian', @package,
RbConfig::CONFIG['vendorarchdir']))
+        end
         Dir.chdir(directory) do
           rubygems_builder.build(extension, '.', target, results)
           puts results



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to