New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wireguard-tools 1.0.20191226 / wireguard 0.0.20191226 #76578
Conversation
Thanks for taking care of this. Please merge this 👍. |
@GrahamcOfBorg test wireguard wireguard-generated |
@Ma27 it would also be good to run the |
At the source level, the only change to the wg(8) command is: diff --git a/src/wg.c b/src/wg.c
index 7b5d3af6..dc6dda4b 100644
--- a/src/wg.c
+++ b/src/wg.c
@@ -8,6 +8,7 @@
#include <string.h>
#include "subcommands.h"
+#include "version.h"
const char *PROG_NAME;
@@ -40,6 +41,10 @@ int main(int argc, char *argv[])
{
PROG_NAME = argv[0];
+ if (argc == 2 && (!strcmp(argv[1], "-v") || !strcmp(argv[1], "--version") || !strcmp(argv[1], "version"))) {
+ printf("wireguard-tools v%s - https://git.zx2c4.com/wireguard-tools/\n", WIREGUARD_TOOLS_VERSION);
+ return 0;
+ }
if (argc == 2 && (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help") || !strcmp(argv[1], "help"))) {
show_usage(stdout);
return 0; |
the wireguard kernel module has been pulled out into it's own repo as announced in this mailing list post: https://lists.zx2c4.com/pipermail/wireguard/2019-December/004796.html
the userspace wireguard tools have been pulled out into their own repo as announced in this mailing list post: https://lists.zx2c4.com/pipermail/wireguard/2019-December/004787.html
6332c4a
to
d6be252
Compare
|
||
# module requires Linux >= 3.10 https://www.wireguard.io/install/#kernel-requirements | ||
assert stdenv.lib.versionAtLeast kernel.version "3.10"; | ||
# wireguard upstreamed since 5.6 https://lists.zx2c4.com/pipermail/wireguard/2019-December/004704.html | ||
assert stdenv.lib.versionOlder kernel.version "5.6"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is "assert" the logic we actually want? In 5.6, the module will already be provided. Maybe the best action in that case is to make the install/build part of this a no-op, or similar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
4f07282
to
d6be252
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes are overall fine. @zx2c4 and I had a short chat in #nixos
where we agreed that the question whether or not to use an assertion for linux 5.6 isn't a blocker here (sorry for delaying the merge btw!).
The kernel isn't even released yet, so if people prefer a different solution, it can be still changed later.
Hey! Apologies for the delay, I've been traveling the last few days with very patchy internet. Looking at how the linux modules get added in |
After looking at the expression: the standard pattern for that seems to be sth. like this: {
wireguard = if stdenv.lib.versionOlder kernel.version "5.6" then callPackage ../os-specific/linux/wireguard { } else null;
} |
Thanks! |
Done in #76722 |
Motivation for this change
There has been a wireguard repo reorg as a result of it's acceptance into
net-next
. More details here.The kernel module and userspace tools now live in separate repos and are versioned separately.
The announcements for the module and tools releases are here:
https://lists.zx2c4.com/pipermail/wireguard/2019-December/004796.html
https://lists.zx2c4.com/pipermail/wireguard/2019-December/004787.html
There should be no functional changes as a part of these releases.
I have also added myself as a package maintainer :).
tests performed
nix-build nixos/tests/wireguard/*
passesnix-build nixos/tests/systemd-networkd-wireguard.nix
passesnix-review rev 6332c4ac92f151a9cff77c6596470fff1b332069
passesThings done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @elseym @ericsagnes @Mic92 @zx2c4 @globin @Ma27