Files
guru/dev-util/pifpaf/files/pifpaf-3.2.3-psql17.patch
Anna (cybertailor) Vyalkova e1853a1c14 dev-util/pifpaf: add 3.2.3, drop 3.1.5-r1
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2024-10-22 19:01:27 +05:00

18 lines
811 B
Diff

Space after "-A" causes the following error in PostgreSQL 17:
> initdb: error: invalid authentication method " trust" for "local"
> connections
Commit: https://github.com/jd/pifpaf/commit/0f4abc1306563ccca72bddf89f430fcbd8a7a6e9
--- a/pifpaf/drivers/postgresql.py
+++ b/pifpaf/drivers/postgresql.py
@@ -53,7 +53,7 @@ class PostgreSQLDriver(drivers.Driver):
self.putenv("PGDATABASE", "postgres", True)
_, pgbindir = self._exec(["pg_config", "--bindir"], stdout=True)
pgctl = os.path.join(pgbindir.strip().decode(), "pg_ctl")
- self._exec([pgctl, "-o", "'-A trust'", "initdb"])
+ self._exec([pgctl, "-o", "'-Atrust'", "initdb"])
if not self.sync:
cfgfile = os.path.join(self.tempdir, 'postgresql.conf')
with open(cfgfile, 'a') as cfg: