Fix software-version function in SBCL by changing uname location from /bin/
This commit is contained in:
parent
c978ea45a8
commit
1fd3e9116b
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, sbclBootstrap, clisp}:
|
||||
{ stdenv, fetchurl, sbclBootstrap, clisp, which}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "sbcl-${version}";
|
||||
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0nmb9amygr5flzk2z9fa6wzwqknbgd2qrkybxkxkamvbdwyayvzr";
|
||||
};
|
||||
|
||||
buildInputs = [ ]
|
||||
buildInputs = [ which ]
|
||||
++ (stdenv.lib.optional stdenv.isDarwin sbclBootstrap)
|
||||
++ (stdenv.lib.optional stdenv.isLinux clisp)
|
||||
;
|
||||
@ -39,6 +39,9 @@ stdenv.mkDerivation rec {
|
||||
sed -i src/code/target-load.lisp -e \
|
||||
'/date defaulted-source/i(or (and (= 2208988801 (file-write-date defaulted-source-truename)) (= 2208988801 (file-write-date defaulted-fasl-truename)))'
|
||||
|
||||
# Fix software version retrieval
|
||||
sed -e "s@/bin/uname@$(which uname)@g" -i src/code/*-os.lisp
|
||||
|
||||
# Fix the tests
|
||||
sed -e '/deftest pwent/inil' -i contrib/sb-posix/posix-tests.lisp
|
||||
sed -e '/deftest grent/inil' -i contrib/sb-posix/posix-tests.lisp
|
||||
|
Loading…
x
Reference in New Issue
Block a user