mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-23 00:44:33 +00:00
chore(packaging): add requires of snappy, ps awk and jemalloc required
This commit is contained in:
@ -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
33
cmake/cpack_manage.cmake
Normal 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
1
debian/control
vendored
@ -9,6 +9,7 @@ Depends: binutils,
|
||||
net-tools,
|
||||
python3,
|
||||
procps,
|
||||
gawk,
|
||||
${misc:Depends},
|
||||
${shlibs:Depends}
|
||||
Breaks: mariadb-columnstore-libs,
|
||||
|
Reference in New Issue
Block a user