Reported by jrm@: https://reviews.freebsd.org/D46807#1067249
jrm@ Can you elaborate on that statement: > FYI, when I was testing, I set WITH_SUBVERSION_VER to lts instead of LTS and it wasn't handled as would be expected after a look in devel/subversion/Makefile.addons. I don't see what you expect from that Makefile?!
Created attachment 253938 [details] Patch to add missing .include directive to devel/subversion/Makefile.addons
Hello Michael, In short, when users set the value of WITH_SUBVERSION_VER to something other than 'latest' or 'LTS', they will encounter errors. % make -C/usr/ports/devel/py-subversion -VPORTNAME make: "/usr/ports/Mk/bsd.port.mk" line 1829: Malformed conditional (${ARCH} == "amd64") in /usr/share/mk/bsd.port.mk:27 in /usr/share/mk/bsd.port.post.mk:4 in /usr/ports/devel/py-subversion/Makefile:34 make: "/usr/ports/Mk/bsd.port.mk" line 1859: Malformed conditional (${WITH_PKG} == devel) in /usr/share/mk/bsd.port.mk:27 in /usr/share/mk/bsd.port.post.mk:4 in /usr/ports/devel/py-subversion/Makefile:34 ... ... ... make: "/usr/ports/Mk/bsd.port.mk" line 5555: Malformed conditional (${UID} != 0 && defined(_${:Upackage:tu}_REAL_SUSEQ) && !defined(INSTALL_AS_USER)) in .for loop from /usr/ports/Mk/bsd.port.mk:5535 with target = package in /usr/share/mk/bsd.port.mk:27 in /usr/share/mk/bsd.port.post.mk:4 in /usr/ports/devel/py-subversion/Makefile:34 make: Fatal errors encountered -- cannot continue make: stopped making "all" in /usr/ports/devel/py-subversion The simplest solution is to add a missing .include directive. See the attached patch. Joe
Created attachment 253939 [details] Patch to add missing .include directive to devel/subversion/Makefile.addons
(In reply to Joseph Mingrone from comment #4) Now I understand, totally right. Good catch. Please go ahead and commit that patch!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=009c251da4e078b2048d99c352a4d5b5c2c2b07b commit 009c251da4e078b2048d99c352a4d5b5c2c2b07b Author: Joseph Mingrone <jrm@FreeBSD.org> AuthorDate: 2024-10-01 17:53:46 +0000 Commit: Joseph Mingrone <jrm@FreeBSD.org> CommitDate: 2024-10-04 18:32:45 +0000 devel/subversion/Makefile.addons: Add missing .include Users who incorrectly set WITH_SUBVERSION_VER to something other than latest or LTS encounter errors. make -C/usr/ports/devel/py-subversion -VPORTNAME make: "/usr/ports/Mk/bsd.port.mk" line 1829: Malformed conditional (${ARCH} == "amd64") in /usr/share/mk/bsd.port.mk:27 in /usr/share/mk/bsd.port.post.mk:4 in /usr/ports/devel/py-subversion/Makefile:34 ... Resolve these errors by adding a missing .include directive. PR: 281750 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D46807 devel/subversion/Makefile.addons | 1 + 1 file changed, 1 insertion(+)
(In reply to commit-hook from comment #6) Fix appreciated!