From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IE5rA+BcXmedfQAA62LTzQ:P1 (envelope-from ) for ; Sun, 15 Dec 2024 04:36:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id IE5rA+BcXmedfQAA62LTzQ (envelope-from ) for ; Sun, 15 Dec 2024 05:36:48 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=dog6ShIL; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734237407; 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=FA/ly2KHFM9HrGYGBk1L+Gvw86P9uU4T3GfkodrR6u8=; b=tWbMuW9xxjYajvqrVt6rQhPxLV39HHeVXxwcBK9us29Q1Y+pzcm9lZX3gytm2Ho7EncWgA X72lhRqWJ/NkkdY+gw2GJTCNZjcw3xP5MYJbl50kFhtv1E8eDS9eEHFDHvgG41cIgAXuq2 gimoeH7G24eGK092mAsDiY9kIk3vekuhxdZpTMksz3vQp6IUMCM3Lo0dVtR8+AVUe6DyDx vHGWKVf6eA7daZQyztnbaD9GHfe/Af89QWeoG5nlaLEJJ7uTSgG7g/6A9P/Z0bX5OCNsOQ XA4YpTcXfu9OQmMpePDV9S/onvsLrnbp0fnBVwkuOe4aTjR8pJQ1cciMopKxWA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=dog6ShIL; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734237407; a=rsa-sha256; cv=none; b=kE2ejvFh3v4Q8BGmLaYsuhZ2oUGRgVv6rwRhxqqjQ8BdXm+2rjFtVRHHw8D4J0cEbjr7BB jD1b/kFrXFZ0gnI5ex376B1IFsdX08CsER8Rpo8hM1EHouGloKk0o7XeNr4gaJ0s81Ut66 o5c5QlHKKUJVOWL8a22i0aiUz/6utp0GspGEx1JN0mSDkAcCX/a/9uOnWsVHou+QcDif0m 1R8OLBDrCBUts8tlnHwXQrPkWQvFzd+jNKku7BLF4oz+4CdgoPdRjpQ8OB5KFJWHCse2gg 822F/Jyd0Os/LUj4QSdzq/PjU08U4gDKOuNoVNCw4K+XYnLN1ruX1VEGpttaZg== 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 E288B5B8B1 for ; Sun, 15 Dec 2024 05:36:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMgMg-0003bd-Su; Sat, 14 Dec 2024 23:36:22 -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 1tMgMe-0003bS-V2; Sat, 14 Dec 2024 23:36:20 -0500 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMgMa-0001Qv-Mj; Sat, 14 Dec 2024 23:36:19 -0500 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-21661be2c2dso22121045ad.1; Sat, 14 Dec 2024 20:36:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734237373; x=1734842173; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=FA/ly2KHFM9HrGYGBk1L+Gvw86P9uU4T3GfkodrR6u8=; b=dog6ShILpDNvoxvlPCbo9aAsezzgkuCV1iEz9BiXdo5rhYgCbRZ3y2J7y/TEoCJ3fl gR3z8Lim8XwbvlnbJ5sHFnOk7TfviyJj/g7VWc4fB1IC9rEEZ6JZNo00WPkYUalkxf9u pmBcowgYU3BgVp0+TU/9ZiRi94JESLA/U2BF4lvTi6lm+PwuMXlMON4cdLsjfkAwBzhQ yj3+gaCl2nIIWs5lOZ5QPB5pRHrm53NleBWIDqQpHeQ6rGKJyXwQ77Su7axk45JhadFc gLIWZujsao3LtZqdQeds+6uYFV5NHD5BdKM+GKz3KIxR6Cv0Y4Z5PsuTMASLG+6RiPpY aOiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734237373; x=1734842173; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FA/ly2KHFM9HrGYGBk1L+Gvw86P9uU4T3GfkodrR6u8=; b=SQcqIxugAE+lkDnTPQu7xePAej1oDs9Nlg0jY7qcU8qthMZBN7J9bEb2dZvC5RPkvw ncaF5XwsoX2wBeoPRmDApFm/z0H01Y5gVPdPme5am4VAcyG4+5jMtbjKkmbBj4mHnKuj cNHh2neNgGd9gV6fkXzaatcTsrTZLJKbcrObazEQ+1Ls6cJv55f35Ige8eZHkyecGBk1 DAWcibW8TIrcKrb2QBxeEGtw8mHqbiqckZS3re4oV+mMfMT4c/2BQBX1UFqkB09FWLfd PSJGKP45e0pUv04aidXDYRYsFKwQdQDJGB+T8xY28D4gn4qLqXgX8o0U0MtIpluhGeSf RITQ== X-Forwarded-Encrypted: i=1; AJvYcCV3JaBk8h7sVa+b3a3yoTmBVl7gKPazDscTYefgfFXt/kiL8unzy6YdfWzLLwEFYDL3EA5OMOuJMZo5@gnu.org, AJvYcCXinq9ZNjeXIgF9rIMLRuSL5mpWx54ptgddQeLwqBURLByG4dRnKa64J6tP5QnrV6Hmrrgueg==@gnu.org X-Gm-Message-State: AOJu0YxtASJPH7ds06Y+2zr4p168adA1zTlraacOORsGQQ8qitA0wEOz olQvJ/M0vPD3/8RhxpD5e0bFFizsT/fOHAKAZ+mYm9vSd5XJyNcdQLtIB24S X-Gm-Gg: ASbGncsH+IXfx+bPHOj3ewLJo9OIa+pu8tlZL+S2oJ1p6ZGMQAxKYq7KpjXK1drJ8eW 2DSoQ3XECCFoZIt0DR3Z8Ztb26Fl4kcqe2xUXQ8blWWhvj2FjQLMS9lIgBBI1H3Q67pUag4W6Ft xTzP4KcPrmjtke7qelDe0ajpRfuP87ipUR9oDNsLYYjDeYwr6umTh2CS8WTm4KiANJ4GiHlCC2a gLs9GaJB6gPwG+aby1nhqPYYpZVTn/6VNhKWZk58YfqQ4Rk7VvMfQ== X-Google-Smtp-Source: AGHT+IH1ZWJhPbLGw92b2I1U3gjCjlhR2VNo2GKEslR9grmD2WZuXexijw27QFA4ff3J0pc7r/zAJw== X-Received: by 2002:a17:902:c403:b0:216:6769:9eca with SMTP id d9443c01a7336-21892a211ecmr108998715ad.37.1734237372805; Sat, 14 Dec 2024 20:36:12 -0800 (PST) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-218a1e6d0fesm20230675ad.256.2024.12.14.20.36.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Dec 2024 20:36:12 -0800 (PST) From: Maxim Cournoyer To: Marco Fortina , =?utf-8?Q?Ludovic_Court=C3=A8s?= Cc: "guix-patches@gnu.org" , "guix-devel@gnu.org" Subject: Re: [bug#62917] [bug#73799] [PATCH] Fix 'guix shell: error: symlink: File exists: "/bin/cc"' In-Reply-To: (Marco Fortina's message of "Tue, 22 Oct 2024 10:49:32 +0000") References: Date: Sun, 15 Dec 2024 13:36:01 +0900 Message-ID: <87zfkxy34e.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=maxim.cournoyer@gmail.com; helo=mail-pl1-x633.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, 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: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: E288B5B8B1 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.66 X-Spam-Score: -8.66 X-TUID: Yfj6B9aRtmSq Hi Marco, Marco Fortina writes: > This patch closes issue when running "guix shell --container --emulate-fhs clang-toolchain gcc-toolchain" or "guix shell --container --emulate-fhs clang-toolchain gcc-toolchain": > > > diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm > index a219b2ac89..37f11395f9 100644 > --- a/guix/scripts/environment.scm > +++ b/guix/scripts/environment.scm > @@ -464,7 +464,8 @@ (define (setup-fhs profile) > ;; /bin since that already has the sh symlink and the other (optional) FHS > ;; bin directories will link to /bin. > (let ((gcc-path (string-append profile "/bin/gcc"))) > - (if (file-exists? gcc-path) > + (if (and (file-exists? gcc-path) > + (not (file-exists? "/bin/cc"))) > (symlink gcc-path "/bin/cc"))) > > ;; Guix's ldconfig doesn't search in FHS default locations, so provide a I see Ludovic pushed a variant of the above fix with 23ab6fc29f28b0fa9ad94bf2ceed135ee3fdea34, and attributed your discovery of the problem. Good. Thanks for the report and patch! -- Thanks, Maxim