According to man top(1) TOP variable can be set to specify default parameters. Port uses the same variable but doesn't override it.
Fixed upstream here; https://roy.marples.name/cgit/dhcpcd.git/commit/?id=e36d62c22c46876286f377661a4ca76067789bdd
Sorry, due to a lack of time I have reset the maintainer of this port back to ports@FreeBSD.org. Hopefully someone else is able to step in to help. Resetting the assignee of this bug accordingly.
Volodymyr Kostyrko, is this OK for you now? Roy, unfortunately the link to the commit seems broken. If its in 9.4.0 I would like the submitter to close this issue (if that fixed it ofc).
https://github.com/NetworkConfiguration/dhcpcd/commit/e36d62c22c46876286f377661a4ca76067789bdd This is the new home for dhcpcd. (It was commited after the 9.4.0 release)
(In reply to Dries Michiels from comment #3) It's in the dhcpcd-9 branch so will appear in dhcpcd-9.4.1
Thanks Roy, looking forward to 9.4.1.
Can we backport the patch addressing the issue? Bundling bugfixes with version updates, unless those version updates are exclusively bugfixes, allows committers to merge bugfixes to the quarterly branch
I'll give it a shot this week.
Created attachment 227812 [details] dhcpcd-TOP.diff Poudriere testport looks good.
Forgot to bump PORTREVISION though.
Created attachment 227813 [details] dhcpcd-TOP.diff
Take.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=9e078ab7b7515a325c0ce7b6089e638e8ce0e63c commit 9e078ab7b7515a325c0ce7b6089e638e8ce0e63c Author: Dries Michiels <driesm.michiels@gmail.com> AuthorDate: 2021-10-31 04:21:37 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2021-10-31 04:21:37 +0000 net/dhcpcd: Fix build when TOP environment viriable is set PR: 253270 Reported by: Volodymyr Kostyrko net/dhcpcd/Makefile | 1 + net/dhcpcd/files/patch-hooks_Makefile (new) | 8 ++++++++ net/dhcpcd/files/patch-src_Makefile (new) | 11 +++++++++++ net/dhcpcd/files/patch-src_dev_Makefile (new) | 8 ++++++++ net/dhcpcd/files/patch-tests_crypt_Makefile (new) | 8 ++++++++ net/dhcpcd/files/patch-tests_eloop-bench_Makefile (new) | 8 ++++++++ 6 files changed, 44 insertions(+)
A commit in branch 2021Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=01223a9c0d50f4a263beacb400770ae1085d111d commit 01223a9c0d50f4a263beacb400770ae1085d111d Author: Dries Michiels <driesm.michiels@gmail.com> AuthorDate: 2021-10-31 04:21:37 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2021-10-31 04:35:13 +0000 net/dhcpcd: Fix build when TOP environment viriable is set PR: 253270 Reported by: Volodymyr Kostyrko (cherry picked from commit 9e078ab7b7515a325c0ce7b6089e638e8ce0e63c) net/dhcpcd/Makefile | 1 + net/dhcpcd/files/patch-hooks_Makefile (new) | 8 ++++++++ net/dhcpcd/files/patch-src_Makefile (new) | 11 +++++++++++ net/dhcpcd/files/patch-src_dev_Makefile (new) | 8 ++++++++ net/dhcpcd/files/patch-tests_crypt_Makefile (new) | 8 ++++++++ net/dhcpcd/files/patch-tests_eloop-bench_Makefile (new) | 8 ++++++++ 6 files changed, 44 insertions(+)
Committed and merged to quarterly branch. Thanks!