unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob e5beb4af1e0ee7978d7ffbe24283ce5c55e51b80 847 bytes (raw)
name: gnu/packages/patches/erlang-man-path.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
@@ -728,8 +728,10 @@ int main(int argc, char **argv)
                                 break;
                             }
                         }
-			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

debug log:

solving e5beb4af1e ...
found e5beb4af1e in https://yhetil.org/guix-patches/29b85464b5bc31000efa77af6f5094b331146543.1726763309.git.igor@goryachev.org/
found 68fc9f45b4 in https://git.savannah.gnu.org/cgit/guix.git
preparing index
index prepared:
100644 68fc9f45b402e7b313a6309a44a752d762df90c2	gnu/packages/patches/erlang-man-path.patch

applying [1/1] https://yhetil.org/guix-patches/29b85464b5bc31000efa77af6f5094b331146543.1726763309.git.igor@goryachev.org/
diff --git a/gnu/packages/patches/erlang-man-path.patch b/gnu/packages/patches/erlang-man-path.patch
index 68fc9f45b4..e5beb4af1e 100644

Checking patch gnu/packages/patches/erlang-man-path.patch...
Applied patch gnu/packages/patches/erlang-man-path.patch cleanly.

index at:
100644 e5beb4af1e0ee7978d7ffbe24283ce5c55e51b80	gnu/packages/patches/erlang-man-path.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).