all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Niko Fellner <n.fellner@logics.de>
To: "pbs-devel@lists.proxmox.com" <pbs-devel@lists.proxmox.com>
Subject: [pbs-devel] building proxmox-backup-qemu
Date: Sun, 29 Nov 2020 10:20:13 +0000	[thread overview]
Message-ID: <AM0PR09MB2754FB20BC915616FD63E80EF2F60@AM0PR09MB2754.eurprd09.prod.outlook.com> (raw)

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

Hi,

I originally posted this question in #3163#c9, but here my question is better placed:

> This is because for restore, the binary is actually created from our patched
> QEMU source code which just links against the Rust library, see
> 'pbs-restore.c' in our QEMU sources (i.e. clone pve-qemu repo, then apply
> the patches in 'debian/patches/series' to the 'qemu' submodule).
>


So if I want to build the "pbs-restore" binary, I need to make "pve-qemu":

> cd ~ && git clone git://git.proxmox.com/git/pve-qemu.git && \
> cd pve-qemu && apt-get install libaio-dev libcap-ng-dev libfdt-dev \
> libglusterfs-dev libiscsi-dev libjemalloc-dev libjpeg-dev libnuma-dev \
> libpci-dev libpixman-1-dev librbd-dev libsdl1.2-dev libseccomp-dev \
> libspice-protocol-dev libspice-server-dev libusb-1.0-0-dev \
> libusbredirparser-dev texi2html texinfo xfslibs-dev && \
> mk-build-deps -ir && make


Which results in the binaries "/pve-qemu-kvm-5.1.0/pbs-restore" and "pve-qemu-kvm-5.1.0/debian/pve-qemu-kvm/usr/bin/pbs-restore" (What's their difference?)

Making pve-qemu requires "libproxmox-backup-qemu0".
"libproxmox-backup-qemu0" is either supplied by installing PVE...

> echo 'deb http://download.proxmox.com/debian/pve buster pvetest' >> \
> /etc/apt/sources.list.d/proxmox-devel.list && \
> apt-get update && apt-get dist-upgrade -y && \
> apt-get install proxmox-ve


... or by building it from source. I am interested about building it myself, of course. I guess this repository is what I need:
https://git.proxmox.com/?p=proxmox-backup-qemu.git;a=summary
But when I do ...

> cd ~ && git clone git://git.proxmox.com/git/proxmox-backup-qemu.git && \
> cd proxmox-backup-qemu && \
> # checkout a commit which seems to be compatible for v1.0.3, see #3173#c1 \
> git checkout 1e45883f00ca8b0dd04c84f4ae33752e69cfc5bb && \
> # need to install PVE too meet the dependencies for the next one: \
> mk-build-deps -ir && \
> # I can't meet all dependencies for the next one: \
> make


...with the "make" I get the following error message:

> error: no matching package named `cbindgen` found
> location searched: registry `https://github.com/rust-lang/crates.io-index`
> perhaps you meant: bindgen
> required by package `proxmox-backup-qemu v1.0.0 (/root/proxmox-backup-qemu)`
> make: *** [Makefile:22: all] Fehler 101


Where do I get "cbindgen" from? What's the correct way to build proxmox-backup-qemu?

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

             reply	other threads:[~2020-11-29 10:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-29 10:20 Niko Fellner [this message]
2020-11-30 13:00 ` Fabian Grünbichler
2020-11-30 19:11 Niko Fellner
2020-12-01 10:04 ` Fabian Grünbichler
2020-12-02 19:55 Niko Fellner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM0PR09MB2754FB20BC915616FD63E80EF2F60@AM0PR09MB2754.eurprd09.prod.outlook.com \
    --to=n.fellner@logics.de \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal