Re: GNU readline and BSD license - Mailing list pgsql-hackers

From Dominic J. Eidson
Subject Re: GNU readline and BSD license
Date
Msg-id Pine.LNX.4.21.0012291613070.7166-100000@morannon.the-infinite.org
Whole thread Raw
In response to Re: GNU readline and BSD license  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-hackers
On Fri, 29 Dec 2000, The Hermit Hacker wrote:

> On Sat, 23 Dec 2000, Bruce Momjian wrote:
> 
> > > FreeBSD has a freely available library called 'libedit' that could
> > > be shipped with postgresql, it's under the BSD license.
> > 
> > Yes, that is our solution if we have a real problem here.
> 
> Is there a reason *not* to move towards that for v7.2 so that the
> functions we are making optional with readline are automatic?  Since we
> could then ship the code, we could make it a standard vs optional
> "feature" ...

Also, it might be beneficial to _not_ link postmaster/postgres against
libreadline - I don't see where either of those programs need it - sure,
psql, but the backends? ...

morannon:~>ldd `which postgres`       libz.so.1 => /usr/lib/libz.so.1 (0x40019000)       libcrypt.so.1 =>
/lib/libcrypt.so.1(0x40028000)       libnsl.so.1 => /lib/libnsl.so.1 (0x40055000)       libdl.so.2 => /lib/libdl.so.2
(0x4006c000)      libm.so.6 => /lib/libm.so.6 (0x40070000)       libreadline.so.3 => /lib/libreadline.so.3 (0x4008d000)
     libtermcap.so.2 => /usr/lib/libtermcap.so.2 (0x400b5000)       libncurses.so.4 => /lib/libncurses.so.4
(0x400b9000)      libc.so.6 => /lib/libc.so.6 (0x400ff000)       /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
 
morannon:~>ldd `which psql`       libpq.so.2.1 => /usr/lib/libpq.so.2.1 (0x40019000)       libz.so.1 =>
/usr/lib/libz.so.1(0x40028000)       libcrypt.so.1 => /lib/libcrypt.so.1 (0x40037000)       libnsl.so.1 =>
/lib/libnsl.so.1(0x40064000)       libdl.so.2 => /lib/libdl.so.2 (0x4007b000)       libm.so.6 => /lib/libm.so.6
(0x4007f000)      libreadline.so.3 => /lib/libreadline.so.3 (0x4009d000)       libtermcap.so.2 =>
/usr/lib/libtermcap.so.2(0x400c4000)       libncurses.so.4 => /lib/libncurses.so.4 (0x400c8000)       libc.so.6 =>
/lib/libc.so.6(0x4010e000)       /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
 

postgres/postmaster very likely don't need either libreadline, nor
libncurses... Unless there's something I'm missing.

-- 
Dominic J. Eidson                                       "Baruk Khazad! Khazad ai-menu!" - Gimli
-------------------------------------------------------------------------------
http://www.the-infinite.org/              http://www.the-infinite.org/~dominic/



pgsql-hackers by date:

Previous
From: Alfred Perlstein
Date:
Subject: Re: GNU readline and BSD license
Next
From: The Hermit Hacker
Date:
Subject: Re: GNU readline and BSD license