File tree Expand file tree Collapse file tree
devops/build/packaging/deb/ubuntu22.04 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- 13
1+ 9
Original file line number Diff line number Diff line change @@ -19,7 +19,16 @@ include /usr/share/dpkg/default.mk
1919 dh $@ --parallel
2020
2121gpinstall :
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} /
You can’t perform that action at this time.
0 commit comments