Re: pg_config broken in 7.1.1 on FreeBSD with Tcl + Java - Mailing list pgsql-bugs

From Glenn Trewitt
Subject Re: pg_config broken in 7.1.1 on FreeBSD with Tcl + Java
Date
Msg-id 3AFC6750.820A45A0@trewitt.org
Whole thread Raw
In response to Re: pg_config broken in 7.1.1 on FreeBSD with Tcl + Java  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-bugs
I'm not sure that I understand the question.  I just installed PostgreSQL
from the FreeBSD port and selected the Tcl, Java, and OpenSSL options.  I'm
guessing that whatever generated pg_config saw the spaces in, for example,
"--with-includes=/usr/local/include /usr/local/include/tcl8.3
/usr/local/include/tk8.3" and added the single-quotes to protect them.  Using
the same flavor of quotes at the outer level caused sh to terminate the
string early and attempt to interpret "/usr/local/include/tcl8.3" as a
command.

I presume that the configure arguments were:
    --enable-locale --enable-syslog --with-CXX
    --sysconfdir=/usr/local/etc/postgresql
    '--with-includes=/usr/local/include /usr/local/include/tcl8.3
/usr/local/include/tk8.3'
    --with-libraries=/usr/local/lib
    --docdir=/usr/local/share/doc
    --includedir=/usr/local/include/pgsql
    --with-java --with-openssl --enable-multibyte --with-tcl
    '--with-tclconfig=/usr/local/lib/tcl8.3 /usr/local/lib/tk8.3'
    --with-tkconfig=/usr/local/lib/tk8.3
    --prefix=/usr/local i386--freebsd4.3

The original quoted text got mangled by my mailer - there are many extra
newlines.  Some of the above may get mangled, as well.

I think that this problem can be solved by using double quotes when
val_configure="....." is generated.

    - Glenn

Peter Eisentraut wrote:

> Glenn Trewitt writes:
>
> > When I build PostgreSQL 7.1.1 from the port on FreeBSD 4.3, pg_config
> > gets built with a syntax error in the "val_configure=..." line.  It
> > looks like multiple levels of single quotes, where different kinds of
> > quotes should have been used.
>
> What is the configure line that this installation uses?
>
> > val_configure='--enable-locale --enable-syslog --with-CXX
> > --sysconfdir=/usr/local/etc/p
> > ostgresql '--with-includes=/usr/local/include /usr/local/include/tcl8.3
> > /usr/local/incl
> > ude/tk8.3' --with-libraries=/usr/local/lib --docdir=/usr/local/share/doc
> > --includedir=/
> > usr/local/include/pgsql --with-java --with-openssl --enable-multibyte
> > --with-tcl '--wit
> > h-tclconfig=/usr/local/lib/tcl8.3 /usr/local/lib/tk8.3'
> > --with-tkconfig=/usr/local/lib/
> > tk8.3 --prefix=/usr/local i386--freebsd4.3'
>
> Where do these extra quotes come from?
>
> --
> Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter

pgsql-bugs by date:

Previous
From: Alexander Dederer
Date:
Subject: Bug with timestamp !!!
Next
From: Erik Hofman
Date:
Subject: Re: Irix build failes (PSQL 7.1.1)