From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <c.heiss@proxmox.com> 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 004FF946AC for <pbs-devel@lists.proxmox.com>; Thu, 12 Jan 2023 11:36:02 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id D1A5B28637 for <pbs-devel@lists.proxmox.com>; Thu, 12 Jan 2023 11:36:02 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (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 for <pbs-devel@lists.proxmox.com>; Thu, 12 Jan 2023 11:36:01 +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 6A66B44E17 for <pbs-devel@lists.proxmox.com>; Thu, 12 Jan 2023 11:36:01 +0100 (CET) From: Christoph Heiss <c.heiss@proxmox.com> To: pbs-devel@lists.proxmox.com Date: Thu, 12 Jan 2023 11:35:17 +0100 Message-Id: <20230112103516.294402-1-c.heiss@proxmox.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.004 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pbs-devel] [PATCH proxmox-backup-qemu] simpletest: Fix build after API change X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion <pbs-devel.lists.proxmox.com> List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pbs-devel>, <mailto:pbs-devel-request@lists.proxmox.com?subject=unsubscribe> List-Archive: <http://lists.proxmox.com/pipermail/pbs-devel/> List-Post: <mailto:pbs-devel@lists.proxmox.com> List-Help: <mailto:pbs-devel-request@lists.proxmox.com?subject=help> List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel>, <mailto:pbs-devel-request@lists.proxmox.com?subject=subscribe> X-List-Received-Date: Thu, 12 Jan 2023 10:36:03 -0000 This was broken long ago, first with 3edf5d1 AFAICT. Also fixes the make dependency of `simpletest` on `build`, so that `make simpletest` works on a fresh checkout. Fixes: 3edf5d1 ("add compress and encrypt paramaters") Fixes: d8aa155 ("api: add master key support") Signed-off-by: Christoph Heiss <c.heiss@proxmox.com> --- Makefile | 2 ++ simpletest.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ec6bc12..5fe9bc5 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,8 @@ $(MAIN_DEB): build cd build; dpkg-buildpackage -b -us -uc --no-pre-clean lintian $(DEBS) +proxmox-backup-qemu.h: build + simpletest: simpletest.c proxmox-backup-qemu.h gcc simpletest.c -o simpletest -lc -Wl,-rpath=./target/$(BUILD_MODE) -L ./target/$(BUILD_MODE) -l proxmox_backup_qemu diff --git a/simpletest.c b/simpletest.c index 9d00a80..ceb5afd 100644 --- a/simpletest.c +++ b/simpletest.c @@ -24,8 +24,9 @@ void main(int argc, char **argv) { char *fingerprint = getenv("PBS_FINGERPRINT"); - ProxmoxBackupHandle *pbs = proxmox_backup_new - (repository, backup_id, backup_time, PROXMOX_BACKUP_DEFAULT_CHUNK_SIZE, password, NULL, NULL, fingerprint, &pbs_error); + ProxmoxBackupHandle *pbs = proxmox_backup_new( + repository, backup_id, backup_time, PROXMOX_BACKUP_DEFAULT_CHUNK_SIZE, + password, NULL, NULL, NULL, false, false, fingerprint, &pbs_error); if (pbs == NULL) { fprintf(stderr, "proxmox_backup_new failed - %s\n", pbs_error); -- 2.34.1