From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id QMQWF9e5HmZVKwEAe85BDQ:P1 (envelope-from ) for ; Tue, 16 Apr 2024 19:48:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id QMQWF9e5HmZVKwEAe85BDQ (envelope-from ) for ; Tue, 16 Apr 2024 19:48:07 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=mI+pPfxP; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713289687; 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=YywAJKN94ZU73VoI8IHYzWf2Mlfdzg84P3CNnw6nIrQ=; b=QNH7feIKWxF1Y5aROVbOMbXonsZaoDm0sWa30fudECS80BwZROwW4nxE9BlBBKTFP2ef3d gCojSgtJlR47hClaSB3ubnhcveb1qLN18WPWbpuLEhrcQEf7DtxLENIcIukVnlHMneLyJ9 P5lD6jXgI9BM0maJd9uAv1V46UtGh07SL2rRFTV2yckR+Ptm+EFiSFjQ3LpfcCoyTOGxoW 8tIRFbh6vUekIBG53xCREuPFc7s92zzWCsEU8C6lrfa5AXtRqJW80jnVNiqRUGNRwm8c/7 7dmOIFFdhe4LndJjU17SwqF32t9lM+eoNNKc1W/yDUSQA3gGEgRJQrVv1aCLYg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=mI+pPfxP; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713289687; a=rsa-sha256; cv=none; b=Re09N/h7FxJ00TuiWaXGtCFlxhSR7NQDYZVTT3SFdtlfeW4FMrqHBbWXTN5cK2oyP3lEdr jYmEZXKSl0FMBapNUOO3HEAPr7Nui+WlXVSP1015tyv5RBQCdoMOOq4xW3t9orSRf0TkHC emmmmQEb+9whhvZCXs51zN3vmt5FvBMTvWR04zi7X8kT7XnP/iF4unYIRvDMTAPflBycw3 mo4xgedw5GWsD9Hn+jrs5nac8VJDtm5/tp7bLq/uigxY3k14e8f3NDbXZbNLj69jX0TD+N UFrp8TOagRBfnDQXNjx8JfPitkrAZomVnue4aieTqPzSQeehnYyv/enEP3PfOA== 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 F26B362C58 for ; Tue, 16 Apr 2024 19:48:06 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rwmu8-0003j4-Eg; Tue, 16 Apr 2024 13:47:36 -0400 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 1rwmu6-0003ii-MC for help-guix@gnu.org; Tue, 16 Apr 2024 13:47:34 -0400 Received: from mail-108-mta148.mxroute.com ([136.175.108.148]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rwmu4-0001CV-4H for help-guix@gnu.org; Tue, 16 Apr 2024 13:47:34 -0400 Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta148.mxroute.com (ZoneMTA) with ESMTPSA id 18ee8053a150003bea.002 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 16 Apr 2024 17:47:20 +0000 X-Zone-Loop: 31bc0a729d0047a085bff6e8aaf927fdac2c8fe66eeb X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=YywAJKN94ZU73VoI8IHYzWf2Mlfdzg84P3CNnw6nIrQ=; b=mI+pPfxPxseAamJdEfAfTCncSh LWcuJqBoGACJjWe5ybbi3NMcaViywLINvy1K/Wclp7iP3ffBJMOnrn3LY1QBrBND8jI3fClvtK5bQ IfEUk+XbMP0uuqx147oG92kLRF1ggkQHil7qIZYmZme62R9WRYvDgUvArfmnQ1ig/0qaClWc7NmNX BRgDfZ8zrrWNj0uUrRSMtWuRNPJy6ej7uQvjPvh1mNxQW0epLv7M1dxC29XPI50mUOSHvxrqAO3eO TEBjXV9Qq1hcKMqjX0HNc9n875N8UDxpFVtczmGsljwLHHqhDVbbnXdKFf+sEELrdyxKCK86thSBK bJCxDJtQ==; From: Richard Sent To: Mauritz Stenek Cc: help-guix@gnu.org Subject: Re: Replication question In-Reply-To: <87cyqpqnlm.fsf@disroot.org> (Mauritz Stenek's message of "Tue, 16 Apr 2024 10:26:04 -0600") References: <87cyqpqnlm.fsf@disroot.org> Date: Tue, 16 Apr 2024 13:47:11 -0400 Message-ID: <87frvlci8w.fsf@freakingpenguin.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: richard@freakingpenguin.com Received-SPF: pass client-ip=136.175.108.148; envelope-from=richard@freakingpenguin.com; helo=mail-108-mta148.mxroute.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Spam-Score: -4.88 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -4.88 X-Migadu-Queue-Id: F26B362C58 X-TUID: khPqf/cA2S32 Hi Mauritz Mauritz Stenek writes: > Suppose you have these packages in your environment: > > A@old > B > C > > where `A` is pinned to the `old` version, which is not in the latest > channel versions -- as per `guix describe`; the latest versions of > both `B` and `C`, however, are in the latest channel versions but > *not* in the channel versions where `A@old` is defined. > > How, then, is this environment replicable without some hacky > gymnasitcs? > > What am I missing? Your hunch is corect. Without knowing the Guix commit that the environment/profile was built with, you would not be able to reproduce the profile exactly. There's two options I know of: 1. Guix time-machine. e.g. guix time-machine --commit=XXX -- package -m manifest.scm a. This will create a profile containing the exact packages at that moment in time, including A@old. b. All packages will be at whatever version the corresponding Scheme package variable is at for that commit. See (info "(guix) Invoking guix time-machine"). Probably not the best idea to use long term. 2. Inferiors. This provides a mechanism for mixing and matching A@old from commit XXX with packages B and C from commit YYY. See (info "(guix) Inferiors"). a. To my knowledge this won't replace dependencies for B or C if they depend on A@old. B and C would use the "primary" channel's A. You probably could modify B and C to replace A with A@old though. As you saw, A@old doesn't have any fancy logic for "go back to the most recent Guix commit that has A@old". It's just a convenient way to specify which version of package A to install when multiple are packaged. -- Take it easy, Richard Sent Making my computer weirder one commit at a time.