apache / cloudberry

Cloudberry Database - Open source alternative to Greenplum Database. Created by the original Greenplum developers.
https://cloudberrydb.org/
Apache License 2.0
398 stars 98 forks source link

[Bug] config error: sed: 1: "src/include/pg_config.h": unterminated substitute pattern #28

Open avamingli opened 1 year ago

avamingli commented 1 year ago

Cloudberry Database version

No response

What happened

configure: creating ./config.status
sed: 1: "src/include/pg_config.h": unterminated substitute pattern
make: *** [config.status] Error 1
make: *** Deleting file `config.status'

What you think should happen instead

No response

How to reproduce

config on a non Unix-like OS

Operating System

Darwin Kernel Version 22.5.0

Anything else

No response

Are you willing to submit PR?

Code of Conduct

avamingli commented 1 year ago

This is added by CBDB by a commit Fix configure.ac for escaping string in pg_config.h try to resolve a C string issue and it has been squashed into CBDB init commit.

sed -i '/define CONFIGURE_ARGS/s,\([[^\\]]\)\\\$\$,\1\\\\$$,g' src/include/pg_config.h

The sed preg match seems not right, at least not for Darwin OS.