Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 739128 - sys-kernel/gentoo-kernel{,-bin}: enable Wireguard for the 5.4 series
Summary: sys-kernel/gentoo-kernel{,-bin}: enable Wireguard for the 5.4 series
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2020-08-26 16:16 UTC by Shiba
Modified: 2020-09-10 08:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
wireguard.patch (wireguard.patch,507 bytes, patch)
2020-08-27 19:50 UTC, Shiba
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Shiba 2020-08-26 16:16:24 UTC
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.
Comment 1 Alarig Le Lay 2020-08-26 19:23:21 UTC
Why do you want to emerge net-vpn/wireguard-modules while your kernel already has the module?
Comment 2 Shiba 2020-08-26 20:27:56 UTC
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.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-08-27 16:13:26 UTC
Patch, please?  Add some sed to the ebuild.
Comment 4 Shiba 2020-08-27 19:50:12 UTC
Created attachment 657180 [details, diff]
wireguard.patch

I think adding this should be sufficient, olddefconfig seems to pull in the required dependencies as well.
Comment 5 Larry the Git Cow gentoo-dev 2020-09-10 08:48:58 UTC
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(+)