GNU bug report logs -
#74845
Guix racket: binaries installed via "raco pkg install" missing --config directory
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#74845: Guix racket: binaries installed via "raco pkg install" missing --config directory
which was filed against the guix package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 74845 <at> debbugs.gnu.org.
--
74845: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74845
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
On Mon, Dec 16, 2024 at 03:25:48PM -0500, Suhail Singh wrote:
> * gnu/packages/patches/racket-launcher-config-dir.patch: New file. With this
> patch, packages installed at runtime via raco have configuration directory
> correctly set.
> * gnu/local.mk (dist_patch_DATA): Register it.
> * gnu/packages/racket.scm (%racket-origin): Use it.
Thanks! Pushed as 696f2acbc7ba0ab7874d7ee4766135b623f88424
[Message part 3 (message/rfc822, inline)]
Hello Guix,
Currently, binaries installed via "raco" (included in Guix's "racket"
package) don't include the -G / --config configuration option specifying
the "Main configuration directory". This is problematic.
Specifically, when installing "rash" via raco using the below:
#+begin_src sh
raco pkg install rash
#+end_src
The resulting rash-repl binary is missing the -G configuration option in
the call to the racket binary. Invoking the installed rash-repl binary
results in the following error:
#+begin_src sh
standard-module-name-resolver: collection not found
for module path: (lib "rash/repl.rkt")
collection: "rash"
in collection directories:
${HOME}/.local/share/racket/8.14/collects
/gnu/store/vn20i9xk22czljr9drwzwpgw209l49s8-racket-vm-cs-8.14/opt/racket-vm/collects/
#+end_src
Adding the -G configuration option similar to what's included in the
"raco" script itself, fixes the above error.
The executable scripts (at least on linux) seem to be generated via
make-unix-launcher in ./racket/collects/launcher/launcher.rkt . What's
unclear is the best way in which to address this issue. For one thing,
the -G configuration option in the "raco" script (which addressed the
issue in the rash-repl script above) references the store location of
the racket guix package. However, the launcher.rkt (which contains the
definition of make-unix-launcher) file is compiled as part of
racket-vm-cs (which is an input of racket).
--
Suhail
This bug report was last modified 154 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.