From owner-svn-ports-head@freebsd.org Sat Oct 12 15:46:08 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 49EB1139D68; Sat, 12 Oct 2019 15:46:08 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46r8LS1FDBz4F3G; Sat, 12 Oct 2019 15:46:08 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0CD385BFC; Sat, 12 Oct 2019 15:46:08 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x9CFk7wD007467; Sat, 12 Oct 2019 15:46:07 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x9CFk7Gl007465; Sat, 12 Oct 2019 15:46:07 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <201910121546.x9CFk7Gl007465@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Sat, 12 Oct 2019 15:46:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r514338 - in head/misc/openvdb: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: in head/misc/openvdb: . files X-SVN-Commit-Revision: 514338 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Oct 2019 15:46:08 -0000 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&) 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 ''; did you forget to '#include '? 34 | #include "AttributeGroup.h" +++ |+#include 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 // std::equal ++#include // CHAR_BIT + #include + + namespace openvdb {