From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 2CE616079F for ; Tue, 1 Dec 2020 11:05:27 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 1F116F5A7 for ; Tue, 1 Dec 2020 11:04:57 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id B1642F59A for ; Tue, 1 Dec 2020 11:04:53 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 759B3441CD for ; Tue, 1 Dec 2020 11:04:53 +0100 (CET) Date: Tue, 01 Dec 2020 11:04:45 +0100 From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= To: Proxmox Backup Server development discussion References: In-Reply-To: MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1606816812.8zp00c9eha.astroid@nora.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 AWL 0.024 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com, crates.io] Subject: Re: [pbs-devel] building proxmox-backup-qemu X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2020 10:05:27 -0000 On November 30, 2020 8:11 pm, Niko Fellner wrote: >> I just added it to the build-depends as well. >> [...] >> diff --git a/Cargo.toml b/Cargo.toml >> [...] >> with proxmox-backup checked out next to proxmox-backup-qemu >=20 > Thanks, I've applied your patch, and obviously the cbindgen package was i= nstalled, but I still get the same error. Here is my log: >=20 >=20 > After successfully building the latest proxmox-backup in ~/proxmox-backup= : >> root@debian:~/proxmox-backup# cd ~ && \ >> git clone git://git.proxmox.com/git/proxmox-backup-qemu.git && \ >> cd proxmox-backup-qemu && nano Cargo.toml >=20 > I applied your patch (change proxmox version to "0.8.0" and use proxmox-b= ackup from path =3D "../proxmox-backup" instead of git://git.proxmox.com...= ). >=20 >> root@debian:~/proxmox-backup-qemu# mk-build-deps -ir >> dh_testdir >> dh_testroot >> dh_prep >> dh_testdir >> dh_testroot >> dh_install >> dh_installdocs >> dh_installchangelogs >> dh_compress >> dh_fixperms >> dh_installdeb >> dh_gencontrol >> dh_md5sums >> dh_builddeb >> dpkg-deb: Paket =C2=BBproxmox-backup-qemu-build-deps=C2=AB wird in =C2= =BB../proxmox-backup-qemu-build-deps_1.0.2-1_all.deb=C2=AB gebaut. >> The package has been created. >> Attention, the package has been created in the current directory, >> not in ".." as indicated by the message above! >> Vormals nicht ausgew=C3=A4hltes Paket proxmox-backup-qemu-build-deps wir= d gew=C3=A4hlt. >> (Lese Datenbank ... 247817 Dateien und Verzeichnisse sind derzeit instal= liert.) >> Vorbereitung zum Entpacken von proxmox-backup-qemu-build-deps_1.0.2-1_al= l.deb ... >> Entpacken von proxmox-backup-qemu-build-deps (1.0.2-1) ... >> Paketlisten werden gelesen... Fertig >> Abh=C3=A4ngigkeitsbaum wird aufgebaut. =20 >> Statusinformationen werden eingelesen.... Fertig >> Abh=C3=A4ngigkeiten werden korrigiert ...Starting pkgProblemResolver wit= h broken count: 0 >> Starting 2 pkgProblemResolver with broken count: 0 >> Done >> Fertig >> Starting pkgProblemResolver with broken count: 0 >> Starting 2 pkgProblemResolver with broken count: 0 >> Done >> Die folgenden zus=C3=A4tzlichen Pakete werden installiert: >> cbindgen librust-bincode-dev >> Vorgeschlagene Pakete: >> librust-bincode+i128-dev >> Die folgenden NEUEN Pakete werden installiert: >> cbindgen librust-bincode-dev >> 0 aktualisiert, 2 neu installiert, 0 zu entfernen und 0 nicht aktualisie= rt. >> 1 nicht vollst=C3=A4ndig installiert oder entfernt. >> Es m=C3=BCssen 1.331 kB an Archiven heruntergeladen werden. >> Nach dieser Operation werden 5.264 kB Plattenplatz zus=C3=A4tzlich benut= zt. >> M=C3=B6chten Sie fortfahren? [J/n] Y >> Holen:1 http://deb.debian.org/debian buster/main amd64 cbindgen amd64 0.= 14.4-1~deb10u1 [1.316 kB] >> Holen:2 http://deb.debian.org/debian buster/main amd64 librust-bincode-d= ev amd64 1.0.1-1 [14,6 kB] these are from stock Debian Buster repos, not from our devel repo which=20 contains newer versions of many of our dependencies, and the toolchain=20 itself. >> Es wurden 1.331 kB in 0 s geholt (6.094 kB/s). =20 >> Vormals nicht ausgew=C3=A4hltes Paket cbindgen wird gew=C3=A4hlt. >> (Lese Datenbank ... 247821 Dateien und Verzeichnisse sind derzeit instal= liert.) >> Vorbereitung zum Entpacken von .../cbindgen_0.14.4-1~deb10u1_amd64.deb .= .. >> Entpacken von cbindgen (0.14.4-1~deb10u1) ... >> Vormals nicht ausgew=C3=A4hltes Paket librust-bincode-dev:amd64 wird gew= =C3=A4hlt. >> Vorbereitung zum Entpacken von .../librust-bincode-dev_1.0.1-1_amd64.deb= ... >> Entpacken von librust-bincode-dev:amd64 (1.0.1-1) ... >> cbindgen (0.14.4-1~deb10u1) wird eingerichtet ... >> librust-bincode-dev:amd64 (1.0.1-1) wird eingerichtet ... >> proxmox-backup-qemu-build-deps (1.0.2-1) wird eingerichtet ... >> Trigger f=C3=BCr man-db (2.8.5-2) werden verarbeitet ... >=20 >> root@debian:~/proxmox-backup-qemu# make >> cargo build=20 >> error: no matching package named `cbindgen` found >> location searched: registry `https://github.com/rust-lang/crates.io-inde= x` >> perhaps you meant: bindgen >> required by package `proxmox-backup-qemu v1.0.2 (/root/proxmox-backup-qe= mu)` >> make: *** [Makefile:22: all] Fehler 101 >=20 >> root@debian:~/proxmox-backup-qemu# apt-get install cbindgen >> Paketlisten werden gelesen... Fertig >> Abh=C3=A4ngigkeitsbaum wird aufgebaut. =20 >> Statusinformationen werden eingelesen.... Fertig >> cbindgen ist schon die neueste Version (0.14.4-1~deb10u1). >> cbindgen wurde als manuell installiert festgelegt. >> 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisie= rt. >=20 >> root@debian:~/proxmox-backup-qemu# cargo build >> error: no matching package named `cbindgen` found >> location searched: registry `https://github.com/rust-lang/crates.io-inde= x` >> perhaps you meant: bindgen >> required by package `proxmox-backup-qemu v1.0.2 (/root/proxmox-backup-qe= mu)` >=20 >> root@debian:~/proxmox-backup-qemu# cat /etc/apt/sources.list.d/proxmox-d= evel.list=20 >> deb http://download.proxmox.com/debian/devel/ buster main >=20 >> root@debian:~/proxmox-backup-qemu# ls -a /usr/share/cargo/registry/c >> cc-1.0.50/ clang-sys-0.29.3/ crossbeam-channel-0.4.= 2/ >> cexpr-0.4.0/ clap-2.33.0/ crossbeam-utils-0.7.2/ >> cfg-if-0.1.10/ crc32fast-1.2.0/ =20 >> root@debian:~/proxmox-backup-qemu# ls -a /usr/share/cargo/registry/c^C >=20 > Is the "location searched: registry `https://github.com/rust-lang/crates.= io-index`" correct? yes. the repo contains a .cargo/config file that says "all stuff that=20 you want from crates.io is actually available in=20 /usr/share/cargo/registry", which is where all the packaged crates put=20 their source code. cargo still "thinks" it's talking to crates.io ;) you need to 1.) enable our devel repo 2.) upgrade the installed toolchain and crate packages 3.) install librust-cbindgen-dev in addition to cbindgen (the latter is the binary, the former contains the source code to satisfy cargo that=20 the crate is available) 4.) possibly install other librust-*-dev packages referenced by=20 Cargo.toml, if it still complains on make =