Search Criteria
Package Details: openvpn3 27-1
Package Actions
| Git Clone URL: | https://aur.archlinux.org/openvpn3.git (read-only, click to copy) |
|---|---|
| Package Base: | openvpn3 |
| Description: | OpenVPN 3 Linux client |
| Upstream URL: | https://codeberg.org/OpenVPN/openvpn3-linux |
| Keywords: | openvpn vpn |
| Licenses: | AGPL3 |
| Submitter: | bhyoo |
| Maintainer: | Phhere |
| Last Packager: | Phhere |
| Votes: | 28 |
| Popularity: | 2.42 |
| First Submitted: | 2020-07-04 06:51 (UTC) |
| Last Updated: | 2026-05-05 07:30 (UTC) |
Dependencies (19)
- gdbusppAUR (gdbuspp-gitAUR)
- glib2 (glib2-gitAUR, glib2-patched-thumbnailerAUR)
- jsoncpp (jsoncpp-cmake-gitAUR, jsoncpp-cmakeAUR, jsoncpp-gitAUR)
- libcap-ng (libcap-ng-gitAUR)
- libnl (libnl-gitAUR)
- lz4 (lz4-gitAUR)
- protobuf (protobuf-gitAUR)
- python-dbus
- python-gobject
- python-systemd
- tinyxml2 (tinyxml2-gitAUR)
- util-linux-libs (util-linux-libs-aesAUR, util-linux-libs-selinuxAUR)
- meson (meson-gitAUR) (make)
- python-docutils (make)
- python-jinja (make)
- mbedtls (mbedtls-gitAUR, mbedtls-dtlsAUR) (optional) – mbed TLS version
- openssl (openssl-gitAUR, openssl-staticAUR, openssl-aegisAUR) (optional) – OpenSSL version
- polkit (polkit-gitAUR, polkit-consolekitAUR) (optional) – for systemd-resolved integration
- repkg (optional) – Automatically rebuild the package on dependency updates
Required by (3)
- eovpn (optional)
- openvpn-manager-git (optional)
- openvpn3-indicator-git
Latest Comments
1 2 3 4 5 6 .. 16 Next › Last »
plop28 commented on 2026-06-09 13:03 (UTC)
protobuf was updated to v35 and openvpn 27.1 expects v34
mabrek commented on 2026-05-31 12:15 (UTC)
Workarounded build error by adding
-Wno-error=array-bounds -Wno-error=maybe-uninitialized -Wno-error=free-nonheap-objectto CXXFLAGS in /etc/makepkg.conf I guess it's better to edit PKGBUILD instead or remove 'werror=true' from default options in meson.build upstreamgrym1 commented on 2026-05-22 22:27 (UTC)
I was able to build and install successfully in a clean chroot.
grym1 commented on 2026-05-20 14:11 (UTC)
I can confirm the build error reported by airaqi. I don't know how to resolve it, and it's blocking VPN use for me. error:
This error is raised when building both
src/client/openvpn3-service-client.p/openvpn3-service-client.cpp.oandsrc/tests/ovpncli-netcfg.p/netcfg_cli.cpp.o.airaqi commented on 2026-05-09 13:11 (UTC) (edited on 2026-05-09 13:12 (UTC) by airaqi)
Build fails on my PC with the following error twice this is one of them:
JustPlainGarak commented on 2026-04-03 18:23 (UTC)
The patch posted by anarchist779 appears to work well, I'm up and running again. Thanks!
bassadin commented on 2026-03-31 12:16 (UTC) (edited on 2026-04-15 11:55 (UTC) by bassadin)
Terribly sorry to post this, but installing this failed for me and I had my AI agent fix it. To my surprise, it worked...
Build fails with protobuf [[nodiscard]] error
With the current protobuf version, ParseFromString is marked [[nodiscard]], causing a -Werror=unused-result compile error in src/netcfg/netcfg-dco.cpp:260:
error: ignoring return value of 'bool google::protobuf::MessageLite::ParseFromString(...)', declared with attribute 'nodiscard' [-Werror=unused-result]
Fix: In src/netcfg/netcfg-dco.cpp, line 260, cast the return value to void:
// Before: dco_kc.ParseFromString(base64->decode(key_config));
// After: (void)dco_kc.ParseFromString(base64->decode(key_config));
I have no idea if this is the correct fix, but it seems to have worked for me.
anarchist779 commented on 2026-03-29 16:25 (UTC) (edited on 2026-03-29 16:29 (UTC) by anarchist779)
This patch should help, clone this repository, apply it, build and install the package:
diff --git a/PKGBUILD b/PKGBUILD index b6414da..1f5d90c 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,7 +3,7 @@ _pkgname=openvpn3-linux pkgname=openvpn3 -pkgver=26 +pkgver=27 pkgrel=1 pkgdesc='OpenVPN 3 Linux client' arch=('x86_64' 'aarch64') @@ -24,16 +24,20 @@ source=( "https://swupdate.openvpn.net/community/releases/${_pkgname}-${pkgver}.tar.xz" 'openvpn3.rule' 'sysusers-openvpn3.conf' + 'handle-result-from-DcoKeyConfig_ParseFromString.patch' ) sha256sums=( - '80e35615ae913fbdbdda53495b27934a3bbb21d8b15c49a624d4992c15e196e1' + 'd8c474032546bdd90b5b7f67e40c57b4b6030253f07bda7bb6ad0db84b9eed73' 'ec0b8e28ae77b4b074d3eb8a084626e6dcfc587a07bef5d53fe1c6e160c0fc01' '045e914bb6fff5a082314dfc805bb511c9a80170619fa1e94a07825fa977c90a' + '7438c9a94090628c7e9cbfcef0353d873b3736589f2af03a905a0756b7754c0e' ) install=openvpn3.install prepare() { meson subprojects download --sourcedir="${_pkgname}-${pkgver}" + cd "${_pkgname}-${pkgver}" + patch -p1 -i "../handle-result-from-DcoKeyConfig_ParseFromString.patch" } build() { diff --git a/handle-result-from-DcoKeyConfig_ParseFromString.patch b/handle-result-from-DcoKeyConfig_ParseFromString.patch new file mode 100644 index 0000000..9ca9f49 --- /dev/null +++ b/handle-result-from-DcoKeyConfig_ParseFromString.patch @@ -0,0 +1,27 @@ +From ee192f35d29ecae64dc00b4736e1870274b58cc8 Mon Sep 17 00:00:00 2001 +From: azban <me@azban.net> +Date: Sat, 21 Mar 2026 18:41:34 -0600 +Subject: [PATCH] handle result from DcoKeyConfig_ParseFromString + +This previously failed with error unused-result. This checks the result and throws an exception if the parsing fails. +--- + src/netcfg/netcfg-dco.cpp | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/netcfg/netcfg-dco.cpp b/src/netcfg/netcfg-dco.cpp +index 290c12a8..f41836bf 100644 +--- a/src/netcfg/netcfg-dco.cpp ++++ b/src/netcfg/netcfg-dco.cpp +@@ -265,7 +265,9 @@ void NetCfgDCO::method_new_key(GVariant *params) + std::string key_config = glib2::Value::Extract<std::string>(params, 1); + + DcoKeyConfig dco_kc; +- dco_kc.ParseFromString(base64->decode(key_config)); ++ if (!dco_kc.ParseFromString(base64->decode(key_config))) { ++ throw NetCfgException("Failed to parse DCO key config"); ++ } + + auto copyKeyDirection = [](const DcoKeyConfig_KeyDirection &src, KoRekey::KeyDirection &dst) + { +-- +2.51.2blegat commented on 2026-01-29 16:22 (UTC)
There is a compatibility issue now that protobuf was updated to v33:
since openvpn3 26-1 expects v32:
boniek commented on 2025-10-04 09:58 (UTC) (edited on 2025-10-04 10:07 (UTC) by boniek)
I get this only when upgrading from older openvpn3 (24.1 I think it was). It works when freshly installed though.
1 2 3 4 5 6 .. 16 Next › Last »