Package Details: proxmox-backup-client 3.2.7-2

Git Clone URL: https://aur.archlinux.org/proxmox-backup-client.git (read-only, click to copy)
Package Base: proxmox-backup-client
Description: Client for Proxmox Backup Server
Upstream URL: https://pbs.proxmox.com
Keywords: backup pbs proxmox pve rust
Licenses: AGPL3
Submitter: flumm
Maintainer: flumm (tommitscheck)
Last Packager: tommitscheck
Votes: 19
Popularity: 0.001569
First Submitted: 2020-07-15 08:23 (UTC)
Last Updated: 2024-09-19 07:45 (UTC)

Latest Comments

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

knieselpriem commented on 2022-10-23 09:22 (UTC) (edited on 2022-10-23 09:24 (UTC) by knieselpriem)

failed to get `anyhow` as a dependency of package `pbs-client v0.1.0` on x86-64 (6.0.2-2-MANJARO) with command pamac install proxmox-backup-client

applying patch '0001-re-route-dependencies-not-available-on-crates.io-to-.patch'
patching file Cargo.toml
warning: /var/cache/private/pamac/proxmox-backup-client/src/proxmox-backup-client-2.2.1/Cargo.toml: unused manifest key: workspace.pbs-api-types
warning: /var/cache/private/pamac/proxmox-backup-client/src/proxmox-backup-client-2.2.1/Cargo.toml: unused manifest key: workspace.pbs-buildcfg
warning: /var/cache/private/pamac/proxmox-backup-client/src/proxmox-backup-client-2.2.1/Cargo.toml: unused manifest key: workspace.pbs-client
warning: /var/cache/private/pamac/proxmox-backup-client/src/proxmox-backup-client-2.2.1/Cargo.toml: unused manifest key: workspace.pbs-config
warning: /var/cache/private/pamac/proxmox-backup-client/src/proxmox-backup-client-2.2.1/Cargo.toml: unused manifest key: workspace.pbs-datastore
warning: /var/cache/private/pamac/proxmox-backup-client/src/proxmox-backup-client-2.2.1/Cargo.toml: unused manifest key: workspace.pbs-tape
warning: /var/cache/private/pamac/proxmox-backup-client/src/proxmox-backup-client-2.2.1/Cargo.toml: unused manifest key: workspace.pbs-tools
warning: /var/cache/private/pamac/proxmox-backup-client/src/proxmox-backup-client-2.2.1/Cargo.toml: unused manifest key: workspace.proxmox-rest-server
warning: /var/cache/private/pamac/proxmox-backup-client/src/proxmox-backup-client-2.2.1/Cargo.toml: unused manifest key: workspace.proxmox-rrd
error: failed to get `anyhow` as a dependency of package `pbs-client v0.1.0 (/var/cache/private/pamac/proxmox-backup-client/src/proxmox-backup-client-2.2.1/pbs-client)`

Caused by:
failed to load source for dependency `anyhow`

Caused by:
Unable to update registry `crates-io`

Caused by:
failed to create directory `/.cargo/registry/index/github.com-1ecc6299db9ec823`

Caused by:
Read-only file system (os error 30)

How can I avoid this?

DanSman commented on 2022-02-14 19:30 (UTC)

@flumm

Thank you for pointing this out. I thought I already have it.

flumm commented on 2022-02-13 19:32 (UTC)

@DanSman

You should install the base-devel group as written here: https://wiki.archlinux.org/title/Arch_User_Repository#Prerequisites

That should contain both patch and pkg-config

DanSman commented on 2022-02-13 19:16 (UTC)

proxmox-backup-client/PKGBUILD: line 40: patch: command not found on aarch64 device.

And

  It looks like you're compiling on Linux and also targeting Linux. Currently this
  requires the `pkg-config` utility to find OpenSSL but unfortunately `pkg-config`
  could not be found. If you have OpenSSL installed you can likely fix this by
  installing `pkg-config`.

So https://archlinux.org/packages/core/x86_64/patch/ and https://archlinux.org/packages/core/x86_64/pkgconf/ seems to be missing.

BuzzKillingtonne commented on 2021-12-12 21:57 (UTC)

Thanks for all your hard work!

tommitscheck commented on 2021-12-12 12:35 (UTC) (edited on 2021-12-12 13:23 (UTC) by tommitscheck)

The issue is actually not the compiler at all, its a newer anyhow crate version than Proxmox uses that gets pulled in on Arch.

The anyhow version 1.0.49 adds a Ok fn helper which gets imported by accident on a few places and trips then up resolving the tuple variant from the implicit imported core::result::Result::Ok

You can override anyhow to stick at 1.0.48 or wait until the anyhow imports gets fixed up in the Proxmox Backup code, that shouldn't take too long.

EDIT: Ok, was only three imports in proxmox helper crates, so I patch those for now here in the package.

tommitscheck commented on 2021-12-12 10:27 (UTC) (edited on 2021-12-12 13:24 (UTC) by tommitscheck)

We use 1.56 for building currently, will check out 1.57 relatively soonish and see if I can do a update again for 2.1 here - albeit there were not really /that/ much changes in the client.

dmshimself commented on 2021-12-11 19:58 (UTC)

I get the same error. I've tried rustup to use 1.45.2 but I get different errors then. Does anyone know which version needs to be used to build this now?

BuzzKillingtonne commented on 2021-12-11 05:16 (UTC) (edited on 2021-12-11 05:17 (UTC) by BuzzKillingtonne)

It looks like the current version is broken, getting error[E0308] and error[E0532] when compiling.

   Compiling proxmox v0.13.0 (git://git.proxmox.com/git/proxmox.git?rev=0f2caafc4ef407b809bcbdfa6b0392e55b218642#0f2caafc)
error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /home/haley/.cargo/git/checkouts/proxmox-5f91bc52815d50fb/0f2caaf/proxmox/src/api/section_config.rs:451:37
    |
451 | ...                   Ok(value) => value,
    |                       ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
21  | use serde::__private::Ok;
    |
21  | use std::result::Result::Ok;
    |
21  | use core::result::Result::Ok;
    |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /home/haley/.cargo/git/checkouts/proxmox-5f91bc52815d50fb/0f2caaf/proxmox/src/sys/linux/procfs/mod.rs:176:15
    |
176 |         (Some(Ok(up)), Some(Ok(idle))) => Ok((up, idle)),
    |               ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
1   | use serde::__private::Ok;
    |
1   | use std::result::Result::Ok;
    |
1   | use core::result::Result::Ok;
    |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /home/haley/.cargo/git/checkouts/proxmox-5f91bc52815d50fb/0f2caaf/proxmox/src/sys/linux/procfs/mod.rs:176:29
    |
176 |         (Some(Ok(up)), Some(Ok(idle))) => Ok((up, idle)),
    |                             ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
1   | use serde::__private::Ok;
    |
1   | use std::result::Result::Ok;
    |
1   | use core::result::Result::Ok;
    |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /home/haley/.cargo/git/checkouts/proxmox-5f91bc52815d50fb/0f2caaf/proxmox/src/sys/linux/procfs/mod.rs:534:15
    |
534 |         (Some(Ok(size)), Some(Ok(resident)), Some(Ok(shared))) => Ok(ProcFsMemUsage {
    |               ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
1   | use serde::__private::Ok;
    |
1   | use std::result::Result::Ok;
    |
1   | use core::result::Result::Ok;
    |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /home/haley/.cargo/git/checkouts/proxmox-5f91bc52815d50fb/0f2caaf/proxmox/src/sys/linux/procfs/mod.rs:534:31
    |
534 |         (Some(Ok(size)), Some(Ok(resident)), Some(Ok(shared))) => Ok(ProcFsMemUsage {
    |                               ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
1   | use serde::__private::Ok;
    |
1   | use std::result::Result::Ok;
    |
1   | use core::result::Result::Ok;
    |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /home/haley/.cargo/git/checkouts/proxmox-5f91bc52815d50fb/0f2caaf/proxmox/src/sys/linux/procfs/mod.rs:534:51
    |
534 |         (Some(Ok(size)), Some(Ok(resident)), Some(Ok(shared))) => Ok(ProcFsMemUsage {
    |                                                   ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
1   | use serde::__private::Ok;
    |
1   | use std::result::Result::Ok;
    |
1   | use core::result::Result::Ok;
    |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
  --> /home/haley/.cargo/git/checkouts/proxmox-5f91bc52815d50fb/0f2caaf/proxmox/src/sys/linux/tty.rs:86:17
   |
86 |                 Ok(fd) => Ok(Some(TtyOutput::DevTty(fd))),
   |                 ^^ not a tuple struct or tuple variant
   |
help: consider importing one of these items instead
   |
1  | use serde::__private::Ok;
   |
1  | use std::result::Result::Ok;
   |
1  | use core::result::Result::Ok;
   |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /home/haley/.cargo/git/checkouts/proxmox-5f91bc52815d50fb/0f2caaf/proxmox/src/sys/linux/tty.rs:168:9
    |
168 |         Ok(_) => Ok(password),
    |         ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
1   | use serde::__private::Ok;
    |
1   | use std::result::Result::Ok;
    |
1   | use core::result::Result::Ok;
    |

error[E0308]: mismatched types
  --> /home/haley/.cargo/git/checkouts/proxmox-5f91bc52815d50fb/0f2caaf/proxmox/src/sys/linux/tty.rs:61:17
   |
50 |     fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
   |                                        ----------------- expected `std::result::Result<usize, std::io::Error>` because of return type
...
61 |                 Ok(written as usize)
   |                 ^^^^^^^^^^^^^^^^^^^^ expected struct `std::io::Error`, found struct `anyhow::Error`
   |
   = note: expected enum `std::result::Result<_, std::io::Error>`
              found enum `std::result::Result<_, anyhow::Error>`

error[E0308]: `match` arms have incompatible types
  --> /home/haley/.cargo/git/checkouts/proxmox-5f91bc52815d50fb/0f2caaf/proxmox/src/sys/linux/tty.rs:69:37
   |
67 | /         match self {
68 | |             TtyOutput::Stdout(out) => out.flush(),
   | |                                       ----------- this is found to be of type `std::result::Result<(), std::io::Error>`
69 | |             TtyOutput::DevTty(_) => Ok(()),
   | |                                     ^^^^^^ expected struct `std::io::Error`, found struct `anyhow::Error`
70 | |         }
   | |_________- `match` arms have incompatible types
   |
   = note: expected enum `std::result::Result<_, std::io::Error>`
              found enum `std::result::Result<_, anyhow::Error>`

error[E0308]: mismatched types
  --> /home/haley/.cargo/git/checkouts/proxmox-5f91bc52815d50fb/0f2caaf/proxmox/src/sys/linux/tty.rs:79:13
   |
76 |     pub fn open() -> io::Result<Option<Self>> {
   |                      ------------------------ expected `std::result::Result<std::option::Option<TtyOutput>, std::io::Error>` because of return type
...
79 |             Ok(Some(TtyOutput::Stdout(stdout)))
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::io::Error`, found struct `anyhow::Error`
   |
   = note: expected enum `std::result::Result<_, std::io::Error>`
              found enum `std::result::Result<_, anyhow::Error>`

error[E0308]: mismatched types
  --> /home/haley/.cargo/git/checkouts/proxmox-5f91bc52815d50fb/0f2caaf/proxmox/src/sys/linux/tty.rs:86:27
   |
76 |     pub fn open() -> io::Result<Option<Self>> {
   |                      ------------------------ expected `std::result::Result<std::option::Option<TtyOutput>, std::io::Error>` because of return type
...
86 |                 Ok(fd) => Ok(Some(TtyOutput::DevTty(fd))),
   |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::io::Error`, found struct `anyhow::Error`
   |
   = note: expected enum `std::result::Result<_, std::io::Error>`
              found enum `std::result::Result<_, anyhow::Error>`

error[E0308]: mismatched types
   --> /home/haley/.cargo/git/checkouts/proxmox-5f91bc52815d50fb/0f2caaf/proxmox/src/tools/mod.rs:119:9
    |
112 |     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
    |                                              ----------- expected `std::result::Result<(), std::fmt::Error>` because of return type
...
119 |         Ok(())
    |         ^^^^^^ expected struct `std::fmt::Error`, found struct `anyhow::Error`
    |
    = note: expected enum `std::result::Result<_, std::fmt::Error>`
               found enum `std::result::Result<_, anyhow::Error>`

Some errors have detailed explanations: E0308, E0532.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `proxmox` due to 13 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: proxmox-backup-client

storbake commented on 2021-07-21 00:12 (UTC)

Would like to say thanks for creating this package! I'm using it to backup a physical machine as a full image to a PBS server and it works great.