Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489632 - dev-db/postgresql-server initscript reference /usr/lib instead of /usr/LIBDIR
Summary: dev-db/postgresql-server initscript reference /usr/lib instead of /usr/LIBDIR
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
: 506470 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-28 03:45 UTC by Mike Gilbert
Modified: 2014-04-28 00:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for init scripts and systemd service unit (postgresql-initscripts.patch,2.20 KB, patch)
2013-10-28 03:46 UTC, Mike Gilbert
Details | Diff
Ebuild patch (postgresql-server.ebuild.patch,623 bytes, patch)
2013-10-28 03:46 UTC, Mike Gilbert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.