From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Hill Subject: Re: Why are these derivations different? Date: Sat, 8 Jun 2019 22:43:14 -0400 (EDT) Message-ID: References: <878sub7qng.fsf@devup.no> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:33959) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZnni-0001yP-Ps for help-guix@gnu.org; Sat, 08 Jun 2019 22:43:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hZnnh-0002yR-R7 for help-guix@gnu.org; Sat, 08 Jun 2019 22:43:18 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:42210) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hZnnh-0002xs-Mt for help-guix@gnu.org; Sat, 08 Jun 2019 22:43:17 -0400 In-Reply-To: <878sub7qng.fsf@devup.no> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Marius Bakke Cc: help-guix@gnu.org On Sat, 8 Jun 2019, Marius Bakke wrote: > Jack Hill writes: > >> Hi Guix, >> >> I'm trying to copy the store items for ungoogled-chromium from one of my >> hosts that has many computational resources to another one that does not, >> so that I do not have to build ungoogled-chromium on the less powerful >> host. >> >> However, even after copying the store items using guix archive --export | >> guix archive --import, the less powerful host wants to build >> ungoogled-chromium because the derivations differ (see attachments). > > I suspect this has to do with grafts. Guix is missing a substitute for > the 'ungrafted' package and fails to realize the grafted derivation. > > Exporting with --no-grafts should do the trick. Marius, Thanks! That was it. If you don't mind, I have a few follow up question to help me understand how everything works: How is guix archive --no-grafts different from guix build --no-grafts? Oh, or after reading the manual for --no-grafts again, maybe I used the wrong incantation (guix build --no-grafts package-name instead of guix build package-name --no-grafts)? What's really going on with --no-grafts. Is it that guix on my less powerful host has never seen the the ungoogled-chromium version build against the older dependencies, so doesn't accept the older version that could be grafted? I guess, I'm not sure exactly what you mean by "fails to realize the grafted derivation". Is that a bug? Sorry, I don't think that question was very clear. It probably means that while I think I know what grafts are, I don't know enough about what's going on to ask the question properly. I think this all could be summarized as, "please explain more." Many thanks, Jack