Package: ruby-hoe / 3.16.0-1~bpo9+1

adapt-bin-wrapper.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: adapt Gem.bin_wrapper hack to Debian
Author: Antonio Terceiro
Origin: vendor
Forwarded: not-needed
Last-Update: 2017-07-01
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- 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