Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 717582 - net-vpn/wireguard-modules-1.0.20200413 fails to build
Summary: net-vpn/wireguard-modules-1.0.20200413 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Jason A. Donenfeld
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-15 13:11 UTC by Michele Santullo
Modified: 2020-04-16 22:19 UTC (History)
1 user (show)

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


Attachments
output of emerge --info and emerge output (attachment.zip,5.29 KB, application/zip)
2020-04-15 13:11 UTC, Michele Santullo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Santullo 2020-04-15 13:11:14 UTC
Created attachment 633072 [details]
output of emerge --info and emerge output

As per the title, during my system update today wireguard-modules errored out. 

Build log is available here https://alarmpi.no-ip.org/kamokan/jh for a bit, and it's in the attached zip along with my emerge --info.
Comment 1 Jason A. Donenfeld gentoo-dev 2020-04-16 06:20:50 UTC
I'm having trouble reproducing this with 5.4.28. Have you applied any odd patches to your kernel?
Comment 2 Jason A. Donenfeld gentoo-dev 2020-04-16 06:28:53 UTC
Can you tell me if this patch fixes it for you?

mkdir -p /etc/portage/patches/net-vpn/wireguard-modules
wget -O /etc/portage/patches/net-vpn/wireguard-modules/bug-717582.patch https://git.zx2c4.com/wireguard-linux-compat/patch/?id=fd14b5724c6982bb41beca6ace8d3ffd1fd00880
Comment 3 Jason A. Donenfeld gentoo-dev 2020-04-16 09:26:28 UTC
I managed to reproduce the issue. It manifests itself with net_sched turned on, but netfilter turned off.

The fix is now upstream, and will be released in the next snapshot. In the meantime, I'll add the patch to the ebuild for you.

https://git.zx2c4.com/wireguard-linux-compat/commit/?id=bd388363a66d67f0e04f9c45b20a9f33dfcf79f6
Comment 4 Larry the Git Cow gentoo-dev 2020-04-16 09:30:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfbdfbdced1bec0ee38f278d94d479254c3cdf6a

commit dfbdfbdced1bec0ee38f278d94d479254c3cdf6a
Author:     Jason A. Donenfeld <zx2c4@gentoo.org>
AuthorDate: 2020-04-16 09:29:58 +0000
Commit:     Jason A. Donenfeld <zx2c4@gentoo.org>
CommitDate: 2020-04-16 09:30:15 +0000

    net-vpn/wireguard-modules: include sch_generic.h header for skb_reset_tc
    
    Fixes: https://bugs.gentoo.org/717582
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>

 ...d-modules-1.0.20200413-sch_generic-header.patch | 26 ++++++++++++++++++++++
 .../wireguard-modules-1.0.20200413.ebuild          |  2 ++
 2 files changed, 28 insertions(+)
Comment 5 Michele Santullo 2020-04-16 09:32:35 UTC
I don't know what happened to the comment I posted... I'll re-type it

Thanks for looking into this. I don't have any custom patches for the kernel, the one I have is 5.4.28-gentoo.
Comment 6 Jason A. Donenfeld gentoo-dev 2020-04-16 22:19:38 UTC
Can you confirm that the new ebuild fixes the issue for you?