Package Details: openvpn3 21-3

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://github.com/OpenVPN/openvpn3-linux
Licenses: AGPL3
Submitter: bhyoo
Maintainer: bhyoo
Last Packager: bhyoo
Votes: 14
Popularity: 0.64
First Submitted: 2020-07-04 06:51 (UTC)
Last Updated: 2023-11-24 00:02 (UTC)

Pinned Comments

bhyoo commented on 2023-11-04 09:27 (UTC)

Because the origin source code does not support upstream glib2, this package delivers statically compiled glib2 2.74.6 within binary starting from 21-1. Please give any feedback if it does not work.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

eathtespagheti commented on 2022-04-26 09:06 (UTC)

@bhyoo just tested, it still uses pushd and therefore fails when launching commands via dash, maybe the solution could be to add bash as a build dependency and run all the commands with bash -c

bhyoo commented on 2022-04-25 14:29 (UTC)

@ribugent @pkulak @eathtespagheti @rahulmb Updated dependencies and build script. Thanks for notification!

@eathtespagheti Could you test dash compatibility?

campanari commented on 2022-04-25 11:49 (UTC)

thanks @ribugent

That worked for me too.

ribugent commented on 2022-03-29 11:12 (UTC)

In my case, I've fixed it by patching the source code via pkgbuild

diff --git a/PKGBUILD b/PKGBUILD
index 13702e4..d97724c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -25,6 +25,7 @@ sha256sums=('SKIP')

 build() {
   cd "$_pkgname"
+  sed -i 's:gio-unix-2.0/gio/gunixconnection.h:glib-2.0/gio/gunixsocketaddress.h:g' src/netcfg/netcfg-device.hpp
   ./bootstrap.sh
   ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --localstatedir=/var --enable-bash-completion --enable-dco
   make -j $(nproc)

Hope this helps

pkulak commented on 2022-03-22 18:04 (UTC) (edited on 2022-03-22 18:18 (UTC) by pkulak)

I'm getting this error when it tries to compile:

src/netcfg/netcfg-device.hpp:33:10: fatal error: gio-unix-2.0/gio/gunixconnection.h: No such file or directory

which makes sense; I indeed don't have that header. But I'm not exactly sure how to get this to install.

EDIT: Okay, I'm symlinked the header into where it was expecting it:

ln -s /usr/include/glib-2.0/gio/gunixconnection.h /usr/include/gio-unix-2.0/gio/

which worked, but seems like a bit of a hack. :D

eathtespagheti commented on 2022-03-18 13:55 (UTC)

Hi, the build fails because it's using pushd and popd, that aren't available in some shells (e.g. dash) since it's not a POSIX functionality, therefore the build process should be adapted to use something like bash as a shell

ribugent commented on 2022-02-28 13:41 (UTC)

There's an issue with the tinyxml2, it's declared as a makedepends and also as optdepends.

Currently, my system doesn't have the tinyxml2 installed per se, and also my aur helper(yay) cleans build dependencies always, so I've ended up with a broken openvpn3-admin binary

$ ldd /usr/bin/openvpn3-admin
        linux-vdso.so.1 (0x00007fff1ebd6000)
        libcrypto.so.1.1 => /usr/lib/libcrypto.so.1.1 (0x00007f2e97c94000)
        libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0x00007f2e97aca000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007f2e97a6f000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f2e97932000)
        libjsoncpp.so.25 => /usr/lib/libjsoncpp.so.25 (0x00007f2e978fa000)
        libuuid.so.1 => /usr/lib/libuuid.so.1 (0x00007f2e978f1000)
        libsystemd.so.0 => /usr/lib/libsystemd.so.0 (0x00007f2e97813000)
        libprotobuf.so.30 => /usr/lib/libprotobuf.so.30 (0x00007f2e97527000)
        libtinyxml2.so.9 => not found
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f2e97301000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f2e972e6000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f2e972e1000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007f2e970d5000)
        libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f2e970d0000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00007f2e970c9000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007f2e970af000)
        libmount.so.1 => /usr/lib/libmount.so.1 (0x00007f2e9706c000)
        libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007f2e97058000)
        libffi.so.8 => /usr/lib/libffi.so.8 (0x00007f2e9704a000)
        libpcre.so.1 => /usr/lib/libpcre.so.1 (0x00007f2e96fd3000)
        /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f2e9801b000)
        librt.so.1 => /usr/lib/librt.so.1 (0x00007f2e96fce000)
        liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007f2e96fa5000)
        libzstd.so.1 => /usr/lib/libzstd.so.1 (0x00007f2e96ef6000)
        liblz4.so.1 => /usr/lib/liblz4.so.1 (0x00007f2e96ed3000)
        libcap.so.2 => /usr/lib/libcap.so.2 (0x00007f2e96ec5000)
        libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007f2e96d89000)
        libm.so.6 => /usr/lib/libm.so.6 (0x00007f2e96ca1000)
        libblkid.so.1 => /usr/lib/libblkid.so.1 (0x00007f2e96c69000)
        libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007f2e96c42000)

This seems to be caused by their makefile where it detects tinyxml2 on build time and enables it.

Not sure what is the best approach to deal with that in "Arch way"... setting up as optional will require to users install it before building openvpn3 and it can cause breakages if the user removes it because was optional...

I think it would be better to set it as mandatory because the tinyxml2 doesn't pull any extra dependency and his size is only ~172KB

$ pacman -Si tinyxml2
Repository      : community
Name            : tinyxml2
Version         : 9.0.0-1
Description     : Simple XML parser made for easy integration
Architecture    : x86_64
URL             : http://www.grinninglizard.com/tinyxml2
Licenses        : zlib
Groups          : None
Provides        : None
Depends On      : None
Optional Deps   : None
Conflicts With  : None
Replaces        : None
Download Size   : 47.08 KiB
Installed Size  : 172.18 KiB
Packager        : Antonio Rojas <arojas@archlinux.org>
Build Date      : Mon Jun 14 15:54:01 2021
Validated By    : MD5 Sum  SHA-256 Sum  Signature

Thank you

rahulmb commented on 2022-02-15 19:10 (UTC)

You're missing python-systemd for systemd daemon. The module is imported here https://github.com/OpenVPN/openvpn3-linux/blob/8ff06c746a3aa33761841b0d85cd913c51c78511/distro/systemd/openvpn3-systemd

remanifest commented on 2022-01-28 22:38 (UTC)

Per this discussion, it appears that this is not tracking jsoncpp as a dependency, and openvpn3 was failing to run properly. Apparently, this package needs to be rebuilt following the jsoncpp update.

https://github.com/OpenVPN/openvpn3-linux/issues/97

I was able to rebuild it from source on this side, which did appear to fix the problem. It would be great to see that incorporated into this package.

pkulak commented on 2021-12-23 04:13 (UTC)

@bhyoo I think I did that install on a laptop that no longer runs, so I don't have a history to look back at, unfortunately. I remember it failing (I think Python?) because of an unmet dependency on Hawkey. Installing that fixed everything.