From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id wAMJAV5muWWw0wAAe85BDQ:P1 (envelope-from ) for ; Tue, 30 Jan 2024 22:13:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id wAMJAV5muWWw0wAAe85BDQ (envelope-from ) for ; Tue, 30 Jan 2024 22:13:02 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=mailbox.org header.s=mail20150812 header.b=sIHaui1X; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706649181; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=2WP8MDKESESBwAykA+t0kpB2IOOR7KxMYZQeYM5WR1c=; b=d73E6p3MKBUzcMY479yA7iaxq8WpLCzsq0h2THrTROUwNa/c9hPRA3IB7Y/M+5qv1Vy1oh 9rpbHQyHHps4gq8IZLbiwHBAo+7xmZeQGED97zTKuqxVsUsz1qbuswJ7hVtR5OZuaaKoN5 l3evsRySHByXnjEvU1FoeCHAS6XVbcsfKKduLQpEz3OCZvFzNzLDqM9fs9YBSyrIR1TQEh 3PSnUwB4EB3YD1FR8K4K7jTCLoA28sFSRXR7wA54tNzBaRVgGOyQ3A6KebejfjKEzNSOL2 0IfU2U+oMzpHaa6L29Zo+TV7i2BxSzEuftD92gzML7oXiTYPDC9TNNruFpulvw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=mailbox.org header.s=mail20150812 header.b=sIHaui1X; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706649181; a=rsa-sha256; cv=none; b=du7zboPbrweMWD/x8cNVIzbrEuEVzEoHSHOUvZIgMVKzVHyTT4ZbFQxqmJEuf9Yup+NSFS WJUaAgFO1sE+cxS1ZQUGYsScgG8I+Ktq1qFcTZtkJpjEtlv818ZK530aORo95xtwW+vagj OFPE4shhH8mDtJwQaEjYF5Q/RD0fCjN3+gfpYZqflfxidQaivuJTZ7TTYRg++YLG8rIgzJ ZCX2tZMdlQ3Vxwrrj6PKdooKQVKemVReQW0MEcoNBsyhr4YpVCsugVv6ZJUiGqQsJbglhd qPiA89Y8csz9kmvBpTgS4wUdOgPlc68u2AZPwuvk6DcZA0YmSdEKILWr9KEeQQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DFA683A3E0 for ; Tue, 30 Jan 2024 22:13:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUvPE-00088F-NR; Tue, 30 Jan 2024 16:12:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rUvPD-000882-2x for help-guix@gnu.org; Tue, 30 Jan 2024 16:12:31 -0500 Received: from mout-p-103.mailbox.org ([80.241.56.161]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1rUvPA-0007AT-8p for help-guix@gnu.org; Tue, 30 Jan 2024 16:12:30 -0500 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4TPdCp74l2z9t8y for ; Tue, 30 Jan 2024 22:12:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1706649143; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=Joow6jIadXkbvfKsScyy3oDjmQWQZKcDaXaqPyYz+cI=; b=sIHaui1XMpds6uzNmZCOCeKALxtY5gpJ0JF+p4jVTO7+98s+vWFnyF1ocXGe0fRCozjp+U 349lUTd+mWlJM2DbDL4FmQO7f2enL+sDY1nmEK9p7ft7c5awVj55LTUkl4ACHtUxjlz66e a2n0uCh9L66bz60wywZtR4yXk4m1wiW7gtVewpWFmyYiluzG633TOjG6oAUpS+s+Z7gDza US6KfO2T8xKsJrVVE40o3x+Qv55VKdaXV64ZeOQrtSI1CdHUbnPAx3XnCbDnDzGVi28rKH VW+t5JmlCmG07V9JduvW3uMVJjbkSuEnPlYxochrcS6QjyOPlCw5NvwvadAsZA== Date: Tue, 30 Jan 2024 16:12:22 -0500 (EST) To: "help-guix@gnu.org" Message-ID: <254357062.342979.1706649142505@office.mailbox.org> Subject: Network error when cargo-build-system fetches dependency from external repository specified in Cargo.toml MIME-Version: 1.0 X-Priority: 3 Importance: Normal X-MBO-RS-ID: 9ac6406e33cb9b14f6b X-MBO-RS-META: fc97gudko6mi7p73r95onzubgfenn4g9 Received-SPF: pass client-ip=80.241.56.161; envelope-from=senkowo@mailbox.org; helo=mout-p-103.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Airi From: Airi via Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.36 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: -7.36 X-Migadu-Queue-Id: DFA683A3E0 X-TUID: i6HFCpSYQBWx Hello, I am trying to package a program using the cargo-build-system. During the build phase, it tries to fetch a dependency specified in the Cargo.toml file, but fails with a network issue. But when built outside of Guix with a hand-typed "cargo build --release", it builds without error. It's almost as though the cargo-build-system has some kind of network sandbox that prevents fetching repos from urls during the build phase... Error logs during the build: starting phase `build' Updating git repository `https://github.com/hearth-rs/msdfgen-rs` warning: spurious network error (3 tries remaining): failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12) warning: spurious network error (2 tries remaining): failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12) warning: spurious network error (1 tries remaining): failed to resolve address for github.com: Temporary failure in name resolution; class=Net (12) error: failed to get `msdfgen` as a dependency of package `font-mud v0.1.0 (/tmp/guix-build-rust-font-mud-9999.drv-0/source)` The Cargo.toml file with the problematic dependency looks like this: [dependencies.msdfgen] git = "https://github.com/hearth-rs/msdfgen-rs" branch = "fix-mac-builds" default-features = false features = ["ttf-parser", "png"] I found that the same error occurs regardless of the url it tries to fetch from, so it's not an issue with the website. It is also not an issue with my network, since building works just fine outside of Guix package. My assumption is that either cargo-build-system disallows connecting to websites during the build phase, or that using "git = " to specify a cargo dependency in Cargo.toml is buggy with cargo-build-system. I'm really hoping that there is a cleaner fix to this than having to modify the Cargo.toml file through the package definition... I'm wondering if perhaps there's a way clean way to override processing this dependency in Cargo.toml? And then create a separate package definition to replace that dependency? Or maybe there's a keyword for cargo-build-system that fixes this weird network issue? Or maybe the method of defining dependencies with git urls in Cargo.toml is not an appropriate practice? The program I'm trying to package is here: https://git.disroot.org/hearth/font-mud And here is my package definition: (define rust-font-mud-9999 (package (name "rust-font-mud") (version "9999") (source (origin (method git-fetch) (uri (git-reference (url "https://git.disroot.org/hearth/font-mud") (commit "c1e6b66f459e32ee90de2a1c29b8a2124a1a9bad"))) (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "19a9lra546f91a3lvjjr7y9yah8q2df8754n5ch9vwdm5hdplf54")))) (build-system cargo-build-system) (home-page "https://git.disroot.org/hearth/font-mud") (synopsis "A library for dynamically generating and packing MSDFs of text glyphs") (description "A library for dynamically generating and packing MSDFs of text glyphs.") (license license:asl2.0))) Any help would be greatly appreciated. Thanks, Airi