Commit 4cd7aad0 authored by Francois-Rene Rideau's avatar Francois-Rene Rideau
Browse files

2.019.8: fixing yet another bug found by Sergey Katrevich.

When specifying a function as output-translation,
we accept either (:function symbol) or
(:function (lambda (pathname absolute-source) ...)
The second case wasn't properly handled.
Minimal testing included.
спасибо Сергей.
parent 811d843a
Loading
Loading
Loading
Loading
+2 −0
Changes for Makefile: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -31,6 +31,8 @@ ALLEGROMODERN ?= mlisp

# website, tag, install

default: test

install: archive-copy

archive:
+1 −1
Changes for asdf.asd: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
  :licence "MIT"
  :description "Another System Definition Facility"
  :long-description "ASDF builds Common Lisp software organized into defined systems."
  :version "2.019.7" ;; to be automatically updated by bin/bump-revision
  :version "2.019.8" ;; to be automatically updated by bin/bump-revision
  :depends-on ()
  :components
  ((:file "asdf")
+7 −8
Changes for asdf.lisp: 7 added lines, 8 removed lines.
Original line number Diff line number Diff line
;;; -*- mode: Common-Lisp; Base: 10 ; Syntax: ANSI-Common-Lisp -*-
;;; This is ASDF 2.019.7: Another System Definition Facility.
;;; This is ASDF 2.019.8: Another System Definition Facility.
;;;
;;; Feedback, bug reports, and patches are all welcome:
;;; please mail to <asdf-devel@common-lisp.net>.
@@ -107,7 +107,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.019.7")
         (asdf-version "2.019.8")
         (existing-asdf (find-class 'component nil))
         (existing-version *asdf-version*)
         (already-there (equal asdf-version existing-version)))
@@ -3457,13 +3457,12 @@ Please remove it from your ASDF configuration"))

(defun* location-function-p (x)
  (and
   (consp x)
   (length=n-p x 2)
   (or (and (equal (first x) :function)
            (typep (second x) 'symbol))
       (and (equal (first x) 'lambda)
            (cddr x)
            (length=n-p (second x) 2)))))
   (eq (car x) :function)
   (or (symbolp (cadr x))
       (and (consp (cadr x))
            (eq (caadr x) 'lambda)
            (length=n-p (cadadr x) 2)))))

(defun* validate-output-translations-directive (directive)
  (or (member directive '(:enable-user-cache :disable-cache nil))
+10 −0
Changes for test/test-utilities.script: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -44,4 +44,14 @@
 (not (asdf::version-satisfies (asdf:asdf-version) "666")))
(assert
  (equal (asdf::split-absolute-pathnames "/foo:/bar" "baz") '("/foo" "/bar")))
(assert (equal (mapcar 'location-function-p
                       '((:function f)
                         (:function (lambda (path absolute-source)
                                      (declare (ignore absolute-source))
                                      path))
                         (function previous-isnt-keyword)
                         (:function f too many arguments)
                         (:function (:lambda isnt lambda))
                         (:function (lambda (too many args) blah))))
               '(t t nil nil nil nil)))
)