Unable to setup build env for backup client

do you have our "devel" repository configured?
 
do you have our "devel" repository configured?
I followed: https://git.proxmox.com/?p=proxmox-...6f3c20391c7a9241a4d0e477c6c04ce834566;hb=HEAD


Code:
Setup:
1. # echo 'deb http://download.proxmox.com/debian/devel/ bookworm main' | sudo tee /etc/apt/sources.list.d/proxmox-devel.list
2. # sudo wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
3. # sudo apt update
4. # sudo apt install devscripts debcargo clang
5. # git clone git://git.proxmox.com/git/proxmox-backup.git
6. # cd proxmox-backup; sudo mk-build-deps -ir

Step 6 fails
 
please post "apt-cache policy" and "apt show librust-proxmox-metrics-dev" output
 
Code:
apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://download.proxmox.com/debian/devel bookworm/main amd64 Packages
     release o=Proxmox,a=stable,n=bookworm,l=Proxmox Development Debian Repository,c=main,b=amd64
     origin download.proxmox.com
 500 http://security.debian.org bookworm-security/contrib amd64 Packages
     release v=12,o=Debian,a=stable-security,n=bookworm-security,l=Debian-Security,c=contrib,b=amd64
     origin security.debian.org
 500 http://security.debian.org bookworm-security/main amd64 Packages
     release v=12,o=Debian,a=stable-security,n=bookworm-security,l=Debian-Security,c=main,b=amd64
     origin security.debian.org
 500 http://deb.debian.org/debian bookworm-updates/contrib amd64 Packages
     release v=12-updates,o=Debian,a=stable-updates,n=bookworm-updates,l=Debian,c=contrib,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian bookworm-updates/main amd64 Packages
     release v=12-updates,o=Debian,a=stable-updates,n=bookworm-updates,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian bookworm/contrib amd64 Packages
     release v=12.5,o=Debian,a=stable,n=bookworm,l=Debian,c=contrib,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian bookworm/main amd64 Packages
     release v=12.5,o=Debian,a=stable,n=bookworm,l=Debian,c=main,b=amd64
     origin deb.debian.org
Pinned packages:



Code:
apt show librust-proxmox-metrics-dev
Package: librust-proxmox-metrics-dev
Version: 0.3.0-1
Priority: optional
Section: rust
Source: rust-proxmox-metrics
Maintainer: Proxmox Support Team <support@proxmox.com>
Installed-Size: 31.7 kB
Provides: librust-proxmox-metrics+default-dev (= 0.3.0-1), librust-proxmox-metrics-0+default-dev (= 0.3.0-1), librust-proxmox-metrics-0-dev (= 0.3.0-1), librust-proxmox-metrics-0.3+default-dev (= 0.3.0-1), librust-proxmox-metrics-0.3-dev (= 0.3.0-1), librust-proxmox-metrics-0.3.0+default-dev (= 0.3.0-1), librust-proxmox-metrics-0.3.0-dev (= 0.3.0-1)
Depends: librust-anyhow-1+default-dev, librust-futures-0.3+default-dev, librust-http-0.2+default-dev, librust-hyper-0.14+default-dev (>= 0.14.5-~~), librust-openssl-0.10+default-dev, librust-proxmox-async-0.4+default-dev (>= 0.4.1-~~), librust-proxmox-http-0.9+client-dev, librust-proxmox-http-0.9+default-dev, librust-serde-1+default-dev, librust-serde-json-1+default-dev, librust-tokio-1+default-dev (>= 1.6-~~), librust-tokio-1+net-dev (>= 1.6-~~), librust-tokio-1+sync-dev (>= 1.6-~~)
Download-Size: 6528 B
APT-Sources: http://download.proxmox.com/debian/devel bookworm/main amd64 Packages
Description: Metrics Server export utilitites - Rust source code
 This package contains the source for the Rust proxmox-metrics crate, packaged
 by debcargo for use with cargo and dh-cargo.
 
Hi, I am also trying to build the necessary packages from source, namely I am interested in proxmox-backup-client version 3.2.5-1, the build is on an updated version of debian 12.6, when executing the command mk-build-deps -ir I get a dependency error

Investigating (0) rust-proxmox-backup-build-deps:amd64 < 3.2.5-1 @iU K Nb Ib >
Broken rust-proxmox-backup-build-deps:amd64 Depends on librust-h2-0.3+default-dev:amd64 < none @un H >
Considering librust-h2-dev:amd64 0 as a solution to rust-proxmox-backup-build-deps:amd64 -2
Removing rust-proxmox-backup-build-deps:amd64 rather than change librust-h2-0.3+default-dev:amd64

I see that there are the following versions of the package librust-h2-dev
apt-cache policy librust-h2-dev
librust-h2-dev:
Installed: (none)
Candidate: 0.4.4-1~bpo12+pve1
Version table:
0.4.4-1~bpo12+pve1 500
500 http://download.proxmox.com/debian/devel bookworm/main amd64 Packages
0.3.18-1~bpo12+pve1 500
500 http://download.proxmox.com/debian/devel bookworm/main amd64 Packages
0.3.13-2 500
500 http://mirror.datacenter.by/debian bookworm/main amd64 Packages

If you try to install one or another version, it also complains about dependencies, but for a different package

❯ apt install librust-h2-dev=0.3.13-2 Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation: The following packages have unmet dependencies: librust-h2-dev : Depends: librust-indexmap-1+default-dev (>= 1.5.2-~~) Depends: librust-indexmap-1+std-dev (>= 1.5.2-~~) E: Unable to correct problems, you have held broken packages.

❯ apt install librust-h2-dev=0.3.18-1~bpo12+pve1 Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation: The following packages have unmet dependencies: librust-h2-dev : Depends: librust-indexmap-1+default-dev (>= 1.5.2-~~) Depends: librust-indexmap-1+std-dev (>= 1.5.2-~~) E: Unable to correct problems, you have held broken packages.
 
having the devel repository configured and running "apt build-dep ." should be enough.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!