Source: clickhouse Version: 18.16.1+ds-7.2 Severity: normal Tags: patch When a git repository is present, upstream CMakeLists.txt is checking whether the submodules (which contains 3rd party libraries). As those are stripped in Debian, the build fails.
Attached quilt patch comments out the CMakeList.txt section which checks this, so working with the git repository for e.g bug triaging / patch creation becomes easier. -- tobi
Description: Make CMakeLists.txt ignoring git submodules. The embedded boost is removed, so CMake will fail believing that stuff is missing. Author: Tobias Frost <t...@debian.org> Forwarded: not-needed, Debian specific. Reviewed-by: <name and email of a reviewer, optional> Last-Update: 2022-10-29 <YYYY-MM-DD, last update of the meta-information, optional> --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,10 +17,11 @@ message (WARNING "You are using an unsupported compiler. Compilation has only been tested with Clang 5+ and GCC 7+.") endif () -# Check that submodules are present only if source was downloaded with git -if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git" AND NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/boost/boost") - message (FATAL_ERROR "Submodules are not initialized. Run\n\tgit submodule update --init --recursive") -endif () +# Interferes when bulding Debian package from git repository. +## Check that submodules are present only if source was downloaded with git +#if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git" AND NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/boost/boost") +# message (FATAL_ERROR "Submodules are not initialized. Run\n\tgit submodule update --init --recursive") +#endif () # Write compile_commands.json set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
signature.asc
Description: PGP signature