From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sIecA93AMWKNrgAAgWs5BA (envelope-from ) for ; Wed, 16 Mar 2022 11:50:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qH0fAd3AMWJ7hQEA9RJhRA (envelope-from ) for ; Wed, 16 Mar 2022 11:50:05 +0100 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 B6A4C28D12 for ; Wed, 16 Mar 2022 11:50:04 +0100 (CET) Received: from localhost ([::1]:41352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUREA-0000j7-VI for larch@yhetil.org; Wed, 16 Mar 2022 06:50:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUQQo-0000Nm-VQ for guix-patches@gnu.org; Wed, 16 Mar 2022 05:59:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56371) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nUQQo-00005m-Mp for guix-patches@gnu.org; Wed, 16 Mar 2022 05:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nUQQo-0001GM-Dz for guix-patches@gnu.org; Wed, 16 Mar 2022 05:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54393] [PATCH 0/2] Add 'guix manifest' to "translate" commands to manifests Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 16 Mar 2022 09:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54393 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Greg Hogan Cc: 54393@debbugs.gnu.org Received: via spool by 54393-submit@debbugs.gnu.org id=B54393.16474247094803 (code B ref 54393); Wed, 16 Mar 2022 09:59:02 +0000 Received: (at 54393) by debbugs.gnu.org; 16 Mar 2022 09:58:29 +0000 Received: from localhost ([127.0.0.1]:50268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUQQH-0001FP-Il for submit@debbugs.gnu.org; Wed, 16 Mar 2022 05:58:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUQQG-0001FA-BL for 54393@debbugs.gnu.org; Wed, 16 Mar 2022 05:58:28 -0400 Received: from [2001:470:142:3::e] (port=56632 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUQQA-0008UR-Pm; Wed, 16 Mar 2022 05:58:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=hCbhJSkV+DRv+ox6o75rNxRhic0lsZ58ccDPl2qT4sg=; b=Lx9Uq3dhmcqYCwyYT5KK epHM/CTlHqwfTEv9TZuiKfwLanXcX4cu2VXTH+BrLPFKqM12fC3LNmYYsjVNkxhNrVAappW4JnNHe l8WXtyvdd5K9pzljn7WhVqpc2CQEihgHIdmx2lCXnvrcvebfytwI+ciidhvyKStOOzWPl6Rrf7VEt tdyXSW1r3anK2H3cZOfWLtCoxdKlNwsUrAAqWSxWjsyCqANi+StQryOb3RU9k8fVAfgrlTILjLlQ2 uj/oyX6tINPD6ZoMPYFJuJCmgRYziVetuqdbrnzSMOM4KJFrEBjQD2ClMmgeCN9aljSTl9VvciDbp JnO3HfYBMxquBQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:60514 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUQQ6-0003aM-W2; Wed, 16 Mar 2022 05:58:20 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20220314215015.24435-1-ludo@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 26 =?UTF-8?Q?Vent=C3=B4se?= an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 16 Mar 2022 10:58:16 +0100 In-Reply-To: (Greg Hogan's message of "Tue, 15 Mar 2022 12:50:06 -0400") Message-ID: <87sfrigqx3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647427804; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=hCbhJSkV+DRv+ox6o75rNxRhic0lsZ58ccDPl2qT4sg=; b=TxO4N72gIewGcnggFiQZmRfEt6niIPEjAFcjpuj7EF4SjKCzBG3jjkw+JYW4ITZDqV/FyF aBRvjD5xpm8bygs6zg5YFIUYMRsHGFqOhyFjf65r7w+a5vIud5wHRDKdHidbpbptBLpnLc zdrmIaq41gBQ2Fmxg5t9jCkjfzkyG829R6ka8hqxJqWx5FSrPPWomN7z/h3vGyPeiWjkn5 +AvsPWJyWnniga5dLQQ0w3PsjeBRiddh8CM6sbbb0sxbN0Z6hP8gcDQgtNtlJ7t00QdjEn HyAZfbL5Bnn8tTQMOpnoqMumCWjnSNVAwY7AV152f2m9Km6ZvVQhlx6LKFuCXw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647427804; a=rsa-sha256; cv=none; b=NgiYAklrjGiP7kAWpgk/5gvBXlxwJru1Qb7RreBPoW0CkkNGXh2RQudf4o/3SM1ObD3LKZ m081R220+jfoqHuop5c0yeyYy4pvqZAcJEAgO45niJhBrzZ22kGw9noaSCMtWNh3YGBRXo JKv2hLm6BmjWTWQ80bcn6eEDEeA2QufSlJCU+9XYq3xoQuh66xeK+d/fQSGjrlOO/4/Lrm VZrdcjBF6rD/9ffK/2NqR2NRRutuLLwYvBrW5VlEPzY+wfhecRwLyFF+ceTClEJYRlKwzK i8d30DOOiKCNXjzDc0z8H+YlUazUnXILeCCr/Lp/JwHieRUiuMoP2yh6xL+Qcg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=Lx9Uq3dh; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=Lx9Uq3dh; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B6A4C28D12 X-Spam-Score: -5.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: Ty0qFuUVOgeR Hi, Greg Hogan skribis: > I would find this quite helpful. The current "basic setup with manifests" > only documents the trivial case. It would be quite nice to document best > practices for custom UTF-8 profiles, system-dependent inclusion (should we > silently skip packages on unsupported systems?), and updating package > versions, inputs, and/or toolchain. OK. > And for the latter, what are the limits of the manifest as compared > with cloning, modifying, building, and executing with "./pre-inst-env > guix ..." (which loses reproducibility)? > > Some background on that last thought: as Guix grows it becomes > increasingly difficult to upgrade popular dependencies. I looked at > upgrading 'fmt' and there was one dependent package that could not be > upgraded, though not a package I needed. I'd like to be able to define an > upgraded version of 'fmt' or 'boost' in my manifest and have it apply to > the entire installation (profile or pack) rather than needing to modify > specific packages with a with-input. Same for the toolchain, I think it > would be nice to simply say "create this installation using gcc-toolchain" > (the user default @11 rather than the system default @10) without needing > any package transformations. And could one specify global build flags such > as "-march=3Dnative"? Can one reach down into and modify commencement > packages? This=E2=80=94switching compiler tool chains and tuning for a CPU=E2=80=94is= available as package transformations: https://guix.gnu.org/manual/devel/en/html_node/Package-Transformation-Opt= ions.html You can take advantage of those in your manifest using =E2=80=98option->transformations=E2=80=99: https://guix.gnu.org/manual/devel/en/html_node/Defining-Package-Variants.= html#index-options_002d_003etransformation The tentative =E2=80=98guix manifest=E2=80=99 and =E2=80=98guix package --e= xport-manifest=E2=80=99 create that code snippet for you, as in this example: https://issues.guix.gnu.org/54393#2-lineno134 That=E2=80=99s the kind of thing I=E2=80=99d like to show in the =E2=80=9CW= riting Manifests=E2=80=9D section. Tuning and switching tool chains will always happen through package transformations. In Guix, things have to be specified explicitly; there=E2=80=99s no way you can stealthily change the meaning of the depende= ncy graph without changing it=E2=80=94unlike other tools in this area. But tha= t=E2=80=99s a strength! Now, we have to make it so that such changes can be done conveniently, and package transformation options were introduced in this spirit. I hope that makes sense! Ludo=E2=80=99.