all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 575e3b61519ab9e68f2e9438cb596f127ac51755 1346 bytes (raw)
name: gnu/packages/patches/racket-launcher-config-dir.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
 
From 6b3aed3d71ea9481762de7bd42395704176b6625 Mon Sep 17 00:00:00 2001
From: Suhail <suhail@bayesians.ca>
Date: Mon, 16 Dec 2024 15:07:55 -0500
Subject: [PATCH v2] racket: raco: Ensure launchers of packages include config
 directory.

---
 racket/collects/launcher/launcher.rkt | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/racket/collects/launcher/launcher.rkt b/racket/collects/launcher/launcher.rkt
index 0faacec4ce..2c77d55caf 100644
--- a/racket/collects/launcher/launcher.rkt
+++ b/racket/collects/launcher/launcher.rkt
@@ -405,7 +405,14 @@
          [x-flags? (and (eq? kind 'mred)
                         (eq? (cross-system-type) 'unix)
                         (not (script-variant? variant)))]
-         [flags (let ([m (assq 'wm-class aux)])
+         [flags (let ([m (assq 'wm-class aux)]
+                      [flags (if (or (member "-G" flags)
+                                     (member "--config" flags))
+                                 flags
+                                 (list* "-G"
+                                        (format "~a"
+                                                (find-system-path 'config-dir))
+                                        flags))])
                   (if m
                       (list* "-J" (cdr m) flags)
                       flags))]
-- 
2.47.1


debug log:

solving 575e3b6151 ...
found 575e3b6151 in https://yhetil.org/guix/1e53d03ab96410d841ed154d1c866e07b2973f84.1734413825.git.suhail@bayesians.ca/

applying [1/1] https://yhetil.org/guix/1e53d03ab96410d841ed154d1c866e07b2973f84.1734413825.git.suhail@bayesians.ca/
diff --git a/gnu/packages/patches/racket-launcher-config-dir.patch b/gnu/packages/patches/racket-launcher-config-dir.patch
new file mode 100644
index 0000000000..575e3b6151

1:37: trailing whitespace.
-- 
Checking patch gnu/packages/patches/racket-launcher-config-dir.patch...
1:39: new blank line at EOF.
+
Applied patch gnu/packages/patches/racket-launcher-config-dir.patch cleanly.
warning: 2 lines add whitespace errors.

index at:
100644 575e3b61519ab9e68f2e9438cb596f127ac51755	gnu/packages/patches/racket-launcher-config-dir.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.