maintainer-feedback requested: [Bug 284533] lang/erlang pubkey_os_cacerts:get(). failure

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 03 Feb 2025 12:49:05 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-erlang (Nobody)
<erlang@FreeBSD.org> for maintainer-feedback:
Bug 284533: lang/erlang pubkey_os_cacerts:get(). failure
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284533



--- Description ---
$ pkg info erlang
erlang-26.2.5.6,4

Fails to load OS root certificates from /etc/ssl/certs:

 $ erl
Erlang/OTP 26 [erts-14.2.5.5] [source] [64-bit] [smp:8:8] [ds:8:8:10]
[async-threads:1] [jit:ns] [dtrace] [sharing-preserving]

Eshell V14.2.5.5 (press Ctrl+G to abort, type help(). for help)
1> pubkey_os_cacerts:get().
** exception error: no match of right hand side value undefined
     in function  pubkey_os_cacerts:get/0 (pubkey_os_cacerts.erl, line 39)
2> 

This seems to be  preventing any other commands from working, e.g. mix:

$ env MIX_ENV=prod /usr/local/bin/mix local.hex --force

12:47:36.934 [error] Task #PID<0.108.0> started from #PID<0.98.0> terminating
** (MatchError) no match of right hand side value: :undefined
    (public_key 1.15.1.4) pubkey_os_cacerts.erl:39: :pubkey_os_cacerts.get/0
    (mix 1.17.3) lib/mix/utils.ex:664: Mix.Utils.read_httpc/1
    (mix 1.17.3) lib/mix/utils.ex:576: anonymous fn/2 in Mix.Utils.read_path/2
    (elixir 1.17.3) lib/task/supervised.ex:101: Task.Supervised.invoke_mfa/2
    (elixir 1.17.3) lib/task/supervised.ex:36: Task.Supervised.reply/4
Function: #Function<5.4278606/0 in Mix.Utils.read_path/2>
    Args: []
** (EXIT from #PID<0.98.0>) an exception was raised:
    ** (MatchError) no match of right hand side value: :undefined
	(public_key 1.15.1.4) pubkey_os_cacerts.erl:39:
:pubkey_os_cacerts.get/0
	(mix 1.17.3) lib/mix/utils.ex:664: Mix.Utils.read_httpc/1
	(mix 1.17.3) lib/mix/utils.ex:576: anonymous fn/2 in
Mix.Utils.read_path/2
	(elixir 1.17.3) lib/task/supervised.ex:101:
Task.Supervised.invoke_mfa/2
	(elixir 1.17.3) lib/task/supervised.ex:36: Task.Supervised.reply/4