public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Christian Ebner <c.ebner@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH v2 proxmox-backup 4/5] cargo: add stubs for `ipconfig` windows build dependency
Date: Mon, 13 Jan 2025 15:42:25 +0100	[thread overview]
Message-ID: <20250113144226.467408-5-c.ebner@proxmox.com> (raw)
In-Reply-To: <20250113144226.467408-1-c.ebner@proxmox.com>

`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 <c.ebner@proxmox.com>
---
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


  parent reply	other threads:[~2025-01-13 14:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-13 14:42 [pbs-devel] [PATCH v2 proxmox-backup 0/5] fix 4788: statically linked proxmox-backup-client Christian Ebner
2025-01-13 14:42 ` [pbs-devel] [PATCH v2 proxmox 1/1] http: client: make https connector generic over resolver Christian Ebner
2025-01-13 14:42 ` [pbs-devel] [PATCH v2 proxmox-backup 2/5] fix: 4788: Makefile: target for statically linked client binary Christian Ebner
2025-01-13 14:42 ` [pbs-devel] [PATCH v2 proxmox-backup 3/5] Makefile: switch path based on build mode and target Christian Ebner
2025-01-13 14:42 ` Christian Ebner [this message]
2025-01-13 14:42 ` [pbs-devel] [PATCH v2 proxmox-backup 5/5] client: http: Use custom resolver for statically linked binary Christian Ebner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250113144226.467408-5-c.ebner@proxmox.com \
    --to=c.ebner@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal