Package Details: amneziawg-linux 1.0.20260329-1

Git Clone URL: https://aur.archlinux.org/amneziawg-linux.git (read-only, click to copy)
Package Base: amneziawg-linux
Description: AmneziaWG is a contemporary version of the popular VPN protocol, WireGuard.
Upstream URL: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module
Licenses: GPLv2
Provides: AMNEZIAWG-MODULE
Submitter: VVL
Maintainer: VVL
Last Packager: VVL
Votes: 5
Popularity: 0.000190
First Submitted: 2024-09-30 22:01 (UTC)
Last Updated: 2026-03-30 08:25 (UTC)

Latest Comments

1 2 3 Next › Last »

anviar commented on 2026-03-24 04:31 (UTC)

pkgname=amneziawg-linux
pkgdesc="AmneziaWG is a contemporary version of the popular VPN protocol, WireGuard."
url="https://github.com/amnezia-vpn/amneziawg-linux-kernel-module"
arch=("x86_64")
pkgver=1.0.20260210
pkgrel=1
license=('GPLv2')
provides=("AMNEZIAWG-MODULE=${pkgver}")
_kernel=$(uname -r | sed 's/-.*//')
source=("$pkgname-$pkgver.tar.gz::https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/archive/refs/tags/v${pkgver}.tar.gz"
        "https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${_kernel}.tar.xz")
sha512sums=('705fbbb13e5d2f456fb321942ecd404420c5e54c75fbd28b7fd34583c9d6b0ca3b63e3eb18ddbb49f34354ffa0c042745fe2a0c97946a4dab65b52ebc864d5b5'
        'SKIP')
install="amneziawg-linux.install"

build() {
    cd ${srcdir}/amneziawg-linux-kernel-module-${pkgver}/src
    ln -s ${srcdir}/linux-${_kernel} kernel
    make
}

package() {
    cd ${srcdir}/amneziawg-linux-kernel-module-${pkgver}/src
    install -Dm644 "${srcdir}/amneziawg-linux-kernel-module-${pkgver}/src/amneziawg.ko" "$pkgdir/usr/lib/modules/$(uname -r)/kernel/drivers/net/wireguard/amneziawg.ko"
}

workaround: build with linux-lts kernel version

https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/138

RSG245 commented on 2026-03-20 14:47 (UTC)

CC [M] main.o CC [M] noise.o noise.c: В функции «wg_noise_init»: noise.c:39:30: ошибка: размер «blake» в памяти неизвестен 39 | struct blake2s_state blake; | ^ noise.c:41:46: ошибка: при передаче аргумента 2 «blake2s» указатель преобразуется в целое без приведения типа [-Wint-conversion] 41 | blake2s(handshake_init_chaining_key, handshake_name, NULL, | ^~ | | | const u8 * {aka const unsigned char } In file included from messages.h:11, from noise.h:8, from noise.c:6: /usr/lib/modules/6.19.8-arch1-1/build/include/crypto/blake2s.h:145:50: замечание: expected «size_t» {aka «long unsigned int»} but argument is of type «const u8 » {aka «const unsigned char »} 145 | static inline void blake2s(const u8 key, size_t keylen, | ~^~ noise.c:42:33: ошибка: при передаче аргумента 5 «blake2s» целое преобразуется в указатель без приведения типа [-Wint-conversion] 42 | NOISE_HASH_LEN, sizeof(handshake_name), 0); | ^~ | | | long unsigned int /usr/lib/modules/6.19.8-arch1-1/build/include/crypto/blake2s.h:147:32: замечание: expected «u8 » {aka «unsigned char »} but argument is of type «long unsigned int» 147 | u8 *out, size_t outlen) | ^ noise.c:39:30: предупреждение: неиспользуемая переменная «blake» [-Wunused-variable] 39 | struct blake2s_state blake; | ^ noise.c: В функции «hmac»: noise.c:310:30: ошибка: размер «state» в памяти неизвестен 310 | struct blake2s_state state; | ^ noise.c:310:30: предупреждение: неиспользуемая переменная «state» [-Wunused-variable] noise.c: В функции «mix_hash»: noise.c:437:30: ошибка: размер «blake» в памяти неизвестен 437 | struct blake2s_state blake; | ^ noise.c:437:30: предупреждение: неиспользуемая переменная «blake» [-Wunused-variable] make[3]: *** [/usr/lib/modules/6.19.8-arch1-1/build/scripts/Makefile.build:289: noise.o] Ошибка 1 make[2]: *** [/usr/lib/modules/6.19.8-arch1-1/build/Makefile:2064: .] Ошибка 2 make[1]: *** [Makefile:248: __sub-make] Ошибка 2 make: *** [Makefile:27: module] Ошибка 2 ==> ОШИБКА: Произошел сбой в build().

distrayer commented on 2025-02-11 16:28 (UTC)

If after updating amneziawg-linux awg-quick doesn't use this kernel module, you need to rebuild amneziawg-tools and amneziawg-go (idk which of them explicitly causes this problem)

VVL commented on 2024-12-09 10:57 (UTC)

I've removed hard depend on version of linux package. You may try to build it now.

AlexWayfer commented on 2024-12-08 12:50 (UTC)

resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing linux (6.12.3.arch1-1) breaks dependency 'linux=6.11.6.arch1-1' required by amneziawg-linux
:: installing linux-headers (6.12.3.arch1-1) breaks dependency 'linux-headers=6.11.6.arch1-1' required by amneziawg-linux
 -> error installing repo packages

VVL commented on 2024-11-20 13:07 (UTC)

I double-checked everything and was able to reproduce the error. For some unknown reason, all package managers working with AUR determine the dependencies of the pkg{} block before building, and not during packaging, as intended in this PKGBUILD. This causes some inconvenience - a hard link to the linux version is needed for correct updating of the kernel in the future - you will also need to update the amneziawg-linux package, otherwise the kernel will be updated and the module will stop working. I don't know how to solve this problem yet, I will try different options.

VVS commented on 2024-11-19 13:23 (UTC)

No packages amneziawg-linux, linux-headers, linux in cache.

VVL commented on 2024-11-18 19:05 (UTC)

Can you clear your yay cache (build directory)?