Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#18926 - [mcabber] does not work with OpenSSL 1.0.0

Attached to Project: Community Packages
Opened by Ray (ataraxia) - Friday, 02 April 2010, 12:47 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 06 April 2010, 13:30 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
After the rebuild for OpenSSL 1.0.0, mcabber no longer connects to my Jabber server. Connection is attempted and then eventually times out. Rebuilding it myself does not help. I expect this will actually be upstream's problem, but I'd like confirmation.

Additional info:
* package version(s)
openssl 1.0.0-2
mcabber 0.9.10-2

* config and/or log files etc.
mcabber's level 2 debug log:
New trace log started.
----------------------
[2010-04-02 08:36:02] Initializing N-Curses...
[2010-04-02 08:36:02] Ping interval established: 40 secs
[2010-04-02 08:36:02] Connecting to server: jabber.andrew.cmu.edu
[2010-04-02 08:36:02] resource mcabber.5e597979
[2010-04-02 08:36:02] StateHandler called (state=-1).
[2010-04-02 08:36:02] StateHandler called (state=4).
[2010-04-02 08:36:02] [Jabber] Connecting to the server
[2010-04-02 08:36:02] Entering into main loop...
[2010-04-02 08:36:02] StateHandler called (state=4).
[2010-04-02 08:36:03] StateHandler called (state=4).
[2010-04-02 08:36:03] StateHandler called (state=4).
[2010-04-02 08:36:03] StateHandler called (state=4).
[2010-04-02 08:36:03] StateHandler called (state=4).
[2010-04-02 08:36:04] StateHandler called (state=4).
[2010-04-02 08:36:04] StateHandler called (state=4).
(continues until timeout)

Steps to reproduce:
Use mcabber to connect via SSL with the new OpenSSL.
This task depends upon

Closed by  Sergej Pupykin (sergej)
Tuesday, 06 April 2010, 13:30 GMT
Reason for closing:  Fixed
Comment by Ray (ataraxia) - Friday, 02 April 2010, 14:11 GMT
Some research turns up the following extra facts:

- Upstream has discontinued the use of OpenSSL, switching to using the loudmouth jabber backend for all the details of the jabber protocol, which (at least as we build it) uses gnutls instead. Therefore, upstream probably won't care to support their old OpenSSL functionality any longer.

- Upstream has a 0.10.0-rc2 release candidate build out with the new loudmouth code. I built this version and it works for me. So it might be that the easiest way to fix mcabber in Arch is to leave the stable release behind until 0.10.0 is released. The PKGBUILD changes are a bit messy. 1) remove openssl and add loudmouth to depends; 2) remove --with-ssl and --with-openssl=/usr/lib from configure arguments; 3) change the patch found inline to patch "src/mcabber-0.9.7/mcabber/screen.h" instead of "src/mcabber-0.9.7/src/screen.h" (I did not bother to change the version string since patch -p2 removes it anyway).
Comment by Ray (ataraxia) - Friday, 02 April 2010, 17:18 GMT
It would also appear to be possible to rebuild the current stable version against gnutls instead of openssl. I didn't try this, since I'm happy with the release candidate package I built, but it looks promising.
Comment by Ray (ataraxia) - Saturday, 03 April 2010, 22:59 GMT
I decided to try rebuilding the current stable version against gnutls instead of OpenSSL, and it did work fine for me. That makes this the easiest solution, and also probably the least objectionable one.

The actual PKGBUILD change required in simply to change "--with-openssl=/usr/lib" to "--with-openssl=no". That will force it to fall back on gnutls, and seems to be the only way provided by mcabber's configure script to request this.
Comment by Sergej Pupykin (sergej) - Tuesday, 06 April 2010, 08:15 GMT
updated in testing to 0.10.0-rc3
Comment by Ray (ataraxia) - Tuesday, 06 April 2010, 13:02 GMT
The 0.10.0-rc3-1 package in testing now works well for me (64-bit).

Loading...