FS#53115 - [wireguard-tools] Make WIREGUARD-MODULE optional

Attached to Project: Community Packages
Opened by Peter Wu (Lekensteyn) - Tuesday, 28 February 2017, 18:41 GMT
Last edited by Christian Hesse (eworm) - Sunday, 30 December 2018, 22:15 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
wireguard-tools includes stuff that do not depend on wireguard-dkms (manpages, binaries). A kernel could also be compiled with wireguard included for example and then I only need the binaries.

Please consider making WIREGUARD-MODULE optional
This task depends upon

Closed by  Christian Hesse (eworm)
Sunday, 30 December 2018, 22:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  wireguard 0.0.20181218-2
Comment by Mikael Eriksson (miffe) - Tuesday, 04 September 2018, 21:31 GMT
I use wireguard in containers, so only the host system needs the module. It would be nice to be able to install the tools without having to install the dkms package in the containers.
Comment by MikeS (MS1) - Tuesday, 04 December 2018, 18:16 GMT
The container use case it a good reason to do it. DKMS has 213 MiB of dependencies :D
Comment by Eli Schwartz (eschwartz) - Tuesday, 04 December 2018, 19:27 GMT
IMHO a kernel with compiled support should provides=('WIREGUARD-MODULE')

Manpages are useless without binaries, but I suppose I see the point re: containers relying on the module from the host system. Still that doesn't seem like the common use case, which would then be broken.

Maybe it would be less burdensome in a container, if it could depend on a wireguard package that provided the compiled module but did not need dkms. It's pretty easy to generate binary packages by makedepending on the dkms package: https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/broadcom-wl

Alternatively, maybe it would make sense for users of containers to install dummy packages that provide the things they know their host system has support for...
Comment by John (graysky) - Saturday, 08 December 2018, 12:38 GMT
@eschwartz - I think a containerized wg0 is a common use case. See slide 20 (https://www.wireguard.com/talks/lpc2018-wireguard-slides.pdf) or watch the video at about 22:40 (https://www.youtube.com/watch?v=CejbCQ5wS7Q).

Loading...