[Pkg-erlang-devel] Bug#770892: erlang: Hardcodes numeric values of constants from wx 2.8

Sergei Golovan sgolovan at nes.ru
Sun Nov 30 08:57:04 UTC 2014


Hi Olly!

On Tue, Nov 25, 2014 at 2:17 AM, Olly Betts <olly at survex.com> wrote:
>
> The erlang source package contains hardcoded numeric values of constants
> from wxwidgets 2.8, but the values of a number of these have changed in
> wxwidgets 3.0.

Thank you very much for noticing this bug and for the patch! I'll
upload the fixed package shortly.

>
> The file in question is lib/wx/include/wx.hrl and has a comment at the
> top that it is generated, but this doesn't happen during the debian
> package build, and it gets installed as-is into the erlang-dev package
> with path: /usr/lib/erlang/lib/wx-1.3.1/include/wx.hrl

This file is not intended to be regenenated on every build, and I'm
not really following wxwidgets development, so I haven't noticed the
changes.

>
> It seems likely to me that this is going to cause hard to debug
> misbehaviour of erlang apps using wx, but I'm not familiar with erlang
> so haven't attempted to verify this.

I tried programs included with the Erlang distribution. Everything
seem to work, but I think it's better to take precautions.

>
> I noticed this problem while working on #766790, but the problem in
> erlang is more widespread that just the fallout from the wxLANGUAGE_*
> constants which changed between wx 3.0.0 and 3.0.1:
>
> https://bugs.debian.org/766790
>
> Attached is a patch to update all the out of date constant values.

Thank you again.

Cheers!
-- 
Sergei Golovan



More information about the Pkg-erlang-devel mailing list