1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

databases/cockroach: Unbreak, update to 2.0.7

PR:		236478
Submitted by:	Dmitri Goutnik <dg@syrec.org> (slightly modified)
Approved by:	maintainer timeout (freebsd@jen20.com, >4 weeks)
This commit is contained in:
Steve Wills 2019-04-12 20:03:33 +00:00
parent 4e6fff19cd
commit 0088edb80e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=498740
4 changed files with 47 additions and 7 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= cockroach
DISTVERSIONPREFIX= v
DISTVERSION= 2.0.6
DISTVERSION= 2.0.7
CATEGORIES= databases
MASTER_SITES= https://binaries.cockroachdb.com/
EXTRACT_SUFX= .src.tgz
@ -13,8 +13,6 @@ COMMENT= Cloud-native SQL database that survive disasters
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/src/github.com/cockroachdb/cockroach/LICENSE
BROKEN= fails to build
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= "Only supported on amd64"
@ -38,9 +36,11 @@ post-patch:
@${REINPLACE_CMD} -e 's|LDFLAGS: -ledit|LDFLAGS: -L${LOCALBASE}/lib -ledit|g' \
-e 's|CPPFLAGS: -Ishim|CPPFLAGS: -I${LOCALBASE}/include -Ishim|g' \
${WRKSRC}/src/github.com/cockroachdb/cockroach/vendor/github.com/knz/go-libedit/unix/editline_unix.go
@${REINPLACE_CMD} -e 's|build -i -o|build -o|g' \
${WRKSRC}/src/github.com/cockroachdb/cockroach/Makefile
do-build:
@${SETENV} -i PATH="${PATH}" \
@${SETENV} -i ${MAKE_ENV} \
${MAKE_CMD} -C ${WRKSRC} buildoss
do-install:

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1538829109
SHA256 (cockroach-v2.0.6.src.tgz) = fd1d966542565cbeca6c390db6b7afd98bc239e6e2a4602b3edff973be472097
SIZE (cockroach-v2.0.6.src.tgz) = 45566359
TIMESTAMP = 1552343259
SHA256 (cockroach-v2.0.7.src.tgz) = 0aa42e8a87d0b915d6e7a9df39e3bb32eac250c1afc25e37cc36585f3afa081a
SIZE (cockroach-v2.0.7.src.tgz) = 45565811

View File

@ -0,0 +1,11 @@
--- src/github.com/cockroachdb/cockroach/c-deps/rocksdb/CMakeLists.txt.orig 2019-04-12 18:43:38 UTC
+++ src/github.com/cockroachdb/cockroach/c-deps/rocksdb/CMakeLists.txt
@@ -209,7 +209,7 @@ if(HAVE_THREAD_LOCAL)
add_definitions(-DROCKSDB_SUPPORT_THREAD_LOCAL)
endif()
-option(FAIL_ON_WARNINGS "Treat compile warnings as errors" ON)
+option(FAIL_ON_WARNINGS "Treat compile warnings as errors" OFF)
if(FAIL_ON_WARNINGS)
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")

View File

@ -0,0 +1,29 @@
--- src/github.com/cockroachdb/cockroach/pkg/storage/engine/rocksdb.go.orig 2018-12-10 15:51:01 UTC
+++ src/github.com/cockroachdb/cockroach/pkg/storage/engine/rocksdb.go
@@ -1986,22 +1986,22 @@ func (r *rocksDBIterator) Valid() (bool, error) {
func (r *rocksDBIterator) Next() {
r.checkEngineOpen()
- r.setState(C.DBIterNext(r.iter, false /* skip_current_key_versions */))
+ r.setState(C.DBIterNext(r.iter, C.bool(false) /* skip_current_key_versions */))
}
func (r *rocksDBIterator) Prev() {
r.checkEngineOpen()
- r.setState(C.DBIterPrev(r.iter, false /* skip_current_key_versions */))
+ r.setState(C.DBIterPrev(r.iter, C.bool(false) /* skip_current_key_versions */))
}
func (r *rocksDBIterator) NextKey() {
r.checkEngineOpen()
- r.setState(C.DBIterNext(r.iter, true /* skip_current_key_versions */))
+ r.setState(C.DBIterNext(r.iter, C.bool(true) /* skip_current_key_versions */))
}
func (r *rocksDBIterator) PrevKey() {
r.checkEngineOpen()
- r.setState(C.DBIterPrev(r.iter, true /* skip_current_key_versions */))
+ r.setState(C.DBIterPrev(r.iter, C.bool(true) /* skip_current_key_versions */))
}
func (r *rocksDBIterator) Key() MVCCKey {