git: e7679b71cf89 - main - Mk: Drop test dependencies from the unified dependency list
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Sep 2026 20:14:51 UTC
The branch main has been updated by bapt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e7679b71cf89ae8c79016de87a62eadcea28c4e8
commit e7679b71cf89ae8c79016de87a62eadcea28c4e8
Author: Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2026-09-25 19:59:51 +0000
Commit: Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2026-09-25 20:14:28 +0000
Mk: Drop test dependencies from the unified dependency list
TEST_DEPENDS_ALL was part of _UNIFIED_DEPENDS, so test-only
dependencies leaked into all-depends-list, missing,
clean-depends, fetch-recursive, deinstall-depends and the QA
checks, even though they are not needed to build, package or
install a port. It pollutes all the convenience -recursive targets
including poudriere options.
They are still installed by "make test" through the test-depends
target, which is now documented as well.
The motivation for this patch is the fact that many ports now
end up having chromium as part of their dependency list following
the new dependency needed to upgrade py-great-table
(15ce974d8e0560b8038db69598cdf68c52273e68)
Reviewed by: mat@ (portmgr)
Reported by: wollman (portmgr)
Differential Revision: https://reviews.freebsd.org/D60032
---
Mk/bsd.port.mk | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index b115e2c5df28..6264a7b5751e 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -569,6 +569,9 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# run-depends-list
# - Show all directories which are run-dependencies
# for this port.
+# test-depends
+# - Build and install all test-dependencies for this
+# port.
# test-depends-list
# - Show all directories which are test-dependencies
# for this port.
@@ -4087,7 +4090,7 @@ ${deptype:tl}-depends:
# Dependency lists: both build and runtime, recursive. Print out directory names.
-_UNIFIED_DEPENDS=${PKG_DEPENDS_ALL} ${EXTRACT_DEPENDS_ALL} ${PATCH_DEPENDS_ALL} ${FETCH_DEPENDS_ALL} ${BUILD_DEPENDS_ALL} ${LIB_DEPENDS_ALL} ${RUN_DEPENDS_ALL} ${TEST_DEPENDS_ALL}
+_UNIFIED_DEPENDS=${PKG_DEPENDS_ALL} ${EXTRACT_DEPENDS_ALL} ${PATCH_DEPENDS_ALL} ${FETCH_DEPENDS_ALL} ${BUILD_DEPENDS_ALL} ${LIB_DEPENDS_ALL} ${RUN_DEPENDS_ALL}
_DEPEND_SPECIALS= ${_UNIFIED_DEPENDS:M*\:*\:*:C,^[^:]*:([^:]*):.*$,\1,}
. for d in ${_UNIFIED_DEPENDS:M*\:/*}