From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 10 19:14:41 2017 Received: (at submit) by debbugs.gnu.org; 11 Nov 2017 00:14:41 +0000 Received: from localhost ([127.0.0.1]:34516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDJRZ-00029I-2h for submit@debbugs.gnu.org; Fri, 10 Nov 2017 19:14:41 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDJRW-000292-La for submit@debbugs.gnu.org; Fri, 10 Nov 2017 19:14:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDJRQ-0008GF-Dh for submit@debbugs.gnu.org; Fri, 10 Nov 2017 19:14:33 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33483) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eDJRQ-0008GA-AB for submit@debbugs.gnu.org; Fri, 10 Nov 2017 19:14:32 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDJRP-000250-0r for bug-guix@gnu.org; Fri, 10 Nov 2017 19:14:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDJRL-0008DD-05 for bug-guix@gnu.org; Fri, 10 Nov 2017 19:14:30 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:51491) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eDJRK-0008C5-G5 for bug-guix@gnu.org; Fri, 10 Nov 2017 19:14:26 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D04C420B77 for ; Fri, 10 Nov 2017 19:14:23 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Fri, 10 Nov 2017 19:14:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sturm.com.au; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=myjA6qBex9YD7dsbqWx53Y68rjqcIeivr1b7yrcIUZ4=; b=lWNyv6zi 6SLeqa9GEQYAYq/ZAF1Kq2gIEidVspD7650dmMvDg0/dBqkEyoxHdx6ZuZs+lmyg aLQzFOuHExDCOIBlDlajwsfppxUJZr/iwS8x4aAPczXqAZLdW9IbIRHGvVwBbSbt yx+/VJEFbBoFdYkzumWHxGOFeijeMh2j+cXOHUHFkdOR2Q7DgkYVzoj+qNADgwC1 QZnewNlimauzrwpFT991VfcKACChPDKb/frRxHbb1a0cT3a60G74u/tlRVFQUmt0 NUS7CTLZK8UAfuS5CWhm8GUWsLBofYYjEgNagu0yq+4izlhiDFhxbF3IzwSmRHdS aQWL3lthzIHVhg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=myjA6qBex9YD7dsbqWx53Y68rjqcI eivr1b7yrcIUZ4=; b=nAzkDs6wrT/8O6TbbPyaFNIqz8tsq+u6K2mUtF32k70uC ch7z8Y5t8gCMhTwTsYJQPTx+XzvYrRNK51cTxvAcvTeR0+e8ndmWcmn8nvJmPhK9 ULSeiIFU8G0LRkqziljY1zBQNkEGt7FpdQr9LqTrSmK6KrkeIOyHnn/jZzFEdA9o TApyZnqE3vKQDyKMJ4ceh/XzuQ7WHFc2XhDk9prk4fFgS8ZCFKUsQtQMmnWgNRtB eWZ+NENjYG8OuvH5lDF3ZJrZMr+itByxcHa5jdbj3iXedch6EMGQ14pVSJJIFiZe kh+wn7togog/eRXg3wdHTOzkNRW33pHVTQ3Jqcv6w== X-ME-Sender: Received: from Marseille (124-169-183-126.dyn.iinet.net.au [124.169.183.126]) by mail.messagingengine.com (Postfix) with ESMTPA id DBF2E244A1 for ; Fri, 10 Nov 2017 19:14:22 -0500 (EST) User-agent: mu4e 0.9.18; emacs 25.3.1 From: Ben Sturmfels To: bug-guix@gnu.org Subject: "Profile contains conflicting entries" could be more helpful Date: Sat, 11 Nov 2017 11:14:05 +1100 Message-ID: <87bmk98yeq.fsf@sturm.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) Hi Folks, When trying to install "python-twine", installation failed with the following error: $ guix package --install python-twine The following package will be installed: python-twine 1.9.1 /gnu/store/fh72qswc2gpj1c1xb2gm23hfs1vx4lk2-python-twine-1.9.1 guix package: error: profile contains conflicting entries for python-requests:out guix package: error: first entry: python-requests@2.13.0:out /gnu/store/4paqanwmdw2d7ss9hdq7d34b43ycjgsv-python-requests-2.13.0 guix package: error: ... propagated from python-twine@1.9.1 guix package: error: second entry: python-requests@2.13.0:out /gnu/store/z4jqf8p2z73dscrjmbpwamdvyfdaqkgx-python-requests-2.13.0 This was quite baffling - it wasn’t clear to me why there was a conflict, whether it was related to something I'd done and what I could do to fix it. If I understand correctly, the cause is that I had manually installed "python-requests" at some stage and that only one version can be available in my profile, and that "python-twine" depended on a different version. I believe the action I need to take to resolve the conflict is: guix package --install python-twine --upgrade python-requests So I think the bug is that the user interface could be more helpful here. It should probably either tell you what happened and what you can do to fix it, or offer to resolve the conflict/perform the upgrade for you. Regards, Ben From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 11 08:59:09 2017 Received: (at 29255) by debbugs.gnu.org; 11 Nov 2017 13:59:10 +0000 Received: from localhost ([127.0.0.1]:34819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDWJR-0007JM-Oe for submit@debbugs.gnu.org; Sat, 11 Nov 2017 08:59:09 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:57297) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDWJQ-0007JE-Dw for 29255@debbugs.gnu.org; Sat, 11 Nov 2017 08:59:08 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 1C3CAF77D; Sat, 11 Nov 2017 14:59:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Yjys9oGsjLeq; Sat, 11 Nov 2017 14:59:07 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 34EFAF67E; Sat, 11 Nov 2017 14:59:07 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Ben Sturmfels Subject: Re: bug#29255: "Profile contains conflicting entries" could be more helpful References: <87bmk98yeq.fsf@sturm.com.au> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 21 Brumaire an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 11 Nov 2017 14:59:04 +0100 In-Reply-To: <87bmk98yeq.fsf@sturm.com.au> (Ben Sturmfels's message of "Sat, 11 Nov 2017 11:14:05 +1100") Message-ID: <87bmk8hq6v.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 29255 Cc: 29255@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Hi Ben, Ben Sturmfels skribis: > So I think the bug is that the user interface could be more helpful here. > It should probably either tell you what happened and what you can do to > fix it, or offer to resolve the conflict/perform the upgrade for you. Would it be desirable or even feasible to resolve the conflict for you? I wouldn=E2=80=99t want the tool to remove installed packages without askin= g me, for instance. Could you suggest messages you=E2=80=99d like to see in this case? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 24 12:24:15 2017 Received: (at control) by debbugs.gnu.org; 24 Nov 2017 17:24:15 +0000 Received: from localhost ([127.0.0.1]:56254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIHi3-0004oe-4U for submit@debbugs.gnu.org; Fri, 24 Nov 2017 12:24:15 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:40388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIHi1-0004oW-V5 for control@debbugs.gnu.org; Fri, 24 Nov 2017 12:24:14 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id C94B310077 for ; Fri, 24 Nov 2017 18:24:15 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ar40qO8xyCvo for ; Fri, 24 Nov 2017 18:24:15 +0100 (CET) Received: from ribbon (unknown [193.50.110.215]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 348A910076 for ; Fri, 24 Nov 2017 18:24:15 +0100 (CET) Date: Fri, 24 Nov 2017 18:24:09 +0100 Message-Id: <87lgiva8ue.fsf@gnu.org> To: control@debbugs.gnu.org From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: control message for bug #29255 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) tags 29255 moreinfo From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 24 13:35:36 2017 Received: (at 29255) by debbugs.gnu.org; 24 Nov 2017 18:35:36 +0000 Received: from localhost ([127.0.0.1]:56338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIIp6-00020T-8o for submit@debbugs.gnu.org; Fri, 24 Nov 2017 13:35:36 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIIp4-00020K-L8 for 29255@debbugs.gnu.org; Fri, 24 Nov 2017 13:35:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1511548510; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; l=1767; bh=ppNsDIv3gCn5uh2zEpfud29hwPMl/s7NOyMop9sO5VQ=; b=ZSDRIFJcTBKoNrF3IzJUCWVI5id460fifk+ASBiMIQsjgBO3SFRNBKKXUdyyFb71 2jpb2t6eHHtGcaYNiYSi+m/AZ3HvOht93AD7pewZ3yBoFyJbeJn2VX+zw1gvufCPSSx h4vynMEciCmCanXLA0f11UO1tRKLiXj4TnKGRSwk= Received: from localhost (port-92-200-33-155.dynamic.qsc.de [92.200.33.155]) by mx.zohomail.com with SMTPS id 1511548509952357.5678857388498; Fri, 24 Nov 2017 10:35:09 -0800 (PST) References: <87bmk98yeq.fsf@sturm.com.au> <87bmk8hq6v.fsf@gnu.org> User-agent: mu4e 0.9.18; emacs 25.3.1 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#29255: "Profile contains conflicting entries" could be more helpful In-reply-to: <87bmk8hq6v.fsf@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Fri, 24 Nov 2017 19:35:06 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <87609zcyp1.fsf@elephly.net> X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29255 Cc: 29255@debbugs.gnu.org, Ben Sturmfels X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Ludovic Court=C3=A8s writes: > Ben Sturmfels skribis: > >> So I think the bug is that the user interface could be more helpful here= . >> It should probably either tell you what happened and what you can do to >> fix it, or offer to resolve the conflict/perform the upgrade for you. > > Would it be desirable or even feasible to resolve the conflict for you? > I wouldn=E2=80=99t want the tool to remove installed packages without ask= ing me, > for instance. Guix could resolve the conflict by upgrading the existing and conflicting item in the profile. In my experience that=E2=80=99s usually w= hat a user wants. Guix could also remind the users to use =E2=80=9C--manifest=E2=80=9D or to = upgrade items in the profile. > Could you suggest messages you=E2=80=99d like to see in this case? In this case it is not entirely clear that the existing python-requests package in the profile is =E2=80=9Cold=E2=80=9D. The version looks the sam= e and the hash is opaque. Would it be possible to record something about the Guix version that was used to install a package? Then we could say: An older variant of python-requests is installed in this profile (propagated from package =E2=80=9Cfoo-bar=E2=80=9D) and conflicts with a = newer variant (propagated from package =E2=80=9Cpython-twine=E2=80=9D). I understand that it is challenging to accurately describe the version of Guix in the presence of GUIX_PACKAGE_PATH. With a more formal definition of channels (e.g. requiring a description file for the channel that includes a version or date string) this problem could be side-stepped. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 30 07:13:21 2017 Received: (at 29255) by debbugs.gnu.org; 30 Nov 2017 12:13:21 +0000 Received: from localhost ([127.0.0.1]:37614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKNiT-0004mb-4L for submit@debbugs.gnu.org; Thu, 30 Nov 2017 07:13:21 -0500 Received: from [141.255.128.1] (port=59786 helo=hera.aquilenet.fr) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKNiQ-0004mR-80 for 29255@debbugs.gnu.org; Thu, 30 Nov 2017 07:13:19 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id A70E5100B8; Thu, 30 Nov 2017 13:13:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qntbWUTy7oOj; Thu, 30 Nov 2017 13:13:18 +0100 (CET) Received: from ribbon (unknown [193.50.110.211]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 552A3FF67; Thu, 30 Nov 2017 13:13:18 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Ricardo Wurmus Subject: Re: bug#29255: "Profile contains conflicting entries" could be more helpful References: <87bmk98yeq.fsf@sturm.com.au> <87bmk8hq6v.fsf@gnu.org> <87609zcyp1.fsf@elephly.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 10 Frimaire an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 30 Nov 2017 13:13:14 +0100 In-Reply-To: <87609zcyp1.fsf@elephly.net> (Ricardo Wurmus's message of "Fri, 24 Nov 2017 19:35:06 +0100") Message-ID: <87r2sg3qxx.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 2.2 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, Ricardo Wurmus skribis: > In this case it is not entirely clear that the existing python-requests > package in the profile is “old”. The version looks the same and the > hash is opaque. > > Would it be possible to record something about the Guix version that was > used to install a package? Then we could say: > > An older variant of python-requests is installed in this profile > (propagated from package “foo-bar”) and conflicts with a newer variant > (propagated from package “python-twine”). [...] Content analysis details: (2.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 SPF_HELO_FAIL SPF: HELO does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=helo;id=hera.aquilenet.fr;ip=141.255.128.1;r=debbugs.gnu.org] 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: 29255 Cc: 29255@debbugs.gnu.org, Ben Sturmfels X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.2 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, Ricardo Wurmus skribis: > In this case it is not entirely clear that the existing python-requests > package in the profile is “old”. The version looks the same and the > hash is opaque. > > Would it be possible to record something about the Guix version that was > used to install a package? Then we could say: > > An older variant of python-requests is installed in this profile > (propagated from package “foo-bar”) and conflicts with a newer variant > (propagated from package “python-twine”). [...] Content analysis details: (2.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 SPF_HELO_FAIL SPF: HELO does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=helo;id=hera.aquilenet.fr;ip=141.255.128.1;r=debbugs.gnu.org] 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Ricardo Wurmus skribis: > In this case it is not entirely clear that the existing python-requests > package in the profile is =E2=80=9Cold=E2=80=9D. The version looks the s= ame and the > hash is opaque. > > Would it be possible to record something about the Guix version that was > used to install a package? Then we could say: > > An older variant of python-requests is installed in this profile > (propagated from package =E2=80=9Cfoo-bar=E2=80=9D) and conflicts with = a newer variant > (propagated from package =E2=80=9Cpython-twine=E2=80=9D). When the version numbers are the same, we cannot tell whether a variant is =E2=80=9Colder=E2=80=9D, we can just tell that it=E2=80=99s different. = Also, I find it useful to see the propagation stack as is currently the case. With the patch below, I get: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix package -p foo -i python@2 python The following packages will be installed: python 2.7.13 /gnu/store/vysfxizaddh1q8s5qjgbdkzxx0585dzi-python-2.7.13 python 3.5.3 /gnu/store/m4rdgmvdqcxs2zhv42idnz1s1w391i8j-python-3.5.3 guix package: error: profile contains conflicting entries for python:out guix package: error: first entry: python@2.7.13 /gnu/store/vysfxizaddh1q8= s5qjgbdkzxx0585dzi-python-2.7.13 guix package: error: second entry: python@3.5.3 /gnu/store/m4rdgmvdqcxs2z= hv42idnz1s1w391i8j-python-3.5.3 hint: You cannot have two different versions or variants of `python' in the= same profile. --8<---------------cut here---------------end--------------->8--- and: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix package -i guile-cairo -p foo --no-grafts The following package will be installed: guile-cairo 1.4.1 /gnu/store/dsdbp9sqla6zz2skljlcr5zfjyzvargf-guile-cair= o-1.4.1 guix package: error: profile contains conflicting entries for cairo:out guix package: error: first entry: cairo@1.14.10 /gnu/store/c4vl4hw5jccg0b= 23sfvs0kdnfdbxdlgm-cairo-1.14.10 guix package: error: ... propagated from guile-cairo@1.4.1 guix package: error: second entry: cairo@1.14.10 /gnu/store/nwxv9s2q8pi0m= 6gn6fyidpj8442dwp6f-cairo-1.14.10 guix package: error: ... propagated from cairomm@1.12.2 hint: Try upgrading both `guile-cairo' and `cairomm', or remove one of them= from the profile. --8<---------------cut here---------------end--------------->8--- How does that sound? We could further refine the hint to suggest using =E2=80=98guix package -m= =E2=80=99, though I=E2=80=99m not sure if it=E2=80=99d be a useful hint (it=E2=80=99s = a useful recommendation, but not necessarily good as a =E2=80=9Cfix hint.=E2=80=9D) Thoughts? Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/guix/ui.scm b/guix/ui.scm index 13cbe3a0f..660f6ea5c 100644 --- a/guix/ui.scm +++ b/guix/ui.scm @@ -502,6 +502,25 @@ interpreted." (x (leave (G_ "unknown unit: ~a~%") unit))))))) +(define (display-collision-resolution-hint collision) + (define (top-most-entry entry) + (let loop ((entry entry)) + (match (force (manifest-entry-parent entry)) + (#f entry) + (parent (loop parent))))) + + (let* ((first (profile-collision-error-entry collision)) + (second (profile-collision-error-conflict collision)) + (name1 (manifest-entry-name (top-most-entry first))) + (name2 (manifest-entry-name (top-most-entry second)))) + (if (string=? name1 name2) + (display-hint (format #f (G_ "You cannot have two different versions +or variants of @code{~a} in the same profile.") + name1)) + (display-hint (format #f (G_ "Try upgrading both @code{~a} and @code{~a}, +or remove one of them from the profile.") + name1 name2))))) + (define (call-with-error-handling thunk) "Call THUNK within a user-friendly error handler." (define (port-filename* port) @@ -570,6 +589,7 @@ interpreted." (manifest-entry-output* conflict) (manifest-entry-item conflict)) (report-parent-entries conflict) + (display-collision-resolution-hint c) (exit 1))) ((nar-error? c) (let ((file (nar-error-file c)) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 10 17:47:16 2017 Received: (at 29255-done) by debbugs.gnu.org; 10 Dec 2017 22:47:16 +0000 Received: from localhost ([127.0.0.1]:55678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOANP-0002HP-VJ for submit@debbugs.gnu.org; Sun, 10 Dec 2017 17:47:16 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:37473) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOANN-0002HF-Vo for 29255-done@debbugs.gnu.org; Sun, 10 Dec 2017 17:47:14 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 18842FDA2; Sun, 10 Dec 2017 23:47:16 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S_lJCu2Ujerw; Sun, 10 Dec 2017 23:47:14 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id D3572F853; Sun, 10 Dec 2017 23:47:13 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Ricardo Wurmus Subject: Re: bug#29255: "Profile contains conflicting entries" could be more helpful References: <87bmk98yeq.fsf@sturm.com.au> <87bmk8hq6v.fsf@gnu.org> <87609zcyp1.fsf@elephly.net> <87r2sg3qxx.fsf@gnu.org> Date: Sun, 10 Dec 2017 23:47:09 +0100 In-Reply-To: <87r2sg3qxx.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 30 Nov 2017 13:13:14 +0100") Message-ID: <87shci9p5e.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 29255-done Cc: 29255-done@debbugs.gnu.org, Ben Sturmfels X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Hello! ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > Ricardo Wurmus skribis: > >> In this case it is not entirely clear that the existing python-requests >> package in the profile is =E2=80=9Cold=E2=80=9D. The version looks the = same and the >> hash is opaque. >> >> Would it be possible to record something about the Guix version that was >> used to install a package? Then we could say: >> >> An older variant of python-requests is installed in this profile >> (propagated from package =E2=80=9Cfoo-bar=E2=80=9D) and conflicts with= a newer variant >> (propagated from package =E2=80=9Cpython-twine=E2=80=9D). > > When the version numbers are the same, we cannot tell whether a variant > is =E2=80=9Colder=E2=80=9D, we can just tell that it=E2=80=99s different.= Also, I find it > useful to see the propagation stack as is currently the case. > > With the patch below, I get: > > $ ./pre-inst-env guix package -p foo -i python@2 python > The following packages will be installed: > python 2.7.13 /gnu/store/vysfxizaddh1q8s5qjgbdkzxx0585dzi-python-2.7.13 > python 3.5.3 /gnu/store/m4rdgmvdqcxs2zhv42idnz1s1w391i8j-python-3.5.3 > > guix package: error: profile contains conflicting entries for python:out > guix package: error: first entry: python@2.7.13 /gnu/store/vysfxizaddh1= q8s5qjgbdkzxx0585dzi-python-2.7.13 > guix package: error: second entry: python@3.5.3 /gnu/store/m4rdgmvdqcxs= 2zhv42idnz1s1w391i8j-python-3.5.3 > hint: You cannot have two different versions or variants of `python' in t= he same profile. > > > and: > > $ ./pre-inst-env guix package -i guile-cairo -p foo --no-grafts > The following package will be installed: > guile-cairo 1.4.1 /gnu/store/dsdbp9sqla6zz2skljlcr5zfjyzvargf-guile-ca= iro-1.4.1 > > guix package: error: profile contains conflicting entries for cairo:out > guix package: error: first entry: cairo@1.14.10 /gnu/store/c4vl4hw5jccg= 0b23sfvs0kdnfdbxdlgm-cairo-1.14.10 > guix package: error: ... propagated from guile-cairo@1.4.1 > guix package: error: second entry: cairo@1.14.10 /gnu/store/nwxv9s2q8pi= 0m6gn6fyidpj8442dwp6f-cairo-1.14.10 > guix package: error: ... propagated from cairomm@1.12.2 > hint: Try upgrading both `guile-cairo' and `cairomm', or remove one of th= em from the profile. I=E2=80=99ve pushed the patch as commit 3b80b81358b3861ca3794105c8eb4395df97846b. Hopefully these hints help users get on the right track, and we can always adjust them. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 10 17:53:28 2017 Received: (at 29255-done) by debbugs.gnu.org; 10 Dec 2017 22:53:28 +0000 Received: from localhost ([127.0.0.1]:55697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOATP-0002QG-Rm for submit@debbugs.gnu.org; Sun, 10 Dec 2017 17:53:28 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:46769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOATN-0002Q5-NN for 29255-done@debbugs.gnu.org; Sun, 10 Dec 2017 17:53:26 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 02A7A209FC; Sun, 10 Dec 2017 17:53:25 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Sun, 10 Dec 2017 17:53:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sturm.com.au; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=v01/xTh7zvAqPpcrZYVndu7PxNqOJ1HKF52CklE6sGY=; b=G6yYOzkC fZ9zQaN6sDYl3ftO3pblonB/ke1a/LmvpQnNLMFn2tEa5sbkYQV937duMD3ODrwZ pkVSf1jHRqjnqS1V+nPod5Q1L+lwvrgvMtP+HvlYUHwyf7cP0B08wg5I7dkXxWm2 MQwNN6YYZzTn8rdPcBF+XrnLAvcfTd9261Y/yOVij6mknw8cEqgN59GksIDQlUSV Ymu2W5WUiBFfP/9grNNvsYRTVideAPqVk3xlIxU3ElPhuaGqSGxGtEXP2teUbvk9 bZEfIn4MQH01tGUI+AVpdTLNB8W0xvAEdCsVoc7jVWVIl9vQ4mJ2SxyKpvrrf3ju gNQCzaqy8vkhXQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=v01/xTh7zvAqPpcrZYVndu7PxNqOJ 1HKF52CklE6sGY=; b=Y/ZfMuSMENFO7zZfA+j/OHpImhrC6BeImh5zGAQOqMiaq 3DX+oFTqOE6pd7GB8C4z9dUFIDIQGFtaVARzZE7qy5ER/vfV+jSg2zlX7xSTeahD RYLNT9qs4SeD2zb1Y3SG3riFPOVa/34piC606vuG9FT5wr9LeHShiMeNmcpoYEtH 6crlcz9Q1UgEEaGugiqxVfKP6mNZefucKol/8KxyMUy4Ka7xw8mmMme9y9DvhM/s /Bw5ti5OMmjFDzAzYo7wV4qv6YN+uCoDqClw3FezDMogS3jJJ8q39Ttgo1ZbdnTm 6uBvUQqNoW7uoItoNMIMoBbiZedaKfDFgi4m/53jg== X-ME-Sender: Received: from [192.168.10.183] (203-214-132-4.perm.iinet.net.au [203.214.132.4]) by mail.messagingengine.com (Postfix) with ESMTPA id B54207F7F6; Sun, 10 Dec 2017 17:53:23 -0500 (EST) Subject: Re: bug#29255: "Profile contains conflicting entries" could be more helpful To: =?UTF-8?Q?Ludovic_Court=c3=a8s?= , Ricardo Wurmus References: <87bmk98yeq.fsf@sturm.com.au> <87bmk8hq6v.fsf@gnu.org> <87609zcyp1.fsf@elephly.net> <87r2sg3qxx.fsf@gnu.org> <87shci9p5e.fsf@gnu.org> From: Ben Sturmfels Message-ID: <5A2DBADB.80902@sturm.com.au> Date: Mon, 11 Dec 2017 09:53:15 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.8.0 MIME-Version: 1.0 In-Reply-To: <87shci9p5e.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TSN8MWOklHM7HaNU82Irnl0aVChNORn0I" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 29255-done Cc: 29255-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --TSN8MWOklHM7HaNU82Irnl0aVChNORn0I Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 11/12/17 09:47, Ludovic Court=C3=A8s wrote: >> When the version numbers are the same, we cannot tell whether a varian= t >> is =E2=80=9Colder=E2=80=9D, we can just tell that it=E2=80=99s differe= nt. Also, I find it >> useful to see the propagation stack as is currently the case. >> >> With the patch below, I get: >> >> $ ./pre-inst-env guix package -p foo -i python@2 python >> The following packages will be installed: >> python 2.7.13 /gnu/store/vysfxizaddh1q8s5qjgbdkzxx0585dzi-python-2.= 7.13 >> python 3.5.3 /gnu/store/m4rdgmvdqcxs2zhv42idnz1s1w391i8j-python-3.5= =2E3 >> >> guix package: error: profile contains conflicting entries for python:o= ut >> guix package: error: first entry: python@2.7.13 /gnu/store/vysfxizad= dh1q8s5qjgbdkzxx0585dzi-python-2.7.13 >> guix package: error: second entry: python@3.5.3 /gnu/store/m4rdgmvdq= cxs2zhv42idnz1s1w391i8j-python-3.5.3 >> hint: You cannot have two different versions or variants of `python' i= n the same profile. >> >> >> and: >> >> $ ./pre-inst-env guix package -i guile-cairo -p foo --no-grafts >> The following package will be installed: >> guile-cairo 1.4.1 /gnu/store/dsdbp9sqla6zz2skljlcr5zfjyzvargf-guile= -cairo-1.4.1 >> >> guix package: error: profile contains conflicting entries for cairo:ou= t >> guix package: error: first entry: cairo@1.14.10 /gnu/store/c4vl4hw5j= ccg0b23sfvs0kdnfdbxdlgm-cairo-1.14.10 >> guix package: error: ... propagated from guile-cairo@1.4.1 >> guix package: error: second entry: cairo@1.14.10 /gnu/store/nwxv9s2q= 8pi0m6gn6fyidpj8442dwp6f-cairo-1.14.10 >> guix package: error: ... propagated from cairomm@1.12.2 >> hint: Try upgrading both `guile-cairo' and `cairomm', or remove one of= them from the profile. >=20 > I=E2=80=99ve pushed the patch as commit > 3b80b81358b3861ca3794105c8eb4395df97846b. Hopefully these hints help > users get on the right track, and we can always adjust them. That's Ludo, that's great! --TSN8MWOklHM7HaNU82Irnl0aVChNORn0I Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBCgAGBQJaLbrfAAoJEAI8BeLJwGjwOY4P/i6tQmRVO82lplMUA+n7Xz5H IWYx4J+cNJsCZwgsbV5BJHciMD23U+IX/5zCDtZy8ilXVUKxeh1dPzCMzX86zHnf ozbNxzl0EQFUS13jJnfVoTUtMn3IpIqHJ1IiuU1m/hxejzZFh1hOG6+L41a26wi3 +vABvlDKKNju5CntMQ2eVaQ6yl7bNDs0ZLbic7aY1NXkL1KvjqucdVibMD6m8S1B AFMPZbsYSrZKw/KFlozVNbks7H7nT7F2DcYHdXgX6M+IQ+IfOmsM/zlctxoX3+dp rjVnW+foxqiWdVDTNRwP8sDI1diIGJmKbz4FotJ9beAYNM3OS/8wFNTI808fVCoH JRdfd2bUp1gbr/7bXW6KrPXzmV7ZSEKnJ+sW8XKoTs+RBQ3VTImzled8qrzdXn8L LVlj2VxfjnoZNYvFoUIMJjLg4XxHRIfNroGpd9dwuiBG1bt9mfeGa7yXLvY3lx2N 08dHNq3+ZlnM44LA2/mlHJszz/X32JuMVg6mSiDJlm7kMe9zLvjM3rN9VUnkh06G IIRorArT6dJJwXwICu6baxMC184fXDNr7MtzPcFFYY0wqe48EgUH1aAbPxNluR8t OMfzOphKAwtNd/7fNJ6VJqzjjvFeBds4VdUR1Ii+5m+O9neOMBgo6Jd3X4BRRHK+ msPCMfYLAEADPi5ZyztT =h3e4 -----END PGP SIGNATURE----- --TSN8MWOklHM7HaNU82Irnl0aVChNORn0I-- From unknown Thu Sep 11 09:18:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 08 Jan 2018 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator