Skip to content

Commit 90cac6b

Browse files
fix(packaging): remove server version from cmapi version and package filename
1 parent 475dade commit 90cac6b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

cmapi/CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ if(RPM)
168168

169169
set(CPACK_RPM_PACKAGE_OBSOLETES "mariadb-columnstore-cmapi")
170170
set(CPACK_RPM_PACKAGE_REQUIRES "curl")
171-
string(REPLACE "-" "_" SERVER_VERSION ${SERVER_VERSION})
172171
get_linux_lsb_release_information()
173172

174173
string(REGEX MATCH "^[0-9]+" OS_VERSION_MAJOR "${LSB_RELEASE_VERSION_SHORT}")
@@ -185,12 +184,12 @@ if(RPM)
185184
message(STATUS "OS_VERSION ${OS_VERSION}")
186185

187186
set(CPACK_RPM_PACKAGE_FILE_NAME
188-
"${CPACK_PACKAGE_NAME}-${SERVER_VERSION}_${CMAPI_PACKAGE_VERSION}-${CMAPI_VERSION_RELEASE}.${OS_VERSION}.${CMAKE_HOST_SYSTEM_PROCESSOR}"
187+
"${CPACK_PACKAGE_NAME}-${CMAPI_PACKAGE_VERSION}-${CMAPI_VERSION_RELEASE}.${OS_VERSION}.${CMAKE_HOST_SYSTEM_PROCESSOR}"
189188
)
190189
message(STATUS "CPACK_RPM_PACKAGE_FILE_NAME ${CPACK_RPM_PACKAGE_FILE_NAME}")
191190
set(CPACK_PACKAGE_FILE_NAME ${CPACK_RPM_PACKAGE_FILE_NAME})
192191
# version and release the same as in Columnstore engine package
193-
set(CPACK_RPM_PACKAGE_VERSION "${SERVER_VERSION}_${CMAPI_PACKAGE_VERSION}")
192+
set(CPACK_RPM_PACKAGE_VERSION "${CMAPI_PACKAGE_VERSION}")
194193
set(CPACK_RPM_PACKAGE_RELEASE "${CMAPI_VERSION_RELEASE}.${OS_VERSION}")
195194
endif()
196195

@@ -214,7 +213,6 @@ if(DEB)
214213

215214
set(CPACK_DEBIAN_PACKAGE_REPLACES "mariadb-columnstore-cmapi")
216215
set(CPACK_DEBIAN_PACKAGE_DEPENDS "curl")
217-
string(REPLACE "-" "." SERVER_VERSION ${SERVER_VERSION})
218216
set(PATCHLEVEL "+maria")
219217
get_linux_lsb_release_information()
220218
string(REGEX MATCH "^..." LSBID ${LSB_RELEASE_ID_SHORT})
@@ -228,12 +226,12 @@ if(DEB)
228226
)
229227
message(STATUS "ARCHITECTURE detected ${ARCHITECTURE}")
230228
set(CPACK_DEBIAN_PACKAGE_FILE_NAME
231-
"${CPACK_PACKAGE_NAME}_${SERVER_VERSION}-${CMAPI_PACKAGE_VERSION}${PATCHLEVEL}~${LSBID}${LSBVERSION}_${ARCHITECTURE}"
229+
"${CPACK_PACKAGE_NAME}_${CMAPI_PACKAGE_VERSION}${PATCHLEVEL}~${LSBID}${LSBVERSION}_${ARCHITECTURE}"
232230
)
233231
message(STATUS "CPACK_DEBIAN_PACKAGE_FILE_NAME ${CPACK_DEBIAN_PACKAGE_FILE_NAME}")
234232
set(CPACK_PACKAGE_FILE_NAME ${CPACK_DEBIAN_PACKAGE_FILE_NAME})
235233
# making possible to store several cmapi packages in one repo (same version as in Columnstore engine package)
236-
set(CPACK_DEBIAN_PACKAGE_VERSION "${SERVER_VERSION}-${CMAPI_PACKAGE_VERSION}${PATCHLEVEL}~${LSBID}${LSBVERSION}")
234+
set(CPACK_DEBIAN_PACKAGE_VERSION "${CMAPI_PACKAGE_VERSION}${PATCHLEVEL}~${LSBID}${LSBVERSION}")
237235
endif()
238236

239237
include(CPack)

0 commit comments

Comments
 (0)