From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 qLXgAt6ZMGImFQEAgWs5BA (envelope-from ) for ; Tue, 15 Mar 2022 14:51:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EEMlAN6ZMGLAlwAA9RJhRA (envelope-from ) for ; Tue, 15 Mar 2022 14:51:26 +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 8F172298C8 for ; Tue, 15 Mar 2022 14:51:25 +0100 (CET) Received: from localhost ([::1]:40840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nU7a8-0005xZ-4y for larch@yhetil.org; Tue, 15 Mar 2022 09:51:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU7Zm-0005n0-SO for bug-guix@gnu.org; Tue, 15 Mar 2022 09:51:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nU7Zm-0000rI-JN for bug-guix@gnu.org; Tue, 15 Mar 2022 09:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nU7Zm-0000s2-IW for bug-guix@gnu.org; Tue, 15 Mar 2022 09:51: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 15 Mar 2022 13:51: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: Maxime Devos Received: via spool by 54350-submit@debbugs.gnu.org id=B54350.16473522443312 (code B ref 54350); Tue, 15 Mar 2022 13:51:02 +0000 Received: (at 54350) by debbugs.gnu.org; 15 Mar 2022 13:50:44 +0000 Received: from localhost ([127.0.0.1]:47859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nU7ZT-0000rK-Os for submit@debbugs.gnu.org; Tue, 15 Mar 2022 09:50:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nU7ZR-0000qt-4y for 54350@debbugs.gnu.org; Tue, 15 Mar 2022 09:50:41 -0400 Received: from [2001:470:142:3::e] (port=37958 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU7ZL-0000pB-6M; Tue, 15 Mar 2022 09:50:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=DttyBePnLQuutd2IgNkU7VrJ2iuRVVdV0AYTSTlImtw=; b=m7qZjfot7NY2mDlScrIc ikRhzELPB4FnHVSZThWcaXy9BZbRcHl4PoCC+fPCCPgirwbGJio5cBzjS0ROUk+h65Neivg/LHjt5 USvIjcJtZ1l/YwrIXHmS6s23iGULMYp5H1HLrEdaut54gXOhmfVSqyADrEJ8QUWf9iJ5FB2U9gOKA 0F7BsCY0Wl4sWCz0FpgAVKFHX6W40AWbCiuGfxqXA9g+UupRsbGgiRFnUrNFElax+EmdLm6TAtF7d 5jAZw+Y5S+PHXh5ahLhqP64xglD1V8azN8Vsye9K+7NhNPS4gPLUH9ZJ70ZNJYe5Y24YrNsg5jYfe 7mn/15RBZHMxBw==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=38542 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU7ZK-00017s-PT; Tue, 15 Mar 2022 09:50:35 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Tue, 15 Mar 2022 14:50:32 +0100 In-Reply-To: (Maxime Devos's message of "Sat, 12 Mar 2022 10:45:46 +0100") Message-ID: <87zglrjpef.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1647352285; 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: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=DttyBePnLQuutd2IgNkU7VrJ2iuRVVdV0AYTSTlImtw=; b=ugbnxerRoEEnK+Hq7bJXREaS6VWat7R2pixdd2o6s9K0QV+DEAfDhS2wBXEU7mhfeB6bmW jZvRofKD2GfoedRO6kYcvFyaJfx9SUEYd39L4QrwsUG9143LNXG7cnivC94CP0MvziKWuL ZylFqbAFuIs8uXtdkghYP2SWg+3jN8Hmi8poj9FLb2Gq7KuI98liWBg/hCZRyz0BFgxk6X +ECiWD1zNdj+imsyKwMTEisDPwuEgCC95kMJWc3oq4F6GnTOkDwG6gx4pGc8OMWLf1v8mw HaEEVrAMBC/hSL0I/XY8dXmjK8IW9j2xpaQlPEezlcopqp+/HGVo/4f6jZrj/A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647352285; a=rsa-sha256; cv=none; b=rSIJoOts1vyKN87c3KbOWoFQb2k6psbkAINAuiNOQprFUTj0sJi2XvPPi6h4QyGUTttGdS U6olVoyuv2JixFUdw5Al+d0g3FpHsGSs+d/f1TrOQzf8ri1++R/QgeSMfXJQZtnzkTnO2i 9FfSrF4IUg91+AmqOPr9mbhEdamBsRhP2dOpaJKaVZ89ZhIEreSdqvDrEupCgx962WbqYK hFCr2bikt01ZroNkdyRNd+Vy1vZKdjK3ZnXxg6fyP5ha9stVQdP4AOfzUosqjhzFF6e1ls T/PgU99MQ+drJcyfQ0iNmn0L0p2jrf8Z2BwPK7TcNIZ/tmt66fPqPYfHja+PPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=m7qZjfot; dmarc=pass (policy=none) header.from=gnu.org; 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: -4.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=m7qZjfot; dmarc=pass (policy=none) header.from=gnu.org; 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: 8F172298C8 X-Spam-Score: -4.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: kQTg6zF8jPex Hi, Maxime Devos skribis: > $ guix shell --pure bash pango@1.42 pango@1.48 > $ ~/.guix-profile/bin/ls -l $GUIX_ENVIRONMENT/lib/libpango*.so > > Result: > [...]/lib/libpango-1.0.so -> [...]-pango-1.42.4/lib/libpango-1.0.so > [...]/lib/libpangocairo-1.0.so -> [...]-pango-1.42.4/lib/libpangocairo-1.= 0.so > [...]/lib/libpangoft2-1.0.so -> [...]-1.42.4/lib/libpangoft2-1.0.so > [...]/lib/libpangoxft-1.0.so -> [...]-pango-1.42.4/lib/libpangoxft-1.0.so > > Question: how does this even work? Aren't error messages about profile > collisions a thing? Unlike =E2=80=98guix package=E2=80=99, =E2=80=98guix environment/shell=E2= =80=99 explicitly disables collision checks=E2=80=94see #:allow-collisions? in environment.scm. The rationale back then was that if you do: guix shell -D guile then you likely end up with profile collisions, like so (I modified the code to do #:allow-collisions? #f): --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix shell -D guile -n guix shell: error: profile contains conflicting entries for bash-minimal guix shell: error: first entry: bash-minimal@5.1.8 /gnu/store/chfwin3a4qp= 1znnpsjbmydr2jbzk0d6y-bash-minimal-5.1.8 guix shell: error: second entry: bash-minimal@5.1.8 /gnu/store/4y5m9lb8k3= qkb1y9m02sw9w9a6hacd16-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--- These collisions are harmless but frequent in package development environments, which is why =E2=80=98guix environment=E2=80=99 had to turn o= ff those checks (commit afd06f605bf88a796acefc7ed598b43879346a6b). That=E2=80=99s 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. WDYT? Thanks, Ludo=E2=80=99.