diff options
author | CoprDistGit <infra@openeuler.org> | 2025-04-26 14:11:13 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-04-26 14:11:13 +0000 |
commit | 05fb5cfdcc13fa4614739efb6078b1aaa404c9e1 (patch) | |
tree | 51dadafbd4c81241925e2eb4fb68fa7a3ccf9f54 /otp-0009-Load-man-pages-from-system-wide-directory.patch | |
parent | f82ec8ce102520b2c70d10f958c9bc5a4ec8b089 (diff) |
automatic import of erlangopeneuler22.03_LTS_SP4
Diffstat (limited to 'otp-0009-Load-man-pages-from-system-wide-directory.patch')
-rw-r--r-- | otp-0009-Load-man-pages-from-system-wide-directory.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/otp-0009-Load-man-pages-from-system-wide-directory.patch b/otp-0009-Load-man-pages-from-system-wide-directory.patch new file mode 100644 index 0000000..d68a78b --- /dev/null +++ b/otp-0009-Load-man-pages-from-system-wide-directory.patch @@ -0,0 +1,25 @@ +From: Francois-Denis Gonthier <neumann@lostwebsite.net> +Date: Thu, 20 Sep 2018 15:01:18 +0300 +Subject: [PATCH] Load man-pages from system-wide directory + +Patch allows one to use standard man path with erl -man command. +(Erlang manual pages are placed to /usr/share/man/ hierarchy +as required by Debian policy.) + +diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c +index 9dba684cbb..b4c5a8413f 100644 +--- a/erts/etc/common/erlexec.c ++++ b/erts/etc/common/erlexec.c +@@ -727,8 +727,10 @@ int main(int argc, char **argv) + 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=3erl:1:5:7")); + execvp("man", argv+i); + error("Could not execute the 'man' command."); + #endif |