Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #29617: fix kenzo SPKG build.
Browse files Browse the repository at this point in the history
The kenzo SPKG is using a deprecated interface to the asdf build
system. ECL has a backwards-compatibility shim, but it looks like
the compatibility is not 100%. Building kenzo throws the following
error with ecl-21.2.1:

  [kenzo-1.1.9] Condition of type: CASE-FAILURE
  [kenzo-1.1.9] :FASL fell through ECASE expression.
  [kenzo-1.1.9] Wanted one of (:SHARED-LIBRARY :DLL :STATIC-LIBRARY
  :LIB :FASB :IMAGE :PROGRAM).

Kenzo is instead passing in :FASL to that function. This commit
changes it to :FASB, because the option having the smallest
Levenshtein distance must be correct.
  • Loading branch information
orlitzky committed Apr 2, 2021
1 parent 482ad99 commit 683abb9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/pkgs/kenzo/spkg-install.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ cd src
# create a short lisp file with the instructions to load kenzo from ecl
# This will compile the lisp files since it is the first time they are loaded

# Kenzo v1.1.9 fails to build with modern versions of ECL/ASDF because
# it's passing an invalid argument (:fasl) to make-build. We patch it
# on-the-fly to pass a supported argument, :fasb, instead.
sed -i 's/:fasl/:fasb/' compile.lisp \
|| sdh_die "failed to update make-build invocation"

ecl < compile.lisp

# Install Kenzo into ECL's library directory.
Expand Down

0 comments on commit 683abb9

Please sign in to comment.