Subject: [sup-talk] help installing on FC17 on 64bit

From: Philippe LeCavalier <[email-masked]>
Date: Mon, 14 Jan 2013 07:12:58 -0800

Hi.

In light of recent activity I'd like to give sup another whirl. Last time I
installed sup was on i386 w/Deb. I'm now on FC17 64-bit -dunno if that's
what's making thing difficult or not...

I've installed everything from the fedora repo including sup gem.
Everything installs successfully however I get:

 sup
/usr/share/rubygems/rubygems/custom_require.rb:36:in `require': superclass
mismatch for class Iconv (TypeError)
from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
from /usr/share/gems/gems/sup-0.10.2/lib/sup/rfc2047.rb:19:in `<top
(required)>'
from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
from /usr/share/gems/gems/sup-0.10.2/lib/sup/source.rb:1:in `<top
(required)>'
from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
from /usr/share/gems/gems/sup-0.10.2/lib/sup.rb:304:in `<top (required)>'
from /usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
from /usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
from /usr/share/gems/gems/sup-0.10.2/bin/sup:15:in `<top (required)>'
from /usr/bin/sup:19:in `load'
from /usr/bin/sup:19:in `<main>'

Any ideas?

Thanks in advance,
Phil
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Philippe LeCavalier <[email-masked]>
Date: Tue, 22 Jan 2013 14:51:48 -0500

On Tue, Jan 22, 2013 at 2:23 PM, fedzor <[email-masked]> wrote:

> I'm getting a similar error. Why does this have to be, though? Why is this
> error coming up in the first place?
>
> I'm posing the question now but I'll investigate shortly.
>
> dunno. I didn't attempt the patch suggested since I hadn't installed from
source and was too lazy to rebuilt the rpm.

Had you installed from source or rpm?
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Matthieu Rakotojaona <[email-masked]>
Date: Tue, 22 Jan 2013 21:14:25 +0100

On Tue, Jan 22, 2013 at 8:23 PM, fedzor <[email-masked]> wrote:
> I'm getting a similar error. Why does this have to be, though? Why is this error coming up in the first place?

class Iconv is redefined in util.rb [0]. If you 'require "iconv"' over
that, there will be a conflict (which one is the real one). I really
don't know how to work around this one; the "easy" solution would be
to uninstall the iconv gem, but this isn't really long-term. If you
have time and courage, you should remove the custom Iconv class and
replace it with the Decoder[1] class from heliotrope. It's a
continuation of this Iconv class, taking into account the tricky 1.9.

[0] https://github.com/sup-heliotrope/sup/blob/dd129e12603f5c77846c5fa624b8f118d53fbd0e/lib/sup/util.rb#L661
[1] https://github.com/sup-heliotrope/sup/pull/1#issuecomment-12415689
--
Matthieu RAKOTOJAONA
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: fedzor <[email-masked]>
Date: Tue, 22 Jan 2013 14:23:50 -0500

On Jan 14, 2013, at 12:23 PM, Mark Alexander wrote:

> Excerpts from Philippe LeCavalier's message of Mon Jan 14 10:12:58 -0500 2013:
> I vaguely recall running into this when experimenting with sup on
> Linux Mint 13 and got around the problem with the following patch.  I
> was just trying to see if it would even run at all on a new version of
> Mint (I normally use sup on a machine running Mint 10).  On this
> experimental machine I had no mail in the index, and this was a patch
> against my copy of the sup git repository, not against any installed
> package.  So no guarantees that this will work.
> 
> diff --git a/bin/sup b/bin/sup
> index ad7a0d1..8e87a83 100755
> --- a/bin/sup
> +++ b/bin/sup
> @@ -19,6 +19,7 @@ end
> 
> require 'fileutils'
> require 'trollop'
> +require 'iconv'
> require "sup"; Redwood::check_library_version_against "git"
> 
> if ENV['SUP_PROFILE']

---

From: Mark Alexander <[email-masked]>
Date: Mon, 14 Jan 2013 12:23:13 -0500

require 'fileutils'
 require 'trollop'
+require 'iconv'
 
 if ENV['SUP_PROFILE']