git: 0ecad1068c95 - main - Mk/Scripts: respect STRICT_DEPENDS in do-depends.sh
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Sep 2026 15:36:03 UTC
The branch main has been updated by bapt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0ecad1068c9541b60a95c6e3ed5ccf4a45895507
commit 0ecad1068c9541b60a95c6e3ed5ccf4a45895507
Author: Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2026-09-25 15:33:34 +0000
Commit: Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2026-09-25 15:35:29 +0000
Mk/Scripts: respect STRICT_DEPENDS in do-depends.sh
PR: 298848
Reported by: Benjamin Takacs <nimaje+fbz@bureaucracy.de>
---
Mk/Scripts/do-depends.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Mk/Scripts/do-depends.sh b/Mk/Scripts/do-depends.sh
index 10dc087a4f46..55280b3b0160 100644
--- a/Mk/Scripts/do-depends.sh
+++ b/Mk/Scripts/do-depends.sh
@@ -210,6 +210,12 @@ for _line in ${dp_RAWDEPENDS} ; do
continue
fi
+ if [ -n "${dp_STRICT_DEPENDS}" ]; then
+ # Only verify the dependency, do not install it.
+ # The final check reports any missing dependency as a fatal error.
+ continue
+ fi
+
# Now actually install the dependencies
install_depends "${origin}" "${target}" "${subpkg}" "${depends_args}"
# Recheck if the installed dependency validates the pattern except for /nonexistent