* openmoko OE devs: update claws-mail and libetpan?
@ 2008-11-11 19:55 Stanislav Brabec
2008-11-11 22:29 ` Graeme Gregory
0 siblings, 1 reply; 5+ messages in thread
From: Stanislav Brabec @ 2008-11-11 19:55 UTC (permalink / raw)
To: openembedded-devel
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: openmoko OE devs: update claws-mail and libetpan?
2008-11-11 19:55 openmoko OE devs: update claws-mail and libetpan? Stanislav Brabec
@ 2008-11-11 22:29 ` Graeme Gregory
2008-11-12 7:35 ` Stanislav Brabec
0 siblings, 1 reply; 5+ messages in thread
From: Graeme Gregory @ 2008-11-11 22:29 UTC (permalink / raw)
To: openembedded-devel
On Tue, 2008-11-11 at 20:55 +0100, Stanislav Brabec wrote:
> 3) Add new versions to preferred-om-2008-versions.inc
>
As claws maintainer and OM person please do this version.
Graeme
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: openmoko OE devs: update claws-mail and libetpan?
2008-11-11 22:29 ` Graeme Gregory
@ 2008-11-12 7:35 ` Stanislav Brabec
2008-11-16 13:40 ` glibc LC_COLLATE bug (was: openmoko OE devs: update claws-mail and libetpan?) Stanislav Brabec
0 siblings, 1 reply; 5+ messages in thread
From: Stanislav Brabec @ 2008-11-12 7:35 UTC (permalink / raw)
To: openembedded-devel
Graeme Gregory wrote:
> On Tue, 2008-11-11 at 20:55 +0100, Stanislav Brabec wrote:
>
> > 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: glibc LC_COLLATE bug (was: openmoko OE devs: update claws-mail and libetpan?)
2008-11-12 7:35 ` Stanislav Brabec
@ 2008-11-16 13:40 ` Stanislav Brabec
2008-11-16 15:23 ` glibc LC_COLLATE bug Koen Kooi
0 siblings, 1 reply; 5+ messages in thread
From: Stanislav Brabec @ 2008-11-16 13:40 UTC (permalink / raw)
To: openembedded-devel
Stanislav Brabec wrote:
> Graeme Gregory wrote:
> > On Tue, 2008-11-11 at 20:55 +0100, Stanislav Brabec wrote:
> >
> > > 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
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: glibc LC_COLLATE bug
2008-11-16 13:40 ` glibc LC_COLLATE bug (was: openmoko OE devs: update claws-mail and libetpan?) Stanislav Brabec
@ 2008-11-16 15:23 ` Koen Kooi
0 siblings, 0 replies; 5+ messages in thread
From: Koen Kooi @ 2008-11-16 15:23 UTC (permalink / raw)
To: openembedded-devel
On 16-11-08 14:40, Stanislav Brabec wrote:
> Stanislav Brabec wrote:
>> Graeme Gregory wrote:
>>> On Tue, 2008-11-11 at 20:55 +0100, Stanislav Brabec wrote:
>>>
>>>> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-11-16 15:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-11 19:55 openmoko OE devs: update claws-mail and libetpan? Stanislav Brabec
2008-11-11 22:29 ` Graeme Gregory
2008-11-12 7:35 ` Stanislav Brabec
2008-11-16 13:40 ` glibc LC_COLLATE bug (was: openmoko OE devs: update claws-mail and libetpan?) Stanislav Brabec
2008-11-16 15:23 ` glibc LC_COLLATE bug Koen Kooi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.