2.26.130: fix compile-file* for ecl_bytecodes
authorFrancois-Rene Rideau <tunes@google.com>
Mon, 21 Jan 2013 03:27:04 +0000 (22:27 -0500)
committerFrancois-Rene Rideau <tunes@google.com>
Mon, 21 Jan 2013 03:27:45 +0000 (22:27 -0500)
Also, make script re-loadable in a debug session.

49 files changed:
asdf.asd
header.lisp
lisp-build.lisp
test/asdf-pathname-test.script
test/run-tests.sh
test/test-around-compile.script
test/test-builtin-source-file-type.script
test/test-bundle.script
test/test-compile-file-failure.script
test/test-concatenate-source.script
test/test-configuration.script
test/test-encodings.script
test/test-force.script
test/test-logical-pathname.script
test/test-missing-lisp-file.script
test/test-module-depend.script
test/test-module-excessive-depend.script
test/test-module-pathnames.script
test/test-multiple.script
test/test-nested-components.script
test/test-package.script
test/test-program.script
test/test-redundant-recompile.asd [deleted file]
test/test-redundant-recompile.script
test/test-retry-loading-component-1.script
test/test-run-program.script
test/test-samedir-modules.script
test/test-source-file-type.script
test/test-static-and-serial.script
test/test-sysdef-asdf.script
test/test-system-pathnames.script
test/test-touch-system-1.script
test/test-touch-system-2.script
test/test-try-recompiling-1.script
test/test-urls-1.script
test/test-urls-2.script
test/test-utilities.script
test/test-version.script
test/test-weakly-depends-on-present.script
test/test-weakly-depends-on-unpresent.script
test/test-xach-update-bug.script
test/test1.script
test/test2.script
test/test3.script
test/test8.script
test/test9.script
test/wild-module.script
upgrade.lisp
version.lisp-expr

index 1d8e18a..a9225af 100644 (file)
--- a/asdf.asd
+++ b/asdf.asd
@@ -15,7 +15,7 @@
   :licence "MIT"
   :description "Another System Definition Facility"
   :long-description "ASDF builds Common Lisp software organized into defined systems."
