Source: ruby-parsetree
Version: 3.0.8-2
Severity: important
Tags: patch
ruby-parsetree FTBFS with sbuild because the home directory does not exist.
See http://bugs.debian.org/652802 for a similar bug in ruby-image-science.
I'm attaching a patch that applies the same fix to ruby-parsetree.
Build log:
> Rewriting shebang line of
> /build/buildd/ruby-parsetree-3.0.8/debian/ruby-parsetree/usr/bin/parse_tree_abc
> /usr/bin/ruby1.8 -I/usr/lib/ruby/vendor_ruby
> /usr/lib/ruby/vendor_ruby/gem2deb/test_runner.rb
> /home/buildd is insecure (40775). It may not be group or world writable.
> Exiting.
> ERROR: Test "ruby1.8" failed. Exiting.
> dh_auto_install: dh_ruby --install
> /build/buildd/ruby-parsetree-3.0.8/debian/tmp returned exit code 1
> make: *** [binary] Error 1
Regards,
Felix
--- ruby-parsetree-3.0.8.orig/test/test_parse_tree.rb
+++ ruby-parsetree-3.0.8/test/test_parse_tree.rb
@@ -1,12 +1,18 @@
#!/usr/local/bin/ruby -w
-dir = File.expand_path "~/.ruby_inline"
-if test ?d, dir then
- require 'fileutils'
- puts "nuking #{dir}"
- # force removal, Windoze is bitching at me, something to hunt later...
- FileUtils.rm_r dir, :force => true
-end
+# instead of using Inline's regular directory in the user's home, use
+# a temporary directory
+
+#dir = File.expand_path "~/.ruby_inline"
+#if test ?d, dir then
+# require 'fileutils'
+# puts "nuking #{dir}"
+# # force removal, Windoze is bitching at me, something to hunt later...
+# FileUtils.rm_r dir, :force => true
+#end
+
+require 'tmpdir'
+ENV['INLINEDIR'] = Dir.mktmpdir
require 'minitest/autorun'
require 'parse_tree'
_______________________________________________
Pkg-ruby-extras-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers