On 2022/08/01 23:33, Kurt Mosiejczuk wrote:
> On Thu, Jul 28, 2022 at 07:55:21AM -0600, Stuart Henderson wrote:
> > CVSROOT:    /cvs
> > Module name:        ports
> > Changes by: [email protected]   2022/07/28 07:55:21
> > 
> > Modified files:
> >     lang           : Makefile 
> >     lang/go        : Makefile 
> > Removed files:
> >     lang/go-bootstrap: Makefile distinfo 
> >     lang/go-bootstrap/patches: patch-src_runtime_defs_openbsd_386_h 
> >                                patch-src_runtime_defs_openbsd_amd64_h 
> >                                patch-src_runtime_malloc_h 
> >                                patch-src_runtime_mem_openbsd_c 
> >                                patch-src_runtime_os_openbsd_c 
> >                                patch-src_runtime_stack_c 
> >     lang/go-bootstrap/pkg: DESCR PFRAG.amd64 PFRAG.i386 PLIST 
> 
> > Log message:
> > remove go-bootstrap, the C-based bootstrap compiler for go, which only
> > support amd64 and has not been updated for kernel changes or invoking
> > system calls via libc
> 
> > ok jsing@
> 
> The big problem with this change is that on arches where go is not
> available, like sparc64, this causes a fatal error to be thrown, since
> GOROOT_BOOTSTRAP is empty on those arches.

Thanks, fixed. I changed from ERRORS += to an additional check in do-configure.

 do-configure:
 .      if ${GOARCH} == "unknown"
                @echo "Unable to determine GOARCH for ${MACHINE_ARCH}."
                @exit 1
 .      endif
+.      if empty(GOROOT_BOOTSTRAP)
+               @echo "No bootstrap available for ${MACHINE_ARCH}."
+               @exit 1
+.      endif

Reply via email to