From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 kN/dOfHTLGfQFwAAqHPOHw:P1 (envelope-from ) for ; Thu, 07 Nov 2024 14:51:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id kN/dOfHTLGfQFwAAqHPOHw (envelope-from ) for ; Thu, 07 Nov 2024 15:51:30 +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=sZ4YpXq2; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730991089; 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=45kd4ibYVs0MwNuip5N26LdtLxEFJl0cJf1VOGAPcwA=; b=bXS1y5fUFUhiat7mxwovUnCObpNbzmJ7Ol0P3PQ5NZTXbUzXY/hOAoqsH6GNjrEtq5Ql0U Vx1pY48rDR2f1isZ1C4QOk1fSArX/qMLjM5KBtDR5DzJ5D7schH58erW7OInS3CeWEl6W1 issZF+Lz4gt+T9O/r0r308s2w/OzhwwkDB2UXDpBvWm4lnCIxtprgabSNi7oRfsFcnyQqN rHu8LVXuwOwGVVHrEEMJOUN4pT70/qQaAfJ2XCZplMN1or3rALLB0qIxeILAq2sXqrsK4A Bx8IzZLCJq8kzS4dKOVrEKS/fMVXxSkmucedny6T+xPK67N1BN/v9L3t4SJh7g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=sZ4YpXq2; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730991089; a=rsa-sha256; cv=none; b=mBkx2ayvDefm6PYVcuRkpWstczOYhMyo4PfnjENBRKxeJ/M1udC+bj6WLnJ122QvNhlVcy MuA4p8gnAeyDbDoU3Xl62qdfGPuKZzBdmoLyXSl0uXYz5/dJ2Z/ZgZjhxMv80b743dcgMu MwuxVv6lgBlL0PHPq7MDeNBPeGcgsk+TcxnZadJ7TpCfaGjtXIyqIP6+UU6zEzTuwt1ZeA 865HrzwuenTdgTRpT8yyi6ACPWGoE0jTW8wbv6zZFWGZsKxcOGOg8qgXH/GkTUBd6xA0J/ MqLEYg0OOQndTlDmN/6JvpFqGUiVzKDFImRyHDT3wNQwfxB4KoBBUueXHzSPpA== 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 7111F86818 for ; Thu, 07 Nov 2024 15:51:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t93qU-0002RS-UX; Thu, 07 Nov 2024 09:50:51 -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 1t93qP-0002QU-88 for help-guix@gnu.org; Thu, 07 Nov 2024 09:50:45 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t93qM-0002lf-BZ for help-guix@gnu.org; Thu, 07 Nov 2024 09:50:44 -0500 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-37d5aedd177so665274f8f.1 for ; Thu, 07 Nov 2024 06:50:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1730991038; x=1731595838; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=45kd4ibYVs0MwNuip5N26LdtLxEFJl0cJf1VOGAPcwA=; b=sZ4YpXq2OPhyfocqjvflNdjLV0zA/tNJYoQpy6ojeCBQVGocC2Mx0E5gxg34IIz9BK uVptygshAi6S7nBQpMuI4+WyT0EICw90C8W5ucF5I+3Y4Ra9IcD+NFsHMlL2WqSPfk0S GM6N2YyxpP/80oDz1gEmlcfm64gb52cqnkIxqoI6Ygh3POsjHhY83l0MMOlA3xcx584n hGvDst4dDk2boESHfi9VR35eanUOCHONGbqWs+25TVw9BQfe+SAeznMaVx4wNjvyY1lM ukbkL5OamOkg3BM2gopEbZHcgBdaNYDoJKmjFiGyDCdNzuEKrn9tffITuXbptA/761uo bnsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730991038; x=1731595838; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=45kd4ibYVs0MwNuip5N26LdtLxEFJl0cJf1VOGAPcwA=; b=nnwJ1qWMc9kL0QaLooIw5dMZ7D8IuiAogpjIFWd3hLaeWw7FovvkL0TXzkQT1sH+g6 WjeAbg903C73CU/2OBuXKmdjg+hl7LpiTRi28E2ItH49Y4J1C8LKxrbbORD3GkOkqVnH Ndjy2Fn1T4S+bmNotzYkhM5Vv+GhfNlK+kR3c3hL1OX/caRM7p72gai6CROn9g6d1ygY S01eH9JxrT3JBsOT7ly0dbhz8nDLAqnwR7uLkCq+y/O6ybkGPJ7QZOLqmb4CD6rlIqb0 dz1AyQYwRPhFKtJhIfs64MmgUqucrI19kiPyCB3JEI17aawBc/n463sxhhxmgc/7WHpy re0Q== X-Gm-Message-State: AOJu0YwF4/CvylCGC1F4jbNfhVrSCBAdL4hDMFYJy5jrfBR4vlJqJSRd OkpctZ1aTSFdLCwbSvqwKf0fLNznVvqq5mYMEYwC+2djguUT5p2esxuTv0FnWkUBy53dtotSTwH ymfI= X-Google-Smtp-Source: AGHT+IF3G06UvS8fEqcDUMXTcjgyPaN5imfSasoWuv7mAK8Q2hq/2cvrLeBkj2GX//PuSfEMcPKTiw== X-Received: by 2002:a5d:598b:0:b0:37c:cf73:4bf7 with SMTP id ffacd0b85a97d-381f09d59c6mr133385f8f.34.1730991037898; Thu, 07 Nov 2024 06:50: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-432aa6c1298sm63090595e9.24.2024.11.07.06.50.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2024 06:50:37 -0800 (PST) From: Thomas Schwinge To: guix-devel@gnu.org Cc: help-guix@gnu.org Subject: Re: 'guix build [P]' followed by 'guix install /gnu/store/[...]' vs. 'guix install [P]' In-Reply-To: <87cyjc5jlj.fsf@euler.schwinge.ddns.net> References: <87cyjc5jlj.fsf@euler.schwinge.ddns.net> User-Agent: Notmuch/0.30+8~g47a4bad (https://notmuchmail.org) Emacs/29.4 (x86_64-pc-linux-gnu) Date: Thu, 07 Nov 2024 15:50:34 +0100 Message-ID: <87ttcj2j45.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::433; envelope-from=tschwinge@baylibre.com; helo=mail-wr1-x433.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-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: 0.40 X-Spam-Score: 0.40 X-Migadu-Queue-Id: 7111F86818 X-TUID: uTgTMvw0lsSy Hi! A few days ago, I had posted this to , but not yet gotten any response -- I understand everyone's busy, of course ;-) -- and this morning had a quick chat on Guix IRC (see below), but as that also wasn't really conclusive, I'd like to re-post on : On 2024-11-03T18:10:32+0100, I wrote: > 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-= 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/ > 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 = refer > # to this specific profile generation. >=20=20=20=20=20=20 > -export PATH=3D"${GUIX_PROFILE:-/gnu/store/fh258i84wjshhaxnv4bb2qm6xi= pfxsnl-profile}/bin:${GUIX_PROFILE:-/gnu/store/fh258i84wjshhaxnv4bb2qm6xipf= xsnl-profile}/sbin${PATH:+:}$PATH" > +export PATH=3D"${GUIX_PROFILE:-/gnu/store/2vk4q0ffg4621pz4jd9pprscpm= 9dfiwf-profile}/bin:${GUIX_PROFILE:-/gnu/store/2vk4q0ffg4621pz4jd9pprscpm9d= fiwf-profile}/sbin${PATH:+:}$PATH" > +export GUIX_LOCPATH=3D"${GUIX_PROFILE:-/gnu/store/2vk4q0ffg4621pz4jd= 9pprscpm9dfiwf-profile}/lib/locale${GUIX_LOCPATH:+:}$GUIX_LOCPATH" > +export LIBRARY_PATH=3D"${GUIX_PROFILE:-/gnu/store/2vk4q0ffg4621pz4jd= 9pprscpm9dfiwf-profile}/lib${LIBRARY_PATH:+:}$LIBRARY_PATH" > +export OBJCPLUS_INCLUDE_PATH=3D"${GUIX_PROFILE:-/gnu/store/2vk4q0ffg= 4621pz4jd9pprscpm9dfiwf-profile}/include/c++:${GUIX_PROFILE:-/gnu/store/2vk= 4q0ffg4621pz4jd9pprscpm9dfiwf-profile}/include${OBJCPLUS_INCLUDE_PATH:+:}$O= BJCPLUS_INCLUDE_PATH" > +export OBJC_INCLUDE_PATH=3D"${GUIX_PROFILE:-/gnu/store/2vk4q0ffg4621= pz4jd9pprscpm9dfiwf-profile}/include${OBJC_INCLUDE_PATH:+:}$OBJC_INCLUDE_PA= TH" > +export CPLUS_INCLUDE_PATH=3D"${GUIX_PROFILE:-/gnu/store/2vk4q0ffg462= 1pz4jd9pprscpm9dfiwf-profile}/include/c++:${GUIX_PROFILE:-/gnu/store/2vk4q0= ffg4621pz4jd9pprscpm9dfiwf-profile}/include${CPLUS_INCLUDE_PATH:+:}$CPLUS_I= NCLUDE_PATH" > +export C_INCLUDE_PATH=3D"${GUIX_PROFILE:-/gnu/store/2vk4q0ffg4621pz4= jd9pprscpm9dfiwf-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 54= FA"))))))))))) > > This means that the 'bi' installation isn't usable. > > Where is the error in (very likely) my thinking? Same behavior, by the way, for more recent versions of 'gcc-toolchain', including current 'gcc-toolchain', so it's not a problem specific to ancient 'gcc-toolchain@4.8.5'. Guix IRC, 2024-11-07: [...] 11:15:47 Anybody got any opinion on "'guix build [P]' followed by 'guix install /gnu/store/[...]' vs. 'guix install [P]'"? 11:16:56 tschwinge: hi. I mean I would expect that. The search paths are stored with the definition of the package. You don't know the package definition from the store path. So the information about search paths is lost. I am mainly quite surprised guix even allows guix install directly on gnu store paths [...] 11:28:43 Rutherther: Interesting, thanks for looking into this. 11:29:32 So, what then is the right way of doing 'guix install --system=3Di686-linux gcc-toolchain@4.8.5' on a x86_64-linux system? ('guix install' doesn't support '--system=3D[...]'.) 11:34:07 I do that all the time, so it might be a bug. 11:35:03 tschwinge: Does it work with guix shell (for a workaround)? [...] 11:50:42 futurile: What is "that" in your sentence? 11:50:46 yelninei: Yes, 'guix shell --system=3Di686-linux [...]' works as expected -- but I'll have to think how to fiddle that into my non-interactive workflow/build scripts. 11:51:35 ..., or should I "just" try to make '--system=3D[...]' work for 'guix install'/'guix package'? ;-) 11:52:00 tschwinge: ideally you could package the build scripts so they just use correct dependencies. Or you an also give them shebang with guix shell to provide the dependencies [...] 11:58:45 tschwinge: You can pass a command to run in the new shell after a -- which should also work non-interactively [...] So, the workarounds aside, what is the expected behavior? Further on: > 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