From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 +H+sHOLwL2fUeAAA62LTzQ:P1 (envelope-from ) for ; Sat, 09 Nov 2024 23:31:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id +H+sHOLwL2fUeAAA62LTzQ (envelope-from ) for ; Sun, 10 Nov 2024 00:31:46 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=YBPuZKxF; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731195106; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=BcBHH83SvIFWLf2/0jn//xaC3eT6hl/dvPmN8q0M7zk=; b=hgicxndQPfnp3m43/KeJvfdsGsdzIdOdAh/BYoDScSN1acdy9oyJ6z5GV1bGHEVlZ6RNsJ hufiqTWuOa6Es4AM01uCibznCuDwQ4cKLgbvGRjFmugvbN02TCaiN5MuQo8U2s33SNici2 8de0Tpfp/05HZ92EKWL8139bw04YHgEo4nncxJzsFdRT0QhL7VnlTNkcHeF74Qbts6JFE/ jgZ8jpODFH5yqJb50dta2ghC4rB/0hXM5cS/nrdh2TRbagZb5drliGG13aU/p3RcGoJKs9 5aDv2cZbGXEnNHm6H/IlLHFl5Wid2NnJE8xmTdGQGpnNUIb3NneuE5ExTH+sRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=YBPuZKxF; 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=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731195106; a=rsa-sha256; cv=none; b=nC4CpayAGRPvwtqhxj5CCAOfMFrlS2kH1ZyNkn9+squxqO82Ek25VUfyVxuigMLBmoRnPb Y/l7cl3yNT0ik6stNCGy8TswslgrpXSf25DQnZ/fWT1ZMKwjq3gAjZ/8yup0YsQJGs0Xgr 01Jq7Bp804cL6MT6xIA3kbIaX4hfOWLFi0tNvYUtC+brOksJ2pS5ET5FnDUmEbUw+Ij6fU 83g2mf89OFDzVCYmeqJEoDUbgYloZkowHLnGxvfbrTqezpV2TVi3gk1NA18MUSoCQ63Ym0 lTcjp3U7fU/PJayMuuH3+NOfMrSLhr6WTom1sntbUi+VwAKdn6r6rbbEeCJhNQ== 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 2DDAD8F4A6 for ; Sun, 10 Nov 2024 00:31:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9uvF-000216-G0; Sat, 09 Nov 2024 18:31:17 -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 1t9uvD-00020b-PN; Sat, 09 Nov 2024 18:31:16 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9uvD-00032K-2O; Sat, 09 Nov 2024 18:31:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=BcBHH83SvIFWLf2/0jn//xaC3eT6hl/dvPmN8q0M7zk=; b=YBPuZKxFfMspo9zzqx4+ T0YahmGMwDXBG/BQaWnzi440dw36fDZBH4lNZ4iR1TvB3P+79Ke7JRiuIOUR34yNR0JXnlYsZyulr xp6FlRQk6XJTbQiwYvnXNTNdigF3r9YpG+rCYTKC4yMTvbKSBRP0mb/hDNO4S6juL+6Re5bxgSmrZ f7dscjpjgECyQNsX09amI1GJGQkB/lamakin48DouzkXnWsJdCVqpPJbcI4BEILgwFdvoMHf5OiZJ bmduGunzvhSYKZ3puDiiNFMtqItTbF/EgZtY6GhFrfwdgQedn8HhUa/ZfAgrfBEjIJ/35tVezYVxw b/2nfOAiR9ddvQ==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Thomas Schwinge Cc: guix-devel@gnu.org, 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> (Thomas Schwinge's message of "Thu, 07 Nov 2024 15:50:34 +0100") References: <87cyjc5jlj.fsf@euler.schwinge.ddns.net> <87ttcj2j45.fsf@euler.schwinge.ddns.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: =?utf-8?Q?D=C3=A9cadi?= 20 Brumaire an 233 de la =?utf-8?Q?R=C3=A9volution=2C?= jour de la Herse 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: Sun, 10 Nov 2024 00:31:12 +0100 Message-ID: <87cyj4x9vj.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: -1.25 X-Spam-Score: -1.25 X-Migadu-Queue-Id: 2DDAD8F4A6 X-TUID: DTREbjUmHfXW Hi, Thomas! Thomas Schwinge skribis: >> $ guix install -p bi /gnu/store/lahbqdidl3ynasd0vzxz2i0dmgh0v16i-gcc= -toolchain-4.8.5 >> [...] >> >> ..., where '/gnu/store/[...]-gcc-toolchain-4.8.5' is the main ("out") >> output, which should -- per my understanding -- correspond to directly >> 'guix install'ing: >> >> $ guix install -p i gcc-toolchain@4.8.5 >> [...] >> >> But now compare the two installations: >> >> $ diff -ru bi/ i/ [...] >> --- bi/manifest 1970-01-01 01:00:01.000000000 +0100 >> +++ i/manifest 1970-01-01 01:00:01.000000000 +0100 >> @@ -9,4 +9,40 @@ >> (("gcc-toolchain" >> "4.8.5" >> "out" >> - "/gnu/store/lahbqdidl3ynasd0vzxz2i0dmgh0v16i-gcc-toolchain-4.= 8.5")))) >> + "/gnu/store/lahbqdidl3ynasd0vzxz2i0dmgh0v16i-gcc-toolchain-4.= 8.5" >> + (search-paths >> + (("C_INCLUDE_PATH" ("include") ":" directory #f) >> + ("CPLUS_INCLUDE_PATH" >> + ("include/c++" "include") >> + ":" >> + directory >> + #f) [...] >> This means that the 'bi' installation isn't usable. This may sound surprising but it=E2=80=99s expected. The reason is that when you run: guix install gcc-toolchain =E2=80=98gcc-toolchain=E2=80=99 is a live package with metadata that Guix u= ses when it builds the profile, in particular data about search paths. However, when you run: guix package -i /gnu/store/=E2=80=A6 then all Guix sees is an inert store item with no associated metadata. This is why it ends up creating a profile without search path info. This is one of the reasons why I would recommend against that second method. It might be useful as a last resort but should be avoided as much as possible. (For development, I=E2=80=99d also recommend =E2=80=98guix shell=E2=80=99 o= ver =E2=80=98guix install=E2=80=99!) HTH, Ludo=E2=80=99.