Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Sep 2019 19:12:51 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r511027 - in head/databases/p5-Tie-LevelDB: . files
Message-ID:  <201909031912.x83JCpmp050984@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Tue Sep  3 19:12:51 2019
New Revision: 511027
URL: https://svnweb.freebsd.org/changeset/ports/511027

Log:
  Fix build on powerpc64
  
  PR:		240088
  Submitted by:	pkubaj

Added:
  head/databases/p5-Tie-LevelDB/files/
  head/databases/p5-Tie-LevelDB/files/patch-port-atomic_pointer.h   (contents, props changed)
Modified:
  head/databases/p5-Tie-LevelDB/Makefile

Modified: head/databases/p5-Tie-LevelDB/Makefile
==============================================================================
--- head/databases/p5-Tie-LevelDB/Makefile	Tue Sep  3 19:12:45 2019	(r511026)
+++ head/databases/p5-Tie-LevelDB/Makefile	Tue Sep  3 19:12:51 2019	(r511027)
@@ -14,7 +14,7 @@ COMMENT=	Perl Interface to the Google LevelDB NoSQL da
 LICENSE=	ART10 GPLv1+
 LICENSE_COMB=	dual
 
-NOT_FOR_ARCHS=		aarch64 powerpc powerpc64 powerpcspe
+NOT_FOR_ARCHS=		aarch64 powerpc powerpcspe
 NOT_FOR_ARCHS_REASON=	does not build: Please implement AtomicPointer for this platform
 BROKEN_sparc64=	does not build: unrecognized command line options
 
@@ -29,6 +29,8 @@ MAKE_ARGS=	CC="${CXX}"
 
 .if ${CHOSEN_COMPILER_TYPE} == clang
 CFLAGS+=	-Wno-reserved-user-defined-literal
+.else
+CFLAGS+=	-DLEVELDB_CSTDATOMIC_PRESENT
 .endif
 
 post-patch:

Added: head/databases/p5-Tie-LevelDB/files/patch-port-atomic_pointer.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/p5-Tie-LevelDB/files/patch-port-atomic_pointer.h	Tue Sep  3 19:12:51 2019	(r511027)
@@ -0,0 +1,11 @@
+--- port/atomic_pointer.h.orig	2019-08-25 00:44:43 UTC
++++ port/atomic_pointer.h
+@@ -21,7 +21,7 @@
+ 
+ #include <stdint.h>
+ #ifdef LEVELDB_CSTDATOMIC_PRESENT
+-#include <cstdatomic>
++#include <atomic>
+ #endif
+ #ifdef OS_WIN
+ #include <windows.h>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909031912.x83JCpmp050984>