From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Emacs interface for Guix Date: Mon, 21 Jul 2014 18:04:31 +0200 Message-ID: <87k3764s1c.fsf@gnu.org> References: <87zjg9rgih.fsf@gmail.com> <871ttlgzfl.fsf@gnu.org> <87vbqxqg3n.fsf@gmail.com> <87ha2fm3gk.fsf@gnu.org> <87r41hrdks.fsf@gmail.com> <8738dxe2jq.fsf@gnu.org> <87mwc4qzd5.fsf@gmail.com> <878uno9l7b.fsf@gnu.org> <87iomsq8fe.fsf@gmail.com> <874myb95j0.fsf@gnu.org> <87a983qken.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9G5W-0001Pq-AE for guix-devel@gnu.org; Mon, 21 Jul 2014 12:05:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9G4p-0001ce-4t for guix-devel@gnu.org; Mon, 21 Jul 2014 12:05:18 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:37026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9G4o-0001bj-PE for guix-devel@gnu.org; Mon, 21 Jul 2014 12:04:35 -0400 In-Reply-To: <87a983qken.fsf@gmail.com> (Alex Kost's message of "Mon, 21 Jul 2014 10:46:08 +0400") 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Alex Kost Cc: guix-devel@gnu.org Alex Kost skribis: > I think current situation is very confusing to users. A user can't even > install any package. What if he wants to install =E2=80=9Cguile=E2=80=9D= from > =E2=80=9Cbase.scm=E2=80=9D? It=E2=80=99s possible, using =E2=80=98guix package -e=E2=80=99 (info "(guix= ) Invoking guix package"). I think guix.el should be able to distinguish packages internally, so that when I choose, say, a specific =E2=80=9Cguile-2.0.11=E2=80=9D, that=E2= =80=99s really the one that gets installed (maybe it already does, I haven=E2=80=99t checked.) > I strongly believe this is a problem. You can see the packages that you > can't install or even worse =E2=80=9Cguix package --list-installed=E2=80= =9D may tell you > that you have several =E2=80=9Cfoo-1.0:out=E2=80=9D installed. Actually = when I saw the > packages with the same name/version the first time, I thought it's a > bug. I would say it=E2=80=99s a problem of the distro=E2=80=93i.e., the (gnu pac= kages ...) modules=E2=80=93if several same-named packages are exposed to the user. We= =E2=80=99ve discussed several times the problem of having duplicates between base.scm and other modules, but I haven=E2=80=99t come to a satisfying solu= tion. So I agree, these specific cases must be addressed somehow. However, it=E2=80=99s a fundamental feature of the package manager that pac= kages (really: package records) can be freely created, and that the =E2=80=98name= =E2=80=99 field is just a hint. Duplicates should remain rare in practice, but the UI must be prepared to deal with them IMO. WDYT? Thanks, Ludo=E2=80=99.