unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob eca49431c35e5c648d3cc6b454b4969b038713ad 1386 bytes (raw)
name: gnu/packages/patches/minimacy.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
25
26
27
28
29
30
31
32
33
34
 
The Minimacy distribution is set up for being compiled and used from the
user's home directory. Running Minimacy as a Guix package requires adding
its store path as a search path for the virtual machine. That is done in
two steps: this patch, and a substitution of the actual store path in the
build process.

--- minimacy/src/hw.c	2022-12-05 18:51:13.000000000 +0100
+++ minimacy/src/hw.c	2022-12-09 15:55:47.122793826 +0100
@@ -90,6 +90,13 @@
 #if defined ON_UNIX || defined ON_MACOS_CMDLINE || defined ON_RASPBERRY64
 void systemExecDir(char* path, int len)
 {
+	char* p = "minimacy-in-gnu-store";
+	if (strlen(p) < len - 2)
+	{
+		strcpy(path, p);
+		systemCleanDir(path);
+		return;
+	}
 	path[0] = 0;
 }
 #endif
@@ -583,8 +590,9 @@
 	PRINTF(th, LOG_USER, "1- command line argument: -dir path\n");
 	PRINTF(th, LOG_USER, "2- environment variable MINIMACY\n");
 	PRINTF(th, LOG_USER, "3- grand parent of minimacy.exe (windows only)\n");
-	PRINTF(th, LOG_USER, "4- ~/minimacy (on Unix) or [user]/Documents/minimacy (on Windows)\n");
-	PRINTF(th, LOG_USER, "5- Working directory\n\n");
+	PRINTF(th, LOG_USER, "4- the minimacy package under /gnu/store (Guix only)\n");
+	PRINTF(th, LOG_USER, "5- ~/minimacy (on Unix) or [user]/Documents/minimacy (on Windows)\n");
+	PRINTF(th, LOG_USER, "6- Working directory\n\n");
 }
 int hwInit(Thread* th, int argc, char** argv, int standalone)
 {

debug log:

solving eca49431c3 ...
found eca49431c3 in https://yhetil.org/guix-patches/m1tu219bmo.fsf@fastmail.net/ ||
	https://yhetil.org/guix-patches/m17cw4wgkr.fsf_-_@fastmail.net/ ||
	https://yhetil.org/guix-patches/20230127184925.3126904-1-zimon.toutoune@gmail.com/ ||
	https://yhetil.org/guix-patches/20230127192031.3142167-1-zimon.toutoune@gmail.com/

applying [1/1] https://yhetil.org/guix-patches/m1tu219bmo.fsf@fastmail.net/
diff --git a/gnu/packages/patches/minimacy.patch b/gnu/packages/patches/minimacy.patch
new file mode 100644
index 0000000000..eca49431c3

1:26: space before tab in indent.
 	path[0] = 0;
1:30: space before tab in indent.
 	PRINTF(th, LOG_USER, "1- command line argument: -dir path\n");
1:31: space before tab in indent.
 	PRINTF(th, LOG_USER, "2- environment variable MINIMACY\n");
1:32: space before tab in indent.
 	PRINTF(th, LOG_USER, "3- grand parent of minimacy.exe (windows only)\n");
Checking patch gnu/packages/patches/minimacy.patch...
Applied patch gnu/packages/patches/minimacy.patch cleanly.
warning: 4 lines add whitespace errors.

skipping https://yhetil.org/guix-patches/m17cw4wgkr.fsf_-_@fastmail.net/ for eca49431c3
skipping https://yhetil.org/guix-patches/20230127184925.3126904-1-zimon.toutoune@gmail.com/ for eca49431c3
skipping https://yhetil.org/guix-patches/20230127192031.3142167-1-zimon.toutoune@gmail.com/ for eca49431c3
index at:
100644 eca49431c35e5c648d3cc6b454b4969b038713ad	gnu/packages/patches/minimacy.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).