[DRE-commits] [redmine] 02/17: Add 2019 patch to "unplug" bundler

Jérémy Lal kapouer at alioth.debian.org
Fri Sep 27 23:15:36 UTC 2013


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

kapouer pushed a commit to branch master-experimental
in repository redmine.

commit e203348a89ea5d27e1c42ff376fd2ded71f50df5
Author: Jérémy Lal <kapouer at melix.org>
Date:   Sat Sep 28 00:42:26 2013 +0200

    Add 2019 patch to "unplug" bundler
---
 debian/patches/2019_unplug_bundler.patch |   56 ++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/debian/patches/2019_unplug_bundler.patch b/debian/patches/2019_unplug_bundler.patch
new file mode 100644
index 0000000..519e40b
--- /dev/null
+++ b/debian/patches/2019_unplug_bundler.patch
@@ -0,0 +1,56 @@
+Description: redmine package shouldn't need bundler to run
+ bundler is a development tool
+Forwarded: not-needed, i'm not ruby expert enough to convince upstream about changing that
+Author: Jérémy Lal <kapouer at melix.org>
+Last-Update: 2013-09-28
+--- a/config/boot.rb
++++ b/config/boot.rb
+@@ -3,4 +3,6 @@
+ # Set up gems listed in the Gemfile.
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
+ 
+-require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
++# disable bundler setup
++# require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
++
+--- a/config/preinitializer.rb
++++ b/config/preinitializer.rb
+@@ -1,20 +1,20 @@
+-begin
+-  require "rubygems"
+-  require "bundler"
+-rescue LoadError
+-  $stderr.puts "Redmine requires Bundler. Please install it with `gem install bundler`."
+-  exit 1
+-end
++#begin
++#  require "rubygems"
++#  require "bundler"
++#rescue LoadError
++#  $stderr.puts "Redmine requires Bundler. Please install it with `gem install bundler`."
++#  exit 1
++#end
+ 
+-if Gem::Version.new(Bundler::VERSION) < Gem::Version.new("1.0.21")
+-  $stderr.puts "Redmine requires Bundler 1.0.21 (you're using #{Bundler::VERSION}).\nPlease install a newer version with `gem install bundler`."
+-  exit 1
+-end
++#if Gem::Version.new(Bundler::VERSION) < Gem::Version.new("1.0.21")
++#  $stderr.puts "Redmine requires Bundler 1.0.21 (you're using #{Bundler::VERSION}).\nPlease install a newer version with `gem install bundler`."
++#  exit 1
++#end
+ 
+-begin
+-  ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__)
+-  Bundler.setup
+-rescue Bundler::GemNotFound
+-  $stderr.puts "Some gems may need to be installed or updated.\nPlease run `bundle install --without development test`."
+-  exit 1
+-end
++#begin
++#  ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__)
++#  Bundler.setup
++#rescue Bundler::GemNotFound
++#  $stderr.puts "Some gems may need to be installed or updated.\nPlease run `bundle install --without development test`."
++#  exit 1
++#end

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



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