Hi,
I have just uploaded a NMU for shoes regarding #683031. The patch is
very simple, just commenting out the code that requires and mangles
Rubygems structure - I included it as 04_dont_require_rubygems
in debian/patches, and am inlining it here for completeness.
Index: shoes-0.r396/lib/shoes/cache.rb
===================================================================
--- shoes-0.r396.orig/lib/shoes/cache.rb 2012-08-05 16:02:28.000000000
-0500
+++ shoes-0.r396/lib/shoes/cache.rb 2012-08-05 16:16:39.000000000 -0500
@@ -27,33 +27,33 @@
Config::CONFIG['libdir'] = GEM_DIR
Config::CONFIG['sitelibdir'] = SITE_LIB_DIR
-require 'rubygems'
-if Object::const_defined? :OpenURI
- Object.send :remove_const, :OpenURI
- module Kernel
- remove_method :open
- alias open open_uri_original_open
- end
-end
-require 'rubygems/installer'
-class << Gem::Ext::ExtConfBuilder
- alias_method :make__, :make
- def self.make(dest_path, results)
- raise unless File.exist?('Makefile')
- mf = File.read('Makefile')
- mf = mf.gsub(/^INSTALL\s*=\s*\$[^$]*/, "INSTALL = '@$(RUBY) -run -e
install -- -vp'")
- mf = mf.gsub(/^INSTALL_PROG\s*=\s*\$[^$]*/, "INSTALL_PROG = '$(INSTALL) -m
0755'")
- mf = mf.gsub(/^INSTALL_DATA\s*=\s*\$[^$]*/, "INSTALL_DATA = '$(INSTALL) -m
0644'")
- File.open('Makefile', 'wb') {|f| f.print mf}
- make__(dest_path, results)
- end
-end
-class Gem::Installer
- alias_method :install__, :install
- def install(*a)
- install__
- end
-end
+# require 'rubygems'
+# if Object::const_defined? :OpenURI
+# Object.send :remove_const, :OpenURI
+# module Kernel
+# remove_method :open
+# alias open open_uri_original_open
+# end
+# end
+# require 'rubygems/installer'
+# class << Gem::Ext::ExtConfBuilder
+# alias_method :make__, :make
+# def self.make(dest_path, results)
+# raise unless File.exist?('Makefile')
+# mf = File.read('Makefile')
+# mf = mf.gsub(/^INSTALL\s*=\s*\$[^$]*/, "INSTALL = '@$(RUBY) -run -e
install -- -vp'")
+# mf = mf.gsub(/^INSTALL_PROG\s*=\s*\$[^$]*/, "INSTALL_PROG = '$(INSTALL)
-m 0755'")
+# mf = mf.gsub(/^INSTALL_DATA\s*=\s*\$[^$]*/, "INSTALL_DATA = '$(INSTALL)
-m 0644'")
+# File.open('Makefile', 'wb') {|f| f.print mf}
+# make__(dest_path, results)
+# end
+# end
+# class Gem::Installer
+# alias_method :install__, :install
+# def install(*a)
+# install__
+# end
+# end
# STDIN.reopen("/dev/tty") if STDIN.eof?
class NotSupportedByShoes < Exception; end
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]