Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610418 - dev-db/postgresql-9.5.5: please provide an option to automatically configure postgres
Summary: dev-db/postgresql-9.5.5: please provide an option to automatically configure ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-21 22:20 UTC by Austin English (RETIRED)
Modified: 2017-04-03 20:57 UTC (History)
1 user (show)

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


Attachments
respect PG_AUTOCONFIG (pg_autoconfig.txt,5.71 KB, patch)
2017-02-28 00:58 UTC, Austin English (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Austin English (RETIRED) gentoo-dev 2017-02-21 22:20:37 UTC
Running:
$ emerge --config =dev-db/postgresql-9.5.5


gives some helpful information:
 * You can modify the paths and options passed to initdb by editing:
 *     /etc/conf.d/postgresql-9.5
 * 
 * Information on options that can be passed to initdb are found at:
 *     http://www.postgresql.org/docs/9.5/static/creating-cluster.html
 *     http://www.postgresql.org/docs/9.5/static/app-initdb.html
 * 
 * PG_INITDB_OPTS is currently set to:
 *     --encoding=UTF8
 * 
 * Configuration files will be installed to:
 *     /etc/postgresql-9.5/
 * 
 * The database cluster will be created in:
 *     /var/lib/postgresql/9.5/data
 * 

but then requires user input to continue. There's no way around this, short of piping 'yes' to emerge, or commenting it out of the ebuild.

Please provide a environmental variable that can disable this, e.g., PG_AUTOCONFIG=1, or switch to using a CTRL+C countdown like emerge -C does.

My goal is to allow installing/configuring postgres using the default options in an automated way.
Comment 1 Austin English (RETIRED) gentoo-dev 2017-02-28 00:58:30 UTC
Created attachment 465448 [details, diff]
respect PG_AUTOCONFIG
Comment 2 Austin English (RETIRED) gentoo-dev 2017-04-03 20:57:36 UTC
Fixed by https://github.com/gentoo/gentoo/commit/315323499fa5e267317d413318481e7cfec8d7c9