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: 07670b30fa ("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 01ff67f4bd)
This commit is contained in:
parent
a6b4af5e07
commit
81a8f67a5b
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 /
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue