From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id UObMH3BpbWfrGgAA62LTzQ:P1 (envelope-from ) for ; Thu, 26 Dec 2024 14:34:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id UObMH3BpbWfrGgAA62LTzQ (envelope-from ) for ; Thu, 26 Dec 2024 15:34:24 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=npcbSCZH; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735223664; 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=R1DhY/jV+benWuYK2QSrKOVrjMPCwp42c8jgalVHcUo=; b=QqzmwYwr/TjecyeLa8JFicOvrztg7hLdyZPQ9m0HH9Ca+wq2ApEtI8aEY+/2UWQnCFDnPI y2B+/t3gHCoaczQIsX1PqNNN1lrUp17yLcs7J9P94UbZAGHmbUSQnWhChvThlEQi3E+xba 94vxlHSTCQaxs9MAlFM0Xh9HOgFMX1VONSJzknKPmU0BRWYMWlgaDyjrbT9oIE+X6LWhn1 AGZLqSEYi0ckn3/32iYwuWFK2JQzRaz1PcVylATUpkjVYkjEKBrJhmyGg2baWegzZM85KJ DuabJnYquZsxWO0rkgv0N3MShxbnary1RaiJbqVCkCUUAYxXCv/kQdLiaV2I9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=npcbSCZH; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735223664; a=rsa-sha256; cv=none; b=AG1oArFGU2FyFH/RBdtdU39wahG/BMa5jfbnAUNiUTGCZINwDyVdxv5EIujvfIAm/KMu0b v/5DvVkN2vl5E1p7FVdyNFe8Mzrutr1/+RxkV/QscoWB8Tj87T0dPWBB+psjw5YrQw+QM/ yz9+HPDFZVp1Phl5n3/uRFdVJEk/DV1QhXdCPCmeMdGS97umnhF6r8VxJ7plId11fZqnsp Hua9NTIWqwmE5d5679X3kEHaC61hBr3DiDq9vGZLfr6fJkuZxVhPF/yLauIXOO2QZyHKv7 m1ftwelwNyFsoknDtx1lVKBIv3mT81U2tXhr9YXk6xhMbPtC2X3rSE7ZK4Mw6A== 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 0D59834A11 for ; Thu, 26 Dec 2024 15:34:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQovl-0002q1-7i; Thu, 26 Dec 2024 09:33:41 -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 1tQovY-0002fP-Tf for help-guix@gnu.org; Thu, 26 Dec 2024 09:33:29 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tQovS-00011M-Th for help-guix@gnu.org; Thu, 26 Dec 2024 09:33:28 -0500 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-385ddcfc97bso5558994f8f.1 for ; Thu, 26 Dec 2024 06:33:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735223601; x=1735828401; darn=gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=R1DhY/jV+benWuYK2QSrKOVrjMPCwp42c8jgalVHcUo=; b=npcbSCZHIDKSsofIKxnJNjVF42sStkyEG8TRo6E9ap6PykROlsMdN5oi88nx0AQLwM e6wUnoJEUTrbkTheLEdQxpouF48284RI89sBQhkP4/06mr4rmi5XTtsf1I4KCovLTsRF MtFgLSP9v9DmVw5elcQP3g+38hBgzQeO488GpJqK8Nbp570cS0t2v1qY+bDKbsKmfgir XL0xWFUZWdLMdq6mlvk3onUUoCmOdbFi9q3i1dT1ntFyar5Bp7iQ7WssSl1nzhIiHoqj pYztVnQVD/XTN5gNS+vXQ5Ykh6mPYodrccgFivXg9fa4O4rodc/tLDEPUCCqknDHJPvF mWkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735223601; x=1735828401; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=R1DhY/jV+benWuYK2QSrKOVrjMPCwp42c8jgalVHcUo=; b=sa2hy/3I3K9YXDw0aBqdc4LZPOiws27R0yzFVG11fuaKxTNYXI1NtKgr/eC+fRtjvZ JejfDoZNJJMtfh6hV4oQarV9kPwuk7+//UgtkHefqbqZ4Yf3QfC+29IV7V/UwXaZREh+ eBkPt/IqybQdR/6mTvO41DJCYI6tNcccKks70sGI5QR8l61SHuE6QAxSbKtkZY+Q4vYu Xc5uqsmRnQDuCS40cEkDaGUlYTUBFhyc0Mzi5rBkuNpnVpVa73tsBPjYT06Ki+PWBKlr AiswB2o795H3f6CWm7kdGZ7KtqSodhvgy2mgaDcYpXM/NlF2wRsDvfKYduqGjvtgnMWD UOOg== X-Gm-Message-State: AOJu0YwcS1cyJCSlqZ2lV0kQ/0qUvtTDZ3+4KmcegfTxbpScPOTI0UMg Wp0SHqv2IHzCCI2EDeTLucX8zLDAKK/w4AAm5SZUBBAwQ5QvOKFc X-Gm-Gg: ASbGncugizSTRV//HOP9h0XAx9TuUHm0/Cj63Fl3QEp6J3zLenZJXwxQZUlF/ySJBdc 5G4BMkjI2l6aXC8a0OI/IE8MS9nWBxdNRDdNzTFCjO+SBlVZHE7TZnlFE6kbReuDv3L9cwcOaWa F4LDP9ubF4YskvXI+9QpMzTG443tba4vf7z0nGxsHAwMER5Kz0XLK0GDpCa6whe7Hm4RW/etNEg 84sRTZQtpTt8HlZN5D3Gau//gu4zr81SQwS/ZKluAoP80/l2z++YTQ3OQ== X-Google-Smtp-Source: AGHT+IESVmp4+ad1JCGOnl5dPB1aex7up6G7QAIqZs0ZYDQp0C1zt1LfSBpX/IJcH+RdmWeTo4RwSg== X-Received: by 2002:a05:6000:460b:b0:386:4a24:1916 with SMTP id ffacd0b85a97d-38a22408c69mr21109234f8f.55.1735223600473; Thu, 26 Dec 2024 06:33:20 -0800 (PST) Received: from localhost ([188.120.128.147]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43661219a71sm233116065e9.26.2024.12.26.06.33.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2024 06:33:19 -0800 (PST) Date: Thu, 26 Dec 2024 16:33:17 +0200 From: Efraim Flashner To: Jonathan Frederickson Cc: help-guix@gnu.org Subject: Re: Offloading builds asynchronously for use by low-powered machines (or: can you get a home config derivation without building its packages?) Message-ID: Mail-Followup-To: Jonathan Frederickson , help-guix@gnu.org References: <1f6cc191-0347-4447-892a-9807674bf625@app.fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KI5P+gbifnJ5t6h3" Content-Disposition: inline In-Reply-To: <1f6cc191-0347-4447-892a-9807674bf625@app.fastmail.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=efraim.flashner@gmail.com; helo=mail-wr1-x42c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.169, RCVD_IN_DNSWL_NONE=-0.0001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: 0.89 X-Spam-Score: 0.89 X-Migadu-Queue-Id: 0D59834A11 X-TUID: 3a0Hnlqmxk7R --KI5P+gbifnJ5t6h3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 24, 2024 at 02:38:59PM -0500, Jonathan Frederickson wrote: > Hi - I've been using Guix on a couple slower aarch64 machines for a while= =2E One of the recurring pain points with doing so has been that very often= , when I go to build my home environment after a fresh 'guix pull', most of= the packages in it do not yet have substitutes built. >=20 > I do also have a couple more powerful aarch64 machines available, so buil= d offloading is an option. However, one of the machines I use most frequent= ly is a small laptop (the MNT Pocket Reform), which is meant to be very por= table. Even on my more powerful machines, building everything in my home en= vironment when no (or very few) substitutes are available may take multiple= hours or sometimes days, and build offloading being synchronous means the = machine needs to maintain a constant connection to the build servers during= a build. This is very inconvenient for a portable machine! >=20 > What I would *like* to be able to do is to trigger a build on another mor= e powerful machine asynchronously, and then later come back and build my ho= me environment using the substitutes from that build. The Guix Build Coordi= nator seems like it may serve my needs fairly well based on the description= in this blog post: https://guix.gnu.org/en/blog/2021/building-derivations-= how-complicated-can-it-be/ >=20 > ...but in contrast to building a specific package with 'guix build', it d= oesn't look like I'm able to get the derivation path for a home configurati= on without first building the packages! Running 'guix build -d -f /path/to/= home/config' attempts to build the packages in my home configuration if the= y're not yet built, rather than returning a derivation that I could submit = to the build coordinator. >=20 > I admit that I don't fully grok derivations yet; is this inevitable for d= erivations, or is it just a limitation of 'guix build' and is there actuall= y a way to get at the home configuration derivation prior to building its p= ackages? >=20 > Thanks, > - jfred I have a pinebook pro and I also have a couple of other aarch64 machines, and here's what I do: `guix pull` on my pinebook pro, `guix home build --no-grafts ... -d` and `guix system build --no-grafts -d` to get the derivations Then I'll do `guix copy --to=3Dmy-x86_64-machine /gnu/store/...-drv` of the two derivations Then from there I'll build them since I already have offloading setup. I'll either get substitutes from my main machine, or from there I'll do `guix copy --to=3Dpinebookpro $(guix build /gnu/store/...-drv)`, and that'll automatically copy the packages to my pinebook pro once it's finished building everything. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --KI5P+gbifnJ5t6h3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmdtaSkACgkQQarn3Mo9 g1HBjw//T7iRT05jVezsvNi6A9VzaEdUKb5iyqe9iDHM0lK5lwLZDCMCKXeu57tm dKxR+ge7J6hLYqWqnNGS9y+/3NiW+ytahXigi89D1C6B6hTtLS8ooLxGYxIKPnle vnGedrHBnMcQq7Pp+cmNIXnpDZi/y+sSXND9e4h3IOsM+UVVvHf7ns3m67nGCRRd sXLbPgrzrlUO+hw+asZLqDXCFP664GI2D0MVRTCQk/DOApWe8whcGsaYMHIXi5Hq vV8D1zWrg49s8uCjaxNHYw8PZSKTJMu+u+9WxV9miKfTqNjpamWz4CIzkPddrIBy qnPsrD3uTAGAvlqlk1xPqhOnay7RS0BV1mrOuMrUi98mqcfUYT6sjacTjDuQ/dHU YLZHFIKJ2fYuw8G4sMnlSd5xy2ZyJwTQjp9wOBm9eMJMSieo4ASwBs4uZTeaWMqA oID/oAc1nswY0mggAOE60cxtg+lZJN32V8U7pQUPj0lkMhU3rivk86YgDmXU0/Sh 7dubRIbcYiRkhh/NX7jPMYUZBhaU8m3oPo+ROJQIPsA/5MtGmcZq/EFb8TSck4A3 69eznd3IWXL8sH60nsqDpGFBsKNI6mZtjV83ZqQodqJzmyArMfoZkPOrccd0lWT+ hNoZJWiKFfEtxS8/Gd5J9YFjCRpWRBHQCS+QEy9XYtK5BL971Yo= =xkiM -----END PGP SIGNATURE----- --KI5P+gbifnJ5t6h3--