This package uses variables banned in some scopes. This may stop working in future versions of Portage. $ pkgcheck scan -k VariableScope mail-filter/spamassassin mail-filter/spamassassin VariableScope: version 3.4.5-r1: variable 'D' used in 'src_configure', line 139 VariableScope: version 3.4.6-r1: variable 'D' used in 'src_configure', line 139
Not sure how to address this. See [1] for details/background. Seems like this is endemic to traditional Perl build systems. I'm just going to watch bug #778806 and bug #836052, and follow their lead whenever (if ever) they act upon this issue. [1] https://forums.gentoo.org/viewtopic-p-8706164.html
I think you should be able to copy what I did in https://bugs.gentoo.org/778806#c3 now.
Pull request created. I just deleted the `${D}` line in `src_configure`. Hoping that's right. Gives me the same files (same MD5s) in the same locations without it now. I made rev-bumps instead of fixing in-place so I users have some place to revert to if I'm wrong. Will remove the old revs once these new ones are stabilized. Leaving the bug open until then.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83296c79ee741ed5b5814c4947f99ba98789c4a4 commit 83296c79ee741ed5b5814c4947f99ba98789c4a4 Author: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com> AuthorDate: 2024-05-11 18:21:35 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2024-06-11 06:01:22 +0000 mail-filter/spamassassin: Address VariableScope warnings - Removed 4.0.0-r3 because it's moot now that -r4 is stable - Bumped revs instead of fixing in place because all existing ebuilds have the VariableScope warning. If I fixed them in place, users would have no easy way to fallback if an issue is found. - Plan is to remove the pre-existing revs once these new revs have been stabilized. - I also re-ordered some ebuild variables in 3.4.6-r3 to avoid ordering warnings. - Note: git's wrong about the -r3 -> -r5 rename. Bug: https://bugs.gentoo.org/836067 Closes: https://github.com/gentoo/gentoo/pull/36644 Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com> Signed-off-by: Joonas Niilola <juippis@gentoo.org> .../spamassassin/spamassassin-3.4.6-r3.ebuild | 321 ++++++++++++++++++++ ....0.0-r3.ebuild => spamassassin-4.0.0-r5.ebuild} | 4 +- .../spamassassin/spamassassin-4.0.1-r1.ebuild | 337 +++++++++++++++++++++ 3 files changed, 660 insertions(+), 2 deletions(-)