git: 8668e7bf55c0 - stable/14 - atf: refer to `common.mk` using `SRCTOP`

From: Enji Cooper <ngie_at_FreeBSD.org>
Date: Sun, 22 Nov 2026 21:30:14 UTC
The branch stable/14 has been updated by ngie:

URL: https://cgit.FreeBSD.org/src/commit/?id=8668e7bf55c0a1b3fed1c938f17c65eccf05d8a2

commit 8668e7bf55c0a1b3fed1c938f17c65eccf05d8a2
Author:     Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-10-29 17:54:21 +0000
Commit:     Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-11-22 21:30:09 +0000

    atf: refer to `common.mk` using `SRCTOP`
    
    This helps make the dependent Makefile (and the values contained within)
    easier to catch when upgrading atf in the future.
    
    MFC after:      1 week
    
    (cherry picked from commit 36c4912749ab1d12692302386050e25ce8b1d9de)
---
 lib/atf/libatf-c++/tests/detail/Makefile | 2 +-
 lib/atf/libatf-c/tests/detail/Makefile   | 2 +-
 libexec/atf/atf-sh/Makefile              | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/atf/libatf-c++/tests/detail/Makefile b/lib/atf/libatf-c++/tests/detail/Makefile
index 63e7489e5720..3400797a1759 100644
--- a/lib/atf/libatf-c++/tests/detail/Makefile
+++ b/lib/atf/libatf-c++/tests/detail/Makefile
@@ -28,5 +28,5 @@ BINDIR.${p}=	${TESTSDIR}
 .endfor
 version_helper.o: atf-version
 
-.include "../../../common.mk"
+.include "${SRCTOP}/lib/atf/common.mk"
 .include <bsd.test.mk>
diff --git a/lib/atf/libatf-c/tests/detail/Makefile b/lib/atf/libatf-c/tests/detail/Makefile
index fb014b3497ad..d0e3cf761456 100644
--- a/lib/atf/libatf-c/tests/detail/Makefile
+++ b/lib/atf/libatf-c/tests/detail/Makefile
@@ -30,5 +30,5 @@ BINDIR.${p}=	${TESTSDIR}
 .endfor
 version_helper.o: atf-version
 
-.include "../../../common.mk"
+.include "${SRCTOP}/lib/atf/common.mk"
 .include <bsd.test.mk>
diff --git a/libexec/atf/atf-sh/Makefile b/libexec/atf/atf-sh/Makefile
index 2e821684d8a8..c737b0dc26fb 100644
--- a/libexec/atf/atf-sh/Makefile
+++ b/libexec/atf/atf-sh/Makefile
@@ -77,5 +77,5 @@ SUBRTAGS=	package=tests
 HAS_TESTS=
 SUBDIR.${MK_TESTS}+= tests
 
-.include "../../../lib/atf/common.mk"
+.include "${SRCTOP}/lib/atf/common.mk"
 .include <bsd.prog.mk>