Created attachment 185586 [details] diff Tested with portlint, Poudriere on 11.1-RELEASE.
I couldn't build it on CURRENT, please fix it: http://pkg.krion.cc/data/12amd64-default/2017-08-20_14h14m52s/logs/errors/cockroach-1.0.4.log
Created attachment 185612 [details] Updated patch working on 12.0-CURRENT
It seems a new warning, -Wunused-lambda-capture, has appeared or been enabled by default between the 11.1-RELEASE version of Clang and that in 12.0-CURRENT. The error is during the compilation of RockDB and was fixed upstream in a later version, simply by removing the unnecessary variable capture. Because of the slightly unusual way in which the RocksDB dependency is pulled into releases of CockroachDB, I've instead patched the build flags for just RocksDB to disable warnings as errors, as patching the offending file during the usual patch step is difficult, since it is part of an archive which does not get expanded until later in the build. I'm not certain this is the best way to approach this, but I can't find anything analogous in either the handbook or other ports.
Created attachment 185636 [details] Tested on 11.1-RELEASE and 12.0-CURRENT In my edits the patch to `databases/Makefile` got lost - the latest patch includes that and the fix for 12.0-CURRENT.
A commit references this bug: Author: krion Date: Mon Aug 21 14:11:34 UTC 2017 New revision: 448474 URL: https://svnweb.freebsd.org/changeset/ports/448474 Log: CockroachDB is a distributed SQL database built on a transactional and strongly-consistent key-value store. It scales horizontally; survives disk, machine, rack, and even datacenter failures with minimal latency disruption and no manual intervention; supports strongly-consistent ACID transactions; and provides a familiar SQL API for structuring, manipulating, and querying data. CockroachDB is inspired by Google's Spanner and F1 technologies, and it's completely open source. PR: 221635 Submitted by: James Nugent <freebsd@jen20.com> Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D12088 Changes: head/GIDs head/UIDs head/databases/Makefile head/databases/cockroach/ head/databases/cockroach/Makefile head/databases/cockroach/distinfo head/databases/cockroach/files/ head/databases/cockroach/files/cockroach.in head/databases/cockroach/pkg-descr