pkgxdev / pantry

pkg manifests
https://pkgx.dev/pkgs/
166 stars 119 forks source link

rebuild erlang with wxwidgets support #6077

Open heri16 opened 4 months ago

heri16 commented 4 months ago

How to reproduce:

brew install wxmac
pkgx erl -sname observer -hidden -setcookie MyCookie -run observer

Expected:

image

Actual

Erlang/OTP 26 [erts-14.2.5] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit] [dtrace]

=CRASH REPORT==== 8-May-2024::00:34:05.731059 ===
  crasher:
    initial call: wxe_master:init/1
    pid: <0.92.0>
    registered_name: []
    exception error: {load_driver,"No driver found"}
      in function  wxe_util:priv_dir/2 (wxe_util.erl, line 190)
      in call from wxe_util:init_nif/1 (wxe_util.erl, line 58)
      in call from wxe_master:init/1 (wxe_master.erl, line 114)
      in call from gen_server:init_it/2 (gen_server.erl, line 980)
      in call from gen_server:init_it/6 (gen_server.erl, line 935)
    ancestors: [<0.91.0>,observer,<0.9.0>]
    message_queue_len: 0
    messages: []
    links: []
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 987
    stack_size: 28
    reductions: 1700
  neighbours:

=CRASH REPORT==== 8-May-2024::00:34:05.741100 ===
  crasher:
    initial call: wxe_server:init/1
    pid: <0.91.0>
    registered_name: []
    exception error: {load_driver,"No driver found"}
      in function  wxe_util:priv_dir/2 (wxe_util.erl, line 190)
      in call from wxe_util:init_nif/1 (wxe_util.erl, line 58)
      in call from wxe_master:init/1 (wxe_master.erl, line 114)
      in call from gen_server:init_it/2 (gen_server.erl, line 980)
      in call from gen_server:init_it/6 (gen_server.erl, line 935)
    ancestors: [observer,<0.9.0>]
    message_queue_len: 0
    messages: []
    links: []
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 610
    stack_size: 28
    reductions: 226
  neighbours:

=CRASH REPORT==== 8-May-2024::00:34:05.741306 ===
  crasher:
    initial call: observer_wx:init/1
    pid: <0.90.0>
    registered_name: observer
    exception exit: {{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,113}]},
                      {wx_object,init_it,6,
                                 [{file,"wx_object.erl"},{line,416}]},
                      {proc_lib,init_p_do_apply,3,
                                [{file,"proc_lib.erl"},{line,241}]}]}
      in function  wx_object:init_it/6 (wx_object.erl, line 426)
    ancestors: [<0.9.0>]
    message_queue_len: 0
    messages: []
    links: []
    dictionary: [{'_wx_object_',{observer_wx,'_wx_init_'}}]
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 28
    reductions: 279
  neighbours:

Eshell V14.2.5 (press Ctrl+G to abort, type help(). for help)
jhheider commented 4 months ago

based on https://github.com/asdf-vm/asdf-erlang/issues/35, it looks like we'll probably need to rebuild with wx support. wxmac's build doesn't look too terrible:

https://github.com/andantissimo/homebrew-wxmac/blob/master/wxmac%403.1.rb

jhheider commented 4 months ago

requires https://github.com/pkgxdev/pantry/issues/6097