aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Luis Duran <jlduran@FreeBSD.org>2025-02-04 14:47:24 +0000
committerJose Luis Duran <jlduran@FreeBSD.org>2025-02-04 14:47:24 +0000
commit88d448ec815c1fda27be94846f88ccd96251febd (patch)
treeb216986dbe37aaa42f6796111561006ef01600c4
parentbccaf0262dcab84be49c42cc6b7a81c279c44b62 (diff)
mk: Move vm stack test debug symbols
Avoid the creation of a /usr/tests/sys/vm/stack/.debug directory by placing sys/vm/stack test debug symbols under /usr/lib/debug. Reviewed by: emaste Approved by: emaste (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48796
-rw-r--r--ObsoleteFiles.inc3
-rw-r--r--share/mk/bsd.lib.mk3
2 files changed, 5 insertions, 1 deletions
diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc
index e17ca9608cca..aff94af72c17 100644
--- a/ObsoleteFiles.inc
+++ b/ObsoleteFiles.inc
@@ -51,6 +51,9 @@
# xargs -n1 | sort | uniq -d;
# done
+# 20250204: sys/vm/stack test symbols moved to /usr/lib/debug
+OLD_DIRS+=usr/tests/sys/vm/stack/.debug
+
# 20250129: libdevinfo bumped to version 7
OLD_LIBS+=lib/libdevinfo.so.6
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index cf8057907a1f..a4b2e4d11125 100644
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -254,7 +254,8 @@ SHLIB_NAME_FULL=${SHLIB_NAME}.full
# Use ${DEBUGDIR} for base system debug files, else .debug subdirectory
.if ${_SHLIBDIR} == "/boot" ||\
${SHLIBDIR:C%/lib(/.*)?$%/lib%} == "/lib" ||\
- ${SHLIBDIR:C%/usr/(tests/)?lib(32|exec)?(/.*)?%/usr/lib%} == "/usr/lib"
+ ${SHLIBDIR:C%/usr/lib(32|exec)?(/.*)?%/usr/lib%} == "/usr/lib" ||
+ ${SHLIBDIR:C%/usr/tests(/.*)?%/usr/tests%} == "/usr/tests"
DEBUGFILEDIR=${DEBUGDIR}${_SHLIBDIR}
.else
DEBUGFILEDIR=${_SHLIBDIR}/.debug