Subject: Re: [sup-talk] Arch Linux sup now failing.

From: Arian Kuschki <[email-masked]>
Date: Fri, 3 Sep 2010 17:26:22 +0200

same thing happened to me on Arch Linux a couple of days ago after the
upgrade to ruby 1.9.2. p0 (or similar, can't check right now). downgrading
 to 1.9.1 didn't help. I would also be happy if somebody could help.

On 3 September 2010 15:13, Daren Lord <[email-masked]> wrote:

> There must have been an arch package update that is now causing my sup mail
> to fail with this error.
>
> /usr/lib/ruby/1.9.1/rubygems.rb:762:in `report_activate_error': Could not
> find RubyGem ncurses (>= 0) (Gem::LoadError)
>     from /usr/lib/ruby/1.9.1/rubygems.rb:219:in `activate'
>     from /usr/lib/ruby/1.9.1/rubygems.rb:254:in `block in activate'
>     from /usr/lib/ruby/1.9.1/rubygems.rb:253:in `each'
>     from /usr/lib/ruby/1.9.1/rubygems.rb:253:in `activate'
>     from /usr/lib/ruby/1.9.1/rubygems.rb:1065:in `gem'
>     from /usr/bin/sup:18:in `<main>'
>
> I have both ncurses and ncursesw installed through the aur branch.
>
> Any ideas? Use this at work so I am down right now.
>
> aur/ruby-ncurses 1.2.4-1 [installed] (17)
>     This ruby extension makes most functions, constants, and external
> variables of the C library ncurses accessible
>     from the Ruby programming language.
> aur/ruby-ncursesw 1.2.4.1-2 [installed] (17)
>     Ruby wrapper for ncurses providing wide character support.
>
> Thanks,
>
> dalord
>
>
>
> _______________________________________________
> sup-talk mailing list
> [email-masked]
> http://rubyforge.org/mailman/listinfo/sup-talk
>
>
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: [email-masked]
Date: Fri, 3 Sep 2010 13:57:38 -0400 (EDT)

> Excerpts from Daren Lord's message of 2010-09-03 15:13:40 +0200:
>> There must have been an arch package update that is now causing my sup
>> mail to
>> fail with this error.
>>
>> /usr/lib/ruby/1.9.1/rubygems.rb:762:in `report_activate_error': Could
>> not find
>> RubyGem ncurses (>= 0) (Gem::LoadError)
> Hi, I just had the same thing this morning. I reinstalled sup from aur
> (there's been a new package version, upgraded me from 0.11-1 to 0.11-2)
> and just in case backed ruby (upgraded recently to 1.9.2) to 1.9.1. I'm
> not sure the latter was necessary but I'm up and running again. I'm
> using this at work too so I have no time to experiment with upgrading
> ruby, but I'll try when I get a chance (especially if somebody here can
> confirm sup works with ruby 1.9.2 on their box).
>
> The new package release -2 depends on ruby-ncursesw instead of
> ruby-ncurses the -1 depended on - this might have something to do with
> the whole error (but it's just a guess).
>
> Try respawning sup from aur and if this doesn't help, downgrade ruby to
> 1.9.1.
>
> Good luck!
> Piotr

The situation looks grim. I don't seem to have the 1.9.1 package anymore
due to a recent cache cleaning. Read all the things I tried:
http://aur.archlinux.org/packages.php?ID=26439

How can a stupid minor version change break things so badly? And no one
knows what's wrong or how to solve this mess? I'm kinda pissed.

Maybe we can get sup into community, so it's kinda supported and might get
some testing that would catch this kind of breakage before it hits users.

---

From: Gaute Hope <[email-masked]>
Date: Fri, 03 Sep 2010 20:25:04 +0200

Excerpts from Gaute Hope's message of 2010-09-03 20:13:42 +0200:
> So I gave up :p and downgraded to 1.9.1-p378 from arch, I jumped a few
> revisions back in Arch'es ABS (PKGBUILD's), I'll attach the PKGBUILD
> here for you, but you could grab it yourself from ArchLinux's
> repository. Still rebuilding some gems so haven't been able to test if
> something else is the cause yet.. but this should work.

Yeah, that worked. Writing this from sup. In cases the attachements
don't appear at the mailing list the updated ruby-ncurses PKGBUILD is
located here: http://github.com/gauteh/arch/tree/master/ruby-ncursesw/

(don't use it thou, it might be helpful for anyone who want to get sup
to work on 1.9.2)

You can find the old PKGBUILDS for ruby here: 
p378:
http://repos.archlinux.org/wsvn/packages/ruby/trunk/?rev=75260&peg=75260

but p429 should probably also work:
http://repos.archlinux.org/wsvn/packages/ruby/trunk/?rev=84971&peg=84971

checkout the wiki or manpage on how to use 'makepkg'.

- gaute

---

From: carmen <[email-masked]>
Date: Fri, 3 Sep 2010 23:01:55 +0000

> How can a stupid minor version change break things so badly?
Arch totally hosed 1.9.2 here too. way beyond sup, into justnuking Gem-installed lib functionality in general

actually, ive never used sup beacuse it refuses to find my mail (notmuch has no issues) because its not in {cur,new,tmp} subdirs. nor does it seem to recursively dig. but i spent a while and there was just too much code to read, so i wrote my own webmail [ http://gitorious.org/element/element/blobs/master/ruby/W/mail.rb ] 

well, TMail is totally broken on 1.9.2, and RMail (as sup uses) and Mail (from TMail's maintainer and now abandoner) is simply way too slow as theyre pure-ruby

unless you install activeSupport 2.3.x which has a hacked tmail that runson 1.9.x

anyways.. i'm trying to figure out a good permanent solution to this, and it seems to involve rewriting eveyrthing in HAskell..
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Daren Lord <[email-masked]>
Date: Fri, 3 Sep 2010 06:13:40 -0700 (PDT)

There must have been an arch package update that is now causing my sup mail to 
fail with this error.

/usr/lib/ruby/1.9.1/rubygems.rb:762:in `report_activate_error': Could not find 

aur/ruby-ncurses 1.2.4-1 [installed] (17)
    This ruby extension makes most functions, constants, and external variables 
of the C library ncurses accessible 

Thanks,

dalord

---

From: Gaute Hope <[email-masked]>
Date: Fri, 3 Sep 2010 20:13:42 +0200

Hey,

ran into the same problem. The first problem I ran into was related to
ncursesw using STR2CSTR () and not StringValuePtr, this has been
obsolete for a while, but was apparently removed in 1.9.2. I got
ncurses to work; see attached PKGBUILD with patch. But there were some
problems with the tmpfile stuff, sup would start (complain about
ncurses not being ncursesw, which i don't think is correct because i
didn't seem to have problems with wide chars.. but well well, probably
just a matter of names). But when creating a new message it would
fail.

To be able to build the old ruby I first had to delete the 1.9.2
ruby.. (otherwise the build will segfault). I just removed it with
pacman -Ud ruby ( or actually yaourt.. but..)

The attached files should be put in their own folder and you can
create the packages with makepkg, and install the resulting *.pkg..*
with pacman -U filename.

- gaute

---

From: Philipp Überbacher <[email-masked]>
Date: Sat, 04 Sep 2010 11:05:07 +0200

> Arch totally hosed 1.9.2 here too. way beyond sup, into justnuking Gem-installed lib functionality in general

Ok, good to know that other stuff is broken too, so it's not entirely
sups fault and the Arch devs need to look into this. I filed a bug
report (with a somewhat bad title) sometime yesterday:
http://bugs.archlinux.org/task/20733

> actually, ive never used sup beacuse it refuses to find my mail (notmuch has no issues) because its not in {cur,new,tmp} subdirs. nor does it seem to recursively dig. but i spent a while and there…

Hmm, not sure what issue you ran into there. The way it works for me:
everything lands in the inbox at the mail provider, offlineimap pulls it
to my machine, sup indexes it, done.

> anyways.. i'm trying to figure out a good permanent solution to this, and it seems to involve rewriting eveyrthing in HAskell..

Nah, the solution is to rewrite everything in lua :)
-- 
Philipp

--
"Wir stehen selbst enttäuscht und sehn betroffen / Den Vorhang zu
und alle Fragen offen." Bertolt Brecht, Der gute Mensch von Sezuan

---

From: Piotr Kempa <[email-masked]>
Date: Fri, 03 Sep 2010 15:33:07 +0200

Good luck!
Piotr