[DRE-commits] [ruby-ruby2ruby] 01/01: Add read_ruby2ruby.patch

Cédric Boutillier boutil at moszumanska.debian.org
Fri Jul 22 14:06:59 UTC 2016


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

boutil pushed a commit to branch master
in repository ruby-ruby2ruby.

commit 60de1d71c60be39ef406a79076a82c3d8909b943
Author: Cédric Boutillier <boutil at debian.org>
Date:   Fri Jul 22 15:55:00 2016 +0200

    Add read_ruby2ruby.patch
---
 debian/changelog                    |  1 +
 debian/patches/read_ruby2ruby.patch | 21 +++++++++++++++++++++
 debian/patches/series               |  1 +
 3 files changed, 23 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 1505a02..f9cbab3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,7 @@ ruby-ruby2ruby (2.3.0-1) unstable; urgency=medium
   * Drop dont_require_rubygems patch. Not needed any more
   * Set Testsuite field to autopkgtest-pkg-ruby
   * Set minimal version for ruby-sexp-processor dependency to 4.7
+  * Add read_ruby2ruby.patch
 
  -- Cédric Boutillier <boutil at debian.org>  Thu, 21 Jul 2016 05:34:56 +0200
 
diff --git a/debian/patches/read_ruby2ruby.patch b/debian/patches/read_ruby2ruby.patch
new file mode 100644
index 0000000..21e8f43
--- /dev/null
+++ b/debian/patches/read_ruby2ruby.patch
@@ -0,0 +1,21 @@
+Description: read ruby2ruby file from tests even if the lib/ dir is missing
+ For autopkgtest purposes
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: not-needed
+Last-Update: 2016-07-22
+
+--- a/test/test_ruby2ruby.rb
++++ b/test/test_ruby2ruby.rb
+@@ -663,7 +663,11 @@
+ # t  new    2    3
+ 
+ tr2r = File.read(__FILE__).split(/\n/)[start+1..__LINE__-2].join("\n")
+-ir2r = File.read("lib/ruby2ruby.rb")
++if File.exist?("lib/ruby2ruby.rb")
++  ir2r = File.read("lib/ruby2ruby.rb")
++else
++  ir2r = File.read("/usr/lib/ruby/vendor_ruby/ruby2ruby.rb")
++end
+ 
+ require 'ruby_parser'
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ce3fe5a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+read_ruby2ruby.patch

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



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