pg_config Makefile bogon...

From: Sean Chittenden <sean(at)chittenden(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: pg_config Makefile bogon...
Date: 2002-09-08 21:27:12
Message-ID: 20020908212712.GL26147@ninja1.internal
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Attachment Content-Type Size
patch text/plain 1007 bytes

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Sean Chittenden 2002-09-08 21:45:41 ecpg hackery to get ecpg to compile from FreeBSD ports...
Previous Message Markus Bertheau 2002-09-08 20:15:56 Re: crash in apache