Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414035 - dev-db/postgresql-base-9.1.3 ebuild and /var/run vs /run
Summary: dev-db/postgresql-base-9.1.3 ebuild and /var/run vs /run
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-29 22:16 UTC by Jimmy.Jazz
Modified: 2012-06-07 20:54 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jimmy.Jazz 2012-04-29 22:16:10 UTC
Please could the ebuild call a more flexible method like a default shell variable
  : ${RUNDIR:=/var}
to define if the admin wants /run or /var/run for postgresql ?

The actual ebuild will pick the wrong decision if /run exists.

udisks 2.0 has /run hard coded (seems a 21 century style of programming) and will use it for ... medias. My computer, its scripts, my feelings, whatever still need /var/run for the daemons. 

Thank you
Comment 1 Aaron W. Swenson gentoo-dev 2012-06-07 16:15:43 UTC
/var/run is moving/has moved to /run.

The PostgreSQL ebuilds are doing the right thing.

You can define unix_socket_directory in /etc/postgresql-${SLOT}/postgresql.conf to a location other than /run/postgresql.
Comment 2 Jimmy.Jazz 2012-06-07 20:54:21 UTC
(In reply to comment #1)
> /var/run is moving/has moved to /run.
> 
> The PostgreSQL ebuilds are doing the right thing.
> 
> You can define unix_socket_directory in
> /etc/postgresql-${SLOT}/postgresql.conf to a location other than
> /run/postgresql.

FYI /run isn't a standard/conventional directory.
Also it is created when gnome is installed on your computer because of udisks.

Even if unix_socket_directory is set in postgresql.conf to /var/run/postgresql, the ebuild will just test the presence of /run and create the directory at the wrong place.

RUNDIR has to be a global variable, so the admin could force it... and help  PostgreSQL ebuilds to do the right thing.

Please reconsider your point of view