Bug 253559 - net/kea: consider conditional REQUIRES
Summary: net/kea: consider conditional REQUIRES
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
Depends on:
Reported: 2021-02-16 16:00 UTC by Kamigishi Rei
Modified: 2021-02-19 15:25 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (apevnev)


Note You need to log in before you can comment on or make changes to this bug.
Description Kamigishi Rei 2021-02-16 16:00:52 UTC
Kea can be built with PostgreSQL and/or MySQL support; would it be feasible to add postgresql and mysql to its # REQUIRES line conditionally?

If Kea starts before the DB server it bails out immediately with a database connection error.
Comment 1 Andrey Pevnev 2021-02-19 15:22:48 UTC
I'll check if any other ports do that already, not a bad idea!
Comment 2 Kamigishi Rei 2021-02-19 15:25:02 UTC
Among what I have installed, PowerDNS does, but unconditionally (it always has both postgresql and mysql in its REQUIRES, no matter if the options are enabled), though I figure it would not be hard to make it only add to the line if the option is set.