Created attachment 917885 [details, diff] Patch to add ed25519 support as a USE flag The source code (see main.c and Makefile.gnu) use #ifdef HAVE_ED25519 to enable ed25519 support, but the current package doesn’t allow compiling with it. I added a simple patch that I tested locally to fix the issue, but feel free to improve it.
dev-libs/openssl *enables* ed2559 support unconditionally, so it seems reasonable to do the same here (no USE flag).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fcd2710762948cc3f8ad1b060ec86a43e6c35e6 commit 8fcd2710762948cc3f8ad1b060ec86a43e6c35e6 Author: Cédric Krier <cedk@gentoo.org> AuthorDate: 2025-02-15 13:58:06 +0000 Commit: Cédric Krier <cedk@gentoo.org> CommitDate: 2025-02-15 13:59:06 +0000 mail-filter/opensmtpd-filter-dkimsign: support ed25519 Closes: https://bugs.gentoo.org/949031 Signed-off-by: Cédric Krier <cedk@gentoo.org> .../opensmtpd-filter-dkimsign-0.6-ed25519.patch | 85 ++++++++++++++++++++++ ...ild => opensmtpd-filter-dkimsign-0.6-r1.ebuild} | 5 +- 2 files changed, 89 insertions(+), 1 deletion(-)
It seems mail-filter/opensmtpd-filter-dkimsign-0.6-r1 doesn’t properly enable ed25519 support: while my example ebuild works, after compiling 0.6-r1 on my machine and starting OpenSTMPD, I get: dkimsign_ed25519: invalid algorithm warn: lost processor: dkimsign_ed25519 exited abnormally Exiting I’m not sure why that might be happening.
Compiling manually with the patch works, compiling without it makes filter-dkimsign return the same error. Maybe the ebuild doesn’t call eapply?
The ebuild calls 'eapply_user' in src_prepare rather than 'default' which would do both "eapply on all PATCHES" *and* "eapply_user".
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d94f3a89b3f491b078a58f29ba9445d78a06433 commit 5d94f3a89b3f491b078a58f29ba9445d78a06433 Author: Sam James <sam@gentoo.org> AuthorDate: 2025-02-24 04:37:56 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-02-24 04:38:56 +0000 mail-filter/opensmtpd-filter-dkimsign: fix src_prepare (and patch) The ebuild calls 'eapply_user' in src_prepare rather than 'default' which would do both "eapply on all PATCHES" *and* "eapply_user". The filename in the ebuild also wasn't right. Unfortunately, the patch also couldn't then apply because it has the wrong patch-level, so fixed that too by making it -p1-compliant. Closes: https://bugs.gentoo.org/949031 Fixes: 8fcd2710762948cc3f8ad1b060ec86a43e6c35e6 Signed-off-by: Sam James <sam@gentoo.org> .../files/opensmtpd-filter-dkimsign-0.6-ed25519.patch | 12 ++++++------ ...0.6-r1.ebuild => opensmtpd-filter-dkimsign-0.6-r2.ebuild} | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-)