Created attachment 221909 [details] Patch to fix 14-CURRENT build. As of __FreeBSD_version 1300134 NO_WERROR=1 was replaced with MK_WERROR=no. This causes bsdrcmds some gas.
See https://reviews.freebsd.org/D28361.
I approved the patch in the review. Do you take care of committing it?
Sure. I'll do it tonight (PDT).
A commit references this bug: Author: cy Date: Mon Feb 8 14:25:59 UTC 2021 New revision: 564711 URL: https://svnweb.freebsd.org/changeset/ports/564711 Log: Fix build under 13-ALPHA and 14-CURRENT. As of src/7fa2f2a62f04f095e1e27ad55aa22a8f59b1df8f NO_WERROR was renamed MK_WERROR. Rather than add logic, use a redundant definition that will be a NOP on the "other" version of FreeBSD. This should be maintained until 12-STABLE is retired. PR: 253000 Submitted by: cy Reported by: cy Reviewed by: jlh (maintainer) Approved by: jlh (maintainer) MFH: 2021Q1 Differential Revision: https://reviews.freebsd.org/D28361 Changes: head/net/bsdrcmds/Makefile
Created attachment 222270 [details] The original fix ===> Building for bsdrcmds-20171003.01 make[1]: "/usr/share/mk/bsd.opts.mk" line 110: "NO_WERROR is defined, but deprecated. Please use MK_WERROR=no instead." make[1]: stopped in /wrkdirs/usr/ports/net/bsdrcmds/work/bsdrcmds-20171003.01 The original patch is the only way to fix this because CURRENT has foot shooting protection.
A commit references this bug: Author: cy Date: Wed Feb 10 15:39:57 UTC 2021 New revision: 564865 URL: https://svnweb.freebsd.org/changeset/ports/564865 Log: Fix 13-STABLE and 14-CURRENT for real. r564711 attempted to provide both the definitions to use the old NO_WERROR and the new MK_WERROR. However foot-shooting protection prevents such innovative approaches. Therefore additional logic is required. PR: 253000 Submitted by: cy Reported by: cy Approved by: jlh (maintainer, by private email) MFH: 2021Q1 Changes: head/net/bsdrcmds/Makefile
Created attachment 222670 [details] Fix r564865 WERROR OPTIONS breakage The fix breaks OPTIONS because the line .include <bsd.port.options.mk> is pre OPTIONS definition. cd net/bsdrcmds && make config doesn't reflect LIBBLACKLIST default nor IPV6 (which seems a infrastructure pre-default?!) Alter config with 'make config' and do make showconfig <- PORSTDB/net_bsdrcmds/options were correctly written, but not respected. This attachment fixes the fix, at least for 3 out of 7 portlint(8)'s FATAL: Makefile: [26]: OPTIONS_DEFINE is set after including bsd.port.options.mk. Makefile: [28]: OPTIONS_DEFAULT is set after including bsd.port.options.mk. Makefile: [30]: OPTIONS_EXCLUDE is set after including bsd.port.options.mk.
A commit references this bug: Author: cy Date: Wed Mar 10 04:20:17 UTC 2021 New revision: 567980 URL: https://svnweb.freebsd.org/changeset/ports/567980 Log: net/bsdrcmds: Fix options breakage. r564865 broke OPTIONS. PR: 253000 Reported by: bugzilla.freebsd@omnilan.de MFH: 2021Q1 Changes: head/net/bsdrcmds/Makefile
Finally fixed.