-  :version "2.26.129" ;; to be automatically updated by make bump-version
+  :version "2.26.130" ;; to be automatically updated by make bump-version
   :depends-on ()
   :components ((:module "build" :components ((:file "asdf"))))
   :in-order-to (#+asdf2.27 (compile-op (monolithic-load-concatenated-source-op asdf/defsystem))))
index 507b4f6..c1daecc 100644 (file)
@@ -1,5 +1,5 @@
 ;; -*- mode: Common-Lisp; Base: 10 ; Syntax: ANSI-Common-Lisp ; coding: utf-8 -*-
-;;; This is ASDF 2.26.129: Another System Definition Facility.
+;;; This is ASDF 2.26.130: Another System Definition Facility.
 ;;;
 ;;; Feedback, bug reports, and patches are all welcome:
 ;;; please mail to <asdf-devel@common-lisp.net>.
index 4f31d58..786d4d7 100644 (file)
@@ -448,10 +448,16 @@ If WARNINGS-FILE is defined, deferred warnings are saved to that file.
 On ECL or MKCL, it creates both the linkable object and loadable fasl files.
 On implementations that erroneously do not recognize standard keyword arguments,
 it will filter them appropriately."
+  #+ecl (when (and object-file (equal (compile-file-type) (pathname object-file)))
+          (format t "Whoa, some funky ASDF upgrade switched ~S calling convention for ~S and ~S~%"
+                  'compile-file* output-file object-file)
+          (rotatef output-file object-file))
   (let* ((keywords (remove-plist-keys
-                    `(:compile-check :warnings-file #+(or ecl mkcl) :object-file
+                    `(:compile-check :warnings-file #+(or ecl mkcl) :object-file :output-file
                       #+gcl<2.7 ,@'(:external-format :print :verbose)) keys))
-         (output-file (apply 'compile-file-pathname* input-file :output-file output-file keywords))
+         (output-file
+           (or output-file
+               (apply 'compile-file-pathname* input-file :output-file output-file keywords)))
          #+ecl
          (object-file
            (unless (use-ecl-byte-compiler-p)
@@ -462,17 +468,13 @@ it will filter them appropriately."
            (or object-file
                (compile-file-pathname output-file :fasl-p nil)))
          (tmp-file (tmpize-pathname output-file)))
-    #+ecl (when (and object-file (equal (compile-file-type) (pathname object-file)))
-            (format t "Whoa, funky upgrade API switching happening in ~S with ~S ~S~%"
-                    'compile-file* output-file object-file)
-            (rotatef output-file object-file))
     (multiple-value-bind (output-truename warnings-p failure-p)
         (with-saved-deferred-warnings (warnings-file)
           (or #-(or ecl mkcl) (apply 'compile-file input-file :output-file tmp-file keywords)
               #+ecl (apply 'compile-file input-file :output-file
                            (if object-file
                                (list* object-file :system-p t keywords)
-                               (list* output-file keywords)))
+                               (list* tmp-file keywords)))
               #+mkcl (apply 'compile-file input-file
                             :output-file object-file :fasl-p nil keywords)))
       (cond
index 8d06d5e..e8bb1cd 100644 (file)
@@ -1,7 +1,7 @@
 ;;; -*- Lisp -*-
 
 (in-package :asdf-test)
-(load-asdf)
+
 
 ;;(setf *unspecific-pathname-type* nil)
 
index b21c050..e401ec5 100755 (executable)
@@ -90,7 +90,7 @@ do_tests() {
       echo "Testing: $i" >&2
       test_count=`expr "$test_count" + 1`
       rm -f ~/.cache/common-lisp/"`pwd`"/* || true
-      if DO $cmd $debugp $eval "(load \"script-support.lisp\")" $eval "(asdf-test::with-test () (load \"$i\"))" ; then
+      if DO $cmd $debugp $eval "(load \"script-support.lisp\")" $eval "(asdf-test::load-asdf)" $eval "(asdf-test::with-test () (load \"$i\"))" ; then
         echo "Using $command, $i passed" >&2
        test_pass=`expr "$test_pass" + 1`
       else
@@ -102,7 +102,7 @@ do_tests() {
         echo "or more interactively (and maybe with rlwrap or in emacs), start with:" >&2
         echo "(cd test ; $cmd )" >&2
         echo "then copy/paste:" >&2
-        echo "'(#.(load \"script-support.lisp\") #.(asdf-test::da) #.(asdf-test::with-test () (load \"$i\")))" >&2
+        echo "'(#.(load \"script-support.lisp\") #.(asdf-test::da) #.(load-asdf) #.(load \"$i\"))" >&2
       fi
       echo >&2
       echo >&2
index 299c12f..babd00e 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (defun call-in-base-2 (thunk)
   (let ((*read-base* 2))
index 21536a4..058a251 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 ;;(trace source-file-type)
 
index a23144f..04c760e 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 (in-package :asdf-test)
 
 ;;;---------------------------------------------------------------------------
index e3b7ca5..51dfb74 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (progn
  #-gcl<2.7
index b096bdb..6c3781f 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (def-test-system :test-concatenate-source
   :depends-on (:file3-only)
index a7342b1..1682c87 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (in-package :asdf)
 (use-package :asdf-test)
index d4f37b2..64957e4 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (defparameter *lambda-string* nil)
 
index 584896f..014a4d1 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (asdf:operate 'asdf:load-op 'test-force)
 
index 317f5f8..11c33af 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 #-gcl<2.7
 (setf (logical-pathname-translations "ASDF")
index b715463..317794f 100644 (file)
@@ -7,7 +7,7 @@
 ;;;---------------------------------------------------------------------------
 
 
-(load-asdf)
+
 
 
 (def-test-system test-missing-lisp-file
index db7842e..6ba5c56 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (asdf:load-system 'test-module-depend)
 
index dc938bc..1a71858 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 ;;;---------------------------------------------------------------------------
 ;;; Here's what we are trying to test.  Let us say we have a system X that
index f2fb061..43ce911 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (progn
  (asdf:load-system 'test-module-pathnames)
index 649bba2..2680c93 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (in-package :asdf)
 (use-package :asdf-test)
index 9f3f0c3..933fd9e 100644 (file)
@@ -3,7 +3,7 @@
 ;;; check that added nesting via modules doesn't confuse ASDF
 
 
-(load-asdf)
+
 
 (progn
  (setf asdf:*central-registry* nil)
index c6a3f9e..b8c1b68 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 (in-package :cl-user)
 (asdf-test::with-test ()
  (defun module () 1)
index 8487524..6db1a51 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (progn
 
diff --git a/test/test-redundant-recompile.asd b/test/test-redundant-recompile.asd
deleted file mode 100644 (file)
index a69d558..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-;;; -*- Lisp -*-
-(asdf:defsystem test-redundant-recompile
-  :components ((:file "file2" :in-order-to ((compile-op (load-op "file1"))
-                                            (load-op (load-op "file1"))))
-               (:file "file1")))
-
-#|
-;;;This test system definition attempts to replicate the excess dependencies
-;;;that seem to give rise to launchpad bug 590517
-;;;(https://bugs.launchpad.net/asdf/+bug/590517)
-
-1) from clean, check that all fasl files build and that some function
-   defined in the second file is present
-
-2) load again.  Check to make sure that nothing is recompiled.
-|#
index 52d9257..81cd198 100644 (file)
@@ -1,8 +1,22 @@
 ;;; -*- Lisp -*-
+#|
+;;;This test system definition attempts to replicate the excess dependencies
+;;;that seem to give rise to launchpad bug 590517
+;;;(https://bugs.launchpad.net/asdf/+bug/590517)
 
-(load-asdf)
+1) from clean, check that all fasl files build and that some function
+   defined in the second file is present
 
-(asdf:operate 'asdf:load-op 'test-redundant-recompile)
+2) load again.  Check to make sure that nothing is recompiled.
+|#
+
+(def-test-system test-redundant-recompile
+  :components ((:file "file2" :in-order-to ((compile-op (load-op "file1"))
+                                            (load-op (load-op "file1"))))
+               (:file "file1")))
+
+
+(load-system 'test-redundant-recompile)
 ;; test that it compiled
 (defparameter file1 (test-fasl "file1"))
 (defparameter file2 (test-fasl "file2"))
index 871fadf..a6e87dc 100644 (file)
@@ -3,7 +3,7 @@
 ;;; test asdf:try-recompiling restart
 
 
-(load-asdf)
+
 (defvar *caught-error* nil)
 (progn
  (DBG "trlc1 1")
index 2c7ffa2..e84dc1a 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 ;;; TODO: write tests for run-program/ instead -- and/or
 ;;; import those from the original xcvb-driver-test
index b9ec483..6e31146 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (DBG "loading test-samedir-modules")
 (asdf:operate 'asdf:load-op 'test-samedir-modules)
index e924e1d..2d93ebd 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 ;;(trace asdf::source-file-type asdf::source-file-explicit-type)
 
index 56cc2e4..e075e40 100644 (file)
@@ -4,7 +4,7 @@ make sure that serial t and static-files
 don't cause full rebuilds all the time...
 |#
 
-(load-asdf)
+
 
 (in-package :asdf-test)
 
index 4c55519..60f0c71 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (progn
  (asdf:initialize-source-registry '(:source-registry :ignore-inherited-configuration))
index 606b0d0..94722b7 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (progn
  (asdf:load-system 'test-system-pathnames)
index 8d1cf14..cd21863 100644 (file)
@@ -3,7 +3,7 @@
 ;;; test system def reloading if touched
 ;;; system that can be found using *system-definition-search-functions*
 
-(load-asdf)
+
 
 (defun system-load-time (name)
   (if-let (data (asdf::system-registered-p name))
index 6078bfe..1065981 100644 (file)
@@ -4,7 +4,7 @@
 ;;; system that canNOT be found using *system-definition-search-functions*
 
 
-(load-asdf)
+
 (progn
  (flet ((system-load-time (name)
           (let ((data (asdf::system-registered-p name)))
index 3906248..4e4a102 100644 (file)
@@ -3,7 +3,7 @@
 ;;; test asdf:try-recompiling restart
 
 
-(load-asdf)
+
 (defparameter *caught-error* nil)
 
 (delete-file-if-exists (test-fasl "try-recompiling-1"))
index a5e12a9..0da1d9b 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 #+scl
 (require :http-library)
 
index 532136a..f7b1435 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 #+scl
 (require :http-library)
 
index 4ff33cd..435540c 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (in-package :asdf)
 (use-package :asdf-test)
index 250e0c9..0c5d32e 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (progn
  (def-test-system :versioned-system-1
index 1296e70..4ff0fdf 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 ;;;---------------------------------------------------------------------------
 ;;; Check to see if a weakly-depended-on system, which is present in the
index da079d9..8896388 100644 (file)
@@ -7,7 +7,7 @@
 ;;;---------------------------------------------------------------------------
 
 
-(load-asdf)
+
 
 (asdf:load-system 'test-weakly-depends-on-unpresent)
 ;; test that it compiled
index 161f907..563fabb 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 #+gcl (trace load compile-file asdf:perform asdf::perform-plan)
 (progn
index e35548f..4b25d44 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (touch-file (test-source "test1.asd") :offset -3600) ;; touch test1.asd an hour ago.
 (defparameter *date* (file-write-date (test-source "test1.asd")))
index b175caf..1101b6a 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (DBG "test2: loading test2b1")
 (asdf:load-system 'test2b1)
index ba4e222..f57636c 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 
 (defparameter *fasl1* (test-fasl "file1.lisp"))
 (defparameter *fasl2* (test-fasl "file2.lisp"))
index a76c320..eb01c6b 100644 (file)
@@ -3,7 +3,7 @@
 ;;; make sure we get a missing-component error
 
 
-(load-asdf)
+
 (in-package :asdf-test)
 
 (progn
index 4463130..1598f5a 100644 (file)
@@ -3,7 +3,7 @@
 ;;; make sure we get a missing-component-of-version error
 
 
-(load-asdf)
+
 
 (progn
   (handler-case
index 2bf412b..48c372e 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*- Lisp -*-
 
-(load-asdf)
+
 (progn
  (load (asdf::subpathname *asdf-directory* "contrib/wild-modules.lisp"))
  (def-test-system :wild-module
index 1eab736..8c679a9 100644 (file)
@@ -35,7 +35,7 @@
          ;; "2.345.6" would be a development version in the official upstream
          ;; "2.345.0.7" would be your seventh local modification of official release 2.345
          ;; "2.345.6.7" would be your seventh local modification of development version 2.345.6
-         (asdf-version "2.26.129")
+         (asdf-version "2.26.130")
          (existing-asdf (find-class (find-symbol* :component :asdf nil) nil))
          (existing-version *asdf-version*)
          (already-there (equal asdf-version existing-version))
index 3a86b41..ad20ed5 100644 (file)
@@ -1 +1 @@
-"2.26.129"
+"2.26.130"