git: 987847e500b9 - main - math/oink: Take back BROKEN_i386, instead attempt to fix on i386

Yuri Victorovich yuri at FreeBSD.org
Sat Sep 4 04:12:02 UTC 2021


The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=987847e500b919e7c9efffffd0b0ab697ecf1ab3

commit 987847e500b919e7c9efffffd0b0ab697ecf1ab3
Author:     Yuri Victorovich <yuri at FreeBSD.org>
AuthorDate: 2021-09-04 04:09:28 +0000
Commit:     Yuri Victorovich <yuri at FreeBSD.org>
CommitDate: 2021-09-04 04:09:28 +0000

    math/oink: Take back BROKEN_i386, instead attempt to fix on i386
    
    ... by correcting the port patch. It had ifdef(__amd64__) for the
    mfence() function, but __i386__ was missing. This is likely why
    it is breaking on i386.
---
 math/oink/Makefile               | 2 --
 math/oink/files/patch-src_lace.h | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/math/oink/Makefile b/math/oink/Makefile
index 4e366d421d1d..0acc7592419d 100644
--- a/math/oink/Makefile
+++ b/math/oink/Makefile
@@ -12,8 +12,6 @@ COMMENT=	Modern parity game solvers written in C++
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BROKEN_i386=	error: use of undeclared identifier 'mfence'
-
 LIB_DEPENDS=	libboost_iostreams.so:devel/boost-libs
 
 USES=		cmake:testing
diff --git a/math/oink/files/patch-src_lace.h b/math/oink/files/patch-src_lace.h
index 86d901ac1df4..f456cff65c0f 100644
--- a/math/oink/files/patch-src_lace.h
+++ b/math/oink/files/patch-src_lace.h
@@ -4,7 +4,7 @@
  #endif
  
  #ifndef mfence
-+#ifdef __amd64__
++#if defined(__amd64__) || defined(__i386__)
  #define mfence() { asm volatile("mfence" ::: "memory"); }
 +#elif defined(__powerpc__)
 +#define mfence() { asm volatile("sync" ::: "memory"); }


More information about the dev-commits-ports-main mailing list