[packages/sbcl] fix path to sbcl.core

atler atler at pld-linux.org
Fri May 21 18:17:20 CEST 2021


commit 04ad5fa22b2d7dc74e313fef7db346587b73e5cb
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri May 21 15:41:33 2021 +0200

    fix path to sbcl.core

 sbcl-libpath.patch | 11 +++++++++++
 sbcl.spec          |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/sbcl.spec b/sbcl.spec
index e1879c7..a76f6e3 100644
--- a/sbcl.spec
+++ b/sbcl.spec
@@ -38,6 +38,7 @@ Source12:	http://download.sourceforge.net/sbcl/sbcl-1.4.2-arm64-linux-binary.tar
 Patch0:		%{name}-tests.patch
 Patch1:		%{name}-threads.patch
 Patch2:		%{name}-info.patch
+Patch3:		%{name}-libpath.patch
 URL:		http://sbcl.sourceforge.net/
 %{?with_clisp:BuildRequires:	clisp}
 %if %{without bootstrap} && %{without clisp}
@@ -119,6 +120,7 @@ Dokumentacja Steel Bank Common Lisp (SBCL) w formacie PDF.
 %patch1 -p1
 %endif
 %patch2 -p1
+%patch3 -p1
 
 %if %{with bootstrap}
 mkdir sbcl-bootstrap
@@ -141,7 +143,7 @@ export GNUMAKE="make"
 export SBCL_MAKE_JOBS="%{_smp_mflags}"
 export CC="%{__cc}"
 export CFLAGS="%{rpmcflags}"
-export CPPFLAGS="%{rpmcppflags}"
+export CPPFLAGS="%{rpmcppflags} -DSBCL_LIBPATH=\\\"../%{_lib}/sbcl\\\""
 export LDFLAGS="%{rpmldflags}"
 %if %{with bootstrap}
 export SBCL_HOME=`pwd`/sbcl-bootstrap/lib/sbcl
diff --git a/sbcl-libpath.patch b/sbcl-libpath.patch
new file mode 100644
index 0000000..ffe2d77
--- /dev/null
+++ b/sbcl-libpath.patch
@@ -0,0 +1,11 @@
+--- sbcl-2.1.4/src/runtime/runtime.c.orig	2021-05-21 15:06:10.340957679 +0200
++++ sbcl-2.1.4/src/runtime/runtime.c	2021-05-21 15:06:24.710852344 +0200
+@@ -66,7 +66,7 @@
+ 
+ struct timespec lisp_init_time;
+ 
+-static char libpath[] = "../lib/sbcl";
++static char libpath[] = SBCL_LIBPATH;
+ char *sbcl_runtime_home;
+ char *sbcl_runtime;
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sbcl.git/commitdiff/fa2b18a0fff025da33710f2eb99d75186669af73



More information about the pld-cvs-commit mailing list