I upgraded my version of SpamPD from 2.53 to 2.61 and then it fails during startup. It fails with "Global symbol "$user" requires explicit package name (did you forget to declare "my $user"?)" I have discussed this with mpaperno on github. https://github.com/mpaperno/spampd/issues/38 This line is in the FreeBSD ports version 473: user_dir => (getpwnam($user))[7], But not in the github version. Right now i'm running with the github version, the only change i have made is to the shebang in the first line. This change does not seem to be necessary.
(In reply to bugs.freebsd.org@deadzone.dk from comment #0) Same here, just did the same upgrade and encountered the same error. user_dir is not used in /usr/local/sbin/spampd itself so I deleted the line (473) after which the daemon started fine (looks to function as desired as well) I didn't investigate whether or not user_dir is passed along to another object/class somewhere so bugs.freebsd.org@deadzone.dk 's workaround might be better
Created attachment 232003 [details] proposed patch Ran into this myself so I fixed the port to remove the patch file that is no longer needed. Currently using this new revision on my systems, no issues detected (so far). Build was tested with Poudriere
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=a455f124cf1c04c35142f2f9b51d4cefab9adfd3 commit a455f124cf1c04c35142f2f9b51d4cefab9adfd3 Author: Dag-Erling Smørgrav <des@FreeBSD.org> AuthorDate: 2022-02-24 15:07:55 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> CommitDate: 2022-02-24 15:07:55 +0000 mail/spampd: drop user_dir patch and maintainership PR: 259226 mail/spampd/Makefile | 3 ++- mail/spampd/files/patch-spampd.pl (gone) | 10 ---------- 2 files changed, 2 insertions(+), 11 deletions(-)