Files
zeekay 9a90943b8f merge: ClickHouse 26.7.1.1315-stable into datastore — preserve debrand
13,838 upstream commits, forward from the 26.6.1.1 fork point. 129 conflicts:
37 resolved mechanically (take upstream's file, re-apply the brand sweep) and
92 by hand where our fork and upstream had both changed the same code.

The rule throughout: upstream owns the engine, we own the naming and a small set
of deliberate deviations. Never resolve by discarding an upstream change — a
dropped rename or a missed new parameter becomes a compile error a thousand
files away.

Deviations verified intact after the merge:
  ENABLE_XRAY still defaults OFF        (CMakeLists.txt:105)
  X-Datastore-User read by the server   (authenticateUserByHTTP.cpp)
  X-ClickHouse-* in src/                0
  hanzo/research                        present
  system.*_log retention bound          present
  ArrowFlight rip                       held against upstream re-adding it

Two things worth naming, because neither shows up as a conflict:

  src/CMakeLists.txt gained an UNGUARDED
  `add_object_library(datastore_storages_arrowflight Storages/ArrowFlight)` from
  upstream, for a directory our gRPC rip deleted. It sat outside every conflict
  hunk, so a resolver reading only the markers would sail straight past it into
  a CMake configure error. Removed; the Server/ArrowFlight sibling at line 474
  stays because it is inside `if (TARGET ch_contrib::arrow_flight)`.

  The brand sweep had rewritten github.com/ClickHouse/ClickHouse issue links to
  github.com/Datastore/Datastore — a dead host. Those point at upstream's own
  tracker and are restored, alongside the contributors list, sql.clickhouse.com
  and the ClickHouse Inc copyright: attribution is theirs, not ours to rename.

base/glibc-compatibility/memcpy/memcpy.h is deleted, not kept: upstream dropped
it for LLVM-libc's, and our only change to it was a comment rebrand.
2026-07-26 14:47:43 -07:00

44 lines
1.5 KiB
CMake

if (NOT(
CMAKE_HOST_SYSTEM_NAME STREQUAL CMAKE_SYSTEM_NAME
AND CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL CMAKE_SYSTEM_PROCESSOR
AND NOT USE_MUSL
)
)
set (COMPRESSOR "${PROJECT_BINARY_DIR}/native/utils/self-extracting-executable/pre_compressor")
set (DECOMPRESSOR "--decompressor=${PROJECT_BINARY_DIR}/utils/self-extracting-executable/decompressor")
else ()
set (COMPRESSOR "${PROJECT_BINARY_DIR}/utils/self-extracting-executable/compressor")
endif ()
set(self_extracting_deps)
add_custom_target (datastore-self-extracting ALL
${CMAKE_COMMAND} -E remove datastore
COMMAND ${COMPRESSOR} ${DECOMPRESSOR} datastore ../datastore
DEPENDS datastore compressor
)
list(APPEND self_extracting_deps datastore-self-extracting)
if (BUILD_STRIPPED_BINARY)
add_custom_target (datastore-self-extracting-stripped ALL
${CMAKE_COMMAND} -E remove datastore-stripped
COMMAND ${COMPRESSOR} ${DECOMPRESSOR} datastore-stripped ../datastore-stripped
DEPENDS datastore-stripped compressor
)
list(APPEND self_extracting_deps datastore-self-extracting-stripped)
endif()
if (BUILD_STANDALONE_KEEPER)
add_custom_target (self-extracting-keeper ALL
${CMAKE_COMMAND} -E remove datastore-keeper
COMMAND ${COMPRESSOR} ${DECOMPRESSOR} datastore-keeper ../datastore-keeper
DEPENDS compressor datastore-keeper
)
list(APPEND self_extracting_deps self-extracting-keeper)
endif()
add_custom_target (self-extracting ALL
DEPENDS ${self_extracting_deps}
)