[DRE-commits] [ruby-packetfu] 14/16: Add a patch to avoid the forced use of rubygems

Jérémy Bobbio lunar at alioth.debian.org
Sat Aug 24 17:27:56 UTC 2013


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

lunar pushed a commit to branch master
in repository ruby-packetfu.

commit 1d266e09830069c465e68db7f5baabe484566535
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sat Aug 24 19:23:55 2013 +0200

    Add a patch to avoid the forced use of rubygems
---
 ...o-not-require-rubygems-even-with-Ruby-1.8.patch |   20 ++++++++++++++++++++
 debian/patches/series                              |    1 +
 2 files changed, 21 insertions(+)

diff --git a/debian/patches/0002-Do-not-require-rubygems-even-with-Ruby-1.8.patch b/debian/patches/0002-Do-not-require-rubygems-even-with-Ruby-1.8.patch
new file mode 100644
index 0000000..5c763de
--- /dev/null
+++ b/debian/patches/0002-Do-not-require-rubygems-even-with-Ruby-1.8.patch
@@ -0,0 +1,20 @@
+From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= <lunar at debian.org>
+Date: Sat, 24 Aug 2013 19:23:30 +0200
+Subject: Do not require rubygems, even with Ruby 1.8
+
+---
+ lib/packetfu.rb |    1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/lib/packetfu.rb b/lib/packetfu.rb
+index ef65445..46fc7f9 100644
+--- a/lib/packetfu.rb
++++ b/lib/packetfu.rb
+@@ -8,7 +8,6 @@ $: << cwd
+ 
+ require File.join(cwd,"packetfu","structfu")
+ require "ipaddr"
+-require 'rubygems' if RUBY_VERSION =~ /^1\.[0-8]/
+ 
+ module PacketFu
+ 
diff --git a/debian/patches/series b/debian/patches/series
index fc09f90..91d020b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Update-peek-format-spec-to-use-new-RSpec-matcher-syn.patch
+0002-Do-not-require-rubygems-even-with-Ruby-1.8.patch

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



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