Commit 1173263c authored by Gary Palter's avatar Gary Palter Committed by Eric Timmons
Browse files

Fix Genera's special case to skip /usr/share/common-lisp

OS-COND evaluates its clauses at compile time and only includes the relevant clause.
Change the clause in XDG-DATA-DIRS for Genera to check whether we're on a VLM running
on macOS at runtime. Otherwise, the binary we distribute with Genera will either
include /usr/share/common-lisp or it won't depending on which machine I use to compile.
parent 02d5bdb9
Pipeline #3490 passed with stages
in 41 minutes and 44 seconds
......@@ -328,11 +328,10 @@ also \"Configuration DSL\"\) in the ASDF manual."
;; to export either the root (/) or /usr/share simply doesn't work.
;; (Genera will go into an infinite loop trying to access those mounts.)
;; So, when running Genera on macOS, only search /usr/local/share.
((and (os-genera-p)
#+Genera (sys:system-case
(darwin-vlm t)
(otherwise nil)))
(mapcar 'parse-unix-namestring '("/usr/local/share/")))
#+Genera (sys:system-case
(darwin-vlm (mapcar 'parse-unix-namestring '("/usr/local/share/")))
(otherwise (mapcar 'parse-unix-namestring '("/usr/local/share/" "/usr/share/")))))
(t (mapcar 'parse-unix-namestring '("/usr/local/share/" "/usr/share/")))))))
(defun xdg-config-dirs (&rest more)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment