From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yB1eJdC3MGLLUwAAgWs5BA (envelope-from ) for ; Tue, 15 Mar 2022 16:59:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YNB6HdC3MGI1dgAAG6o9tA (envelope-from ) for ; Tue, 15 Mar 2022 16:59:12 +0100 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 CFF532DB69 for ; Tue, 15 Mar 2022 16:59:11 +0100 (CET) Received: from localhost ([::1]:52898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nU9Zm-0006aD-PY for larch@yhetil.org; Tue, 15 Mar 2022 11:59:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU9Zf-0006a1-2P for bug-guix@gnu.org; Tue, 15 Mar 2022 11:59:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55502) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nU9Ze-0005dJ-QH for bug-guix@gnu.org; Tue, 15 Mar 2022 11:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nU9Ze-0002pr-GF for bug-guix@gnu.org; Tue, 15 Mar 2022 11:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#54350: Profile collisions are ignored, installing multiple versions of the same package is silently broken Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 15 Mar 2022 15:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54350 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 54350-submit@debbugs.gnu.org id=B54350.164735993010877 (code B ref 54350); Tue, 15 Mar 2022 15:59:02 +0000 Received: (at 54350) by debbugs.gnu.org; 15 Mar 2022 15:58:50 +0000 Received: from localhost ([127.0.0.1]:49399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nU9ZS-0002pM-0i for submit@debbugs.gnu.org; Tue, 15 Mar 2022 11:58:50 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:35634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nU9ZP-0002pC-OX for 54350@debbugs.gnu.org; Tue, 15 Mar 2022 11:58:49 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by baptiste.telenet-ops.be with bizsmtp id 6fyl2700F4UW6Th01fylzr; Tue, 15 Mar 2022 16:58:45 +0100 Message-ID: From: Maxime Devos Date: Tue, 15 Mar 2022 16:58:40 +0100 In-Reply-To: <87zglrjpef.fsf@gnu.org> References: <87zglrjpef.fsf@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-AoVoI7kH020S+4Bg1w+u" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647359925; bh=+bzWxapZ9c0vTQ4qnuOQgwQDPSGzl0afAY7hkVLJcuo=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Je5oznUueRkrK+zNS38tq9koDHjvCBmtlzKzC/mqnq7S8A+pgGaL3jj24O8s6UgJR E6a5kSdPlFoHWMS065OW7CTn9DJ4SyhqqSUvED0guhreeeWj9N1RqHK0Ocv67qZm0R 3DfyQkDZ9z2nLbnutu8zaKbfrMk8dYjXKZfB93oUTzMhKcsMxuxV8A6M/ZVRMM6tm8 ypDFHZ8aqk2givCHqJiXdRkAcSkm07qa0O8qsBLXg/abJz6OQxDn7lU5omYUK3RnXF mdTlrctmQ3nU4Dw/4wPb1MpqC71jMnS7SV+CUf7vRcRKqMhnE671yrIV4FNF8U/CUT 5JkhPv3GXSMIQ== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 54350@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647359951; 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: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=+bzWxapZ9c0vTQ4qnuOQgwQDPSGzl0afAY7hkVLJcuo=; b=XENEunQsyT9mjvxJmQlxYnzunBqj/q1R42THQ5LlfQla6HnGaDx4/PwmyPzr4ii+y/SCXC LqP3GFDECMpKyLgWyXRZ0iOYUDv6PD7jlhN71AlaDFoaxvmNmyJ2FtiR92Cen+fOn3qVb5 g9cGPu5txNoSYkImSLsY2HAsG00/hUuqSHBc4Zw2sOK3Jc65mbIquCwLtuHvpsuVjLTnaE rL46wygE88CwLzZkl6KFnoj0/RdyPVWaaeCqbM34vmgNHRA6QJkQcu4E28DJK+RAoxsD+r XdP3kdpghMjwfVy+fAi0G02Dj1lndM5c2Rv0M9xBpejSiBZwQHrLiytPVwfq0A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647359951; a=rsa-sha256; cv=none; b=SbNzqQN8TjPu1xQ6gWebpSbYVQdQQZJRaJnbh3m1iNitXIXQgY137vhlQDzsiAuK1ihea/ PwKJ2vdLhFVY1mSvVC2B0OsjJptlBXlOykeW+HuQGDnq3ikxlA5B1r1/7RT9fjvw5fO1u+ 3Ui98tV2XQcl5AXtkPkLXjsjKHWaEAmv+vEbq4jeRJ6I7BTjyKkqp7yY4Bf5icLx9Dh+h6 bSuXofwkEB325avycjT9+H9dVV6Bax1uSo0S1CG5uEQ1kdRRuJRgkwzWMJrXKMuWFFmwEF 4pns+gX/4iimm/qenra8mxPvQ/bCiO8nP1v6HbpqGgduFDyQTxF5MkVt6jxrDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Je5oznUu; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (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" X-Migadu-Spam-Score: 2.93 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Je5oznUu; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (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" X-Migadu-Queue-Id: CFF532DB69 X-Spam-Score: 2.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: zdQRqAk/7Chj --=-AoVoI7kH020S+4Bg1w+u Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s schreef op di 15-03-2022 om 14:50 [+0100]: > $ ./pre-inst-env guix shell -D guile -n > guix shell: error: profile contains conflicting entries for bash-minimal > guix shell: error:=C2=A0=C2=A0 first entry: bash-minimal@5.1.8=C2=A0/gnu/= store/chfwin3a4qp1znnpsjbmydr2jbzk0d6y-bash-minimal-5.1.8 > guix shell: error:=C2=A0=C2=A0 second entry: bash-minimal@5.1.8=C2=A0/gnu= /store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8 > hint: You cannot have two different versions or variants of `bash-minimal= ' in the same profile. > --8<---------------cut here---------------end--------------->8--- >=20 > These collisions are harmless but frequent in package development > environments, which is why =E2=80=98guix environment=E2=80=99 had to turn= off those > checks (commit afd06f605bf88a796acefc7ed598b43879346a6b). >=20 > That=E2=80=99s a bit of a hack though. These collisions happen because=C2=A0the bag of a package contains of multi= ple variants of bash: the default canonical bash-minimal, from (gnu packages commencement), not directly visible (i.e., with "guix show" and 'specification->package'), which is overidden by the bash-minimal from native-inputs, which is visible from specification->package and as a public variable, and as I understand it, the bash-minimal supposed to end up in the references of non-bootstrap packages. For these kind of collisions, I think the non-canonical package (that's actually visible with "guix show FOO") is preferred here, so perhaps the canonical variants can be filtered out whenever that would resolve a collision? That seems also a bit of a hack though. > What we could do, as a mitigation, is to enable collision checks > unless there=E2=80=99s at least one =E2=80=98-D=E2=80=99 flag. We=E2=80= =99d also need to introduce > =E2=80=98--allow-collisions=E2=80=99 for =E2=80=98guix shell=E2=80=99. Special-casing -D like this also seems like a hack to me. I'm not sure which hack is better, though I prefer this one and the =E2=80=98filter out canonical packages=E2=80=99 above the original =E2=80=98just disable collis= ion checking=E2=80=99. Greetings, Maxime. --=-AoVoI7kH020S+4Bg1w+u Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYjC3sBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7oDxAP9eipXUqNPc36a8Dy1OE/61ePW0 3vstSYCI6hH+RrCgogD+KNGMRFaS7UfPk/yFkCeLhPgYijpJiexQnaec0xxELgU= =MzrT -----END PGP SIGNATURE----- --=-AoVoI7kH020S+4Bg1w+u--