From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 2B1741FF173 for ; Mon, 13 Jan 2025 15:43:04 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id D8200294B; Mon, 13 Jan 2025 15:42:46 +0100 (CET) From: Christian Ebner To: pbs-devel@lists.proxmox.com Date: Mon, 13 Jan 2025 15:42:25 +0100 Message-Id: <20250113144226.467408-5-c.ebner@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250113144226.467408-1-c.ebner@proxmox.com> References: <20250113144226.467408-1-c.ebner@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.030 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy 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 v2 proxmox-backup 4/5] cargo: add stubs for `ipconfig` windows build dependency 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: , Reply-To: Proxmox Backup Server development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" `hickeroy-resolver` depends on ipconfig for name resolution on Windows. Eventhough the build is not configured for windows and the dependency should be disabled, cargo nevertheless expects the dependency to be found in the registry. As a workaround, add a dummy crate and point the registry to it, in order to build without having to pull in the actually unused dependency. In preparation for adding `hickeroy-resolver` as alternative to `getaddrinfo` based name resolution to be used for the statically linked proxmox-backup-client. Signed-off-by: Christian Ebner --- changes since version 1: - not present in previous version Makefile | 2 +- cargo-stubs/ipconfig/Cargo.toml | 6 ++++++ cargo-stubs/ipconfig/src/main.rs | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 cargo-stubs/ipconfig/Cargo.toml create mode 100644 cargo-stubs/ipconfig/src/main.rs diff --git a/Makefile b/Makefile index 428ef40b9..4fe1201ca 100644 --- a/Makefile +++ b/Makefile @@ -98,7 +98,7 @@ build: cp -a debian \ Cargo.toml src \ $(SUBCRATES) \ - docs etc examples tests www zsh-completions templates \ + docs etc examples tests www zsh-completions templates cargo-stubs \ defines.mk Makefile \ ./build/ rm -f build/Cargo.lock diff --git a/cargo-stubs/ipconfig/Cargo.toml b/cargo-stubs/ipconfig/Cargo.toml new file mode 100644 index 000000000..3bd3b0a88 --- /dev/null +++ b/cargo-stubs/ipconfig/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "ipconfig" +version = "0.3.2" +edition = "2021" + +[dependencies] diff --git a/cargo-stubs/ipconfig/src/main.rs b/cargo-stubs/ipconfig/src/main.rs new file mode 100644 index 000000000..f79c691f0 --- /dev/null +++ b/cargo-stubs/ipconfig/src/main.rs @@ -0,0 +1,2 @@ +fn main() { +} -- 2.39.5 _______________________________________________ pbs-devel mailing list pbs-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel