This is an automated email from the ASF dual-hosted git repository.

djwang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/main by this push:
     new 6c37f8f6732 Fix syntax error in the bash script regarding 
LD_LIBRARY_PATH
6c37f8f6732 is described below

commit 6c37f8f6732bbe18387b5500838409153793ec13
Author: fairyfar <[email protected]>
AuthorDate: Mon Mar 16 17:28:12 2026 +0800

    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 +-
 devops/build/automation/cloudberry/scripts/configure-cloudberry.sh | 2 +-
 devops/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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to