pg_config Makefile bogon... - Mailing list pgsql-bugs

From Sean Chittenden
Subject pg_config Makefile bogon...
Date
Msg-id 20020908212712.GL26147@ninja1.internal
Whole thread Raw
Responses Re: pg_config Makefile bogon...
List 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

pgsql-bugs by date:

Previous
From: Markus Bertheau
Date:
Subject: Re: crash in apache
Next
From: Sean Chittenden
Date:
Subject: ecpg hackery to get ecpg to compile from FreeBSD ports...