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.
Created attachment 465448 [details, diff] respect PG_AUTOCONFIG
Fixed by https://github.com/gentoo/gentoo/commit/315323499fa5e267317d413318481e7cfec8d7c9