diff options
author | Aaron W. Swenson <titanofold@gentoo.org> | 2021-07-06 20:38:38 -0400 |
---|---|---|
committer | Aaron W. Swenson <titanofold@gentoo.org> | 2021-07-06 20:38:38 -0400 |
commit | b642f661af8b1c7f35d6f6b36a28af173fc7c51f (patch) | |
tree | c84752bfa7264f964cc1d9d83132af08a825a77e /dev-db/postgresql/postgresql-9999.ebuild | |
parent | dev-util/catalyst: Keyword 3.0.20 s390, #795318 (diff) | |
download | gentoo-b642f661af8b1c7f35d6f6b36a28af173fc7c51f.tar.gz gentoo-b642f661af8b1c7f35d6f6b36a28af173fc7c51f.tar.bz2 gentoo-b642f661af8b1c7f35d6f6b36a28af173fc7c51f.zip |
dev-db/postgresql: Fix environment reset in pkg_config
Without resetting the environment the config phase results in the following
non-fatal error message being produced:
could not change directory to "/var/tmp/portage/dev-db/postgresql-13.1/homedir": Permission denied
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Martin Kletzander <nert.pinx@gmail.com>
Closes: https://bugs.gentoo.org/796344
Closes: https://github.com/gentoo/gentoo/pull/18332
Signed-off-by: Aaron W. Swenson <titanofold@gentoo.org>
Diffstat (limited to 'dev-db/postgresql/postgresql-9999.ebuild')
-rw-r--r-- | dev-db/postgresql/postgresql-9999.ebuild | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dev-db/postgresql/postgresql-9999.ebuild b/dev-db/postgresql/postgresql-9999.ebuild index e83be695c51b..106cb9fb88fe 100644 --- a/dev-db/postgresql/postgresql-9999.ebuild +++ b/dev-db/postgresql/postgresql-9999.ebuild @@ -402,7 +402,7 @@ pkg_config() { einfo "Initializing the database ..." if [[ ${EUID} == 0 ]] ; then - su postgres -c "${EROOT}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" + su - postgres -c "${EROOT}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" else "${EROOT}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} fi |