From 558b72cab5df7b3a1f27b4b16bcfb32058986283 Mon Sep 17 00:00:00 2001 From: fairyfar Date: Mon, 16 Mar 2026 17:28:12 +0800 Subject: [PATCH] Fix syntax error in the bash script regarding LD_LIBRARY_PATH --- .github/workflows/coverity.yml | 2 +- .github/workflows/sonarqube.yml | 2 +- devops/build/automation/cloudberry/scripts/build-cloudberry.sh | 2 +- .../build/automation/cloudberry/scripts/configure-cloudberry.sh | 2 +- .../build/automation/cloudberry/scripts/unittest-cloudberry.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 4f7f74d54b2..2b6a81c91f4 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -90,7 +90,7 @@ jobs: /usr/local/cloudberry-db/lib sudo chown -R gpadmin:gpadmin /usr/local/cloudberry-db su - gpadmin -c "cd $WORKSPACE" - export LD_LIBRARY_PATH=/usr/local/cloudberry-db/lib:LD_LIBRARY_PATH + export LD_LIBRARY_PATH=/usr/local/cloudberry-db/lib:${LD_LIBRARY_PATH:-""} export PATH=$WORKSPACE/coverity_tool/bin:$PATH ./configure --prefix=/usr/local/cloudberry-db \ --disable-external-fts \ diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index e67c2d96a54..93379d184ea 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -94,7 +94,7 @@ jobs: /usr/local/xerces-c/lib/libxerces-c-3.3.so \ /usr/local/cloudberry-db/lib sudo chown -R gpadmin:gpadmin /usr/local/cloudberry-db - export LD_LIBRARY_PATH=/usr/local/cloudberry-db/lib:LD_LIBRARY_PATH + export LD_LIBRARY_PATH=/usr/local/cloudberry-db/lib:${LD_LIBRARY_PATH:-""} ./configure --prefix=/usr/local/cloudberry-db \ --disable-external-fts \ --enable-gpcloud \ diff --git a/devops/build/automation/cloudberry/scripts/build-cloudberry.sh b/devops/build/automation/cloudberry/scripts/build-cloudberry.sh index efa061a0f83..ca4c73d55cb 100755 --- a/devops/build/automation/cloudberry/scripts/build-cloudberry.sh +++ b/devops/build/automation/cloudberry/scripts/build-cloudberry.sh @@ -71,7 +71,7 @@ init_environment "Cloudberry Build Script" "${BUILD_LOG}" # Set environment log_section "Environment Setup" -export LD_LIBRARY_PATH=${BUILD_DESTINATION}/lib:LD_LIBRARY_PATH +export LD_LIBRARY_PATH=${BUILD_DESTINATION}/lib:${LD_LIBRARY_PATH:-""} log_section_end "Environment Setup" # Build process diff --git a/devops/build/automation/cloudberry/scripts/configure-cloudberry.sh b/devops/build/automation/cloudberry/scripts/configure-cloudberry.sh index 32a9f3d8657..2d7ad04aed8 100755 --- a/devops/build/automation/cloudberry/scripts/configure-cloudberry.sh +++ b/devops/build/automation/cloudberry/scripts/configure-cloudberry.sh @@ -131,7 +131,7 @@ log_section_end "Initial Setup" # Set environment log_section "Environment Setup" -export LD_LIBRARY_PATH=${BUILD_DESTINATION}/lib:LD_LIBRARY_PATH +export LD_LIBRARY_PATH=${BUILD_DESTINATION}/lib:${LD_LIBRARY_PATH:-""} log_section_end "Environment Setup" # Add debug options if ENABLE_DEBUG is set to "true" diff --git a/devops/build/automation/cloudberry/scripts/unittest-cloudberry.sh b/devops/build/automation/cloudberry/scripts/unittest-cloudberry.sh index 97107ea1a9f..69536f0067f 100755 --- a/devops/build/automation/cloudberry/scripts/unittest-cloudberry.sh +++ b/devops/build/automation/cloudberry/scripts/unittest-cloudberry.sh @@ -56,7 +56,7 @@ init_environment "Cloudberry Unittest Script" "${UNITTEST_LOG}" # Set environment log_section "Environment Setup" -export LD_LIBRARY_PATH=${BUILD_DESTINATION}/lib:LD_LIBRARY_PATH +export LD_LIBRARY_PATH=${BUILD_DESTINATION}/lib:${LD_LIBRARY_PATH:-""} log_section_end "Environment Setup" # Unittest process