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 a6a7579ba57 Fix sed -i compatibility in configure.ac
a6a7579ba57 is described below

commit a6a7579ba57c17407afd7a68928cf9dd36be913e
Author: zhangyue <[email protected]>
AuthorDate: Fri Apr 3 12:36:41 2026 +0800

    Fix sed -i compatibility in configure.ac
    
    Apply the same macOS BSD sed fix from 7e867f6 to
    configure.ac, so that users regenerating configure
    from source also get the compatibility fix.
---
 configure.ac | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 3024e4b9b65..ef31ccbd86c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3204,4 +3204,11 @@ AC_OUTPUT
 # The configure args contain '-Wl,-rpath,\$$ORIGIN`, when it falls
 # as a C literal string, it's invalid, so converting `\` to `\\`
 # to be correct for C program.
-sed -i '/define CONFIGURE_ARGS/s,\([[^\\]]\)\\\$\$,\1\\\\$$,g' 
src/include/pg_config.h
+case $build_os in
+darwin*)
+  sed -i '' '/define CONFIGURE_ARGS/s,\([[^\\]]\)\\\$\$,\1\\\\$$,g' 
src/include/pg_config.h
+  ;;
+*)
+  sed -i '/define CONFIGURE_ARGS/s,\([[^\\]]\)\\\$\$,\1\\\\$$,g' 
src/include/pg_config.h
+  ;;
+esac


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

Reply via email to