PSA: Upstream does not support building natively for ARM64, only cross-compiling.
Search Criteria
Package Details: mullvad-vpn-cli 2024.8-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/mullvad-vpn-cli.git (read-only, click to copy) |
---|---|
Package Base: | mullvad-vpn-cli |
Description: | The Mullvad VPN CLI client |
Upstream URL: | https://www.mullvad.net |
Licenses: | GPL-3.0-or-later |
Conflicts: | mullvad-vpn |
Provides: | mullvad-vpn |
Submitter: | t1m0 |
Maintainer: | yochananmarqos |
Last Packager: | yochananmarqos |
Votes: | 20 |
Popularity: | 0.76 |
First Submitted: | 2020-02-07 18:37 (UTC) |
Last Updated: | 2024-12-13 02:40 (UTC) |
Dependencies (7)
- dbus (dbus-gitAUR, dbus-selinuxAUR)
- iputils (busybox-coreutilsAUR, iputils-gitAUR)
- libnftnl (libnftnl-fullconeAUR, libnftnl-gitAUR)
- cargo (rustup-gitAUR, rust-nightly-binAUR, rust-gitAUR, rust-beta-binAUR, rustup-stubAUR, rust, rustup) (make)
- git (git-gitAUR, git-glAUR) (make)
- go (go-gitAUR, gcc-go-gitAUR, gcc-go-snapshotAUR, gcc-go) (make)
- protobuf (protobuf-gitAUR) (make)
Required by (4)
- mullvad-vpn-dinit (requires mullvad-vpn)
- mullvad-vpn-openrc (requires mullvad-vpn)
- mullvad-vpn-s6 (requires mullvad-vpn)
- polybar-mullvad-git
Sources (4)
- git+https://github.com/mullvad/maybenot.git#commit=b06094e81701782d28cd2312f58e0654109d04ce
- git+https://github.com/mullvad/mullvadvpn-app-binaries.git#commit=049d5d3bc0c86c29c20f2073460186a83c1d7094?signed
- git+https://github.com/mullvad/mullvadvpn-app.git#tag=2024.8?signed
- git+https://github.com/mullvad/wireguard-go.git#commit=b1cf09a982bba6f6c63fadc956d88e8c2326d05e?signed
yochananmarqos commented on 2022-11-13 19:21 (UTC)
aorth commented on 2022-10-19 16:04 (UTC) (edited on 2022-10-24 15:19 (UTC) by aorth)
I'm getting a build error with all 2022.5 versions recently:
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Failure { command: "\"pkg-config\" \"--libs\" \"--cflags\" \"libnftnl\" \"libnftnl >= 1.1.0\"", output: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "Package libnftnl was not found in the pkg-config search path.\nPerhaps you should add the directory containing `libnftnl.pc'\nto the PKG_CONFIG_PATH environment variable\nPackage 'libnftnl', required by 'virtual:world', not found\nPackage 'libnftnl', required by 'virtual:world', not found\n" } }', /build/.cargo/registry/src/github.com-1ecc6299db9ec823/nftnl-sys-0.6.1/build.rs:44:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Building in a clean chroot.
Edit: I finally got this to build. I think the failures could have been because cargo takes forever to update the crates index and fails many times for me.
leveller commented on 2022-10-15 21:10 (UTC)
@yochananmarqos Thanks again, all working fine now after that last whitespace fix.
yochananmarqos commented on 2022-10-15 20:34 (UTC)
@miffe: Fixed.
miffe commented on 2022-10-15 20:29 (UTC)
Build fails during package() with:
install: failed to access '/build/mullvad-vpn-cli/pkg/mullvad-vpn-cli/opt/MullvadVPN/resources/': No such file or directory
yochananmarqos commented on 2022-10-15 17:31 (UTC)
@leveller: Aha!
leveller commented on 2022-10-15 17:18 (UTC)
@yochananmarqos Thanks. Not tried your suggestion, but I looked inside /var/log/mullvad-vpn/openvpn.log
and there was an error about a missing resources/ca.crt
file. Therefore I added this to the PKGBUILD inside the package()
function:
install -Dm644 dist-assets/ca.crt -t "$pkgdir/opt/Mullvad VPN/resources/"
And openvpn now works!
yochananmarqos commented on 2022-10-15 15:03 (UTC)
@leveller: I've fixed the typo, but have no idea why OpenVPN is not working. Can you reproduce it with mullvad-vpn
or mullvad-vpn-bin
?
leveller commented on 2022-10-15 12:59 (UTC) (edited on 2022-10-15 13:02 (UTC) by leveller)
@yochananmarqos Currently it no longer builds with the PKGBUILD on here. Line number 112 of PKGBUILD needs to be changed from install -Dm644 dist-assets/linux/mullvad{-daemon,-early-boot-blocking} -t \
to install -Dm644 dist-assets/linux/mullvad{-daemon,-early-boot-blocking}.service -t \
(i.e. add .service
)
After that it builds OK and once again Wireguard works. However openvpn still doesn't work, I'm now getting a different error. This repeats over and over in the systemd journal:
mullvad-daemon[525]: [talpid_core::tunnel::openvpn][DEBUG] Writing credentials to /tmp/(REDACTED)
mullvad-daemon[525]: [talpid_core::process::openvpn][DEBUG] Building expression: '/opt/Mullvad VPN/resources/openvpn' --client --tls-client --nobind --dev tun --ping 4 --ping-exit 25 --connect-timeout 30 --connect-retry 0 0 --connect-retry-max 1 --remote-cert-tls server --rcvbuf 1048576 --sndbuf 1048576 --fast-io --data-ciphers-fallback AES-256-GCM --tls-version-min 1.3 --verb 3 --route-noexec --proto tcp-client --remote (REDACTED) --auth-user-pass /tmp/(REDACTED) --iproute /usr/bin/ip --ca '/opt/Mullvad VPN/resources/ca.crt' --plugin '/opt/Mullvad VPN/resources/libtalpid_openvpn_plugin.so' /tmp/talpid-openvpn-(REDACTED) --log /var/log/mullvad-vpn/openvpn.log --pull-filter ignore route-ipv6 --pull-filter ignore ifconfig-ipv6 --tls-ciphersuites 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256' --mark (REDACTED)
mullvad-daemon[525]: [talpid_core::tunnel::openvpn][ERROR] OpenVPN died unexpectedly with status: exit status: 1
I've replaced some of that with (REDACTED)
because frankly I wasn't sure which bits are sensitive.
As for taking over the maintaining of this, unfortunately I don't think I'm knowledgeable enough to do that at the moment.
yochananmarqos commented on 2022-10-13 23:47 (UTC)
@leveller: Apparently the original maintainer had no idea what he was doing and just copied and pasted from the mullvad-vpn
PKGBUILD. I assumed it was working and did the same.
I don't use this (I use mullvad-vpn-beta
), so let me know if it's working now. Also let me know if you'd like to take over maintaining this.
Pinned Comments
yochananmarqos commented on 2021-12-01 23:30 (UTC) (edited on 2021-12-01 23:32 (UTC) by yochananmarqos)
--> ALWAYS DO A CLEAN BUILD <--
This package will verify the signature of the git tag / commit. Developer keys are available here and instructions are here. See the PKGBUILD to determine which developer key you need.