unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob b54ab52ded8d6b44c258ff849636cf754157c014 1097 bytes (raw)
name: gnu/packages/patches/kobodeluxe_paths.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
35
36
37
38
39
40
 
# Disable reading of configs, graphics, and data from the current directory.
# So it's safe to run kobodeluxe from anywhere w/o worry about an attacker
# feeding it bad data.
--- kobodeluxe-0.5.1.orig/kobo.cpp
+++ kobodeluxe-0.5.1/kobo.cpp
@@ -141,21 +141,21 @@
 	 * Graphics data
 	 */
 	/* Current dir; from within the build tree */
-	fmap->addpath("GFX", "./data/gfx");
+	//fmap->addpath("GFX", "./data/gfx");
 	/* Real data dir */
 	fmap->addpath("GFX", "DATA>>gfx");
 	/* Current dir */
-	fmap->addpath("GFX", "./gfx");
+	//fmap->addpath("GFX", "./gfx");
 
 	/*
 	 * Sound data
 	 */
 	/* Current dir; from within the build tree */
-	fmap->addpath("SFX", "./data/sfx");
+	//fmap->addpath("SFX", "./data/sfx");
 	/* Real data dir */
 	fmap->addpath("SFX", "DATA>>sfx");
 	/* Current dir */
-	fmap->addpath("SFX", "./sfx");
+	//fmap->addpath("SFX", "./sfx");
 
 	/*
 	 * Score files (user and global)
@@ -173,7 +173,7 @@
 	/* System local */
 	fmap->addpath("CONFIG", SYSCONF_DIR);
 	/* In current dir (last resort) */
-	fmap->addpath("CONFIG", "./");
+	//fmap->addpath("CONFIG", "./");
 }
 
 

debug log:

solving b54ab52 ...
found b54ab52 in https://yhetil.org/guix-devel/87h98bag8p.fsf@dustycloud.org/ ||
	https://yhetil.org/guix-devel/CANR+FbvbJG6csn0Lbs1wnNwtPydPty6i5yvW1g0iKsViTC612g@mail.gmail.com/

applying [1/1] https://yhetil.org/guix-devel/87h98bag8p.fsf@dustycloud.org/
diff --git a/gnu/packages/patches/kobodeluxe_paths.patch b/gnu/packages/patches/kobodeluxe_paths.patch
new file mode 100644
index 0000000..b54ab52

1:13: space before tab in indent.
 	 * Graphics data
1:14: space before tab in indent.
 	 */
1:15: space before tab in indent.
 	/* Current dir; from within the build tree */
1:18: space before tab in indent.
 	/* Real data dir */
1:19: space before tab in indent.
 	fmap->addpath("GFX", "DATA>>gfx");
Checking patch gnu/packages/patches/kobodeluxe_paths.patch...
Applied patch gnu/packages/patches/kobodeluxe_paths.patch cleanly.
warning: squelched 18 whitespace errors
warning: 23 lines add whitespace errors.

skipping https://yhetil.org/guix-devel/CANR+FbvbJG6csn0Lbs1wnNwtPydPty6i5yvW1g0iKsViTC612g@mail.gmail.com/ for b54ab52
index at:
100644 b54ab52ded8d6b44c258ff849636cf754157c014	gnu/packages/patches/kobodeluxe_paths.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).