xach / buildapp

Buildapp makes it easy to build application executables with SBCL
http://www.xach.com/lisp/buildapp/
123 stars 27 forks source link

Evaluate dumper-action-forms in CL-USER package. #15

Closed m-n closed 10 years ago

m-n commented 10 years ago

Currently the dumper-action-forms are evaluated in the (gensym "DUMPER") package. This creates the possibility for missing package errors when load is executed later, both in the built image and in unrelated images. Here's a minimal example that triggers the undesirable behavior which this patch fixes:

buildapp \
    --eval "(load (compile-file \"test.lisp\"))" \
    --output ~/bin/irrelevant 

;;;; test.lisp

(print 'foo)

;;;;  load the fasl buildapp created from test.lisp into any image.
* (load "test")

debugger invoked on a SB-KERNEL:SIMPLE-PACKAGE-ERROR in thread
#<THREAD "main thread" RUNNING {1002AC3153}>:
  The name "DUMPER697" does not designate any package.