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 ms13.migadu.com with LMTPS id 0KR8Ighxd2cllAAAe85BDQ:P1 (envelope-from ) for ; Fri, 03 Jan 2025 05:09:28 +0000 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 0KR8Ighxd2cllAAAe85BDQ (envelope-from ) for ; Fri, 03 Jan 2025 06:09:28 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=zancanaro.id.au header.s=k1 header.b=XuLDW3ws; 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=zancanaro.id.au ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735880968; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=YIB5IOSMWE/Zgt09S5onAc3TXF4qSyetVVhb75jusdw=; b=r7r7KD5c8O3nJ/BPGd0yxF2EtigxvpD3MAPmwbLQ38PlKgZjizPZG4j8tEBKn4uifHsd60 4a/MerNobGZQRJ/aMqS1ylry9LSk4911NpQYr1MkP7or1DLozl9jBXngOuPxr43ozzSBek B3xoJCMJLr8z4EleHPKeTQKJYC/P9B+nbMv6YUEfY//hzPsh/fPk9Q51Orz/7lkOPVM4Db lPAK1qltiBZ0lctNX0knnbgvju3P31yRMWm5QMs32TeXNEqX//ecsO56GM3Q+FEEfstwJO 1Cz2ncLG1B3JctB8M+X7J36QyC0cACnXjms1xGNuThfpc+3AhI/p2a3lLLVepA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=zancanaro.id.au header.s=k1 header.b=XuLDW3ws; 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=zancanaro.id.au ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735880968; a=rsa-sha256; cv=none; b=GwGzs9RBF+Sk4cLSQ9SwLobD+SkS0tcEtqilzR84BT4WltPWi6jnSmRaATWJhI6WuNnbQK BdSZe2patPPx8FOAeuzi9xIe08H5TBvUJeClp1Yv/uXHK0hB4Vyi4BWB7BEk8bMfwwNLJ2 qB3mSK3oRBPocJX3+l1275k+X4ItVstxEsM9VBZBvoCZHu0sKeXH8er44UIANbPbDdaZR4 dB4ykhaudJdwWtWr+wxQPAryuOAvzEsp86sCx7IS+AM3D45ENMVhQqgsv0xp3LPHPUNNvF l7/Ey61M0VsnpLQAExe4PJH+bk6UwAuNoYvHtDxIG7OK648wWvlYDAHSDqDWgg== 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 6C8715BA43 for ; Fri, 03 Jan 2025 06:09:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTZvK-00071Q-Eh; Fri, 03 Jan 2025 00:08:38 -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 1tTZvH-00070u-LM for help-guix@gnu.org; Fri, 03 Jan 2025 00:08:35 -0500 Received: from voltorb.zancanaro.id.au ([45.77.50.64]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTZvE-0005Vl-0G for help-guix@gnu.org; Fri, 03 Jan 2025 00:08:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=k1; bh=YIB5IOSMWE/Zgt0 9S5onAc3TXF4qSyetVVhb75jusdw=; h=date:references:in-reply-to:subject: cc:to:from; d=zancanaro.id.au; b=XuLDW3ws9Nvt7Loz4plOIX7wWYoRBBdl5yHZ4 UWK8Bjymban37m/Cz4FSmyzCfX46Rb1TfrGyr98qrd9ytMworrCC7uh6eI9YrK/JikSsGw TAhEdmoB/CWR9ErVvYIccLZigMx7SpQpE2IIDJshFg1/QrxW6OI2x8DVP0yJNy2w= Received: by voltorb.zancanaro.id.au (OpenSMTPD) with ESMTPSA id 6df9859f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 3 Jan 2025 05:07:17 +0000 (UTC) From: Carlo Zancanaro To: Benjamin Slade Cc: help-guix Subject: Re: zig-build DNS issue (ghostty build) In-Reply-To: <87wmfcppua.fsf_-_@gmail.com> (Benjamin Slade's message of "Thu, 02 Jan 2025 20:56:45 -0600") References: <87wmfcppua.fsf_-_@gmail.com> Date: Fri, 03 Jan 2025 16:08:12 +1100 Message-ID: <87cyh4bi2r.fsf@zancanaro.id.au> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=45.77.50.64; envelope-from=carlo@zancanaro.id.au; helo=voltorb.zancanaro.id.au X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 6C8715BA43 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -4.18 X-Spam-Score: -4.18 X-TUID: tWxEsY6/tjMk Hi Benjamin, On Thu, Jan 02 2025, Benjamin Slade wrote: > I've got the start of a Guix package build for the new [Ghostty > terminal emulator], but it gets stuck when the zig-build tries fetch > some dependencies, with what I think is a DNS (!) issue: Guix builds happen in a container which does not have access to the network. Thus, you do have a DNS issues, but it's not one you can resolve within a Guix package build. Looking at the Ghostty documentation, their main build is with Nix, which has the same network restriction, so that's a good sign that this can be made to work. Looking at their PACKAGING.md[1], it says that the only step which requires an internet connection is running this command: --8<---------------cut here---------------start------------->8--- ./nix/build-support/fetch-zig-cache.sh --8<---------------cut here---------------end--------------->8--- Looking in that script[2], it basically just runs "zig build --fetch", with some extra work to fetch some other dependencies. I'm not familiar with Zig builds, but looking at build.zig.zon[3] it seems to list the required dependencies. To get a Guix package building you may need to package these dependencies, and then provide them as inputs to your Ghostty package. I'm not sure whether the Zig build system is set up to handle this properly. I couldn't find any examples of Zig packages with Zig dependencies, but I didn't try very hard. I hope that helps, Carlo [1]: https://github.com/ghostty-org/ghostty/blob/e2f9eb6a6f4dc2108f91293938374c0ed314dcb8/PACKAGING.md [2]: https://github.com/ghostty-org/ghostty/blob/e2f9eb6a6f4dc2108f91293938374c0ed314dcb8/nix/build-support/fetch-zig-cache.sh [3]: https://github.com/ghostty-org/ghostty/blob/e2f9eb6a6f4dc2108f91293938374c0ed314dcb8/build.zig.zon