Ticket #64621: sbcl_patch.diff

File sbcl_patch.diff, 1.2 KB (added by dcamper (Dan S. Camper), 3 years ago)

tomio-arisaka's patch

  • Portfile

    old new  
    6464        size    10038928
    6565    global host_lisp
    6666    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\" "
     67
     68    if { [file isfile "${prefix}/bin/sbcl"] == 1 } then {
     69        variant a_sbcl conflicts a_ccl description {Active SBCL is used to compile this.} {
     70            set host_lisp "\"${prefix}/bin/sbcl --core ${prefix}/lib/sbcl/sbcl.core --disable-debugger --sysinit /dev/null --userinit /dev/null\" "
     71            if { [lindex [exec file -F "" "${prefix}/bin/sbcl"] 4] ne "x86_64" } {
     72                pre-fetch {
     73                    return -code error "active SBCL is not an x86_64 binary"
     74                }
     75            }
     76        }
     77    }
     78
     79    variant a_ccl conflicts a_sbcl description {Active CCL is used to compile this.} {
     80        set host_lisp "\"${prefix}/bin/ccl64 --no-init\" "
     81        depends_build   path:bin/ccl64:ccl
     82    }
    6783}
    6884if {${build_arch} eq "arm64"} {
    6985    set bootversion 2.1.2