From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id cAQGAxIJLWc3cAEAqHPOHw:P1 (envelope-from ) for ; Thu, 07 Nov 2024 18:38:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id cAQGAxIJLWc3cAEAqHPOHw (envelope-from ) for ; Thu, 07 Nov 2024 19:38:10 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ditigal.xyz header.s=20240917 header.b=AQr3FOhM; 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=fail reason="SPF not aligned (strict)" header.from=ditigal.xyz (policy=reject) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731004690; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=+K4AezcQEHi0L5O8PPCcE1MkGIafLSzT+Q8k1ozmzcE=; b=qvhWmx5aYbvHSpng3xYqnaW5vj8R6cWH2eySShxXqCO7LrCDuNEKO8LIyLA/4MkLyJ8ueP bkPJB4sBvfFAal7Rgu0uETAyxCGwqp7iljnPQswLG/mqWvIrOM1B9rNw4YM/CdyrNxRaaD GR2iUb9SqCKzUxgEmEMRNM9Tzlx5BvmnCM7tz0a6zeYKAedk9P1wp0TR7xCAW5cLyUtyou ck8vGFLpblrYwCrwiTlX/TyfsWbycmvNBMIK5OdDoym7/FbRMfzaAPwdLHdLgA7cZY7W7N hvDmGueEqfhknu9uPVyHlmu1ysnSPdLCK4QxpewxVQrIi9qWYX9mGAgs9zHnRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ditigal.xyz header.s=20240917 header.b=AQr3FOhM; 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=fail reason="SPF not aligned (strict)" header.from=ditigal.xyz (policy=reject) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731004690; a=rsa-sha256; cv=none; b=ZoXkZs2+NBlJNpyBqd4WTnig2WVBiObO4FUWAw+/B0xXyXi0IPLj2nnJvPdXRoXt3E5Wuw wiuXjFojz+pRK9p9CqpfE8nIeF6kHm+Kli3j70uwK7SFOc3OIX9tdv9RinViDrwvWTy7Xd ZNqnnxjhld+5dvpjvAm5Y9pTqw2zanKlSswpdaGSDSYp7XBh8LnwrxrtIcj4RPOkdzDwJN jjtkUSQlJT+X/6pKW7FQxqqUaAswGaPCnH1TnjboZsFRV4uBfclXT4pWh+F4406mLTLBrG D+pjgVF0wDf9cahAukKboFyUZOWYeX95D5co7PwFEdS/weo6nRZ0iKmrFVW94g== 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 9D77040B70 for ; Thu, 07 Nov 2024 19:38:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t978t-0006Hn-TN; Thu, 07 Nov 2024 13:22:03 -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 1t978q-0006Gu-Ry; Thu, 07 Nov 2024 13:22:02 -0500 Received: from ditigal.xyz ([2a01:4f8:1c1b:6a1c::] helo=mail.ditigal.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1t978o-0006AC-7s; Thu, 07 Nov 2024 13:22:00 -0500 Received: by cerebrum (OpenSMTPD) with ESMTPSA id f7d60fe1 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Thu, 7 Nov 2024 18:21:53 +0000 (UTC) From: Rutherther To: Thomas Schwinge Cc: guix-devel@gnu.org Cc: help-guix@gnu.org Subject: Re: 'guix build [P]' followed by 'guix install /gnu/store/[...]' vs. 'guix install [P]' In-Reply-To: <87ttcj2j45.fsf@euler.schwinge.ddns.net> Date: Thu, 07 Nov 2024 19:21:52 +0100 Message-ID: <87ldxuaoqn.fsf@ditigal.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ditigal.xyz; i=@ditigal.xyz; q=dns/txt; s=20240917; t=1731003713; h=from : to : cc : cc : subject : in-reply-to : date : message-id : mime-version : content-type : from; bh=yNYJ+UvwrmvrzFiO9OAHA4c1J9snbxYFgzAToTFnT74=; b=AQr3FOhMBY0CrBZnFVZYmzdtwUjnHZyn7a/GRQ0SqoJHxBlbUC2UEqX6gbphB4oYQdnCM fYOf/OWAiUqnphOgONeqSwhimHMbQ2kevbXNROT4yxF7PP7TcevngTf/8oENQ/1I41SACvv 86LMqIvZULJW2Wbi0e2BpOO/gQX/TL8= Received-SPF: pass client-ip=2a01:4f8:1c1b:6a1c::; envelope-from=rutherther@ditigal.xyz; helo=mail.ditigal.xyz 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, 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-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 7.27 X-Spam-Score: 7.27 X-Migadu-Queue-Id: 9D77040B70 X-TUID: 4wP8fVVgaOMV Hello, > How do I, by the way, programmatically get from the 'guix build' list of > (here: three) outputs to the main ("out") output? Via the outputs work something like this: when the package is being built the builder scripts build everything. At the end, something is copied to out output, something to debug output, and something to static output. So when you are building the package locally, you cannot just tell guix build to produce only one of those outputs. Because the phases are already coded in a way to produce all of them. If you really wanted to not build them, you would have to change the package definition itself. Specifically with gcc-toolchain it would be quite easy as it's only sort of a wrapper package that builds together gcc and libc. The static/debug outputs are actually just copied outputs of those. > (Is there a fundamental reason for not allowing that, or just not yet > implemented?) So yeah, there is. But sometimes substitutes will give you only one output you request. (I am not sure what the condition is, seems that for some build systems it's possible), this of course applies only to packages that have substitutes and only if you use command like guix shell / guix install. Additionally, if you are only concerned about the size it takes up in store, you can guix gc those paths right after the build. Regards, Rutherther