[MacPorts] #64621: SBCL build hangs
MacPorts
noreply at macports.org
Sat Apr 9 10:00:31 UTC 2022
#64621: SBCL build hangs
-----------------------+----------------------
Reporter: pmetzger | Owner: easye
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: sbcl |
-----------------------+----------------------
Comment (by tomio-arisaka):
Another way is to add some variants.
* **a_ccl** : active CCL is used to compile the source code of SBCL.
* **a_sbcl** : active SBCL is used to compile the source code of SBCL.
On Monterey, use the **a_ccl** variant when building SBCL at first.
{{{
$ sudo port install sbcl +a_ccl
}}}
After that, another SBCL can be build with the **a_sbcl** variant.
{{{
$ sudo port install sbcl +a_sbcl
}}}
My patch is the following:
{{{
$ diff -u Portfile.orig Portfile
--- Portfile.orig 2022-03-08 19:46:23.000000000 +0900
+++ Portfile 2022-02-27 17:00:03.000000000 +0900
@@ -64,6 +64,22 @@
size 10038928
global host_lisp
set host_lisp
"\"${workpath}/${name}-${bootversion}-x86-64-darwin/src/runtime/sbcl
--core ${workpath}/${name}-${bootversion}-x86-64-darwin/output/sbcl.core
--disable-debugger --sysinit /dev/null --userinit /dev/null\" "
+
+ if { [file isfile "${prefix}/bin/sbcl"] == 1 } then {
+ variant a_sbcl conflicts a_ccl description {Active SBCL is used
to compile this.} {
+ set host_lisp "\"${prefix}/bin/sbcl --core
${prefix}/lib/sbcl/sbcl.core --disable-debugger --sysinit /dev/null
--userinit /dev/null\" "
+ if { [lindex [exec file -F "" "${prefix}/bin/sbcl"] 4] ne
"x86_64" } {
+ pre-fetch {
+ return -code error "active SBCL is not an x86_64
binary"
+ }
+ }
+ }
+ }
+
+ variant a_ccl conflicts a_sbcl description {Active CCL is used to
compile this.} {
+ set host_lisp "\"${prefix}/bin/ccl64 --no-init\" "
+ depends_build path:bin/ccl64:ccl
+ }
}
if {${build_arch} eq "arm64"} {
set bootversion 2.1.2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/64621#comment:17>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list