Hi,

> http://build-failures.rhaalovely.net/powerpc/2019-09-17/net/fastnetmon.log

Upstream introduced since 1.1.4 a cmake flag allowing the use of
__atomic* functions instead of unsupported __sync* ones. 

Once provided, it builds fine on macppc [0]. I have not bumped
REVISION, it never had a package built before that.

OK? 

Charlène.


[0] https://bin.charlenew.xyz/fastnetmon-1.1.4.log


Index: Makefile
===================================================================
RCS file: /cvs/ports/net/fastnetmon/Makefile,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 Makefile
--- Makefile    12 Jul 2019 20:48:26 -0000      1.6
+++ Makefile    6 Oct 2019 13:01:44 -0000
@@ -40,6 +40,13 @@ WRKSRC =             ${WRKDIST}/src
 
 NO_TEST =              Yes
 
+# Use __atomic* function instead of __sync* ones that are not fully supported
+# on these archs
+.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "hppa"
+CONFIGURE_ARGS +=      -DUSE_NEW_ATOMIC_BUILTINS=On
+WANTLIB +=             atomic
+.endif
+
 pre-configure:
        ${SUBST_CMD} ${WRKSRC}/CMakeLists.txt
        sed -i -e 's,/var/log,&/fastnetmon,g;' \

Reply via email to