Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asdf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tarn Burton
asdf
Commits
9b8170cc
Commit
9b8170cc
authored
10 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
In this case, load quicklisp after asdf, not before.
Document the Quicklisp situation.
parent
b6926703
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/load-asdf.lisp
+21
-7
21 additions, 7 deletions
tools/load-asdf.lisp
with
21 additions
and
7 deletions
tools/load-asdf.lisp
+
21
−
7
View file @
9b8170cc
...
...
@@ -49,12 +49,6 @@
;; and not the keyword :asdf or symbol 'asdf; old CLISP versions that don't provide ASDF
;; may error at compile-time if we call (require "asdf") directly.
(
ignore-errors
(
funcall
'require
"asdf"
))
;; If quicklisp is present, load it!
;; Note that this form is not as portable as if we were somehow using uiop:subpathname
;; but that's OK because quicklisp presumably doesn't work where this doesn't.
(
let
((
home
(
user-homedir-pathname
)))
(
or
(
try-load
(
merge-pathnames
"quicklisp/setup.lisp"
home
))
(
try-load
(
merge-pathnames
".quicklisp/setup.lisp"
home
))))
;; If ASDF 2 isn't provided, load our ASDF from source.
;; ASDF 1 is not enough, because it won't heed our project's output-translations.
;; (Beside, no one serious provides ASDF 1 anymore.)
...
...
@@ -73,7 +67,14 @@
(
configure-asdf
)))
(
unless
(
asdf-call
'version-satisfies
(
asdf-version
)
(
required-asdf-version
))
(
error
"This program needs ASDF ~A but could only find ASDF ~A"
(
required-asdf-version
)
(
asdf-version
)))))
(
required-asdf-version
)
(
asdf-version
)))
;; Here, we specifically want the ASDF in the current git checkout over
;; whatever quicklisp is providing, so we load quicklisp last.
;; If the checkout weren't providing ASDF and we wanted to rely on Quicklisp
;; to provide a copy of ASDF that the implementation might be lacking,
;; we'd move this form right below the (funcall 'require "asdf") above.
;; See also notes in try-load-quicklisp.
(
try-load-quicklisp
)))
;; User-configurable parts
(
required-asdf-version
()
"3.1.2"
)
;; In the end, we want at least ASDF 3.1.2
(
asdf-lisp
()
...
...
@@ -82,6 +83,15 @@
;; Or NIL, if you don't do use any fancy ASDF feature, and
;; trust your implementation to provide a recent enough copy.
(
subpath
(
here-directory
)
:directory
'
(
:back
"build"
)
:name
"asdf"
:type
"lisp"
))
(
try-load-quicklisp
()
;; In a controlled environment, either you'd use your own quicklisp
;; instead of the one in the user's homedir, or you wouldn't use quicklisp at all.
;; Edit this function as desired to reflect that and/or remove the call above.
;; Also, if you rely on quicklisp to load a recent ASDF rather than provide it
;; yourself in your code checkout (see above), you should be using the less portable
;; (merge-pathnames "..." (user-homedir-pathname)) rather than subpathname.
(
or
(
try-load
(
asdf-call
'subpathname
(
user-homedir-pathname
)
"quicklisp/setup.lisp"
))
(
try-load
(
asdf-call
'subpathname
(
user-homedir-pathname
)
".quicklisp/setup.lisp"
))))
(
configure-asdf
()
(
let*
((
source-directory
;; Here, define the top of your Lisp source code hierarchy.
...
...
@@ -191,6 +201,10 @@
(initialize-output-translations output-translations)
;; Upgrade to the latest configured version
(upgrade-asdf)
;; Load Quicklisp --- see remarks in uncommented version above
(if-let (x (or (probe-file (subpathname (user-homedir-pathname) "quicklisp/setup.lisp"))
(probe-file (subpathname (user-homedir-pathname) ".quicklisp/setup.lisp"))))
(load x))
;; Check that we have a satisfactorily version
(unless (version-satisfies (asdf-version) required-asdf-version)
(error "Please install an ASDF ~A or later" required-asdf-version))))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment