[Midnightbsd-cvs] [MidnightBSD/mports] 281aa7: Mk: add BUILD_RUN_DEPENDS for dependencies needed ...
Lucas Holt
noreply at github.com
Sat Oct 3 18:50:55 EDT 2026
Branch: refs/heads/mk/build-run-depends
Home: https://github.com/MidnightBSD/mports
Commit: 281aa72500fd8c3945e384c52b0a420158fe5c1a
https://github.com/MidnightBSD/mports/commit/281aa72500fd8c3945e384c52b0a420158fe5c1a
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-10-03 (Sat, 03 Oct 2026)
Changed paths:
M AGENTS.md
M Mk/bsd.mport.mk
M Mk/components/options.mk
Log Message:
-----------
Mk: add BUILD_RUN_DEPENDS for dependencies needed to build and at run time
Mirrors FreeBSD ports commits 07679900322e and 07687630f389. A port that
needs the same dependency to build and to run used to write
RUN_DEPENDS=${BUILD_DEPENDS}, which also copied whatever USES and the
framework had appended to BUILD_DEPENDS, or to list the tuple twice.
BUILD_RUN_DEPENDS is folded into BUILD_DEPENDS and RUN_DEPENDS at the top
of the dependency checking section, for the main package and each
subpackage, before either is read. The depends targets, the *-depends-list
targets, actual-package-depends and the package produced by mport.create
therefore see only the two classic variables; the package manager needs no
change. The flavor helper list gains BUILD_RUN_DEPENDS and the options
helper list gains BUILD_RUN, so flavor_BUILD_RUN_DEPENDS,
OPT_BUILD_RUN_DEPENDS and OPT_BUILD_RUN_DEPENDS_OFF work like the others.
Verified on archivers/zip: BUILD_RUN_DEPENDS=unzip:archivers/unzip appears
in both BUILD_DEPENDS and RUN_DEPENDS and in build-, run- and
package-depends-list; DOCS_BUILD_RUN_DEPENDS follows the option on and
off and the _OFF form inverts, matching DOCS_RUN_DEPENDS as a control;
qt5_BUILD_RUN_DEPENDS on a flavored port and BUILD_RUN_DEPENDS.foo with
SUBPACKAGES=foo land in the right variables and leave the main package
alone; portlint accepts the variable in the dependency section.
AGENTS.md documents the variable.
AI-Assisted-by: Claude Fable 5.1 <noreply at anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply at anthropic.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>
Commit: 268343b9f7eace44b36b491260f4ceb777c0cb0b
https://github.com/MidnightBSD/mports/commit/268343b9f7eace44b36b491260f4ceb777c0cb0b
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-10-03 (Sat, 03 Oct 2026)
Changed paths:
M Mk/docs/bsd.mport.mk.pod
Log Message:
-----------
Mk/docs: document BUILD_RUN_DEPENDS in bsd.mport.mk.pod
Adds the variable to the Dependency Variables section alongside the
other *_DEPENDS entries, with the fold into BUILD_DEPENDS and
RUN_DEPENDS, the stages it is checked in, why it replaces
RUN_DEPENDS=${BUILD_DEPENDS}, and the option, flavor and subpackage forms.
AI-Assisted-by: Claude Fable 5.1 <noreply at anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply at anthropic.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>
Compare: https://github.com/MidnightBSD/mports/compare/281aa72500fd%5E...268343b9f7ea
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications
More information about the Midnightbsd-cvs
mailing list