Package Details: openvpn3-git 22_dev.r5.ga3de5e2-2

Git Clone URL: https://aur.archlinux.org/openvpn3-git.git (read-only, click to copy)
Package Base: openvpn3-git
Description: OpenVPN 3 Linux client
Upstream URL: https://codeberg.org/OpenVPN/openvpn3-linux
Keywords: openvpn vpn
Licenses: AGPL3
Conflicts: openvpn3
Provides: openvpn3
Submitter: bhyoo
Maintainer: bhyoo
Last Packager: bhyoo
Votes: 0
Popularity: 0.000000
First Submitted: 2020-02-13 15:22 (UTC)
Last Updated: 2024-08-08 04:04 (UTC)

Dependencies (19)

Required by (2)

Sources (5)

Latest Comments

a36233 commented on 2025-09-01 16:52 (UTC) (edited on 2025-09-01 16:52 (UTC) by a36233)

Updated patch, header-conflict2.patch thanks @marianoboragno

diff --git a/openvpn/dco/ovpn_dco_linux.h b/openvpn/dco/ovpn_dco_linux.h
index 238f71f7..28c402b6 100644
--- a/openvpn/dco/ovpn_dco_linux.h
+++ b/openvpn/dco/ovpn_dco_linux.h
@@ -239,6 +239,7 @@ enum ovpn_netlink_packet_attrs {
    OVPN_PACKET_ATTR_MAX = __OVPN_PACKET_ATTR_AFTER_LAST - 1,
 };

+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 15, 0)
 enum ovpn_ifla_attrs {
    IFLA_OVPN_UNSPEC = 0,
    IFLA_OVPN_MODE,
@@ -254,6 +255,7 @@ enum ovpn_mode {

    __OVPN_MODE_AFTER_LAST,
 };
+#endif

 /// \endcond

PKBUILD example

diff --git a/PKGBUILD b/PKGBUILD
index 8c82cc1..b6f9c4e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,8 +3,8 @@

 _pkgname=openvpn3-linux
 pkgname=openvpn3-git
-pkgver=22_dev.r5.ga3de5e2
-pkgrel=2
+pkgver=25.r4.g10d59f0
+pkgrel=1
 pkgdesc='OpenVPN 3 Linux client'
 arch=('x86_64' 'aarch64')
 provides=("openvpn3=${pkgver}")
@@ -28,6 +28,7 @@ source=(
   "git+https://github.com/chriskohlhoff/asio.git"
   'openvpn3.rule'
   'sysusers-openvpn3.conf'
+  'header-conflict2.patch'
 )
 sha256sums=(
   'SKIP'
@@ -35,6 +36,7 @@ sha256sums=(
   'SKIP'
   'ec0b8e28ae77b4b074d3eb8a084626e6dcfc587a07bef5d53fe1c6e160c0fc01'
   '045e914bb6fff5a082314dfc805bb511c9a80170619fa1e94a07825fa977c90a'
+  'SKIP'
 )
 install=openvpn3-git.install

@@ -45,6 +47,9 @@ pkgver() {

 prepare() {
   meson subprojects download --sourcedir="${_pkgname}"
+  cd "${_pkgname}/openvpn3-core"
+  patch -p1 -i "$srcdir/header-conflict2.patch"
+  cd -
   cd "${_pkgname}"
   git submodule init
   git config submodule.openvpn3-core.url "$srcdir/openvpn3"

marianoboragno commented on 2025-08-26 04:09 (UTC)

It fails to build on newer kernels due to a duplicate definition with errors like ‘IFLA_OVPN_MODE’ conflicts with a previous declaration.

I struggled with this but got it to work like below:

  1. Clone openvpn3-git: git clone https://aur.archlinux.org/openvpn3-git.git
  2. Patch PKGBUILD with this: https://pastebin.com/0ieifCQW
  3. Download this patch to openvpn3-git directory and name it "header-conflict.patch": https://pastebin.com/uGZTPJC7
  4. Build and install: makepkg -sri

If the build fails while building gdbuspp, check the comments there for the solution.

jcmendes commented on 2025-05-19 22:48 (UTC)

https://pastebin.com/128bMfAz

wcasanova commented on 2025-05-07 02:15 (UTC) (edited on 2025-05-07 02:16 (UTC) by wcasanova)

fails due to:

/usr/include/c++/15.1.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp]

I was able to compile the package successfully by adding the following flags:

CXXFLAGS+=" -Wno-error=cpp"

rzvncj commented on 2024-05-29 08:13 (UTC) (edited on 2024-05-29 08:13 (UTC) by rzvncj)

Hi, for the newest Git master version of openvpn3-linux I've added a PKGBUILD file in this GitHub comment.

The build system has been switched to meson, and this now depends on gdbuspp-git.

Hope this helps.

mad_doctor commented on 2022-07-07 20:00 (UTC)

I think that python-systemd should remain an optional dependency (as is polkit) because using systemd-resolved is optional. That way the package will remain "portable" and can be used by other arch-based distributions that does not use systemd for init.