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 813131FF173 for ; Mon, 13 Jan 2025 15:43:05 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3884F2965; Mon, 13 Jan 2025 15:42:47 +0100 (CET) From: Christian Ebner To: pbs-devel@lists.proxmox.com Date: Mon, 13 Jan 2025 15:42:21 +0100 Message-Id: <20250113144226.467408-1-c.ebner@proxmox.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.028 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 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. 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 0/5] fix 4788: statically linked proxmox-backup-client 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" As discussed in issue #4788 [0], statically linking of the `proxmox-backup-client` still suffers from possible incompatible dependencies on the NSS module libraries, further described in [1]. This patch series provides the means to statically compile the client with a workaround for the NSS lib limitation by relying on `hickory-dns` [2], as suggested by Thomas. The hickory-resolver is used for name resolution with the statically compiled binary instead of the default `getaddrinfo` based `GaiResolver`. Since hickory-resolver depends on `ipconfig` for Windows targets when the `system-config` feature is enabled (required to read nameservers from `/etc/resolv.conf`), also the dependency on `ipconfig` is required by cargo. To workaround this, a dummy crate is registered in the cargo registry. [0] https://bugzilla.proxmox.com/show_bug.cgi?id=4788 [1] https://sourceware.org/glibc/wiki/FAQ#Even_statically_linked_programs_need_some_shared_libraries_which_is_not_acceptable_for_me.__What_can_I_do.3F [2] https://github.com/hickory-dns/hickory-dns Link to previous version of the patches: https://lore.proxmox.com/pbs-devel/20240928094256.153991-1-c.ebner@proxmox.com/ proxmox: Christian Ebner (1): http: client: make https connector generic over resolver proxmox-http/Cargo.toml | 1 + proxmox-http/debian/control | 6 ++++-- proxmox-http/src/client/connector.rs | 17 ++++++++++++----- proxmox-http/src/client/simple.rs | 3 ++- 4 files changed, 19 insertions(+), 8 deletions(-) proxmox-backup: Christian Ebner (4): fix: 4788: Makefile: target for statically linked client binary Makefile: switch path based on build mode and target cargo: add stubs for `ipconfig` windows build dependency client: http: Use custom resolver for statically linked binary Cargo.toml | 3 ++ Makefile | 15 +++++- cargo-stubs/ipconfig/Cargo.toml | 6 +++ cargo-stubs/ipconfig/src/main.rs | 2 + pbs-client/Cargo.toml | 1 + pbs-client/src/http_client.rs | 81 ++++++++++++++++++++++++++++++-- 6 files changed, 103 insertions(+), 5 deletions(-) create mode 100644 cargo-stubs/ipconfig/Cargo.toml create mode 100644 cargo-stubs/ipconfig/src/main.rs -- 2.39.5 _______________________________________________ pbs-devel mailing list pbs-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel