[DRE-commits] [ruby-librarian] 04/05: Add patch: Read VERSION from the library namespace

Stig Sandbeck Mathisen ssm at debian.org
Tue Mar 11 12:16:02 UTC 2014


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

ssm pushed a commit to branch master
in repository ruby-librarian.

commit 4b9aa3918efb4481ef1a524bb341b156831f1717
Author: Stig Sandbeck Mathisen <ssm at debian.org>
Date:   Sat Feb 15 21:37:31 2014 +0100

    Add patch: Read VERSION from the library namespace
---
 ...-to-keep-VERSION-in-the-library-namespace.patch | 22 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 23 insertions(+)

diff --git a/debian/patches/0001-Add-patch-to-keep-VERSION-in-the-library-namespace.patch b/debian/patches/0001-Add-patch-to-keep-VERSION-in-the-library-namespace.patch
new file mode 100644
index 0000000..91ad6d5
--- /dev/null
+++ b/debian/patches/0001-Add-patch-to-keep-VERSION-in-the-library-namespace.patch
@@ -0,0 +1,22 @@
+From: Stig Sandbeck Mathisen <ssm at debian.org>
+Date: Sat, 15 Feb 2014 21:31:46 +0100
+Subject: Add patch to keep VERSION in the library namespace
+
+When installed as system package, the gem still looks for
+/usr/lib/ruby/VERSION to find its version. Have librarian look in
+/usr/lib/ruby/vendor_ruby/librarian instead.
+
+(The packaging needs to install VERSION there in another commit)
+---
+ lib/librarian/version.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/librarian/version.rb b/lib/librarian/version.rb
+index b263e70..ad9ec1b 100644
+--- a/lib/librarian/version.rb
++++ b/lib/librarian/version.rb
+@@ -1,3 +1,3 @@
+ module Librarian
+-  VERSION = File.read(File.expand_path("../../../VERSION", __FILE__)).strip
++  VERSION = File.read(File.expand_path("../VERSION", __FILE__)).strip
+ end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e3fe476
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Add-patch-to-keep-VERSION-in-the-library-namespace.patch

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



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