From nobody Sun May 22 21:08:08 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B779D1B3454C for ; Sun, 22 May 2022 21:08:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L5tN82kC0z4Tdq for ; Sun, 22 May 2022 21:08:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3DB2222D2F for ; Sun, 22 May 2022 21:08:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24ML88gg019387 for ; Sun, 22 May 2022 21:08:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24ML88D5019386 for ports-bugs@FreeBSD.org; Sun, 22 May 2022 21:08:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 264161] databases/postgresql12-server: %%PG_VERSION%% not expanded in rc script Date: Sun, 22 May 2022 21:08:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: vidar@karlsen.tech X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pgsql@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653253688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4E0rnqKUxwtLhXNZYCbhQ075WLCAlqMYyD6Np+au5hM=; b=VhjFk+DiZHDYr8WQON5nF6BvRZFP7Y7fD20ojc1YUITSdB9q8RfigN7aDtNvqwOecT2ME9 UN+IG5soFiWMHjvpIkXVzIIALbNkdlRbePQB4v3bPmE85m4bSU3BTyKGVQp+BbU1VXprOm 2Sd4fzSh8+RePakDx3ut5jeBrrCTuxN19fLpDU/QKmZpO360ey7+pd4Ob+vn/6CL82YbiI a6Mp5XfdFrc9G05rpMRp2+uDHdZQKPfMx3ISCMaUvmuxCgckXlvFa4JA8Obz/bKup4Hlbz eNGadsD+pVSmDLo8QwPZLxzdgSyZqxV3ZvMdkucwsoiwwG5F+DlixTHocY0uEA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653253688; a=rsa-sha256; cv=none; b=JoveQ1EU+DXOz2UaHra9nppt4nADEbCvkWDi4UvrRmAJUBEbKXTNNyrC3OLJTBgCORH3hm 869Om3YwhsWY8Y9dHg/mM/SYlW8Vov5uszmdjRb+QfSOvPdZWk24fKE1oG/b2u6vJAtYyW kNme9zlfJn8aezvfycP9gcocPaDjmfuWy4S76rc/W7QhBcxdSX4ChqS7c1Lfffj3D+P3ST nEjI31HCsToRp6YzSLEyTj0x6vcULc05geBT5DiFzNhD1DjK++6mGfdj9aRFfgUWZRTcWt AqibC5cBih0Aur6oOUWGeTzl2iChbqtERvL1gsFIyN2JZLSeAyIuXnB837b7Cg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264161 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 scr= ipt ends up using the literal string. This likely affects versions 10 through 14 as their files/postgresql.in fil= es 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=3D${postgresql_data:-"~${postgresql_user}/data12"} +eval postgresql_data=3D${postgresql_data:-"~${postgresql_user}/data%%PG_VERSION%= %"} --=20 You are receiving this mail because: You are the assignee for the bug.=