[DRE-commits] [ruby-treetop] 01/01: Add patch: do-not-depend-on-lib-for-tests.patch

Lucas Nussbaum lucas at moszumanska.debian.org
Tue May 12 10:57:08 UTC 2015


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

lucas pushed a commit to branch master
in repository ruby-treetop.

commit d9e4e5884937b7a256acdf23a12798b2d196a12a
Author: Lucas Nussbaum <lucas at debian.org>
Date:   Tue May 12 12:54:16 2015 +0200

    Add patch: do-not-depend-on-lib-for-tests.patch
---
 debian/changelog                                    |  7 +++++++
 debian/patches/do-not-depend-on-lib-for-tests.patch | 13 +++++++++++++
 debian/patches/series                               |  1 +
 3 files changed, 21 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 4a6676e..5532b97 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ruby-treetop (1.4.15-2) UNRELEASED; urgency=medium
+
+  * Add patch: do-not-depend-on-lib-for-tests.patch. This is required
+    to allow running tests on ci.d.n.
+
+ -- Lucas Nussbaum <lucas at debian.org>  Tue, 12 May 2015 12:55:39 +0200
+
 ruby-treetop (1.4.15-1) unstable; urgency=medium
 
   * Imported Upstream version 1.4.15
diff --git a/debian/patches/do-not-depend-on-lib-for-tests.patch b/debian/patches/do-not-depend-on-lib-for-tests.patch
new file mode 100644
index 0000000..1128290
--- /dev/null
+++ b/debian/patches/do-not-depend-on-lib-for-tests.patch
@@ -0,0 +1,13 @@
+--- a/spec/compiler/circular_compilation_spec.rb
++++ b/spec/compiler/circular_compilation_spec.rb
+@@ -1,7 +1,9 @@
+ require 'spec_helper'
+ 
+ BENCHMARK = false
+-METAGRAMMAR_PATH = File.expand_path('../../../lib/treetop/compiler/metagrammar.treetop', __FILE__)
++METAGRAMMAR_PATH = ([ File.expand_path('../../../lib/treetop/compiler/metagrammar.treetop', __FILE__) ] +
++  $:.map { |d| d + '/treetop/compiler/metagrammar.treetop' }).select { |f| File::exists?(f) }.first
++
+ 
+ module CircularCompilationSpec
+   describe "a parser for the metagrammar" do
diff --git a/debian/patches/series b/debian/patches/series
index 42e573b..5ce1e7f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Do-not-require-rubygems.patch
+do-not-depend-on-lib-for-tests.patch

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



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