[pbs-devel] how to build proxmox backup >= v1.0.4

Niko Fellner n.fellner at logics.de
Sun Nov 29 11:26:30 CET 2020


Hi guys,

I originally posted this at #3173, but its a dev question so I should post it here instead:

I've followed the instructions at

https://git.proxmox.com/?p=proxmox-backup.git;a=blob_plain;f=README.rst;hb=HEAD

So after a fresh Debian Buster setup I've entered the following commands:

> apt-get update && apt-get dist-upgrade -y
> apt-get install curl
> echo 'deb http://download.proxmox.com/debian/devel/ buster main' >> /etc/apt/sources.list.d/proxmox-devel.list
> wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg
> apt-get update
> apt-get install devscripts debcargo clang
> apt-get update && apt-get dist-upgrade -y
> git clone git://git.proxmox.com/git/proxmox-backup.git
> cd proxmox-backup/
> mk-build-deps -ir

and I get some errors on "rust-proxmox-backup-build-deps"

> mk-build-deps: Unable to install rust-proxmox-backup-build-deps at /usr/bin/mk-build-deps line 416.
> mk-build-deps: Unable to install all build-dep packages
> ... and later on ...
> Broken rust-proxmox-backup-build-deps:amd64 Hängt ab von on librust-proxmox-0.7+api-macro-dev:amd64 < none @un H > (>= 0.7.2-~~)
>  Removing rust-proxmox-backup-build-deps:amd64 because I can't find librust-proxmox-0.7+api-macro-dev:amd64


Same on branch v1.0.5, but on v1.0.4 and lower it seems to work. See attached logs. https://bugzilla.proxmox.com/attachment.cgi?id=659

Anyhow, on v1.0.4 I can't use make: https://bugzilla.proxmox.com/attachment.cgi?id=660

> root at debian:~/proxmox-backup# make
> cargo build
> error: failed to select a version for the requirement `proxmox = "^0.7.2"`
>  candidate versions found which didn't match: 0.7.1
>  location searched: directory source `/usr/share/cargo/registry` (which is > replacing registry `https://github.com/rust-lang/crates.io-index`)
> required by package `proxmox-backup v1.0.4 (/root/proxmox-backup)`
> perhaps a crate was updated and forgotten to be re-vendored?
> make: *** [Makefile:125: cargo-build] Fehler 101
> root at debian:~/proxmox-backup#

In contrast to v1.0.4 and newer, when I "git checkout v1.0.3", I can "mk-build-deps" and even "make" it.

> root at debian:~# cd proxmox-backup/
> root at debian:~/proxmox-backup# git checkout v1.0.3
> root at debian:~/proxmox-backup# mk-build-deps -ir

Only a small download error occured once, but nothing serious:

> E: Fehlschlag beim Holen von http://download.proxmox.com/debian/devel/dists/buster/main/binary-amd64/librust-lexical-core-dev_0.6.7-1~bpo10+pve1_amd64.deb Undetermined Error

> root at debian:~/proxmox-backup# mk-build-deps -ir
> # OK this time
> root at debian:~/proxmox-backup# make
> # build succeeded, 11 warnings. Build finished.

By the way, does a mailing list support attachments?

Kind regards
Niko Fellner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pbs-devel/attachments/20201129/ea99d46e/attachment.htm>


More information about the pbs-devel mailing list