Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 193453 - postgresql-server doesn't link its libraries
postgresql-server doesn't link its libraries
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: postgresql (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tom Lane
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2006-05-28 22:22 EDT by Zenon Panoussis
Modified: 2013-07-02 23:09 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-05-29 10:16:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Zenon Panoussis 2006-05-28 22:22:54 EDT
Description of problem:
postgresql-server puts a bunch of files in /usr/lib/pgsql. 
Its %post scrptlet runs ldconfig, but ldconfig ignores the 
directory where the new libs were just installed.

Version-Release number of selected component (if applicable):

Additional info:
Something like this would probably fix it:
--- postgresql.spec.orig        2006-05-28 21:21:45.000000000 -0500
+++ postgresql.spec     2006-05-28 21:24:20.000000000 -0500
@@ -569,6 +569,7 @@

 %post server
 chkconfig --add postgresql
+echo "%{_libdir}/pgsql" >/etc/ld.so.conf.d/pgsql-%{_arch}.conf

 %preun server
@@ -578,6 +579,7 @@

 %postun server
+rm -f /etc/ld.so.conf.d/pgsql-%{_arch}.conf
 if [ $1 -ge 1 ] ; then
        /sbin/service postgresql condrestart >/dev/null 2>&1 || :
Comment 1 Tom Lane 2006-05-28 23:24:18 EDT
I do not see the problem here.  All those .so files are intended to be loaded via explicit dlopen; there is no 
need for ldconfig to process them.  What specific problem are you having that makes you think they need 
to be included in ldconfig's list?
Comment 2 Zenon Panoussis 2006-05-29 01:29:11 EDT
Aha, in that case there's no bug. I was having a problem with
/usr/lib/pgsql/postgis.so from the non-RH package with the same name, noticed
there was no ldconfig pointer to the directory, and assumed postgres should have
made one irrespective of postgis. Sorry for the false alarm.
Comment 3 Tom Lane 2006-05-29 10:16:07 EDT
OK, closing as NOTABUG then.

Note You need to log in before you can comment on or make changes to this bug.