[DRE-commits] [ruby-flexmock] 10/11: added debian/patches/0002-gemspec-don-t-assume-lib-exists.patc

Antonio Terceiro terceiro at moszumanska.debian.org
Tue Sep 15 16:44:40 UTC 2015


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

terceiro pushed a commit to branch master
in repository ruby-flexmock.

commit 3e662556fa954db5b5a5ae73bbcec8e230bf3cce
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Tue Sep 15 13:41:16 2015 -0300

    added debian/patches/0002-gemspec-don-t-assume-lib-exists.patc
---
 debian/changelog                                     |  1 +
 .../0002-gemspec-don-t-assume-lib-exists.patch       | 20 ++++++++++++++++++++
 debian/patches/series                                |  1 +
 3 files changed, 22 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 1330507..3cbd580 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -24,6 +24,7 @@ ruby-flexmock (2.0.0~rc1-1) unstable; urgency=medium
   * Update packaging with a new dh-make-ruby run
   * added debian/patches/0001-gemspec-skip-git-usage.patch
   * improve debian/copyright
+  * added debian/patches/0002-gemspec-don-t-assume-lib-exists.patc
 
  -- Antonio Terceiro <terceiro at debian.org>  Tue, 15 Sep 2015 13:38:00 -0300
 
diff --git a/debian/patches/0002-gemspec-don-t-assume-lib-exists.patch b/debian/patches/0002-gemspec-don-t-assume-lib-exists.patch
new file mode 100644
index 0000000..c062f9d
--- /dev/null
+++ b/debian/patches/0002-gemspec-don-t-assume-lib-exists.patch
@@ -0,0 +1,20 @@
+From: Antonio Terceiro <terceiro at debian.org>
+Date: Tue, 15 Sep 2015 13:40:25 -0300
+Subject: gemspec: don't assume lib/ exists
+
+This fixes running the test suite under autopkgtest
+---
+ flexmock.gemspec | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/flexmock.gemspec b/flexmock.gemspec
+index 58ac711..27cadd4 100644
+--- a/flexmock.gemspec
++++ b/flexmock.gemspec
+@@ -1,4 +1,5 @@
+-require './lib/flexmock/version.rb'
++$LOAD_PATH << 'lib'
++require 'flexmock/version.rb'
+ spec = Gem::Specification.new do |s|
+   #### Basic information.
+   s.name = 'flexmock'
diff --git a/debian/patches/series b/debian/patches/series
index e355893..d4271c6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-gemspec-skip-git-usage.patch
+0002-gemspec-don-t-assume-lib-exists.patch

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



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