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 187E4612BD for ; Wed, 2 Dec 2020 21:11:36 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 07A6E20871 for ; Wed, 2 Dec 2020 21:11:06 +0100 (CET) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140043.outbound.protection.outlook.com [40.107.14.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 4DCD020868 for ; Wed, 2 Dec 2020 21:11:02 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TI2PA3GykfnIVohWQbyGEx46v5hB9sKt1bM8GspbkrHzer7vI/CcuGsm3ArowDUzDXkZbZWNeOof7piguWfAH8S4kOGbdjcMQpOYuo07jHJ4egISQLlWrn35yKfLg3j2nZQOfA9YXGA0kHJphvC3WgtAViPzgaeuNh52uMDc7YDvezkII2U94eSdeA9XFuaj9llstjCs1wQ+n1gNiySDxzV45Ksk6AJ+h4AUiqR+tMYi9JVqhcfC9y3WfE87sUdNDV8MBFoCCJJ892dqZwz3NlXuEKNSA+OgqrDzkbAnYpokxT4O0VV4LGmQxDUEDh0OpYQPGES8obpNcxuYOAg/xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AoNAms9ox2R/KjQNhQGAXOY4xP+UEQcgIzdn/Iiij0s=; b=jcsPzGFihJlK+tscyl7vTndwiKYyNDd1Z2NWLpvAFjplq+wZk6ceiCh6UrHEmJU9Sf9vQqA2tovStDeAboni3wn5ffsuSVAUzQ4S6bR+XWa5DrsPnpmpgAM2I5HtbZEEMVMB3YxZjzx9UKnoeYrZD5usP/E7Pp3l3gBiBXaD3i2aBOefdAjs3ccmSuigDCunjZER2slW5MWMXNZq0TjTwwF+uQQc7n3w7Kb+kxYBur5Vgj4potmcX4jz9DCqCq537YCnJGrnIGX3KiN47pkHgLA0f4NE0/RP+m+5JHfmMYF6zlXgnfVHEkP+YcwYNxViyMpbb1c8NAPqxiE9LiPsCw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=logics.de; dmarc=pass action=none header.from=logics.de; dkim=pass header.d=logics.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=logics99.onmicrosoft.com; s=selector2-logics99-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AoNAms9ox2R/KjQNhQGAXOY4xP+UEQcgIzdn/Iiij0s=; b=WqOvM88s4UgcVjCe5VAMpONHjxUTRImP8+5qEf1F5l/KwoPGl0sDNto3JIgszgCfv4OrZSs8Dos7RIpYemqbrjZWW25/NgmM6U//esdR4+zCNDmgyUY+W7iRRS2hRab1D2zoLrEJBlxTC3k8/6qjBOxRbXLn06K63yBAq01KAyw= Received: from AM0PR09MB2754.eurprd09.prod.outlook.com (2603:10a6:208:12e::18) by AM9PR09MB4817.eurprd09.prod.outlook.com (2603:10a6:20b:2da::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.18; Wed, 2 Dec 2020 19:55:46 +0000 Received: from AM0PR09MB2754.eurprd09.prod.outlook.com ([fe80::68c5:8966:920c:8d24]) by AM0PR09MB2754.eurprd09.prod.outlook.com ([fe80::68c5:8966:920c:8d24%3]) with mapi id 15.20.3611.031; Wed, 2 Dec 2020 19:55:46 +0000 From: Niko Fellner To: "pbs-devel@lists.proxmox.com" Thread-Topic: Re: [pbs-devel] building proxmox-backup-qemu Thread-Index: AdbI40CHBTL0C7M8QwSq1Ah2Gqgd8g== Date: Wed, 2 Dec 2020 19:55:46 +0000 Message-ID: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: lists.proxmox.com; dkim=none (message not signed) header.d=none;lists.proxmox.com; dmarc=none action=none header.from=logics.de; x-originating-ip: [93.104.29.163] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1044c3ff-01c4-4f23-053c-08d896fc426f x-ms-traffictypediagnostic: AM9PR09MB4817: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: AtKQdfMGtzMz8ToQXpI78lCryp+6C+zT/2fdMthKNN+wau8pHJRaJztpxNIMR/XH171RJ8CEJc1BC0j8sBtIU7Zxrl1XkGyDxeGd+9WkH6InO7xtb8sy1BvuHgih9yLNxyaF0C1K8+tpn5EwZr62tZJQObjes/6jLK34RCsaDU2Rz6y0LEa45l0o8ySQVuhqfcZ+fu/UgCkl2yUH681jNWL8wDkqLwXD2Xv+P1ctPY7JRwi79uQjJ0dSC8zYpXlnw2erg9xm1dznIbie+nry1POAbhJ81KXYoqEOm3Za79qX51QXxVyLqgHPYplqoUcFOTOaCVjbZEdXzTu7LywSxqOiYKI7qXh17z0tsXquX4gsKGeUSSGHX0HOjYLDI0y5TagkhsGL7gzv9pyS7NbQ+Q== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR09MB2754.eurprd09.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(39830400003)(376002)(366004)(346002)(396003)(76116006)(66946007)(64756008)(66446008)(66556008)(66476007)(52536014)(5660300002)(186003)(86362001)(26005)(55016002)(9686003)(7696005)(6506007)(8676002)(478600001)(316002)(2906002)(966005)(8936002)(33656002)(6916009)(83380400001)(71200400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?Y9E+pxiIzjsfwep51zNgmULsOwAC2oWCtfZunh0hxum6lvwCbXediFMCMCZc?= =?us-ascii?Q?k+SmpjfWrcaNg/UEBUqW9sOUelXNPc3rYYTU2EF1Nvbr512PDw3b6mkZJy66?= =?us-ascii?Q?7EhLaG5WJ/j0BXwJ60gWEP7rzR06CTBP6bF695Wu1gSuHYUnhnUauUdM0B7M?= =?us-ascii?Q?uK5pNpfPrmntyr5xp576nQc3o9gN0kQxEgON6VKr/xOOUmO04dYQk/3njhxB?= =?us-ascii?Q?aM7TSE7XEPKpcWJoSl25r3bTONAy2JL8/XdtElIzNWlsF0krPmvgJ9A/f8C8?= =?us-ascii?Q?AZdhusbfhtuO1pMWIQ+aveHbA5ZEDwPJyVMtZv7i5vu8dnMBDGY65gpKHuh/?= =?us-ascii?Q?Va0QmyCbttqumvje55v+iL5y2s618n8R2n4D+80NI/GdKcEwoFe3nW5r/TPP?= =?us-ascii?Q?md+kbaXLTbpZEOPSRk7dxMv3rFnwKQrgMNGuALmykHFFY07wftMDNeuhPKeN?= =?us-ascii?Q?r9I0ku+iv0de6bFOYzI+mXGJOu31w9/ag1GhKtfmO1b2bkOgxNfIchcp3UJ4?= =?us-ascii?Q?k1iken6Tg2ybbgoSSy6DZjCqKThrlvXjJ13IpldcL+bl7PWOW6kwXyuXscvH?= =?us-ascii?Q?DknwYDwIi7HvsAlDlqBnoeQ7EQqHAC1cc7Ujrt6X+0u+WbW7NtZ85I9I5ual?= =?us-ascii?Q?17s7SStLYrPm3d5fCAS7M7kRqnMW50zkHyXMn741RNLE7Fxc15D5bJCB1dIp?= =?us-ascii?Q?Cv4pa6cNoF7Pur8yyon34oIBzJGx92fiO1Y5Q22leDPFrANGk4eXOIsUfehp?= =?us-ascii?Q?Dcm6IGwSjmNBfvyEMW8qWmviMmZ8Nfr3SOKPoj9dngKA4gm3uIaiYTIP2/Da?= =?us-ascii?Q?pddfv7WBLVnblPx52OJDUusR9Uw/+UiLYNXQAaFOGOFhM7T4FSitW03wIbKQ?= =?us-ascii?Q?CBEz3E05hPnavBiRqeVcjeVJ/NFdkySo8vatLSd7qDnQOWg7TJw98cDM3l/p?= =?us-ascii?Q?1CKXsqwW/QlkVPqP+32vJCVpYnoAIF0I1vYvlp6zwYk=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: logics.de X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM0PR09MB2754.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1044c3ff-01c4-4f23-053c-08d896fc426f X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Dec 2020 19:55:46.2482 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: fdfa9215-653f-430f-b8ab-a8728140f97a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: yV4shJueYkyhuwHG5bAbUVfN106d77dovQbxV6RgjjaVgF/qxpa1EQ7hoXLI5yFw7aSYGZYLWns58IE0CXkUhdS2RGMK6KXZ+1IualKX8TY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR09MB4817 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.388 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature RCVD_IN_DNSWL_LOW -0.7 Sender listed at https://www.dnswl.org/, low trust RCVD_IN_MSPIKE_H2 -0.001 Average reputation (+2) SPF_HELO_PASS -0.001 SPF: HELO matches 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. [restore.rs, proxmox.com, logics99.onmicrosoft.com] 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: Wed, 02 Dec 2020 20:11:36 -0000 > 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) That was the missing part for me! Maybe you can add it to the dependencies = aswell? Thanks a lot! :) Here is everything together: # Basic setup echo 'deb http://download.proxmox.com/debian/devel/ buster main' >> /etc/ap= t/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 && \=20 apt-get install -y devscripts debcargo clang # Build PBS apt-get update && apt-get dist-upgrade -y && \ git clone git://git.proxmox.com/git/proxmox-backup.git && cd proxmox-backup= / && \ #git checkout v1.0.3 && \ mk-build-deps -ir; mk-build-deps -ir && \ make && make install # Build proxmox-backup-qemu cd ~ && git clone git://git.proxmox.com/git/proxmox-backup-qemu.git && \ cd proxmox-backup-qemu && \ # Optionally: add some changes to the rust sourcecode :) \ sed -i 's/speed=3D{:.2}MB/speed=3D{:.2}MiB/' src/restore.rs && \ # Changes to Cargo.toml according to https://lists.proxmox.com/pipermail/pb= s-devel/2020-November/001635.html \ sed -i 's/proxmox =3D { version =3D "0.7.0"/proxmox =3D { version =3D "0.8.= 0"/' Cargo.toml && \ sed -i 's/proxmox-backup =3D { git =3D "git:\/\/git.proxmox.com\/git\/proxm= ox-backup.git", tag =3D "v1.0.4" }/#proxmox-backup =3D { git =3D "git:\/\/g= it.proxmox.com\/git\/proxmox-backup.git", tag =3D "v1.0.4" }/' Cargo.toml &= & \ sed -i 's/#proxmox-backup =3D { path =3D "..\/proxmox-backup" }/proxmox-bac= kup =3D { path =3D "..\/proxmox-backup" }/' Cargo.toml && \ apt-get install -y librust-cbindgen-dev && \ export BUILD_MODE=3Drelease && \ mk-build-deps -ir && make && make deb && make install # You can use the .deb files in the proxmox-backup-qemu directory directly = now or ship them to the target Proxmox installation dpkg -i libproxmox-backup-qemu* # Optionally - if you want to build a new pbs-restore binary (for me that's= not neccessary; I'm happy with the libs from proxmox-backup-qemu): # Build pve-qemu. Requires either proxmox-backup-qemu libs (see above) or a= PVE installation cd ~ && git clone git://git.proxmox.com/git/pve-qemu.git && \ cd pve-qemu && apt-get install -y libaio-dev libcap-ng-dev libfdt-dev libgl= usterfs-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 l= ibusbredirparser-dev texi2html texinfo xfslibs-dev && \ mk-build-deps -ir && make && \ apt-get install -y ceph-common numactl python-cephfs python-prettytable pyt= hon-rados python-rbd python-requests python3-prettytable libboost-program-o= ptions1.67.0 libgoogle-perftools4 libradosstriper1 python-certifi python-ch= ardet python-idna python-urllib3 python-chardet libcephfs2 python-pkg-resou= rces python-six libtcmalloc-minimal4 && \ dpkg -i pve-qemu*.deb