zbackup: work around CHECK macro collision
Required for compatibility with protobuf 3.x Closes #4144. Signed-off-by: Andrew Janke <janke@eilonwy.local>
This commit is contained in:
parent
ea8c30a1a3
commit
e8ea63f0ea
1 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,11 @@ class Zbackup < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
# Avoid collision with protobuf 3.x CHECK macro
|
||||
inreplace ["backup_creator.cc", "check.hh", "chunk_id.cc", "chunk_storage.cc",
|
||||
"compression.cc", "encrypted_file.cc", "encryption.cc", "encryption_key.cc", "mt.cc",
|
||||
"tests/bundle/test_bundle.cc", "tests/encrypted_file/test_encrypted_file.cc",
|
||||
"unbuffered_file.cc", ], /\bCHECK\b/, "ZBCHECK"
|
||||
system "cmake", ".", *std_cmake_args
|
||||
system "make", "install"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue