Can not build it - message is error: no such subcommand: +nightly
==> ERROR: A failure occurred in build().
Can you assist?
Git Clone URL: | https://aur.archlinux.org/eww-git.git (read-only, click to copy) |
---|---|
Package Base: | eww-git |
Description: | ElKowar's wacky widgets |
Upstream URL: | https://github.com/elkowar/eww |
Keywords: | statusbar wayland x11 |
Licenses: | MIT |
Conflicts: | eww |
Provides: | eww |
Submitter: | McFranko |
Maintainer: | eclairevoyant |
Last Packager: | eclairevoyant |
Votes: | 22 |
Popularity: | 0.015028 |
First Submitted: | 2020-10-27 01:41 (UTC) |
Last Updated: | 2024-09-15 05:41 (UTC) |
Can not build it - message is error: no such subcommand: +nightly
==> ERROR: A failure occurred in build().
Can you assist?
Hi, McFranko! Thanks for taking others' suggestions into account.
Please review the Rust packaging guidelines [1] and general packaging guidelines [2] so as to better the quality standards of your package. This will help all users of your package, so it's important that you review your PKGBUILD as there's a lot that can be improved.
Thanks!
[1] https://wiki.archlinux.org/index.php/Rust_package_guidelines [2] https://wiki.archlinux.org/index.php/Arch_package_guidelines
If the nightly toolchain is necessary, I recommend using rust-nightly
as make dependency.
I'd not used rust before and had a little trouble getting this to install. For me this package installed the rust package as a makedepends, but then failed to build eww with error E0554: feature attributes are only allowed on the nightly release channel.
Instead (following archwiki) I installed rustup from the repos and ran "rustup toolchain install nightly". Then I was able to build eww.
I'm not sure if the package maintainer can do anything about this, but I hope it helps someone else.
You should use the install
command instead of the mkdir
and then the mv
command. Also, the pkgver errors:
==> Starting pkgver()...
fatal: No names found, cannot describe anything.
I have updated the PKGBUILD with your suggestions
A couple issues with this package:
The license is simply WRONG - Eww is licensed under MIT, not GPL
Non-rust dependencies like gtk are missing from the list of dependencies
provides
should contain eww
The pkgver() format is kind of dumb, as it does not indicate actual order.
Instead, the suggested approach of using rREVISION_NUMBER
should be followed - the arch wiki specifies how to implement that.
The PKGBUILD currently builds eww in debug profile. Instead, it should be built in release mode.
Pinned Comments
eclairevoyant commented on 2023-04-03 17:29 (UTC)
Adopted and updated. Make sure to fetch the signing keys from GitHub and import them before building: