unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 212530e77fe560ef62edf9da623f2e5408f34657 612 bytes (raw)
name: gnu/packages/patches/libcanberra-sound-theme-freedesktop.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
 
--- src/sound-theme-spec.c.orig	2015-01-11 13:13:29.520527358 +0100
+++ src/sound-theme-spec.c	2015-01-11 13:18:40.927247628 +0100
@@ -321,9 +321,13 @@
         const char *g;
 
         if (!(g = getenv("XDG_DATA_DIRS")) || *g == 0)
-                return "/usr/local/share:/usr/share";
-
-        return g;
+                return "@SOUND_THEME_DIRECTORY@";
+	else {
+		const char *stp = ":@SOUND_THEME_DIRECTORY@";
+		size_t len =  strlen(stp) + strlen(g) + 1;
+		char *g2 = (char*) malloc(len);
+		return strcat(strcpy(g2, g), stp);
+	}
 }
 
 static int load_theme_dir(ca_theme_data *t, const char *name) {

debug log:

solving 212530e ...
found 212530e in https://yhetil.org/guix-devel/CAKrPhPOVbNntonUcp+sgXq8h2mwX-9Mgt0oN7V=orgXH=pqxfQ@mail.gmail.com/

applying [1/1] https://yhetil.org/guix-devel/CAKrPhPOVbNntonUcp+sgXq8h2mwX-9Mgt0oN7V=orgXH=pqxfQ@mail.gmail.com/
diff --git a/gnu/packages/patches/libcanberra-sound-theme-freedesktop.patch b/gnu/packages/patches/libcanberra-sound-theme-freedesktop.patch
new file mode 100644
index 0000000..212530e

1:11: trailing whitespace.
 
1:24: trailing whitespace.
 
Checking patch gnu/packages/patches/libcanberra-sound-theme-freedesktop.patch...
Applied patch gnu/packages/patches/libcanberra-sound-theme-freedesktop.patch cleanly.
warning: 2 lines add whitespace errors.

index at:
100644 212530e77fe560ef62edf9da623f2e5408f34657	gnu/packages/patches/libcanberra-sound-theme-freedesktop.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).