Created attachment 185586 [details]
Tested with portlint, Poudriere on 11.1-RELEASE.
I couldn't build it on CURRENT, please fix it:
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:
Date: Mon Aug 21 14:11:34 UTC 2017
New revision: 448474
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.
Submitted by: James Nugent <email@example.com>
Approved by: mat (mentor)
Differential Revision: https://reviews.freebsd.org/D12088