View | Details | Raw Unified | Return to bug 265661
Collapse All | Expand All

(-)b/lang/sbcl/Makefile (-2 / +2 lines)
Lines 5-11 Link Here
5
PORTNAME=	sbcl
5
PORTNAME=	sbcl
6
DISTVERSION=	2.2.7
6
DISTVERSION=	2.2.7
7
DISTVERSIONSUFFIX=	-source
7
DISTVERSIONSUFFIX=	-source
8
PORTREVISION=	1
8
PORTREVISION=	2
9
PORTEPOCH=	1
9
PORTEPOCH=	1
10
CATEGORIES=	lang lisp
10
CATEGORIES=	lang lisp
11
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${DISTVERSION} \
11
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${DISTVERSION} \
Lines 143-149 post-patch: Link Here
143
		${WRKSRC}/doc/manual/start-stop.texinfo
143
		${WRKSRC}/doc/manual/start-stop.texinfo
144
144
145
do-build:
145
do-build:
146
	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} LINKFLAGS="${LDFLAGS}" ${SH} make.sh ${MAKE_SH_ARGS})
146
	(cd ${WRKSRC} && ${SH} make.sh ${MAKE_SH_ARGS})
147
147
148
post-build-DOCS-on:
148
post-build-DOCS-on:
149
	${DO_MAKE_BUILD} -C ${WRKSRC}/doc/manual info html
149
	${DO_MAKE_BUILD} -C ${WRKSRC}/doc/manual info html
(-)b/lang/sbcl/files/patch-src_runtime_Config.x86-64-freebsd (+20 lines)
Added Link Here
1
From 9de74a0d4d0f1f38db5ae7e891480d8a4b4ad8d9 Mon Sep 17 00:00:00 2001
2
From: Douglas Katzman <dougk@google.com>
3
Date: Tue, 2 Aug 2022 14:40:28 -0400
4
Subject: [PATCH] Add /usr/local/include for freebsd
5
6
https://wiki.freebsd.org/WarnerLosh/UsrLocal says something about it.
7
8
Should fix lp#1981112.
9
--- src/runtime/Config.x86-64-freebsd.orig	2022-07-29 14:39:18 UTC
10
+++ src/runtime/Config.x86-64-freebsd
11
@@ -15,7 +15,8 @@ include Config.x86-64-bsd
12
 # worked fine for most things, but LOAD-FOREIGN & friends require
13
 # dlopen() etc., which in turn depend on dynamic linking of the
14
 # runtime.
15
-OS_LIBS += -lutil
16
+OS_LIBS += -lutil -L/usr/local/lib
17
+CPPFLAGS += -isystem/usr/local/include
18
 
19
 # use libthr (1:1 threading).  libpthread (m:n threading) does not work.
20
 ifdef LISP_FEATURE_SB_THREAD
(-)b/lang/sbcl/files/patch-src_runtime_stringspace.c (+16 lines)
Added Link Here
1
From 48d686f9718f98122547a9006c871cfcd50439ab Mon Sep 17 00:00:00 2001
2
From: Douglas Katzman <dougk@google.com>
3
Date: Sun, 31 Jul 2022 21:38:19 -0400
4
Subject: [PATCH] Accept that value-cell-value can move to R/O space
5
6
Fixes lp#1983218
7
--- src/runtime/stringspace.c.orig	2022-07-29 14:39:18 UTC
8
+++ src/runtime/stringspace.c
9
@@ -76,6 +76,7 @@ static void visit_pointer_words(lispobj* object, lispo
10
                widetag == RATIO_WIDETAG || widetag == COMPLEX_WIDETAG ||
11
                widetag == SIMPLE_ARRAY_WIDETAG ||
12
                (widetag >= COMPLEX_BASE_STRING_WIDETAG && widetag <= COMPLEX_ARRAY_WIDETAG) ||
13
+               widetag == VALUE_CELL_WIDETAG ||
14
                widetag == WEAK_POINTER_WIDETAG) {
15
         int len = object_size(object), i;
16
         for (i=1; i<len; ++i) FIX(object[i]);
(-)b/lang/sbcl/files/patch-tests_save1.test.sh (+20 lines)
Added Link Here
1
From 48d686f9718f98122547a9006c871cfcd50439ab Mon Sep 17 00:00:00 2001
2
From: Douglas Katzman <dougk@google.com>
3
Date: Sun, 31 Jul 2022 21:38:19 -0400
4
Subject: [PATCH] Accept that value-cell-value can move to R/O space
5
6
Fixes lp#1983218
7
--- tests/save1.test.sh.orig	2022-07-29 14:39:18 UTC
8
+++ tests/save1.test.sh
9
@@ -23,6 +23,11 @@ run_sbcl <<EOF
10
   ;; but maybe someone changed it :immobile, so bind it to be certain.
11
   (let (#+immobile-code (sb-c::*compile-to-memory-space* :dynamic))
12
      (defvar *afun* (compile nil '(lambda (x) (- (length x))))))
13
+  ;; test for lp#1983218 - a VALUE-CELL holding a readonly string could crash
14
+  (defun mkcell (x) (sb-sys:%primitive sb-vm::make-value-cell x nil))
15
+  (compile 'mkcell)
16
+  (defvar *cell* (mkcell (symbol-name '*print-base*)))
17
+  ;;
18
   (save-lisp-and-die "$tmpcore")
19
 EOF
20
 run_sbcl_with_core "$tmpcore" --noinform --no-userinit --no-sysinit --noprint \

Return to bug 265661