all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob ce4795662434448015f1351928ee987869cf57ad 601 bytes (raw)
name: gnu/packages/patches/tome4-patch-src-getself-c.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
 
Copied from OpenBSD.

Fixes: ../src/getself.c:40:1: fatal error: opening dependency file
../obj/Release/TEngine/getself.d: No such file or directory

$OpenBSD: patch-src_getself_c,v 1.3 2017/11/11 11:24:42 kirby Exp $

--- a/src/getself.c
+++ b/src/getself.c
@@ -47,13 +47,7 @@ int get_number_cpus()
 const char *get_self_executable(int argc, char **argv)
 {
 	static char res[PATH_MAX];
-	int mib[4];
-	mib[0] = CTL_KERN;
-	mib[1] = KERN_PROC;
-	mib[2] = KERN_PROC_PATHNAME;
-	mib[3] = -1;
-	size_t cb = sizeof(res);
-	sysctl(mib,4,res,&cb,NULL,0);
+	realpath("${GAMEDIR}/", res);
 	return res;
 }
 

debug log:

solving ce4795662 ...
found ce4795662 in https://yhetil.org/guix/20180209212331.6538-1-go.wigust@gmail.com/

applying [1/1] https://yhetil.org/guix/20180209212331.6538-1-go.wigust@gmail.com/
diff --git a/gnu/packages/patches/tome4-patch-src-getself-c.patch b/gnu/packages/patches/tome4-patch-src-getself-c.patch
new file mode 100644
index 000000000..ce4795662

1:19: space before tab in indent.
 	static char res[PATH_MAX];
1:28: space before tab in indent.
 	return res;
1:30: trailing whitespace.
 
Checking patch gnu/packages/patches/tome4-patch-src-getself-c.patch...
1:30: new blank line at EOF.
+
Applied patch gnu/packages/patches/tome4-patch-src-getself-c.patch cleanly.
warning: 4 lines add whitespace errors.

index at:
100644 ce4795662434448015f1351928ee987869cf57ad	gnu/packages/patches/tome4-patch-src-getself-c.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.