From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sJJ9NUQ2KmeroAAA62LTzQ:P1 (envelope-from ) for ; Tue, 05 Nov 2024 15:14:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sJJ9NUQ2KmeroAAA62LTzQ (envelope-from ) for ; Tue, 05 Nov 2024 16:14:13 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=04J2jELy; 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=1730819652; a=rsa-sha256; cv=none; b=ch70fCN+kIxFUYSqFvlZpyEXRjrD/Z0QqiFtmBfbkhS7EQo9RaEr7wKFArYUeXW/ZA/zQK 5wDknQWC2hGpC7PlMgvMfTdUyxplT6IrW7I6X9LX08SRb5YFpLb1nec2d4GGRf4Gu903fT naT1TWA3ZDzb/N05fjeQvSgEwqTMMYYP6ysuq+5GXbwO9kQfDc9Eay7dvFKvkDBA4AdeV3 a+c9LauPLxJzmwqKeaKwO1oPImELEorxRo0eknZCCDweApgR0uHzS59Vafuf8a5GT+MoTW GutC/BuKv1gLkoa6hIL4yF2mJjnoYaVx0NGknTZqC05TqDBoST5N7lTH4uySjA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=04J2jELy; 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=1730819652; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Xc9xESPjKNLSKaUbwmXhxnfYRKYBed9n2nxCYO7afPM=; b=pi/BwmGaAw3iWC9DxFzN/Tiivrj6osAW+VMye6XWrnkXpXXNSvy2VnVMy2QnmgAZJkVnGo ngriMnmrd05aOjRp/R10Eap7ljMZm3RFjre0y7NjCykvB7m9AR3ZFCOc6HWXTpPBXQONzU X2cICfO2/+wMCogX1T1SHHS3xJFHcPSwRCnAWwtRVkktY9FmeE1sb8dHTIECBrhBqZzl82 Y07cmDmwyixWiKKINXTNacRcEmR9trAWVLapWOjPZfJO7I8VEqrHsXOH/DGioaBWQGwKMo F/uOGtGN755hIzadCsudwStlxoXp9icwEzQdE7uaC4rptLJETVDygajnWvkIfw== 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 683B8673D6 for ; Tue, 05 Nov 2024 16:14:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8LFi-000796-Bb; Tue, 05 Nov 2024 10:13:54 -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 1t7e7g-0003fc-Ub for help-guix@gnu.org; Sun, 03 Nov 2024 12:10:45 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t7e7c-00075n-SM for help-guix@gnu.org; Sun, 03 Nov 2024 12:10:43 -0500 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4315e9e9642so29428055e9.0 for ; Sun, 03 Nov 2024 09:10:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1730653838; x=1731258638; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:user-agent :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Xc9xESPjKNLSKaUbwmXhxnfYRKYBed9n2nxCYO7afPM=; b=04J2jELy5PlW6uOvr7jux6bVsUvcPWPDIOVG07Li2ldyn/9NUbiAIvAW/NwzvJ3c5U ylMJhchXv4WT2IpS+45BCd+Z5MZuzZ/4Icz0D/e5Nt3sUFyEBxDmpTJrTMecMmhccXqd MTS61KHMKqgb9Qc7fSFnII5n4LXBRzXX8pZPHTc9d2iWHYaxVaz/klCkRJSkMsw+2/ge eHnSmaw28jah5dohJzc3UJjvZK8TXfUKyKgysZx5OmwcytG0dWzIgNlk0R058TSQakvC gIEMxE5eCER2T/6kCEECbTCuzXFGfiGP4eI4IW7yC9VO++rQAh9ERgwiNY+lWJDPMYog hrrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730653838; x=1731258638; h=content-transfer-encoding:mime-version:message-id:date:user-agent :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Xc9xESPjKNLSKaUbwmXhxnfYRKYBed9n2nxCYO7afPM=; b=nlslgYOJMfYhz0REXXj95rQXCmeh+EJ6JO39tvFHjqKpKo7Nrl4jma+wcu3uMciVMq h1yCcg/j7xQjZ+1iyjNKCNHbx7c6tEpdlcSn66hfvK6CG+h3Vkafril0UEpu0vd/9i/5 4ZVhG1eUbJZ1NzD6dckOrY46iyBH3+q/IGLECUIMnncJdOU4HUN3V4T5LRcvs9qhv72m pQ4ZRF25w/3TIgKZ3f9A4kPXCHAwmlCjDUro1i/bKAf37/A1AIz1fXtZzliYzKNbI6H7 FAYEJTDYYL/i307CPa95Md6+L5+Jwd+vA5E5OFX1WcfuWjIYgi/gNDAMVb01/9NO2Qf3 /kxA== X-Gm-Message-State: AOJu0YwzhKGzjRW6yBBi91b2D3BDTjDOZPYictv6556mFay3mYdDrH3T ycudY6hk91Z6Wwe0NLFUnfQ/w1D9RLmapVfB6xFkL2BvETs/6CgfzEPF4qFrkbl8M8zeetVHA+7 uFYY= X-Google-Smtp-Source: AGHT+IGSeSuRLuLHnHmOKBNbd4qmHAJwSMAmaNwoBcGUDjw9VOEnOozIDiK9rf5JJ8q1WCxb3vUtww== X-Received: by 2002:a05:600c:4fc3:b0:42c:bae0:f05b with SMTP id 5b1f17b1804b1-4327b6f46c8mr116118145e9.1.1730653837454; Sun, 03 Nov 2024 09:10:37 -0800 (PST) Received: from euler.schwinge.ddns.net (p200300c8b743ca00d37840a5117bb56d.dip0.t-ipconnect.de. [2003:c8:b743:ca00:d378:40a5:117b:b56d]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4327d5e94cdsm128262875e9.28.2024.11.03.09.10.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Nov 2024 09:10:37 -0800 (PST) From: Thomas Schwinge To: help-guix@gnu.org Subject: 'guix build [P]' followed by 'guix install /gnu/store/[...]' vs. 'guix install [P]' User-Agent: Notmuch/0.30+8~g47a4bad (https://notmuchmail.org) Emacs/29.4 (x86_64-pc-linux-gnu) Date: Sun, 03 Nov 2024 18:10:32 +0100 Message-ID: <87cyjc5jlj.fsf@euler.schwinge.ddns.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=tschwinge@baylibre.com; helo=mail-wm1-x330.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 05 Nov 2024 10:13:52 -0500 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: -0.11 X-Spam-Score: -0.11 X-Migadu-Queue-Id: 683B8673D6 X-Migadu-Scanner: mx12.migadu.com X-TUID: EOQxKXQGUJdS Hi! I was under the impression that 'guix build [P]' followed by 'guix install /gnu/store/[...]' would produce equivalent results to 'guix install [P]' -- but evidently that's not generally the case? With up-to-date Guix: $ guix build gcc-toolchain@4.8.5 [...] /gnu/store/zq67w51hf6vpk3s2nriwnl7658biq9dz-gcc-toolchain-4.8.5-debug /gnu/store/lahbqdidl3ynasd0vzxz2i0dmgh0v16i-gcc-toolchain-4.8.5 /gnu/store/82i6qfdqspg43rkphw0hhafny76z5bbr-gcc-toolchain-4.8.5-static $ guix install -p bi /gnu/store/lahbqdidl3ynasd0vzxz2i0dmgh0v16i-gcc-to= olchain-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/ diff -ru bi/etc/profile i/etc/profile --- bi/etc/profile 1970-01-01 01:00:01.000000000 +0100 +++ i/etc/profile 1970-01-01 01:00:01.000000000 +0100 @@ -8,4 +8,10 @@ # When GUIX_PROFILE is undefined, the various environment variables re= fer # to this specific profile generation. =20=20=20=20=20 -export PATH=3D"${GUIX_PROFILE:-/gnu/store/fh258i84wjshhaxnv4bb2qm6xipf= xsnl-profile}/bin:${GUIX_PROFILE:-/gnu/store/fh258i84wjshhaxnv4bb2qm6xipfxs= nl-profile}/sbin${PATH:+:}$PATH" +export PATH=3D"${GUIX_PROFILE:-/gnu/store/2vk4q0ffg4621pz4jd9pprscpm9d= fiwf-profile}/bin:${GUIX_PROFILE:-/gnu/store/2vk4q0ffg4621pz4jd9pprscpm9dfi= wf-profile}/sbin${PATH:+:}$PATH" +export GUIX_LOCPATH=3D"${GUIX_PROFILE:-/gnu/store/2vk4q0ffg4621pz4jd9p= prscpm9dfiwf-profile}/lib/locale${GUIX_LOCPATH:+:}$GUIX_LOCPATH" +export LIBRARY_PATH=3D"${GUIX_PROFILE:-/gnu/store/2vk4q0ffg4621pz4jd9p= prscpm9dfiwf-profile}/lib${LIBRARY_PATH:+:}$LIBRARY_PATH" +export OBJCPLUS_INCLUDE_PATH=3D"${GUIX_PROFILE:-/gnu/store/2vk4q0ffg46= 21pz4jd9pprscpm9dfiwf-profile}/include/c++:${GUIX_PROFILE:-/gnu/store/2vk4q= 0ffg4621pz4jd9pprscpm9dfiwf-profile}/include${OBJCPLUS_INCLUDE_PATH:+:}$OBJ= CPLUS_INCLUDE_PATH" +export OBJC_INCLUDE_PATH=3D"${GUIX_PROFILE:-/gnu/store/2vk4q0ffg4621pz= 4jd9pprscpm9dfiwf-profile}/include${OBJC_INCLUDE_PATH:+:}$OBJC_INCLUDE_PATH" +export CPLUS_INCLUDE_PATH=3D"${GUIX_PROFILE:-/gnu/store/2vk4q0ffg4621p= z4jd9pprscpm9dfiwf-profile}/include/c++:${GUIX_PROFILE:-/gnu/store/2vk4q0ff= g4621pz4jd9pprscpm9dfiwf-profile}/include${CPLUS_INCLUDE_PATH:+:}$CPLUS_INC= LUDE_PATH" +export C_INCLUDE_PATH=3D"${GUIX_PROFILE:-/gnu/store/2vk4q0ffg4621pz4jd= 9pprscpm9dfiwf-profile}/include${C_INCLUDE_PATH:+:}$C_INCLUDE_PATH" diff -ru bi/manifest i/manifest --- 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) + ("OBJC_INCLUDE_PATH" + ("include") + ":" + directory + #f) + ("OBJCPLUS_INCLUDE_PATH" + ("include/c++" "include") + ":" + directory + #f) + ("LIBRARY_PATH" ("lib" "lib64") ":" directory #f) + ("GUIX_LOCPATH" ("lib/locale") ":" directory #f) + ("TZDIR" ("share/zoneinfo") #f directory #f))) + (properties + ((provenance + (repository + (version 0) + (url "https://git.savannah.gnu.org/git/guix.git") + (branch "master") + (commit + "8964dfdb84f7d21dbc89c217ca4f4546a15990af") + (name guix) + (introduction + (channel-introduction + (version 0) + (commit + "9edb3f66fd807b096b48283debdcddccfea34bad") + (signer + "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA= "))))))))))) This means that the 'bi' installation isn't usable. Where is the error in (very likely) my thinking? How do I, by the way, programmatically get from the 'guix build' list of (here: three) outputs to the main ("out") output? Via '/gnu/store/*-gcc-toolchain-4.8.5.drv' (as produced by 'guix build --derivations [...]'), I suppose, but what's the standard way? Or, is there even a way to instruct 'guix build' to only produce the main ("out") output, for example? All this came up in context of wanting to install '--system=3Di686-linux' packages on '--system=3Dx86_64-linux', and I'm not able to just 'guix install --system=3Di686-linux gcc-toolchain@4.8.5' there. (Is there a fundamental reason for not allowing that, or just not yet implemented?) Gr=C3=BC=C3=9Fe Thomas