[DRE-commits] [ruby-safe-yaml] 03/06: fix load_path in safe_yaml binary

Cédric Boutillier boutil at moszumanska.debian.org
Thu May 15 22:33:11 UTC 2014


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

boutil pushed a commit to branch master
in repository ruby-safe-yaml.

commit 39ae8522db171ae00f53ec1c7b72d5816231db82
Author: Cédric Boutillier <boutil at debian.org>
Date:   Thu May 15 17:32:27 2014 +0200

    fix load_path in safe_yaml binary
---
 debian/patches/fix_bin_safe_yaml.patch | 16 ++++++++++++++++
 debian/patches/series                  |  1 +
 2 files changed, 17 insertions(+)

diff --git a/debian/patches/fix_bin_safe_yaml.patch b/debian/patches/fix_bin_safe_yaml.patch
new file mode 100644
index 0000000..e66c53f
--- /dev/null
+++ b/debian/patches/fix_bin_safe_yaml.patch
@@ -0,0 +1,16 @@
+Description: do not overload load path.
+ There will be no .rb in a sister directory anyway
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: not-needed
+Last-Update: 2014-05-15
+
+--- a/bin/safe_yaml
++++ b/bin/safe_yaml
+@@ -1,7 +1,5 @@
+ #!/usr/bin/env ruby
+ 
+-$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
+-
+ require 'optparse'
+ require 'safe_yaml/load'
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 70c005c..a1259e9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 use_ruby-indentation.patch
+fix_bin_safe_yaml.patch

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



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