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

Bug 610418

Summary: dev-db/postgresql-9.5.5: please provide an option to automatically configure postgres
Product: Gentoo Linux Reporter: Austin English (RETIRED) <wizardedit>
Component: Current packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: chutzpah
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: respect PG_AUTOCONFIG

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