[Bug 287047] Patch to allow flavoring in p5-DBD-Pg
Date: Sat, 24 May 2025 13:31:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287047
Bug ID: 287047
Summary: Patch to allow flavoring in p5-DBD-Pg
Product: Ports & Packages
Version: Latest
Hardware: amd64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs@FreeBSD.org
Reporter: freebsd@gushi.org
Created attachment 260684
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=260684&action=edit
Patch against Makefile
The attached patch adds flavoring support to p5-DBD-Pg (for example,
p5-DBD-Pg-pg15) for all supported versions of postgresqlNN-server, so that if
you have manually installed a version of postgresql15-client, for example, you
may continue using it when otherwise, a change in the default version of
postgres would cause this port to be updated, and in turn, force an upgrade of
the client libs, which would later force an update of the server.
The "default" flavor of the port retains the previous behavior, and would cause
the required version of postresqlNN-client to be whatever is set as the default
for the branch, so on a pkg upgrade, this module would ride with the change in
a default version.
This is a fairly simple patch of .if blocks against the flavor -- it could be
code-golfed down smaller.
It passes portlint cleanly and also poudriere bulk -t on my systems for both
the quarterly and 2025Q2 branches.
The resultant pkg files are small perl files of only a few hundred k each, with
not much extra effort required on the build clusters because all versions of
the postgres clients are already being built.
If you need copies of the +MANIFEST of the resultant packages to check my work,
let me know.
--
You are receiving this mail because:
You are the assignee for the bug.