Today I had to single step through expect and I found out that binaries get stripped on install despite WITH_DEBUG=yes. Here's how I solved it: # diff -u Makefile /tmp/Makefile.new --- Makefile 2022-02-09 17:21:32.000000000 +0000 +++ /tmp/Makefile.new 2022-06-14 20:00:30.450493000 +0000 @@ -22,6 +22,7 @@ SUB_FILES+= pkg-message SUB_LIST+= MANPREFIX=${MANPREFIX} TEST_TARGET= test +MAKE_ENV+= STRIPPROG=${STRIP_CMD} post-install: ${LN} -sf ${DISTNAME}/lib${DISTNAME}.so \
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=20ba20cb4241e21fa9ef0bb9f18b65d15eb867d4 commit 20ba20cb4241e21fa9ef0bb9f18b65d15eb867d4 Author: Pietro Cerutti <gahr@FreeBSD.org> AuthorDate: 2022-06-15 07:02:05 +0000 Commit: Pietro Cerutti <gahr@FreeBSD.org> CommitDate: 2022-06-15 07:02:05 +0000 lang/expect: don't strip binaries when WITH_DEBUG=yes PR: 264671 Reported by: Marcin Cieślak <saper@saper.info> lang/expect/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Thanks!
If this is needed for some other ports (tcl or otherwise), maybe it should be added to bsd.port.mk (after line 1762) or Uses/tcl.mk?