From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 +AUVAWpZDWfmawEAe85BDQ:P1 (envelope-from ) for ; Mon, 14 Oct 2024 17:48:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +AUVAWpZDWfmawEAe85BDQ (envelope-from ) for ; Mon, 14 Oct 2024 19:48:26 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=rzmk4sz1; dkim=fail ("headers rsa verify failed") header.d=HOTMAIL.IT header.s=selector1 header.b=DEOVKyBb; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=hotmail.it (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1728928105; a=rsa-sha256; cv=fail; b=RWDA4wTSRj6jNn4yaIBTYTxuW9KHv5WYMiX5jxetD8d9JevRfyfA6pk+Mfsja/J5rLAwpk acqqyce1C7hgzbEIKjP7/Bf0F+a5/ijyBcn8CtpNKsdh6+vdf3QoKJ6Waixk4rV0PJOmkf D7rnRukQTRXDpAe6xSVpAYGoTp4KpnMCdepoY2/OhdZflZUnyzyBFmuVRb1XlIJOtTXgah BrycLokt55elvkGnQf4D5sX5mO3oCfezPd6UIwfznN/kdwaFt+rJfQkOV96xrgu6i5daTS 1XSriPvfQmpjSCh9OpZ6Xvmgu3aI+nFbqwJxEu9Lejxdpo1Qj+d0WhjpoVwPiA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=rzmk4sz1; dkim=fail ("headers rsa verify failed") header.d=HOTMAIL.IT header.s=selector1 header.b=DEOVKyBb; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=hotmail.it (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728928105; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=6Dwo7bT6TE42l2gENc32+Oum5EN9Bx32lNqkkWNMHJs=; b=TM9htvda7zJukCYwiz6FWMpI2Jd4GFa1nP/npfstKr1I4cw1UMIZfv/CBd5VdKeRne9AUR s5nvb8G4JX1FuvpL5hhjYOFDbWqIREVFQ0GhJEndTPovl8SbigB9aU9JRv1LvP720PZrpj 1OuWzl7psE1VrIxmR6EpbLmUAqZRUzMXi4/b168JYWkPPyk/53kAAg0v3cs5A/kQSla7Ye krGQ1xcEhWUxcV5KAEaN35VSiq4+ohcLbEnvd7LwsSsxsytVnXOZertWS7WWr8U6Y4k3C5 JzEhdNUxR1nN8jaReiYsR82K0nIkG+wqzlWa7hBoWpPLzty8o1S6wi4oqN6LwA== 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 6194F42F5 for ; Mon, 14 Oct 2024 19:48:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0PAl-0004vy-Hc; Mon, 14 Oct 2024 13:47:59 -0400 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 1t0B7b-000698-7I for bug-guix@gnu.org; Sun, 13 Oct 2024 22:47:47 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t0B7a-0001bB-Sw for bug-guix@gnu.org; Sun, 13 Oct 2024 22:47:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:In-Reply-To:References:Date:From:To:Subject; bh=6Dwo7bT6TE42l2gENc32+Oum5EN9Bx32lNqkkWNMHJs=; b=rzmk4sz1HQn6A/jM5UsEOakjVxJbw6jYcWPQX1iHRr8Ww+4c+kf1/0BNLtvjZ7X23w0UYixw2beZxAhLcFWXOeBTwKU7lH2C+MApdVjh9LXucD0J8wvuDE8Hmne7xnY1VCRFHkc2GJ2m51FRY5JcnjMm2mISonTPYBqcagA63fRjHjx56f22cFtObrl0MJRX4LDNlhJDqA5Cuw8eDitkrCJTB1dF1R9LwTDwqFagCwmE4BPye9ag7iUMsjnQML0I2K9NZCStcNVszNuItxADSZm/iuxLLlg5qXtP1m+VZRj5Y6ZusF3TOdCqOkIB7DgHDrTyWktKqOJY3DoeasjMAQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t0B7q-00015p-JC for bug-guix@gnu.org; Sun, 13 Oct 2024 22:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#73799: guix shell: error: symlink: File exists: "/bin/cc" Resent-From: Marco Fortina Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 14 Oct 2024 02:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73799 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 73799@debbugs.gnu.org X-Debbugs-Original-To: "bug-guix@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.17288740564156 (code B ref -1); Mon, 14 Oct 2024 02:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Oct 2024 02:47:36 +0000 Received: from localhost ([127.0.0.1]:33797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0B7P-00014v-4d for submit@debbugs.gnu.org; Sun, 13 Oct 2024 22:47:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:57128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t07ke-00060N-Iw for submit@debbugs.gnu.org; Sun, 13 Oct 2024 19:11:53 -0400 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 1t07kO-0003Xs-6W for bug-guix@gnu.org; Sun, 13 Oct 2024 19:11:36 -0400 Received: from mail-am6eur05olkn2082a.outbound.protection.outlook.com ([2a01:111:f403:2e12::82a] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t07kM-0006co-EV for bug-guix@gnu.org; Sun, 13 Oct 2024 19:11:35 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=g5TPJsx8vd10IbG5l71P+9saK1+fCAJm5JGqJhigkcTEbiteWGhQofYr8j4mWs5drHZ7ojwhk5f+oSINZgKCpKqlPFskkUP786SGa74rTZ7w0aumK4eVtFjBh835JZyikxeCEp6maMS4G4pje2Xd62+yTSB7d6Py4rkPZxmmYBvMzb+P5locMLydtmdddgCC+yacGvBI2VYtBU6D02ExqlS7ueFbwp4kBqMMddN2hkAlO2HmBMD5IA619L0DDUGzDisXW9Erin41kvXEHNvRU35KmP9savvkWLB67mFNrAVAmpqY7ywvT6kmW2dABems7vuqw1qkjyJ9rrnBDra6kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6Dwo7bT6TE42l2gENc32+Oum5EN9Bx32lNqkkWNMHJs=; b=kthfk5LrppjXNaGvmKGpzk0pYweJ06Q6xqhYLnm5mud6yc6frS6X0n2lqbLwpxhmMiupVDXrzOP5ag1Exgu1R56JhUyVOGpVmcJXhfJU/KYrSurabbtYLyovYv2jp+bMO7GuNsvEPQJM8F4wIrHts6muCBIGANdlXb+hC2rNHXTioXlZzlrZwSdtTV0v8zGtn+hGlEvtXaFD8O+apYrPNJ5dzPc6g1GN4OA+c272c7Tda4OBxSzzWDf/1KEJAIFA3fWqe4QcmWi4iyNtqby8eMgarOXBMqrBakmRbAfyLVPA4Du4pW8YYUOLPDZd9V/HInkwDxZklhPgvXNordMXSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=HOTMAIL.IT; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6Dwo7bT6TE42l2gENc32+Oum5EN9Bx32lNqkkWNMHJs=; b=DEOVKyBboNH8q4j21rCbPkC4akyhZDXLwHXz8d2zF0yU85olq7JD29Vr/gNbZDW1gK5f2WSl6tHuk4Fd3V50k8HxAJ/E8Dhetbr2eCz8kJ0ed/sZ1/Pkm8vVQ0ghbmhcjsFEM8JupKpu170uulgXPIsg2bc5jCpEaUYJ1BNR0C5wN5WTzDlS+eC9IoLpPu3gjfgQLDquGDesSsM4zqoGr0ef907CPT9iasX6zDpnkWIX33kxbALyDoSluZVEII5FqOzfplkJuCsxG5uG4wYNpx4TeRL5K9r6hdEaV/BO3VvLdo4sSvkx9d0w517t3fXD595I/P09mihM6UXlJ4tcsg== Received: from GV1PR10MB5817.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:150:50::19) by DB9PR10MB7292.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:460::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.15; Sun, 13 Oct 2024 23:11:31 +0000 Received: from GV1PR10MB5817.EURPRD10.PROD.OUTLOOK.COM ([fe80::a98f:c6bb:df94:abaa]) by GV1PR10MB5817.EURPRD10.PROD.OUTLOOK.COM ([fe80::a98f:c6bb:df94:abaa%7]) with mapi id 15.20.8069.009; Sun, 13 Oct 2024 23:11:30 +0000 From: Marco Fortina Thread-Topic: guix shell: error: symlink: File exists: "/bin/cc" Thread-Index: AQHbHY7H10GreJbuuUWP3NEze+AQFLKFTy18 Date: Sun, 13 Oct 2024 23:11:30 +0000 Message-ID: References: In-Reply-To: Accept-Language: it-IT, en-US Content-Language: it-IT X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: GV1PR10MB5817:EE_|DB9PR10MB7292:EE_ x-ms-office365-filtering-correlation-id: c1f5c631-a371-4aff-3916-08dcebdc5f8f x-microsoft-antispam: BCL:0; ARA:14566002|8060799006|7092599003|461199028|15080799006|8062599003|19110799003|15030799003|102099032|3412199025|440099028; x-microsoft-antispam-message-info: QvIqGZX9gfj5Crm6gI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EURP_" MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6b909.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: GV1PR10MB5817.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: c1f5c631-a371-4aff-3916-08dcebdc5f8f X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Oct 2024 23:11:30.8065 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR10MB7292 Received-SPF: pass client-ip=2a01:111:f403:2e12::82a; envelope-from=marco_fortina@hotmail.it; helo=EUR05-AM6-obe.outbound.protection.outlook.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, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 13 Oct 2024 22:47:33 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Mon, 14 Oct 2024 13:47:48 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -0.77 X-Spam-Score: -0.77 X-Migadu-Queue-Id: 6194F42F5 X-Migadu-Scanner: mx12.migadu.com X-TUID: b9cxIeKjTyc4 --_000_GV1PR10MB5817A7B0E6EC92CE1F22ED64F77B2GV1PR10MB5817EURP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello there. I have this issue when with guix time-machine shell when using --emulate-fh= s option and having gcc-toolset and clang-toolset in my manifest.scm. I this this could be solved with this patch: diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm index 9f851a478e..7a276569e9 100644 --- a/gnu/packages/llvm.scm +++ b/gnu/packages/llvm.scm @@ -512,8 +512,10 @@ (define-public (make-clang-toolchain clang libomp) ;; Create 'cc' and 'c++' so that one can use it as a ;; drop-in replacement for the default tool chain and ;; have configure scripts find the compiler. - (symlink "clang" (string-append out "/bin/cc")) - (symlink "clang++" (string-append out "/bin/c++")) + (unless (file-exists? "/bin/cc") + (symlink "clang" (string-append out "/bin/cc"))) + (unless (file-exists? "/bin/c++") + (symlink "clang++" (string-append out "/bin/c++")= )) (union-build (assoc-ref %outputs "debug") (list (assoc-ref %build-inputs diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm index a219b2ac89..72e56367a8 100644 --- a/guix/scripts/environment.scm +++ b/guix/scripts/environment.scm @@ -465,7 +465,8 @@ (define* (link-contents dir #:key (exclude '())) ;; bin directories will link to /bin. (let ((gcc-path (string-append profile "/bin/gcc"))) (if (file-exists? gcc-path) - (symlink gcc-path "/bin/cc"))) + (unless (file-exists? "/bin/cc") + (symlink gcc-path "/bin/cc")))) ;; Guix's ldconfig doesn't search in FHS default locations, so provide a ;; minimal ld.so.conf. This patch will create the symlinks only if destination files is not alread= y present. Thanks --_000_GV1PR10MB5817A7B0E6EC92CE1F22ED64F77B2GV1PR10MB5817EURP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello there.

I have this issue when with guix time-machine shell when using --emulate-fh= s option and having gcc-toolset and clang-toolset in my manifest.scm.

I this this could be solved with this patch:

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 9f851a478e..7a276569e9 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -512,8 +512,10 @@ (define-public (make-clang-toolchain clang libomp)
                     = ; ;; Create 'cc' and 'c++' so that one can use it as a
                     = ; ;; drop-in replacement for the default tool chain and
                     = ; ;; have configure scripts find the compiler.
-                     (sy= mlink "clang" (string-append out "/bin/cc"))
-                     (sy= mlink "clang++" (string-append out "/bin/c++"))
+                     (un= less (file-exists? "/bin/cc")
+                     &nb= sp;   (symlink "clang" (string-append out "/bin/cc"= ;)))
+                     (un= less (file-exists? "/bin/c++")
+                     &nb= sp;   (symlink "clang++" (string-append out "/bin/c++&q= uot;)))
 
                     = ; (union-build (assoc-ref %outputs "debug")
                     = ;              (list (assoc-ref %build-i= nputs
diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index a219b2ac89..72e56367a8 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -465,7 +465,8 @@ (define* (link-contents dir #:key (exclude '()))
   ;; bin directories will link to /bin.
   (let ((gcc-path (string-append profile "/bin/gcc")))=
     (if (file-exists? gcc-path)
-        (symlink gcc-path "/bin/cc")))
+        (unless (file-exists? "/bin/cc")
+            (symlink gcc-path "/bi= n/cc"))))
 
   ;; Guix's ldconfig doesn't search in FHS default locations, so= provide a
   ;; minimal ld.so.conf.


This patch will create the symlinks only if destination files is not alread= y present.

Thanks
--_000_GV1PR10MB5817A7B0E6EC92CE1F22ED64F77B2GV1PR10MB5817EURP_--