devel/tbb fails to build on aarch64:
build/common.inc:81: *** Architecture not detected.  Stop.

http://build-failures.rhaalovely.net/aarch64/2020-05-21/devel/tbb.log

The architecture determination logic, which is in a GNU make file
we supply, is incoherent.

The patch below sets the uname_p variable before referencing it and
uses it consistently across all archs.
With this, "make package" and "make test" succeed on aarch64.

OK?

(If you're trying this: The fractal test took some 50 minutes on
my OverDrive 1000.)

Index: files/OpenBSD.inc
===================================================================
RCS file: /cvs/ports/devel/tbb/files/OpenBSD.inc,v
retrieving revision 1.2
diff -u -p -r1.2 OpenBSD.inc
--- files/OpenBSD.inc   18 May 2020 16:42:20 -0000      1.2
+++ files/OpenBSD.inc   24 May 2020 22:07:23 -0000
@@ -18,13 +18,14 @@
 #
 
 ifndef arch
-        ifeq ($(shell uname -m),i386)
+        uname_p:=$(shell uname -p)
+        ifeq ($(uname_p),i386)
                 export arch:=ia32
         endif
-        ifeq ($(shell uname -m),amd64)
+        ifeq ($(uname_p),amd64)
                 export arch:=intel64
         endif
-        ifeq ($(shell uname -m),macppc)
+        ifeq ($(uname_p),powerpc)
                 export arch:=ppc32
         endif
         ifeq ($(uname_p),sparc64)
-- 
Christian "naddy" Weisgerber                          na...@mips.inka.de

Reply via email to