openmoko OE devs: update claws-mail and libetpan?
Hallo Openmoko OE developers.
I am just working on an update of claws-mail (the version in repo does not start in some locales). New version of of claws-mail requires an update of libetpan.
The update could actually break claws-mail build in OM. Please let me know, what is your preferred solution:
1) Add old claws-mail version to preferred-om-2008-versions.inc
2) Remove preferred libetpan version.
3) Add new versions to preferred-om-2008-versions.inc
In case of no reply I will apply 1) keeping OM build exactly as is: with claws-mail broken in some locales.
I will test both package on my spitz before push (well, with IMAPs only), so OM build will probably will have the same test result.
________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus
Quoted 2 lines · Stanislav Brabec
3) Add new versions to preferred-om-2008-versions.inc
As claws maintainer and OM person please do this version.
Graeme
Quoted 5 lines · Graeme Gregory
Quoted 2 lines · Stanislav Brabec
3) Add new versions to preferred-om-2008-versions.inc
As claws maintainer and OM person please do this version.
Well, I naively expected that the latest version will work better.
Actually, even 3.3.0 was working well in OE in August and now it crashes. Even build from August crashes in the new system even if it is using old libraries:
LD_LIBRARY_PATH=/home/backup5/usr/lib strace /home/backup5/usr/bin/claws-mail
Now 3.3.0 as well as 3.6.1 (+new libetpan) crashes in some locales. And it seems, that both now display accented characters in subject incorrectly. 3.6.1 lost part of translations somehow.
It indicates a change in libraries.
What I just found in my debugging:
- LC_COLLATE=C claws-mail works
- LC_COLLATE=cs_CZ.UTF-8 claws-mail crashes
When I remove ~/.claws-mail/toolbar*.xml, then it starts. Once. Then it crashes again.
Looking at the source code, it crashes in toolbar_create due to mis-filled cur: GSList of ToolbarItem. Instead of ((ToolbarItem*)cur->data)->file populated by the icon name and ((ToolbarItem*)cur->data)->text populated by translated label of the icon, it populates ((ToolbarItem*)cur->data)->file by translated label of the icon and ->text remains NULL. When it tries to find stock icon, it is out of the luck (Claws-Mail-CRITICAL **:stock_pixmap_widget: assertion `icon >= 0 && icon < N_STOCK_PIXMAPS' failed) and finally it crashes on g_object_ref(NULL).
And why it depends on LC_COLLATE? I have no idea.
But the source code gives me a hint: They use g_utf8_collate() just to compare two strings for equality. g_utf8_collate() uses complicated strcoll (strcmp can compare two strings about 100 times faster).
I will try 3.6.1 on the x86_64 trying to reuse ~/.claws-mail files created in Angstrom.
________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus
Re: glibc LC_COLLATE bug (was: openmoko OE devs: update claws-mail and libetpan?)
Quoted 8 lines · Stanislav Brabec
Quoted 5 lines · Graeme Gregory
Quoted 2 lines · Stanislav Brabec
3) Add new versions to preferred-om-2008-versions.inc
As claws maintainer and OM person please do this version.
Well, I naively expected that the latest version will work better.
Updated in OE. claws-mail-3.6.1 should now build and work.
The crash disappeared with
http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=1773
I have also updated translation to the new menu system:
http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=1774
Quoted 1 line
And why it depends on
LC_COLLATE? I have no idea.
The real bug is located deeply inside glibc:
g_utf8_collate("text", "file") returns 0 ("strings are equal").
It happens only inside claws-mail context (e. g. toolbar_parse_item()) and cannot be reproduced in a simple test case.
Picking old LC_COLLATE file in my locale in /usr/lib/locale makes it working again => probably localedef tool is broken.
________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus
Re: glibc LC_COLLATE bug
Quoted 10 lines · Stanislav Brabec
Quoted 7 lines · Stanislav Brabec
Quoted 5 lines · Graeme Gregory
Quoted 2 lines · Stanislav Brabec
3) Add new versions to preferred-om-2008-versions.inc
As claws maintainer and OM person please do this version.
Well, I naively expected that the latest version will work better.
Updated in OE. claws-mail-3.6.1 should now build and work.
Could split such changes up in more commits in the future? Anyway, nice work!
regards,
Koen