Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Mar 2021 00:28:33 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r567445 - in branches/2021Q1/devel/folly: . files
Message-ID:  <202103060028.1260SXHp058707@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Sat Mar  6 00:28:33 2021
New Revision: 567445
URL: https://svnweb.freebsd.org/changeset/ports/567445

Log:
  MFH: r567444
  
  devel/folly: fix build on powerpc64
  
  QuotientMultiSet doesn't work on big-endian architectures.
  
  Approved by:	tier 2 blanket

Added:
  branches/2021Q1/devel/folly/files/patch-folly_experimental_QuotientMultiSet.h
     - copied unchanged from r567444, head/devel/folly/files/patch-folly_experimental_QuotientMultiSet.h
Modified:
  branches/2021Q1/devel/folly/Makefile
Directory Properties:
  branches/2021Q1/   (props changed)

Modified: branches/2021Q1/devel/folly/Makefile
==============================================================================
--- branches/2021Q1/devel/folly/Makefile	Sat Mar  6 00:27:50 2021	(r567444)
+++ branches/2021Q1/devel/folly/Makefile	Sat Mar  6 00:28:33 2021	(r567445)
@@ -36,6 +36,7 @@ CMAKE_ON=	BUILD_SHARED_LIBS
 CMAKE_OFF=	FREEBSD_BUILD_EXAMPLES FREEBSD_FOLLY_USE_SYMBOLIZER # enabling symbolizer causes undefined symbol _r_debug, see https://github.com/facebook/folly/issues/1373
 
 CXXFLAGS+=	-fPIC
+CXXFLAGS_powerpc64=	-DFOLLY_QUOTIENT_MULTI_SET_SUPPORTED=0
 
 do-test:
 	@cd ${BUILD_WRKSRC} && \

Copied: branches/2021Q1/devel/folly/files/patch-folly_experimental_QuotientMultiSet.h (from r567444, head/devel/folly/files/patch-folly_experimental_QuotientMultiSet.h)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2021Q1/devel/folly/files/patch-folly_experimental_QuotientMultiSet.h	Sat Mar  6 00:28:33 2021	(r567445, copy of r567444, head/devel/folly/files/patch-folly_experimental_QuotientMultiSet.h)
@@ -0,0 +1,12 @@
+--- folly/experimental/QuotientMultiSet.h.orig	2021-03-06 00:00:24 UTC
++++ folly/experimental/QuotientMultiSet.h
+@@ -26,7 +26,9 @@
+ #include <folly/io/IOBufQueue.h>
+ 
+ // A 128-bit integer type is needed for fast division.
++#ifndef FOLLY_QUOTIENT_MULTI_SET_SUPPORTED
+ #define FOLLY_QUOTIENT_MULTI_SET_SUPPORTED FOLLY_HAVE_INT128_T
++#endif
+ 
+ #if FOLLY_QUOTIENT_MULTI_SET_SUPPORTED
+ 



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