Date: Sat, 12 Oct 2019 15:46:07 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r514338 - in head/misc/openvdb: . files Message-ID: <201910121546.x9CFk7Gl007465@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Sat Oct 12 15:46:07 2019 New Revision: 514338 URL: https://svnweb.freebsd.org/changeset/ports/514338 Log: misc/openvdb: fix build on GCC architectures Compiling on GCC architectures fails: /wrkdirs/usr/ports/misc/openvdb/work/openvdb-6.1.0/openvdb/points/AttributeSet.cc: In member function 'openvdb::v6_1::points::AttributeSet::Descriptor::Ptr openvdb::v6_1::points::AttributeSet::Descriptor::duplicateDrop(const std::vector<long unsigned int>&) const': /wrkdirs/usr/ports/misc/openvdb/work/openvdb-6.1.0/openvdb/points/AttributeSet.cc:875:59: error: 'CHAR_BIT' was not declared in this scope 875 | const size_t GROUP_BITS = sizeof(GroupType) * CHAR_BIT; | ^~~~~~~~ /wrkdirs/usr/ports/misc/openvdb/work/openvdb-6.1.0/openvdb/points/AttributeSet.cc:35:1: note: 'CHAR_BIT' is defined in header '<climits>'; did you forget to '#include <climits>'? 34 | #include "AttributeGroup.h" +++ |+#include <climits> 35 | While here, add USES=xorg for TOOLS option. PR: 240630 Approved by: linimon (mentor), yuri (maintainer timeout) Added: head/misc/openvdb/files/patch-openvdb_points_AttributeSet.cc (contents, props changed) Modified: head/misc/openvdb/Makefile Modified: head/misc/openvdb/Makefile ============================================================================== --- head/misc/openvdb/Makefile Sat Oct 12 15:43:37 2019 (r514337) +++ head/misc/openvdb/Makefile Sat Oct 12 15:46:07 2019 (r514338) @@ -40,7 +40,7 @@ TOOLS_CMAKE_BOOL= OPENVDB_BUILD_BINARIES OPENVDB_BUILD OPENVDB_BUILD_VDB_RENDER OPENVDB_BUILD_VDB_VIEW TOOLS_LIB_DEPENDS= libglfw.so:graphics/glfw \ libIlmImf.so:graphics/openexr -TOOLS_USES= gl +TOOLS_USES= gl xorg TOOLS_USE= GL=gl,glu XORG=x11,xcursor,xi,xinerama,xrandr,xxf86vm DOCS_CMAKE_BOOL= OPENVDB_BUILD_DOCS Added: head/misc/openvdb/files/patch-openvdb_points_AttributeSet.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/openvdb/files/patch-openvdb_points_AttributeSet.cc Sat Oct 12 15:46:07 2019 (r514338) @@ -0,0 +1,10 @@ +--- openvdb/points/AttributeSet.cc.orig 2019-09-16 16:50:50 UTC ++++ openvdb/points/AttributeSet.cc +@@ -34,6 +34,7 @@ + #include "AttributeGroup.h" + + #include <algorithm> // std::equal ++#include <climits> // CHAR_BIT + #include <string> + + namespace openvdb {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910121546.x9CFk7Gl007465>