[Bug 264161] databases/postgresql12-server: %%PG_VERSION%% not expanded in rc script
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 22 May 2022 21:08:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264161 Bug ID: 264161 Summary: databases/postgresql12-server: %%PG_VERSION%% not expanded in rc script Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: pgsql@FreeBSD.org Reporter: vidar@karlsen.tech Flags: maintainer-feedback?(pgsql@FreeBSD.org) Assignee: pgsql@FreeBSD.org A change introduced in commit 5b11f47f0d59c95f6dcf1ff75badede5ec84e72e [1] causes postgresql12-server not to be able to start via its rc script. The %%PG_VERSION%% variable does not get expanded, and the resulting rc script ends up using the literal string. This likely affects versions 10 through 14 as their files/postgresql.in files all have the same string on line 35. As a side note, postgresql15-server is hardcoded to point to ${postgresql_user}/data14 which might cause some funny issues as well. The problem was reported earlier in #264097 but the PR was closed because it referenced portmaster and not postgresqlXX-server. [1] diff excerpt: -eval postgresql_data=${postgresql_data:-"~${postgresql_user}/data12"} +eval postgresql_data=${postgresql_data:-"~${postgresql_user}/data%%PG_VERSION%%"} -- You are receiving this mail because: You are the assignee for the bug.