1 Patch originally from https://sources.debian.net/patches/erlang/1:20.0.1%2Bdfsg-2/man.patch/
2 by Francois-Denis Gonthier <neumann@lostwebsite.net>.
4 Patch description rewritten for Guix.
6 This patch allows access to the man page with the 'erl -man' command
7 (Erlang manual pages are placed to /gnu/store/..erlang../share/man/ hierarchy
10 --- a/erts/etc/common/erlexec.c
11 +++ b/erts/etc/common/erlexec.c
13 error("-man not supported on Windows");
16 - erts_snprintf(tmpStr, sizeof(tmpStr), "%s/man", rootdir);
17 - set_env("MANPATH", tmpStr);
19 + * Conform to erlang-manpages content.
21 + putenv(strsave("MANSECT=1:3:5:7"));
22 execvp("man", argv+i);
23 error("Could not execute the 'man' command.");