pg_config Makefile bogon...
От | Sean Chittenden |
---|---|
Тема | pg_config Makefile bogon... |
Дата | |
Msg-id | 20020908212712.GL26147@ninja1.internal обсуждение исходный текст |
Ответы |
Re: pg_config Makefile bogon...
|
Список | pgsql-bugs |
Attached is a quick patch that fixes making pg_config. When making the port on FreeBSD, it uses commas in the LDFLAGS section of the configure args and sed doesn't grok that so well. Patch just changes the delimiters. -sc Now: sed -e 's|@bindir@|/usr/local/bin|g' \ -e 's|@includedir@|/usr/local/include|g' \ -e 's|@includedir_server@|/usr/local/include/postgresql/server|g' \ -e 's|@libdir@|/usr/local/lib|g' \ -e 's|@pkglibdir@|/usr/local/lib/postgresql|g' \ -e "s|@configure@|'--enable-locale' '--enable-syslog' '--with-CXX' '--docdir=/usr/local/share/doc' '--with-libdir=/usr/local/lib''--with-includes=/usr/local/include' '--with-openssl=/usr' '--with-krb5=/usr/local' '--prefix=/usr/local''i386-portbld-freebsd4.7' 'CC=cc' 'CFLAGS=-O -pipe -g -O -I/usr/local/include' 'LDFLAGS= -L/usr/local/lib-lgnugetopt -L/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -lkrb5 -lk5crypto -lcom_err' 'build_alias=i386-portbld-freebsd4.7''host_alias=i386-portbld-freebsd4.7' 'target_alias=i386-portbld-freebsd4.7'|g" \ -e 's|@version@|7.3b1|g' \ pg_config.sh >pg_config chmod a+x pg_config Was: sed -e 's,@bindir@,/usr/local/bin,g' \ -e 's,@includedir@,/usr/local/include,g' \ -e 's,@includedir_server@,/usr/local/include/postgresql/server,g' \ -e 's,@libdir@,/usr/local/lib,g' \ -e 's,@pkglibdir@,/usr/local/lib/postgresql,g' \ -e "s,@configure@,'--enable-locale' '--enable-syslog' '--with-CXX' '--docdir=/usr/local/share/doc' '--with-libdir=/usr/local/lib''--with-includes=/usr/local/include' '--with-openssl=/usr' '--with-krb5=/usr/local' '--prefix=/usr/local''i386-portbld-freebsd4.7' 'CC=cc' 'CFLAGS=-O -pipe -g -O -I/usr/local/include' 'LDFLAGS= -L/usr/local/lib-lgnugetopt -L/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -lkrb5 -lk5crypto -lcom_err' 'build_alias=i386-portbld-freebsd4.7''host_alias=i386-portbld-freebsd4.7' 'target_alias=i386-portbld-freebsd4.7',g" \ -e 's,@version@,7.3b1,g' \ pg_config.sh >pg_config sed: 1: "s,@configure@,'--enable ...": bad flag in substitute command: '-' gmake[4]: *** [pg_config] Error 1 gmake[4]: *** Deleting file `pg_config' -- Sean Chittenden
Вложения
В списке pgsql-bugs по дате отправления: