[Pkg-postgresql-public] pg_wrapper and readline confusion
Peter Eisentraut
petere at debian.org
Sat Jul 21 21:34:35 UTC 2012
The postgresql packages are supposed to be linked with libedit nowadays,
but they are not configured with --with-libedit-preferred, so if
libreadline is installed, they will still end up linked with
libreadline. Maybe that's actually intentional, but ...
If a postgresql-client-x.y package is linked with libreadline, then
calling pg_wrapper for psql spits out a warning
Use of uninitialized value $lib_path in concatenation (.) or string at /usr/bin/psql line 116.
because of
my ($lib_path) = $out =~ m!(/lib/.*)/libedit.so!;
@readlines = sort(<$lib_path/libreadline.so.?>);
With a patch like the attached one, this could be avoided, if it is
meant to be supported.
Comments?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deb-pg-common-readline.patch
Type: text/x-patch
Size: 508 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/attachments/20120722/1250cd43/attachment.bin>
More information about the Pkg-postgresql-public
mailing list