From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 281F31FF161 for ; Tue, 8 Oct 2024 17:13:47 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 2975E196F9; Tue, 8 Oct 2024 17:14:13 +0200 (CEST) Message-ID: <26f171f8-8cb4-4aea-9574-5977b26b06ad@proxmox.com> Date: Tue, 8 Oct 2024 17:13:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Proxmox Backup Server development discussion , Gabriel Goller References: <20240928094256.153991-1-c.ebner@proxmox.com> <20241008145026.cclpx3xgdraau53i@luna.proxmox.com> Content-Language: en-US, de-DE From: Christian Ebner In-Reply-To: <20241008145026.cclpx3xgdraau53i@luna.proxmox.com> X-SPAM-LEVEL: Spam detection results: 0 AWL 0.024 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: Re: [pbs-devel] [POC proxmox proxmox-backup 0/4] use custom DNS resolver for 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" On 10/8/24 16:50, Gabriel Goller wrote: > On 28.09.2024 11:42, Christian Ebner wrote: >> 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 proof of concept drafts a possible workaround by relying on >> `hickory-dns` [2], using the hickory-resolver for name resolution >> instead of the default `getaddrinfo` based `GaiResolver` used by >> the hyper http client, as suggested by Thomas. >> >> These patches still need some polishing, but allow already to compile >> a static binary without the glibc issues as descibied in the issue, >> therefore sending them for possible more widespread testing. >> >> Initial testing on ArchLinux with glic 2.40+r16+gaa533d58ff-2, >> previously leading to floating point exceptions, now allows to backup >> without issues using the patched client. >> >> A major downside is the required dependencies for hickory-dns`, as with >> the feature `system-config` enabled (used to read nameservers from >> `/etc/resolv.conf`), also the windows dependencies on `ipconfig` and >> it's subdependencies are required. > > This would be a dealbreaker for us IMO, but luckily this has already > been fixed on the main branch! That is great! Was afraid to have to patch this out on our side. > The whole 'ipconfig' crate is an optional dependency and should only be > pulled in if the target is windows. This is already implemented in the > latest version [1], but it doesn't yet work quite right. This pull > request (already merged) [0], solves this by removes the implicit > features (which are created on a optional dependency automatically). Thanks a lot for looking deeper into this! I did miss that pull request while looking at this. > This means we either use the main branch for now, or wait until the next > version is released and we can remove ipconfig, widestring, windows-sys > and winreg! So only the hickory crates would need to be packaged as build dependencies if this is the way to move forward. > [0]: https://github.com/hickory-dns/hickory-dns/pull/2337 > [1]: > https://github.com/hickory-dns/hickory-dns/blob/7887002d1198ed9faaaae531e0f9815c10589f7a/crates/resolver/Cargo.toml#L104 _______________________________________________ pbs-devel mailing list pbs-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel