@Technetium1: It turns out I had forgotten to update the checksums, they're corrected now.
In the future, please be more specific than "failing to build". That upstream commit has nothing to do with anything.
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: | 19 |
Popularity: | 1.27 |
First Submitted: | 2020-02-07 18:37 (UTC) |
Last Updated: | 2024-07-26 16:15 (UTC) |
@Technetium1: It turns out I had forgotten to update the checksums, they're corrected now.
In the future, please be more specific than "failing to build". That upstream commit has nothing to do with anything.
Failing to build. Maybe you also want to pin to the latest commit here: https://github.com/mullvad/mullvadvpn-app-binaries/commit/b0c37cecd9b671d2480a7dc9636da93d76e2b14c
There is a problem during prepare()
, it cannot find Cargo.toml
inside '~/.cargo/git/checkouts/udp-over-tcp-f1cba70dbd168f08/4d52f93'
. It causes it to fail to get udp-over-tcp
as a dependency of package tunnel-obfuscation v0.0.0
.
PSA: Upstream does not support building natively for ARM64, only cross-compiling.
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.
@yochananmarqos Thanks again, all working fine now after that last whitespace fix.
@miffe: Fixed.
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
@leveller: Aha!
@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!
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.