chore(packaging): add requires of snappy, ps awk and jemalloc required

This commit is contained in:
Leonid Fedorov
2025-06-10 11:32:01 +00:00
committed by drrtuy
parent a0c861adbb
commit 576f4fb81c
3 changed files with 35 additions and 0 deletions

View File

@ -47,6 +47,7 @@ include(columnstore_version)
include(configureEngine)
include(compiler_flags)
include(misc)
include(cpack_manage)
set(COMPONENTS
dbcon/mysql

33
cmake/cpack_manage.cmake Normal file
View File

@ -0,0 +1,33 @@
macro(columnstore_append_for_cpack var_name)
# Get current value from parent scope or use empty string
if(DEFINED ${var_name})
set(current_val "${${var_name}}")
else()
set(current_val "")
endif()
# Process each argument to append
foreach(arg IN LISTS ARGN)
if(current_val)
# If not empty, add comma before new item
set(current_val "${current_val}, ${arg}")
else()
# If empty, just add the item
set(current_val "${arg}")
endif()
endforeach()
# Set back in parent scope
set(${var_name}
"${current_val}"
PARENT_SCOPE
)
endmacro()
macro(columnstore_add_rpm_deps)
columnstore_append_for_cpack(CPACK_RPM_columnstore-engine_PACKAGE_REQUIRES ${ARGN})
endmacro()
if(RPM)
columnstore_add_rpm_deps("snappy" "jemalloc" "procps-ng" "gawk")
endif()

1
debian/control vendored
View File

@ -9,6 +9,7 @@ Depends: binutils,
net-tools,
python3,
procps,
gawk,
${misc:Depends},
${shlibs:Depends}
Breaks: mariadb-columnstore-libs,