public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] how to build proxmox backup >= v1.0.4
@ 2020-11-29 10:26 Niko Fellner
  2020-11-30 10:26 ` Fabian Grünbichler
  0 siblings, 1 reply; 3+ messages in thread
From: Niko Fellner @ 2020-11-29 10:26 UTC (permalink / raw)
  To: pbs-devel

[-- Attachment #1: Type: text/plain, Size: 2837 bytes --]

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@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@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@debian:~# cd proxmox-backup/
> root@debian:~/proxmox-backup# git checkout v1.0.3
> root@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@debian:~/proxmox-backup# mk-build-deps -ir
> # OK this time
> root@debian:~/proxmox-backup# make
> # build succeeded, 11 warnings. Build finished.

By the way, does a mailing list support attachments?

Kind regards
Niko Fellner

[-- Attachment #2: Type: text/html, Size: 8203 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [pbs-devel] how to build proxmox backup >= v1.0.4
  2020-11-29 10:26 [pbs-devel] how to build proxmox backup >= v1.0.4 Niko Fellner
@ 2020-11-30 10:26 ` Fabian Grünbichler
  0 siblings, 0 replies; 3+ messages in thread
From: Fabian Grünbichler @ 2020-11-30 10:26 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion

On November 29, 2020 11:26 am, Niko Fellner wrote:
> 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

just for completeness sake, this was a result of download.proxmox.com 
being out of sync, which is fixed now.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [pbs-devel] how to build proxmox backup >= v1.0.4
@ 2020-11-30 19:00 Niko Fellner
  0 siblings, 0 replies; 3+ messages in thread
From: Niko Fellner @ 2020-11-30 19:00 UTC (permalink / raw)
  To: pbs-devel

> just for completeness sake, this was a result of download.proxmox.com 
> being out of sync, which is fixed now.

Thanks, that worked for me! Now I've built the latest proxmox-backup successfully.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-30 19:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-29 10:26 [pbs-devel] how to build proxmox backup >= v1.0.4 Niko Fellner
2020-11-30 10:26 ` Fabian Grünbichler
2020-11-30 19:00 Niko Fellner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal