[DRE-commits] [ruby-hoe] 04/09: debian/patches/adapt-bin-wrapper.patch: adapt path to binaries to match Debian

Antonio Terceiro terceiro at moszumanska.debian.org
Sat Jul 1 14:44:53 UTC 2017


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

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

commit f6e8639337b2fe9acd787bdd83ed366fe8eaa34b
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sat Jul 1 11:07:44 2017 -0300

    debian/patches/adapt-bin-wrapper.patch: adapt path to binaries to match Debian
---
 debian/changelog                       | 2 ++
 debian/patches/adapt-bin-wrapper.patch | 9 +++++++++
 debian/patches/series                  | 1 +
 3 files changed, 12 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 5e33bd1..f9de55a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ ruby-hoe (3.16.0-1) UNRELEASED; urgency=medium
     field
   * New upstream release
   * Refresh packaging with `dh-make-ruby -w`
+  * debian/patches/adapt-bin-wrapper.patch: adapt path to binaries to match
+    Debian
 
  -- Antonio Terceiro <terceiro at debian.org>  Sat, 01 Jul 2017 10:54:03 -0300
 
diff --git a/debian/patches/adapt-bin-wrapper.patch b/debian/patches/adapt-bin-wrapper.patch
new file mode 100644
index 0000000..43e9e8b
--- /dev/null
+++ b/debian/patches/adapt-bin-wrapper.patch
@@ -0,0 +1,9 @@
+--- a/lib/hoe.rb
++++ b/lib/hoe.rb
+@@ -939,5 +939,5 @@ class File
+ end
+ 
+ def Gem.bin_wrapper name # :nodoc: HACK
+-  File.join Gem.bindir, Gem.default_exec_format % name
++  "/usr/bin/#{name}"
+ end unless Gem.respond_to? :bin_wrapper
diff --git a/debian/patches/series b/debian/patches/series
index 3d58fc4..a0d9c49 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 disable-tests.patch
 fix-template-path.patch
+adapt-bin-wrapper.patch

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



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