Recently Wireguard got backported to 5.4, however the Fedora config used is quite old and doesn't take that into account (although of course in following releases it is enabled). Meanwhile Gentoo's net-vpn/wireguard-modules checks if $KERNEL_DIR/include/uapi/linux/wireguard.h exists and dies if it does, prompting me to use CONFIG_WIREGUARD=y for my kernel. I'm not sure which of the two packages this issue should be assigned to, so for now I'm opening it here.
Why do you want to emerge net-vpn/wireguard-modules while your kernel already has the module?
Sorry, I realise dialectic is not my strongest point. sys-kernel/gentoo-kernel-bin-5.4.60 (the precompiled one) currently comes with CONFIG_WIREGUARD unset, although the module is actually present in the source code.
Patch, please? Add some sed to the ebuild.
Created attachment 657180 [details, diff] wireguard.patch I think adding this should be sufficient, olddefconfig seems to pull in the required dependencies as well.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dc9b42bd7f54e1ee89fd2a6a6d88c2a4ddbe6e4 commit 7dc9b42bd7f54e1ee89fd2a6a6d88c2a4ddbe6e4 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2020-09-10 06:43:42 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2020-09-10 08:48:50 +0000 sys-kernel/gentoo-kernel: Bump to 5.4.64 Closes: https://bugs.gentoo.org/739128 Closes: https://bugs.gentoo.org/740846 Closes: https://github.com/gentoo/gentoo/pull/17450 Signed-off-by: Michał Górny <mgorny@gentoo.org> sys-kernel/gentoo-kernel/Manifest | 2 + .../gentoo-kernel/gentoo-kernel-5.4.64.ebuild | 137 +++++++++++++++++++++ 2 files changed, 139 insertions(+)