Skip to content

Commit 7c0df9a

Browse files
committed
update
1 parent 8f76bdb commit 7c0df9a

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
13
1+
9

devops/build/packaging/deb/ubuntu22.04/rules

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,16 @@ include /usr/share/dpkg/default.mk
1919
dh $@ --parallel
2020

2121
gpinstall:
22-
make install DESTDIR=${DEBIAN_DESTINATION} prefix=
22+
# If the build staging directory is empty, copy from the pre-installed location.
23+
# In CI, BUILD_DESTINATION already points here so it will be populated.
24+
# For local manual packaging, copy from the installed Cloudberry path.
25+
@mkdir -p ${DEBIAN_DESTINATION}
26+
@if [ -z "$$(ls -A ${DEBIAN_DESTINATION} 2>/dev/null)" ]; then \
27+
echo "Copying pre-built binaries from ${CBDB_BIN_PATH} to ${DEBIAN_DESTINATION}..."; \
28+
cp -a ${CBDB_BIN_PATH}/* ${DEBIAN_DESTINATION}/; \
29+
else \
30+
echo "Build staging directory already populated, skipping copy."; \
31+
fi
2332
# Copy Apache compliance files into the build staging directory
2433
cp -a LICENSE NOTICE DISCLAIMER ${DEBIAN_DESTINATION}/
2534
cp -a licenses ${DEBIAN_DESTINATION}/

0 commit comments

Comments
 (0)