Closed uuksu closed 2 years ago
It looks like you have an outdated Rust environment, what does rustc -V
output?
It said:
rustc 1.42.0 (b8cedc004 2020-03-09)
I updated rustc with rustup update
and then tried installation from the AUR yet again. This time it compiled so you were absolutely correct!
I was wondering if there could be some kind of rustc version check when building the software from the AUR?
I don't think there is, but Arch Linux, and by extension Manjaro do not support partial upgrade, so if you are installing a new package like gotify-desktop
, you are expected to have previously upgraded you system, and if you have installed the rust
package you are at version 1.58
.
If you have installed rustup
which I assume is the case since your rustc
version is almost 1 year old, the toolchains are downloaded in your home directory so you can easily switch between them and you are then responsible to update them (via rustup update
for example).
Ah, I see. I'm not quite sure anymore about my Rust installation as it's been a while since the last time I've played with it. It's possible that I've installed rustup year ago and just forgot about it and today was the day I needed Rust for something.
Anyways, my Gotify Desktop works now, I've learned something new about Rust today and so this issue can be closed. Thank you for your help!
It's possible that I've installed rustup year ago and just forgot about it and today was the day I needed Rust for something.
If you want to avoid such problem in the future, I suggest you install the rust
package (it will replace rustup
on installation). That way you can rely on the usual package upgrade to maintain it up to date, and forget about it.
Your AUR package has the rust
package as depedency so it was actually installed on my machine at that point when I first tried to build the package and yet it still failed to compile. I'm pretty sure that my the default rust installation (one coming from Manjaro official repo) was overridden by older rust version I've installed. I'm not really sure how this even is possible, but hey it's one of the many Linux package management mysteries.
Hey!
I tried to install Gotify Desktop from the AUR with my Manjaro 21.2.2. Compilation seems to be failing for some reason. I also cloned the repository and tried to manually build the latest commit and the one marked with 1.2.0 tag. These failed with the same errors. For compilation I used the Rust installed by rustup.
Here is the output log I'm getting from running cargo build --release:
If I can provide you any more information, please let me know!