Skip to content

Commit e7b45e2

Browse files
committed
Stop installing diskquota build-info file
Remove generation and installation of diskquota-build-info from diskquota to avoid writing extra files into the install prefix root (e.g. $GPHOME or /usr/local/cloudberry-db). Drop the unused CMake helper cmake/BuildInfo.cmake and remove cmake/Git.cmake and its invocation now that no build-info is produced.
1 parent ba0633e commit e7b45e2

File tree

3 files changed

+0
-59
lines changed

3 files changed

+0
-59
lines changed

gpcontrib/diskquota/CMakeLists.txt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ endif()
1212
# generate 'compile_commands.json'
1313
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1414

15-
# Retrieve repository information
16-
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Git.cmake)
17-
GitHash_Get(DISKQUOTA_GIT_HASH)
18-
1915
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Gpdb.cmake)
2016

2117

@@ -154,19 +150,6 @@ add_custom_target(create_artifact
154150
${CMAKE_COMMAND} -E tar czvf ${artifact_NAME} "${tgz_NAME}.tar.gz")
155151
# packing end
156152

157-
# Create build-info
158-
# The diskquota-build-info shouldn't be copied to GPDB release by install_gpdb_component
159-
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/BuildInfo.cmake)
160-
set(build_info_PATH ${CMAKE_CURRENT_BINARY_DIR}/diskquota-build-info)
161-
BuildInfo_Create(${build_info_PATH}
162-
VARS
163-
DISKQUOTA_GIT_HASH
164-
DISKQUOTA_VERSION
165-
GP_MAJOR_VERSION
166-
GP_VERSION
167-
CMAKE_BUILD_TYPE)
168-
# Create build-info end
169-
170153
# Add installcheck targets
171154
add_subdirectory(tests)
172155
add_subdirectory(upgrade_test)
@@ -175,4 +158,3 @@ add_subdirectory(upgrade_test)
175158
install(PROGRAMS "cmake/install_gpdb_component" DESTINATION ".")
176159
install(FILES ${diskquota_DDL} DESTINATION "share/postgresql/extension/")
177160
install(TARGETS diskquota DESTINATION "lib/postgresql/")
178-
install(FILES ${build_info_PATH} DESTINATION ".")

gpcontrib/diskquota/cmake/BuildInfo.cmake

Lines changed: 0 additions & 32 deletions
This file was deleted.

gpcontrib/diskquota/cmake/Git.cmake

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)