Bug 221635 - [NEW PORT] databases/cockroach: Open source SQL database
Summary: [NEW PORT] databases/cockroach: Open source SQL database
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Kirill Ponomarev
Depends on:
Reported: 2017-08-19 19:33 UTC by James Nugent
Modified: 2017-08-21 14:14 UTC (History)
2 users (show)

See Also:

diff (6.54 KB, patch)
2017-08-19 19:33 UTC, James Nugent
no flags Details | Diff
Updated patch working on 12.0-CURRENT (7.81 KB, patch)
2017-08-20 18:45 UTC, James Nugent
no flags Details | Diff
Tested on 11.1-RELEASE and 12.0-CURRENT (8.19 KB, patch)
2017-08-21 11:23 UTC, James Nugent
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Nugent 2017-08-19 19:33:42 UTC
Created attachment 185586 [details]

Tested with portlint, Poudriere on 11.1-RELEASE.
Comment 1 Kirill Ponomarev freebsd_committer 2017-08-20 12:17:45 UTC
I couldn't build it on CURRENT, please fix it:

Comment 2 James Nugent 2017-08-20 18:45:32 UTC
Created attachment 185612 [details]
Updated patch working on 12.0-CURRENT
Comment 3 James Nugent 2017-08-20 18:45:46 UTC
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.
Comment 4 James Nugent 2017-08-21 11:23:28 UTC
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.
Comment 5 commit-hook freebsd_committer 2017-08-21 14:12:04 UTC
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

  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