mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: erlang: Fix man-pages search path of 'erl -man'.
* gnu/packages/patches/erlang-man-path.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/erlang.scm (erlang)[source]: Use it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
53ac6977ac
commit
a4078acf4a
3 changed files with 28 additions and 1 deletions
24
gnu/packages/patches/erlang-man-path.patch
Normal file
24
gnu/packages/patches/erlang-man-path.patch
Normal file
|
@ -0,0 +1,24 @@
|
|||
Patch originally from https://sources.debian.net/patches/erlang/1:20.0.1%2Bdfsg-2/man.patch/
|
||||
by Francois-Denis Gonthier <neumann@lostwebsite.net>.
|
||||
|
||||
Patch description rewritten for Guix.
|
||||
|
||||
This patch allows access to the man page with the 'erl -man' command
|
||||
(Erlang manual pages are placed to /gnu/store/..erlang../share/man/ hierarchy
|
||||
as other man pages.)
|
||||
|
||||
--- a/erts/etc/common/erlexec.c
|
||||
+++ b/erts/etc/common/erlexec.c
|
||||
@@ -709,8 +709,10 @@
|
||||
error("-man not supported on Windows");
|
||||
#else
|
||||
argv[i] = "man";
|
||||
- erts_snprintf(tmpStr, sizeof(tmpStr), "%s/man", rootdir);
|
||||
- set_env("MANPATH", tmpStr);
|
||||
+ /*
|
||||
+ * Conform to erlang-manpages content.
|
||||
+ */
|
||||
+ putenv(strsave("MANSECT=1:3:5:7"));
|
||||
execvp("man", argv+i);
|
||||
error("Could not execute the 'man' command.");
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue