Package Details: proxmox-backup-client 3.3.2-3

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.000462
First Submitted: 2020-07-15 08:23 (UTC)
Last Updated: 2025-01-21 11:26 (UTC)

Latest Comments

1 2 3 4 5 6 Next › Last »

tommitscheck commented on 2025-01-21 13:43 (UTC)

@OJaksch: Thanks for your feedback, great to hear that it works now.

The warning is expected with newer rustc versions, but nothing to worry about and also happens on x86-64, we will improve the code style here probably soonish to avoid the warning.

OJaksch commented on 2025-01-21 13:38 (UTC)

Of course, friend. Just compiled it on my RPi400 w/o any problems now.
There is a security warning that I don't know if it is relevant.

   Compiling pxar v0.12.1 (/var/cache/pacman/pkg/yaourt/proxmox-backup-client/src/pxar)
warning: creating a mutable reference to mutable static is discouraged
  --> /var/cache/pacman/pkg/yaourt/proxmox-backup-client/src/pxar/src/decoder/mod.rs:35:21
   |
35 |     unsafe { &mut (*SCRATCH_BUFFER.as_mut_ptr())[..] }
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
   |
   = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
   = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
   = note: `#[warn(static_mut_refs)]` on by default

warning: `pxar` (lib) generated 1 warning

tommitscheck commented on 2025-01-21 11:27 (UTC)

@OJaksch: argh, I made a stupid mistake, can you please retry the just pushed 3.3.2-3 version?

OJaksch commented on 2025-01-21 11:07 (UTC)

Thanks, but no, same error:

   Compiling proxmox-sys v0.6.5 (/var/cache/pacman/pkg/yaourt/proxmox-backup-client/src/proxmox/proxmox-sys)
error[E0308]: mismatched types
    --> /var/cache/pacman/pkg/yaourt/proxmox-backup-client/src/proxmox/proxmox-sys/src/fs/dir.rs:216:50
     |
216  |     let returned_buffer = unsafe { libc::mkdtemp(template.as_mut_ptr() as *mut i8) };
     |                                    ------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*mut u8`, found `*mut i8`
     |                                    |
     |                                    arguments to this function are incorrect
     |
     = note: expected raw pointer `*mut u8`
                found raw pointer `*mut i8`
note: function defined here
    --> /home/larry/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.169/src/unix/mod.rs:1479:12
     |
1479 |     pub fn mkdtemp(template: *mut c_char) -> *mut c_char;
     |            ^^^^^^^

For more information about this error, try `rustc --explain E0308`.
error: could not compile `proxmox-sys` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

tommitscheck commented on 2025-01-21 09:58 (UTC)

@OJaksch: Thanks for the report, I made a patch that should fix this, but I had no aarch64 host around to actually test it, so YMMW.

OJaksch commented on 2025-01-13 16:13 (UTC)

It's me again and compiling on aarch64 is failing again:

   Compiling http v0.2.12
   Compiling proxmox-sys v0.6.4 (/var/cache/pacman/pkg/yaourt/proxmox-backup-client/src/proxmox/proxmox-sys)
error[E0308]: mismatched types
    --> /var/cache/pacman/pkg/yaourt/proxmox-backup-client/src/proxmox/proxmox-sys/src/fs/dir.rs:211:50
     |
211  |     let returned_buffer = unsafe { libc::mkdtemp(template.as_mut_ptr() as *mut i8) };
     |                                    ------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*mut u8`, found `*mut i8`
     |                                    |
     |                                    arguments to this function are incorrect
     |
     = note: expected raw pointer `*mut u8`
                found raw pointer `*mut i8`
note: function defined here
    --> /home/larry/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.169/src/unix/mod.rs:1479:12
     |
1479 |     pub fn mkdtemp(template: *mut c_char) -> *mut c_char;
     |            ^^^^^^^

For more information about this error, try `rustc --explain E0308`.
error: could not compile `proxmox-sys` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

OJaksch commented on 2024-12-03 07:32 (UTC)

To everyone who is using this great tool together with an uptodate PBS and isn't aware of the new features:
Add --change-detection-mode data (or metadata) to your command/script to give your backup a significant burst!

OJaksch commented on 2024-09-19 08:37 (UTC)

Just compiled on x86_64 and aarch64 and can confirm that it's building fine again on the latter.
Thanks for fixing!

tommitscheck commented on 2024-09-19 07:51 (UTC)

@OJaksch I backported a patch for an internal dependency [0] that should fix this error, but I did not have an aarch64 ready to quickly test this, so feedback would be welcome.

OJaksch commented on 2024-09-02 11:53 (UTC)

Doesn't build on aarch64 anymore. There were some warnings before the build failed.
If you need a more detailed log, gimme sign.

   Compiling proxmox-sys v0.5.8 (/tmp/x/src/proxmox/proxmox-sys)
   Compiling form_urlencoded v1.2.1
error[E0308]: mismatched types
  --> /tmp/x/src/proxmox/proxmox-sys/src/crypt.rs:74:67
   |
74 |         if data.output.first().is_none() || Some(&('*' as i8)) == data.output.first() {
   |                                                                   ^^^^^^^^^^^^^^^^^^^ expected `Option<&i8>`, found `Option<&u8>`
   |
   = note: expected enum `std::option::Option<&i8>`
              found enum `std::option::Option<&u8>`

error[E0308]: mismatched types
   --> /tmp/x/src/proxmox/proxmox-sys/src/crypt.rs:136:58
    |
136 |     if output.first().is_none() || Some(&('*' as i8)) == output.first() {
    |                                                          ^^^^^^^^^^^^^^ expected `Option<&i8>`, found `Option<&u8>`
    |
    = note: expected enum `std::option::Option<&i8>`
               found enum `std::option::Option<&u8>`

   Compiling crc32fast v1.4.2
   Compiling base64 v0.22.1
For more information about this error, try `rustc --explain E0308`.
error: could not compile `proxmox-sys` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...