[DRE-commits] [sup-mail] 03/03: patches: refreshed 0001, removed 0002-0006 (all obsolete)
Caitlin Matos
cm-guest at moszumanska.debian.org
Sat Aug 9 17:23:35 UTC 2014
This is an automated email from the git hooks/post-receive script.
cm-guest pushed a commit to branch master
in repository sup-mail.
commit 64b9cf36fce6aed454114bbb3711ad7aa5346773
Author: Caitlin Matos <caitlin.matos at zoho.com>
Date: Sun Jul 27 02:52:02 2014 -0400
patches: refreshed 0001, removed 0002-0006 (all obsolete)
- 0001-Patch-out-all-requires-of-rubygems.patch: refreshed
- 0002-Fix-support-for-gpgme-2.0.patch: applied upstream (was actually
an upstream patch we'd cherry-picked)
- 0003-Update-tests-so-they-all-pass.patch: rendered obsolete by
upstream fixes
- 0004-Avoid-crash-when-maybe-wrapping-text.patch: applied upstream
- 0005-Require-iconv-and-locale-instead-of-gettext.patch: fixed
upstream (gettext removed, locale added, iconv not needed)
- 0006-Use-RbConfig-instead-of-deprecated-Config.patch: fixed upstream
---
.gitignore | 2 +
.../0001-Patch-out-all-requires-of-rubygems.patch | 132 +++++-------
.../patches/0002-Fix-support-for-gpgme-2.0.patch | 227 ---------------------
.../0003-Update-tests-so-they-all-pass.patch | 178 ----------------
...0004-Avoid-crash-when-maybe-wrapping-text.patch | 29 ---
...quire-iconv-and-locale-instead-of-gettext.patch | 23 ---
...Use-RbConfig-instead-of-deprecated-Config.patch | 22 --
debian/patches/series | 5 -
8 files changed, 50 insertions(+), 568 deletions(-)
diff --git a/.gitignore b/.gitignore
index 8c0e90c..519de86 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
+.pc
+
# i use vi
*.swp
# i use emacs
diff --git a/debian/patches/0001-Patch-out-all-requires-of-rubygems.patch b/debian/patches/0001-Patch-out-all-requires-of-rubygems.patch
index a9d96a2..ff44097 100644
--- a/debian/patches/0001-Patch-out-all-requires-of-rubygems.patch
+++ b/debian/patches/0001-Patch-out-all-requires-of-rubygems.patch
@@ -3,148 +3,112 @@ Date: Mon, 9 Apr 2012 14:11:56 +0200
Subject: Patch out all requires of rubygems.
---
- bin/sup | 2 +-
- bin/sup-add | 2 +-
- bin/sup-cmd | 2 +-
- bin/sup-config | 2 +-
- bin/sup-dump | 2 +-
- bin/sup-import-dump | 2 +-
- bin/sup-server | 2 +-
- bin/sup-sync | 2 +-
- bin/sup-sync-back | 2 +-
- bin/sup-tweak-labels | 2 +-
- lib/sup.rb | 2 +-
+ bin/sup | 2 +-
+ bin/sup-add | 2 +-
+ bin/sup-config | 2 +-
+ bin/sup-dump | 2 +-
+ bin/sup-import-dump | 2 +-
+ bin/sup-sync | 2 +-
+ bin/sup-sync-back-maildir | 2 +-
+ bin/sup-tweak-labels | 2 +-
+ lib/sup.rb | 2 +-
11 files changed, 11 insertions(+), 11 deletions(-)
-diff --git a/bin/sup b/bin/sup
-index ad7a0d1..ba67490 100755
--- a/bin/sup
+++ b/bin/sup
-@@ -1,6 +1,6 @@
- #!/usr/bin/env ruby
+@@ -3,7 +3,7 @@
+
+ $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
-require 'rubygems'
+#require 'rubygems'
+ require 'ncursesw'
- no_ncursesw = false
- begin
-diff --git a/bin/sup-add b/bin/sup-add
-index c77720f..89147b4 100755
+ require 'sup/util/ncurses'
--- a/bin/sup-add
+++ b/bin/sup-add
-@@ -1,7 +1,7 @@
- #!/usr/bin/env ruby
+@@ -3,7 +3,7 @@
+ $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
require 'uri'
-require 'rubygems'
+#require 'rubygems'
require 'highline/import'
require 'trollop'
- require "sup"; Redwood::check_library_version_against "git"
-diff --git a/bin/sup-cmd b/bin/sup-cmd
-index 8ec5c69..62874f3 100755
---- a/bin/sup-cmd
-+++ b/bin/sup-cmd
-@@ -1,5 +1,5 @@
- #!/usr/bin/env ruby
--require 'rubygems'
-+#require 'rubygems'
- require 'trollop'
- require 'sup'
- require 'sup/client'
-diff --git a/bin/sup-config b/bin/sup-config
-index c4a64a3..9fa5c53 100755
+ require "sup"
--- a/bin/sup-config
+++ b/bin/sup-config
-@@ -1,6 +1,6 @@
- #!/usr/bin/env ruby
+@@ -2,7 +2,7 @@
+
+ $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
-require 'rubygems'
+#require 'rubygems'
require 'highline/import'
- require 'yaml'
require 'trollop'
-diff --git a/bin/sup-dump b/bin/sup-dump
-index 4908b18..a163d90 100755
+ require "sup"
--- a/bin/sup-dump
+++ b/bin/sup-dump
-@@ -1,6 +1,6 @@
- #!/usr/bin/env ruby
+@@ -2,7 +2,7 @@
+
+ $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
-require 'rubygems'
+#require 'rubygems'
require 'xapian'
require 'trollop'
require 'set'
-diff --git a/bin/sup-import-dump b/bin/sup-import-dump
-index 91a1721..b1916da 100755
--- a/bin/sup-import-dump
+++ b/bin/sup-import-dump
-@@ -1,7 +1,7 @@
- #!/usr/bin/env ruby
+@@ -3,7 +3,7 @@
+ $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
require 'uri'
-require 'rubygems'
+#require 'rubygems'
require 'trollop'
- require "sup"; Redwood::check_library_version_against "git"
-
-diff --git a/bin/sup-server b/bin/sup-server
-index aeec37c..9e9dd43 100755
---- a/bin/sup-server
-+++ b/bin/sup-server
-@@ -1,5 +1,5 @@
- #!/usr/bin/env ruby
--require 'rubygems'
-+#require 'rubygems'
- require 'trollop'
- require 'sup'
- require 'sup/server'
-diff --git a/bin/sup-sync b/bin/sup-sync
-index b4d5cba..4df4b78 100755
+ require "sup"
+
--- a/bin/sup-sync
+++ b/bin/sup-sync
-@@ -1,7 +1,7 @@
- #!/usr/bin/env ruby
+@@ -3,7 +3,7 @@
+ $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
require 'uri'
-require 'rubygems'
+#require 'rubygems'
require 'trollop'
- require "sup"; Redwood::check_library_version_against "git"
+ require "sup"
-diff --git a/bin/sup-sync-back b/bin/sup-sync-back
-index 5d84cba..4cc02ea 100755
---- a/bin/sup-sync-back
-+++ b/bin/sup-sync-back
-@@ -1,6 +1,6 @@
- #!/usr/bin/env ruby
+--- a/bin/sup-tweak-labels
++++ b/bin/sup-tweak-labels
+@@ -2,7 +2,7 @@
+
+ $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
-require 'rubygems'
+#require 'rubygems'
- require 'uri'
- require 'tempfile'
require 'trollop'
-diff --git a/bin/sup-tweak-labels b/bin/sup-tweak-labels
-index 076c802..e96b977 100755
---- a/bin/sup-tweak-labels
-+++ b/bin/sup-tweak-labels
-@@ -1,6 +1,6 @@
- #!/usr/bin/env ruby
+ require "sup"
+
+--- a/bin/sup-sync-back-maildir
++++ b/bin/sup-sync-back-maildir
+@@ -3,7 +3,7 @@
+
+ $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
-require 'rubygems'
+#require 'rubygems'
require 'trollop'
- require "sup"; Redwood::check_library_version_against "git"
+ require "sup"
-diff --git a/lib/sup.rb b/lib/sup.rb
-index 74d5cde..9a4064d 100644
--- a/lib/sup.rb
+++ b/lib/sup.rb
-@@ -1,4 +1,4 @@
+@@ -1,6 +1,6 @@
+ # encoding: utf-8
+
-require 'rubygems'
+#require 'rubygems'
- require 'syck'
require 'yaml'
require 'zlib'
---
+ require 'thread'
diff --git a/debian/patches/0002-Fix-support-for-gpgme-2.0.patch b/debian/patches/0002-Fix-support-for-gpgme-2.0.patch
deleted file mode 100644
index 9e68e5b..0000000
--- a/debian/patches/0002-Fix-support-for-gpgme-2.0.patch
+++ /dev/null
@@ -1,227 +0,0 @@
-From: Clint Byrum <clint at ubuntu.com>
-Date: Wed, 16 Nov 2011 23:33:00 -0800
-Subject: Fix support for gpgme 2.0
-
-* Add support for gpgme 2.0 and stay backward compatible with 1.0.
-* Add test suite for lib/sup/crypto.rb.
-* Update call to current GPGME::Data API.
-
-Taken from http://gitorious.org/sup/mainline/merge_requests/12
----
- lib/sup/crypto.rb | 41 ++++++++++++++++---
- test/test_crypto.rb | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++
- 2 files changed, 142 insertions(+), 7 deletions(-)
- create mode 100755 test/test_crypto.rb
-
-diff --git a/lib/sup/crypto.rb b/lib/sup/crypto.rb
-index bc96f88..4ddcf70 100644
---- a/lib/sup/crypto.rb
-+++ b/lib/sup/crypto.rb
-@@ -48,10 +48,17 @@ EOS
- @gpgme_present =
- begin
- begin
-- GPGME.check_version({:protocol => GPGME::PROTOCOL_OpenPGP})
-+ begin
-+ GPGME.check_version({:protocol => GPGME::PROTOCOL_OpenPGP})
-+ rescue TypeError
-+ GPGME.check_version(nil)
-+ end
- true
- rescue GPGME::Error
- false
-+ rescue ArgumentError
-+ # gpgme 2.0.0 raises this due to the hash->string conversion
-+ false
- end
- rescue NameError
- false
-@@ -65,7 +72,11 @@ EOS
-
- # if gpg2 is available, it will start gpg-agent if required
- if (bin = `which gpg2`.chomp) =~ /\S/
-- GPGME.set_engine_info GPGME::PROTOCOL_OpenPGP, bin, nil
-+ if GPGME.respond_to?('set_engine_info')
-+ GPGME.set_engine_info GPGME::PROTOCOL_OpenPGP, bin, nil
-+ else
-+ GPGME.gpgme_set_engine_info GPGME::PROTOCOL_OpenPGP, bin, nil
-+ end
- else
- # check if the gpg-options hook uses the passphrase_callback
- # if it doesn't then check if gpg agent is present
-@@ -104,7 +115,13 @@ EOS
- {:operation => "sign", :options => gpg_opts}) || gpg_opts
-
- begin
-- sig = GPGME.detach_sign(format_payload(payload), gpg_opts)
-+ if GPGME.respond_to?('detach_sign')
-+ sig = GPGME.detach_sign(format_payload(payload), gpg_opts)
-+ else
-+ crypto = GPGME::Crypto.new
-+ gpg_opts[:mode] = GPGME::SIG_MODE_DETACH
-+ sig = crypto.sign(format_payload(payload), gpg_opts).read
-+ end
- rescue GPGME::Error => exc
- raise Error, gpgme_exc_msg(exc.message)
- end
-@@ -137,7 +154,13 @@ EOS
- recipients = to + [from]
-
- begin
-- cipher = GPGME.encrypt(recipients, format_payload(payload), gpg_opts)
-+ if GPGME.respond_to?('encrypt')
-+ cipher = GPGME.encrypt(recipients, format_payload(payload), gpg_opts)
-+ else
-+ crypto = GPGME::Crypto.new
-+ gpg_opts[:recipients] = recipients
-+ cipher = crypto.encrypt(format_payload(payload), gpg_opts).read
-+ end
- rescue GPGME::Error => exc
- raise Error, gpgme_exc_msg(exc.message)
- end
-@@ -223,7 +246,7 @@ EOS
- plain_data = nil
- else
- signed_text_data = nil
-- plain_data = GPGME::Data.empty
-+ plain_data = GPGME::Data.empty!
- end
- begin
- ctx.verify(sig_data, signed_text_data, plain_data)
-@@ -246,7 +269,11 @@ EOS
- {:operation => "decrypt", :options => gpg_opts}) || gpg_opts
- ctx = GPGME::Ctx.new(gpg_opts)
- cipher_data = GPGME::Data.from_str(format_payload(payload))
-- plain_data = GPGME::Data.empty
-+ if GPGME::Data.respond_to?('empty')
-+ plain_data = GPGME::Data.empty
-+ else
-+ plain_data = GPGME::Data.empty!
-+ end
- begin
- ctx.decrypt_verify(cipher_data, plain_data)
- rescue GPGME::Error => exc
-@@ -314,7 +341,7 @@ private
-
- def gpgme_exc_msg msg
- err_msg = "Exception in GPGME call: #{msg}"
-- info err_msg
-+ #info err_msg
- err_msg
- end
-
-diff --git a/test/test_crypto.rb b/test/test_crypto.rb
-new file mode 100755
-index 0000000..c7ec88b
---- /dev/null
-+++ b/test/test_crypto.rb
-@@ -0,0 +1,108 @@
-+#!/usr/bin/ruby
-+
-+# tests for sup's crypto libs
-+#
-+# Copyright Clint Byrum <clint at ubuntu.com> 2011. All Rights Reserved.
-+#
-+# This program is free software; you can redistribute it and/or
-+# modify it under the terms of the GNU General Public License
-+# as published by the Free Software Foundation; either version 2
-+# of the License, or (at your option) any later version.
-+#
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+# GNU General Public License for more details.
-+#
-+# You should have received a copy of the GNU General Public License
-+# along with this program; if not, write to the Free Software
-+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-+# 02110-1301, USA.
-+
-+require 'tmpdir'
-+require 'test/unit'
-+require 'rmail/message'
-+require 'rmail/parser'
-+require 'sup/util'
-+require 'sup/hook'
-+require 'sup/contact'
-+require 'sup/person'
-+require 'sup/account'
-+require 'sup/message-chunks'
-+require 'sup/crypto'
-+require 'stringio'
-+
-+module Redwood
-+
-+# These are all singletons
-+CryptoManager.init
-+Dir.mktmpdir('sup-test') do|f|
-+ HookManager.init f
-+end
-+am = {:default=> {:name => "", :email=>ENV['EMAIL']}}
-+AccountManager.init am
-+
-+class TestCryptoManager < Test::Unit::TestCase
-+
-+ def setup
-+ @from_email = ENV['EMAIL']
-+ # Change this or import my public key to make these tests work.
-+ @to_email = 'clint at ubuntu.com'
-+ end
-+
-+ def teardown
-+ end
-+
-+ def test_sign
-+ if CryptoManager.have_crypto? then
-+ signed = CryptoManager.sign @from_email, at to_email,"ABCDEFG"
-+ assert_instance_of RMail::Message, signed
-+ assert_equal "ABCDEFG", signed.body[0]
-+ assert signed.body[1].body.length > 0 , "signature length must be > 0"
-+ assert (signed.body[1].body.include? "-----BEGIN PGP SIGNATURE-----") , "Expecting PGP armored data"
-+ end
-+ end
-+
-+ def test_encrypt
-+ if CryptoManager.have_crypto? then
-+ encrypted = CryptoManager.encrypt @from_email, [@to_email], "ABCDEFG"
-+ assert_instance_of RMail::Message, encrypted
-+ assert (encrypted.body[1].body.include? "-----BEGIN PGP MESSAGE-----") , "Expecting PGP armored data"
-+ end
-+ end
-+
-+ def test_sign_and_encrypt
-+ if CryptoManager.have_crypto? then
-+ encrypted = CryptoManager.sign_and_encrypt @from_email, [@to_email], "ABCDEFG"
-+ assert_instance_of RMail::Message, encrypted
-+ assert (encrypted.body[1].body.include? "-----BEGIN PGP MESSAGE-----") , "Expecting PGP armored data"
-+ end
-+ end
-+
-+ def test_decrypt
-+ if CryptoManager.have_crypto? then
-+ encrypted = CryptoManager.encrypt @from_email, [@to_email], "ABCDEFG"
-+ assert_instance_of RMail::Message, encrypted
-+ assert_instance_of String, (encrypted.body[1].body)
-+ decrypted = CryptoManager.decrypt encrypted.body[1], true
-+ assert_instance_of Array, decrypted
-+ assert_instance_of Chunk::CryptoNotice, decrypted[0]
-+ assert_instance_of Chunk::CryptoNotice, decrypted[1]
-+ assert_instance_of RMail::Message, decrypted[2]
-+ assert_equal "ABCDEFG" , decrypted[2].body
-+ end
-+ end
-+
-+ def test_verify
-+ if CryptoManager.have_crypto?
-+ signed = CryptoManager.sign @from_email, @to_email, "ABCDEFG"
-+ assert_instance_of RMail::Message, signed
-+ assert_instance_of String, (signed.body[1].body)
-+ CryptoManager.verify signed.body[0], signed.body[1], true
-+ CryptoManager.verify signed.body[0], signed.body[1], false
-+ end
-+ end
-+
-+end
-+
-+end
---
diff --git a/debian/patches/0003-Update-tests-so-they-all-pass.patch b/debian/patches/0003-Update-tests-so-they-all-pass.patch
deleted file mode 100644
index 5888da2..0000000
--- a/debian/patches/0003-Update-tests-so-they-all-pass.patch
+++ /dev/null
@@ -1,178 +0,0 @@
-From: Per Andersson <avtobiff at gmail.com>
-Date: Fri, 18 May 2012 23:52:55 +0200
-Subject: Update tests so they all pass!
-
----
- test/dummy_source.rb | 4 ++--
- test/test_header_parsing.rb | 29 +++++++++++++++++++++--------
- test/test_message.rb | 27 +++++++++++++++++++--------
- 3 files changed, 42 insertions(+), 18 deletions(-)
-
-diff --git a/test/dummy_source.rb b/test/dummy_source.rb
-index da26e44..ec4debf 100644
---- a/test/dummy_source.rb
-+++ b/test/dummy_source.rb
-@@ -11,8 +11,8 @@ class DummySource < Source
-
- attr_accessor :messages
-
-- def initialize uri, last_date=nil, usual=true, archived=false, id=nil, labels=[]
-- super uri, last_date, usual, archived, id
-+ def initialize uri, usual=true, archived=false, id=nil
-+ super uri, usual, archived, id
- @messages = nil
- end
-
-diff --git a/test/test_header_parsing.rb b/test/test_header_parsing.rb
-index 1929e07..60eb968 100644
---- a/test/test_header_parsing.rb
-+++ b/test/test_header_parsing.rb
-@@ -106,7 +106,8 @@ EOS
- end
-
- def test_from_line_splitting
-- l = MBox.new StringIO.new(<<EOS)
-+ tmpfile = Tempfile.new('test_from_line_splitting', '.')
-+ tmpfile.puts(<<EOS)
- From sup-talk-bounces at rubyforge.org Mon Apr 27 12:56:18 2009
- From: Bob <bob at bob.com>
- To: a dear friend
-@@ -125,14 +126,21 @@ From bob at bob.com
-
- This is the end of the email.
- EOS
-- offset, labels = l.next
-- assert_equal 0, offset
-- offset, labels = l.next
-+ tmpfile.seek 0
-+
-+ l = MBox.new tmpfile
-+ offset = l.next_offset 0
-+ # I assume it is meant to actually split on the From: line
-+ assert_equal 61, offset
-+ offset = l.next_offset offset
- assert_nil offset
-+
-+ tmpfile.close!
- end
-
- def test_more_from_line_splitting
-- l = MBox.new StringIO.new(<<EOS)
-+ tmpfile = Tempfile.new('test_more_from_line_splitting', '.')
-+ tmpfile.puts(<<EOS)
- From sup-talk-bounces at rubyforge.org Mon Apr 27 12:56:18 2009
- From: Bob <bob at bob.com>
- To: a dear friend
-@@ -145,13 +153,18 @@ To: a dear friend
-
- Hello again! Would you like to buy my products?
- EOS
-- offset, labels = l.next
-+ tmpfile.seek 0
-+
-+ l = MBox.new tmpfile
-+ offset = l.next_offset 0
- assert_not_nil offset
-
-- offset, labels = l.next
-+ offset = l.next_offset offset
- assert_not_nil offset
-
-- offset, labels = l.next
-+ offset = l.next_offset offset
- assert_nil offset
-+
-+ tmpfile.close!
- end
- end
-diff --git a/test/test_message.rb b/test/test_message.rb
-index 94b962a..f7c8279 100644
---- a/test/test_message.rb
-+++ b/test/test_message.rb
-@@ -29,9 +29,14 @@ module Redwood
- class TestMessage < Test::Unit::TestCase
-
- def setup
-+ @path = Dir.mktmpdir
-+ HookManager.init File.join(@path, 'hooks')
- end
-
- def teardown
-+ FileUtils.rm_r @path if passed?
-+ puts "not cleaning up #{@path}" unless passed?
-+ HookManager.deinstantiate!
- end
-
- def test_simple_message
-@@ -72,7 +77,8 @@ EOS
- source.messages = [ message ]
- source_info = 0
-
-- sup_message = Message.new( {:source => source, :source_info => source_info } )
-+ location = Location.new(source, source_info)
-+ sup_message = Message.new( {:locations => [location] } )
- sup_message.load_from_source!
-
- # see how well parsing the header went
-@@ -222,7 +228,8 @@ EOS
- source.messages = [ message ]
- source_info = 0
-
-- sup_message = Message.new( {:source => source, :source_info => source_info } )
-+ location = Location.new(source, source_info)
-+ sup_message = Message.new( {:locations => [location] } )
- sup_message.load_from_source!
-
- # read the message body chunks
-@@ -272,7 +279,8 @@ EOS
- source.messages = [ message ]
- source_info = 0
-
-- sup_message = Message.new( {:source => source, :source_info => source_info } )
-+ location = Location.new(source, source_info )
-+ sup_message = Message.new( {:locations => [location] } )
- sup_message.load_from_source!
-
- to = sup_message.to
-@@ -318,7 +326,8 @@ EOS
- source.messages = [ message ]
- source_info = 0
-
-- sup_message = Message.new( {:source => source, :source_info => source_info } )
-+ location = Location.new(source, source_info)
-+ sup_message = Message.new( {:locations => [location] } )
- sup_message.load_from_source!
-
- # read the message body chunks: no errors should reach this level
-@@ -417,7 +426,8 @@ EOS
- source.messages = [ message ]
- source_info = 0
-
-- sup_message = Message.new( {:source => source, :source_info => source_info } )
-+ location = Location.new(source, source_info)
-+ sup_message = Message.new( {:locations => [location] } )
- sup_message.load_from_source!
-
- # read the message body chunks
-@@ -508,7 +518,8 @@ EOS
- source.messages = [ message ]
- source_info = 0
-
-- sup_message = Message.new( {:source => source, :source_info => source_info } )
-+ location = Location.new(source, source_info)
-+ sup_message = Message.new( {:locations => [location] } )
- sup_message.load_from_source!
-
- # See how well parsing the message ID went.
-@@ -517,8 +528,8 @@ EOS
-
- # Look at another header field whose first line was blank.
- list_unsubscribe = sup_message.list_unsubscribe
-- assert_equal("<http://mailman2.widget.com/mailman/listinfo/monitor-list>, " +
-- "<mailto:monitor-list-request at widget.com?subject=unsubscribe>",
-+ assert_equal("<http://mailman2.widget.com/mailman/listinfo/monitor-list>,\n" +
-+ " \t<mailto:monitor-list-request at widget.com?subject=unsubscribe>",
- list_unsubscribe)
-
- end
---
diff --git a/debian/patches/0004-Avoid-crash-when-maybe-wrapping-text.patch b/debian/patches/0004-Avoid-crash-when-maybe-wrapping-text.patch
deleted file mode 100644
index fb6de06..0000000
--- a/debian/patches/0004-Avoid-crash-when-maybe-wrapping-text.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From: Per Andersson <avtobiff at gmail.com>
-Date: Sat, 26 May 2012 00:41:29 +0200
-Subject: Avoid crash when (maybe) wrapping text.
-
-Crash occurs for instance when expanding GPG signatures.
----
- lib/sup/modes/thread-view-mode.rb | 8 +++++++-
- 1 files changed, 7 insertions(+), 1 deletions(-)
-
-diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb
-index 9fcc45d..510f967 100644
---- a/lib/sup/modes/thread-view-mode.rb
-+++ b/lib/sup/modes/thread-view-mode.rb
-@@ -846,7 +846,13 @@ private
- else
- width = buffer.content_width
- end
-- lines = lines.map { |l| l.chomp.wrap width }.flatten
-+ # this function apparently takes both String and Array as input.
-+ # if String convert to Array so map works.
-+ if lines.kind_of? String
-+ lines = lines.lines.to_a
-+ end
-+ # sometimes l is nil, avoid crash when this happens
-+ lines = lines.map { |l| l.chomp.wrap width unless l == nil }.flatten
- end
- return lines
- end
---
diff --git a/debian/patches/0005-Require-iconv-and-locale-instead-of-gettext.patch b/debian/patches/0005-Require-iconv-and-locale-instead-of-gettext.patch
deleted file mode 100644
index 6b0f4ae..0000000
--- a/debian/patches/0005-Require-iconv-and-locale-instead-of-gettext.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-From: Per Andersson <avtobiff at gmail.com>
-Date: Mon, 18 Jun 2012 23:58:19 +0200
-Subject: Require iconv and locale instead of gettext
-
----
- lib/sup.rb | 3 ++-
- 1 files changed, 2 insertions(+), 1 deletions(-)
-
-diff --git a/lib/sup.rb b/lib/sup.rb
-index 9a4064d..f03b99e 100644
---- a/lib/sup.rb
-+++ b/lib/sup.rb
-@@ -4,7 +4,8 @@ require 'yaml'
- require 'zlib'
- require 'thread'
- require 'fileutils'
--require 'gettext'
-+require 'iconv'
-+require 'locale'
- require 'curses'
- require 'rmail'
- begin
---
diff --git a/debian/patches/0006-Use-RbConfig-instead-of-deprecated-Config.patch b/debian/patches/0006-Use-RbConfig-instead-of-deprecated-Config.patch
deleted file mode 100644
index b423ac4..0000000
--- a/debian/patches/0006-Use-RbConfig-instead-of-deprecated-Config.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-From: Per Andersson <avtobiff at gmail.com>
-Date: Wed, 20 Jun 2012 22:31:20 +0200
-Subject: Use RbConfig instead of deprecated Config
-
----
- bin/sup | 2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/bin/sup b/bin/sup
-index ba67490..6ab45f0 100755
---- a/bin/sup
-+++ b/bin/sup
-@@ -117,7 +117,7 @@ end
- require 'dl/import'
- module LibC
- extend DL.const_defined?(:Importer) ? DL::Importer : DL::Importable
-- setlocale_lib = case Config::CONFIG['arch']
-+ setlocale_lib = case RbConfig::CONFIG['arch']
- when /darwin/; "libc.dylib"
- when /cygwin/; "cygwin1.dll"
- else; "libc.so.6"
---
diff --git a/debian/patches/series b/debian/patches/series
index 5ca11c6..9fb5e07 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,6 +1 @@
0001-Patch-out-all-requires-of-rubygems.patch
-0002-Fix-support-for-gpgme-2.0.patch
-0003-Update-tests-so-they-all-pass.patch
-0004-Avoid-crash-when-maybe-wrapping-text.patch
-0005-Require-iconv-and-locale-instead-of-gettext.patch
-0006-Use-RbConfig-instead-of-deprecated-Config.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/sup-mail.git
More information about the Pkg-ruby-extras-commits
mailing list