Package Details: topgrade 16.0.1-1

Git Clone URL: https://aur.archlinux.org/topgrade.git (read-only, click to copy)
Package Base: topgrade
Description: Upgrade all the things
Upstream URL: https://topgrade-rs.github.io
Licenses: GPL-3.0-or-later
Submitter: darwish
Maintainer: yochananmarqos (s34m)
Last Packager: yochananmarqos
Votes: 65
Popularity: 1.22
First Submitted: 2018-06-10 09:51 (UTC)
Last Updated: 2024-10-12 18:12 (UTC)

Required by (0)

Sources (1)

Latest Comments

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

haawda commented on 2022-03-24 18:27 (UTC)

Okay, it builds in a clean chroot. I guess, it is a rust vs. rustup thingy. But namcap tells me, gcc-libs is a dependency.

haawda commented on 2022-03-24 06:32 (UTC)

8.3.0 does not build:

   Compiling futures-task v0.3.21
   Compiling atty v0.2.14
   Compiling dirs-sys-next v0.1.2
   Compiling terminal_size v0.1.17
error[E0599]: no function or associated item named `as_ptr` found for type `std::sync::Arc<_>` in the current scope
  --> /home/haawda/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-task-0.3.21/src/waker_ref.rs:58:20
   |
58 |     let ptr = Arc::as_ptr(wake).cast::<()>();
   |                    ^^^^^^ function or associated item not found in `std::sync::Arc<_>`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0599`.
error: could not compile `futures-task`.
warning: build failed, waiting for other jobs to finish...
error: build failed
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...

focusaurus commented on 2022-03-07 14:07 (UTC)

Having rust compiler errors trying to build topgrade recently. Most are "not allowed in a const fn" flavors.

error[E0658]: `match` is not allowed in a `const fn`
    --> /home/plyons/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.23.1/src/errno.rs:936:9
     |
936  | /         match e {
937  | |             libc::EPERM => EPERM,
938  | |             libc::ENOENT => ENOENT,
939  | |             libc::ESRCH => ESRCH,
...    |
1070 | |             _   => UnknownErrno,
1071 | |         }
     | |_________^
     |
     = note: see issue #49146 <https://github.com/rust-lang/rust/issues/49146> for more information

error[E0658]: `if` is not allowed in a `const fn`
  --> /home/plyons/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.23.1/src/fcntl.rs:28:1
   |
28 | / libc_bitflags! {
29 | |     pub struct AtFlags: c_int {
30 | |         AT_REMOVEDIR;
31 | |         AT_SYMLINK_FOLLOW;
...  |
39 | |     }
40 | | }
   | |_^
   |
   = note: see issue #49146 <https://github.com/rust-lang/rust/issues/49146> for more information
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

I had to manually install a binary from github as a workaround.

Superjolly002 commented on 2021-01-18 13:54 (UTC)

How can I fix it?

==> Starting build () ...
error: no override and no default toolchain set
==> ERROR: An error occurred in build ().
     The operation is about to be stopped ...
error making: topgrade

idanski commented on 2020-07-06 12:08 (UTC)

@yochananmarqos - Topgrade is not meant to be compiled with --all-features. We will add --locked. Thank you for your comment!

yochananmarqos commented on 2020-02-27 22:56 (UTC)

Please follow Rust package guidelines:

build() {
    cd "$pkgname-$pkgver"
    cargo build --release --locked --all-features
}

check() {
    cd "$pkgname-$pkgver"
    cargo test --release --locked
}