[DRE-commits] [ruby-patron] 01/04: Add patch to fix build for multiple interpreters

Christian Hofstaedtler zeha at moszumanska.debian.org
Wed Mar 5 19:51:44 UTC 2014


This is an automated email from the git hooks/post-receive script.

zeha pushed a commit to branch master
in repository ruby-patron.

commit 8bd2b89140047e3e581897699abeec8ef70862ab
Author: Christian Hofstaedtler <zeha at debian.org>
Date:   Wed Mar 5 20:49:09 2014 +0100

    Add patch to fix build for multiple interpreters
---
 debian/patches/series                  |  1 +
 debian/patches/tests-disable-load-path | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..644fc8d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+tests-disable-load-path
diff --git a/debian/patches/tests-disable-load-path b/debian/patches/tests-disable-load-path
new file mode 100644
index 0000000..1b30bd2
--- /dev/null
+++ b/debian/patches/tests-disable-load-path
@@ -0,0 +1,19 @@
+Test suite: Remove load path modifications
+
+Adding ../ext to the load path causes the tests to load an extension
+linked to the wrong Ruby version when building for multiple Ruby
+versions. This (obviously) causes the interpreter to crash.
+
+Index: ruby-patron/spec/spec_helper.rb
+===================================================================
+--- ruby-patron.orig/spec/spec_helper.rb	2014-03-05 20:44:17.814566313 +0100
++++ ruby-patron/spec/spec_helper.rb	2014-03-05 20:47:25.190033067 +0100
+@@ -23,8 +23,6 @@
+ ## -------------------------------------------------------------------
+ require 'rspec'
+ 
+-$:.unshift(File.dirname(__FILE__) + '/../lib')
+-$:.unshift(File.dirname(__FILE__) + '/../ext')
+ require 'patron'
+ 
+ Dir['./spec/support/**/*.rb'].each { |fn| require fn }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-patron.git



More information about the Pkg-ruby-extras-commits mailing list