git: 81a8f67a5b55 - stable/14 - mtree: TESTSBASE directory always starts with a /
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 01 Feb 2025 03:35:01 UTC
The branch stable/14 has been updated by jlduran:
URL: https://cgit.FreeBSD.org/src/commit/?id=81a8f67a5b55905320233cbfdae321173a92a172
commit 81a8f67a5b55905320233cbfdae321173a92a172
Author: Jose Luis Duran <jlduran@FreeBSD.org>
AuthorDate: 2025-01-24 23:10:05 +0000
Commit: Jose Luis Duran <jlduran@FreeBSD.org>
CommitDate: 2025-02-01 03:32:32 +0000
mtree: TESTSBASE directory always starts with a /
Remove the extra forward slash ("/"), otherwise the mtree specification
file will have the double slash and will not be parsed by makefs when
attempting to build NanoBSD with NO_ROOT privileges.
Fixes: 07670b30fa43 ("Create /usr/tests *.debug file directory hierarchy")
Reviewed by: emaste
Approved by: emaste (mentor)
Differential Revision: https://reviews.freebsd.org/D47722
(cherry picked from commit 01ff67f4bdf5959a719a6511a855f6a60c0e3a93)
---
Makefile.inc1 | 2 +-
etc/Makefile | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.inc1 b/Makefile.inc1
index 94f74392f4fb..b1a882a042a6 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1469,7 +1469,7 @@ distributeworld installworld stageworld: _installcheck_world .PHONY
-p ${DESTDIR}/${DISTDIR}/${dist}${TESTSBASE} >/dev/null
.if ${MK_DEBUG_FILES} != "no"
${DESTDIR_MTREE} -f ${.CURDIR}/etc/mtree/BSD.tests.dist \
- -p ${DESTDIR}/${DISTDIR}/${dist}/usr/lib/debug/${TESTSBASE} >/dev/null
+ -p ${DESTDIR}/${DISTDIR}/${dist}/usr/lib/debug${TESTSBASE} >/dev/null
.endif
.endif
.if defined(NO_ROOT)
diff --git a/etc/Makefile b/etc/Makefile
index bd6d692e5316..27070e726943 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -113,7 +113,7 @@ MTREES+= mtree/BSD.lib${libcompat}.dist /usr/lib/debug/usr
.endfor
.if ${MK_TESTS} != "no"
MTREES+= mtree/BSD.tests.dist ${TESTSBASE}
-MTREES+= mtree/BSD.tests.dist /usr/lib/debug/${TESTSBASE}
+MTREES+= mtree/BSD.tests.dist /usr/lib/debug${TESTSBASE}
.endif
.if ${MK_SENDMAIL} != "no"
MTREES+= mtree/BSD.sendmail.dist /