Summary: | math/maxima: Error with quicklisp at line 129 of quickliskp/setup.lisp | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | jszhao | ||||
Component: | Individual Port(s) | Assignee: | Kurt Jaeger <pi> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | pi, salvadore | ||||
Priority: | --- | Flags: | salvadore:
maintainer-feedback+
|
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
jszhao
2019-01-11 12:51:25 UTC
I'm studying it. I will give feedback as soon as possible. Created attachment 201249 [details]
maxima - quicklisp patch
Here is a patch that should solve the problem.
The reporter was right suspecting that some path was hard coded into maxima's image. However, the path does not necessarily involves /wrkdirs/: it involves the path in which the port was built (probably the reporter was using poudriere).
Hence the bug's summary should be changed by someone who has the necessary permissions (reporter, triager or committer) to something more useful: I suggest "math/maxima: Error with quicklisp at line 129 of quickliskp/setup.lisp".
Now the fix. I added an option called NOUSERINIT, enabled by default: when enabled, if the chosen lisp implementation is sbcl (the default), it ensures that sbcl is run ignoring any user init file (~/.sbclrc). Thus sbcl can run with quicklisp whenever the user wants to run it, but, when the user runs sbcl only to run maxima quicklisp is not loaded and hence there is no search for the hard coded path into the maxima image.
I bumped PORTREVISION.
The patch was tested successfully on my system (12.0-RELEASE amd64) and with poudriere (12.0-RELEASE amd64).
Reporter: Can you please tell if the solution I propose is suited for your needs?
(In reply to Lorenzo Salvadore from comment #2) I am OK with the solutions. Thanks! Committed, thanks! A commit references this bug: Author: pi Date: Sun Jan 27 11:56:41 UTC 2019 New revision: 491342 URL: https://svnweb.freebsd.org/changeset/ports/491342 Log: math/maxima: fix if quicklisp is being referenced in .sbclrc - adding a new option NOUSERINIT, enabled by default when enabled, if the chosen lisp implementation is sbcl (the default), it ensures that sbcl is run ignoring any user init file (~/.sbclrc) PR: 234853 Submitted by: Lorenzo Salvadore <phascolarctos@protonmail.ch> (maintainer) Reported by: jszhao@yeah.net Changes: head/math/maxima/Makefile |