Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 489632

Summary: dev-db/postgresql-server initscript reference /usr/lib instead of /usr/LIBDIR
Product: Gentoo Linux Reporter: Mike Gilbert <floppym>
Component: Current packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: alexander, chutz+bugs.gentoo.org
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for init scripts and systemd service unit
Ebuild patch

Description Mike Gilbert gentoo-dev 2013-10-28 03:45:34 UTC
The initscript for postgresql hard codes the path to the server binaries as /usr/lib/postgresql-${SLOT}/

However, the binaries are actually installed in /usr/$(get_libdir)/postgresql-${SLOT}/

On systems where SYMLINK_LIB is disabled, /usr/lib and /usr/$(get_libdir) may refer to different locations. For example, on my system /usr/lib and /usr/lib64 are separate directories.
Comment 1 Mike Gilbert gentoo-dev 2013-10-28 03:46:22 UTC
Created attachment 362106 [details, diff]
Patch for init scripts and systemd service unit
Comment 2 Mike Gilbert gentoo-dev 2013-10-28 03:46:44 UTC
Created attachment 362108 [details, diff]
Ebuild patch
Comment 3 Mike Gilbert gentoo-dev 2014-04-23 01:47:51 UTC
*** Bug 506470 has been marked as a duplicate of this bug. ***
Comment 4 Mike Gilbert gentoo-dev 2014-04-23 01:54:15 UTC
It has been 6 months, so I'm going to move on this myself. I have pushed my patch to the git repo, and I will tag a new "initscripts" version tomorrow.
Comment 5 Mike Gilbert gentoo-dev 2014-04-28 00:19:24 UTC
+*postgresql-server-9.3.4-r1 (28 Apr 2014)
+
+  28 Apr 2014; Mike Gilbert <floppym@gentoo.org>
+  +postgresql-server-9.3.4-r1.ebuild:
+  Substitute LIBDIR in initscript and systemd unit, bug 489632.