[DRE-commits] [cucumber] 01/01: patch bin/cucumber to not load not existing files (Closes: #789585)

Cédric Boutillier boutil at moszumanska.debian.org
Mon Jun 22 12:22:30 UTC 2015


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

boutil pushed a commit to branch master
in repository cucumber.

commit 078d145f79a079ca16b7295520915fe998b4e800
Author: Cédric Boutillier <boutil at debian.org>
Date:   Mon Jun 22 14:15:47 2015 +0200

    patch bin/cucumber to not load not existing files (Closes: #789585)
---
 debian/changelog                             |  7 +++++++
 debian/patches/0005-clean_bin_cucumber.patch | 17 +++++++++++++++++
 debian/patches/series                        |  1 +
 3 files changed, 25 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 4d78998..bc647e1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+cucumber (2.0.0-2) unstable; urgency=medium
+
+  * Add 0005-clean_bin_cucumber.patch to prevent cucumber utility to try to
+    load non-existing files. (Closes: #789585)
+
+ -- Cédric Boutillier <boutil at debian.org>  Mon, 22 Jun 2015 14:15:05 +0200
+
 cucumber (2.0.0-1) unstable; urgency=medium
 
   [ Antonio Terceiro ]
diff --git a/debian/patches/0005-clean_bin_cucumber.patch b/debian/patches/0005-clean_bin_cucumber.patch
new file mode 100644
index 0000000..903c181
--- /dev/null
+++ b/debian/patches/0005-clean_bin_cucumber.patch
@@ -0,0 +1,17 @@
+Description: do not modify the load path or try to load non existing files
+ we remove everything relying on the layout of the gem, not the installed
+ packaged
+Author: Cédric Boutillier <boutil at debian.org>
+Bug-Debian: https://bugs.debian.org/789585
+Last-Update: 2015-06-22
+
+--- a/bin/cucumber
++++ b/bin/cucumber
+@@ -1,7 +1,4 @@
+ #!/usr/bin/env ruby
+-$:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib')
+-
+-load File.expand_path(File.dirname(__FILE__) + '/../spec/simplecov_setup.rb')
+ 
+ require 'cucumber/rspec/disable_option_parser'
+ require 'cucumber/cli/main'
diff --git a/debian/patches/series b/debian/patches/series
index 01497cc..1e4b1e4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 #0001-Remove-rubygems-bundler-stuff-from-spec_helper.patch
 0002-Remove-require-rubygems-statements.patch
 0004-Update_default_binary_path.patch
+0005-clean_bin_cucumber.patch

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



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