[Pkg-erlang-devel] Bug#844593: erlang-wx: WX broken due to "-fno-pie -no-pie" CFLAGS/LDFLAGS

Johannes Weißl jargon at molb.org
Thu Nov 17 09:30:34 UTC 2016


Package: erlang-wx
Version: 1:19.1.6+dfsg-1
Severity: grave
Tags: upstream patch
Justification: renders package unusable

The solution of bug #842998 breaks WX:

    1> observer:start().
    {error,{{load_driver,"No driver found"},
            [{wxe_server,start,1,[{file,"wxe_server.erl"},{line,65}]},
             {wx,new,1,[{file,"wx.erl"},{line,115}]},
             {observer_wx,init,1,[{file,"observer_wx.erl"},{line,104}]},
             {wx_object,init_it,6,[{file,"wx_object.erl"},{line,355}]},
             {proc_lib,init_p_do_apply,3,
                       [{file,"proc_lib.erl"},{line,247}]}]}}

    =ERROR REPORT==== 17-Nov-2016::10:12:15 ===
    ERROR: Could not find 'wxe_driver.so' in: /usr/lib/erlang/lib/wx-1.7.1/priv

What works is to remove "-fno-pie -no-pie" from CFLAGS and LDFLAGS in
debian/rules and to apply the following two upstream patches:

- https://github.com/erlang/otp/commit/5aa13e16ae81050509fceaf603650fc8594af7ec.patch
- https://github.com/erlang/otp/commit/edfa3b87542687baa2530a41241eb83d9afda1fb.patch

(both are necessary).



-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages erlang-wx depends on:
ii  erlang-base-hipe  1:19.1.6+dfsg-1

erlang-wx recommends no packages.

Versions of packages erlang-wx suggests:
ii  erlang           1:19.1.6+dfsg-1
ii  erlang-doc       1:19.1.6+dfsg-1
ii  erlang-manpages  1:19.1.6+dfsg-1

-- no debconf information



More information about the Pkg-erlang-devel mailing list