cloudberry icon indicating copy to clipboard operation
cloudberry copied to clipboard

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

Open avamingli opened this issue 2 years ago • 1 comments

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?

  • [X] Yes, I am willing to submit a PR!

Code of Conduct

avamingli avatar Jul 21 '23 01:07 avamingli

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.

avamingli avatar Jul 21 '23 01:07 avamingli