From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Emacs interface for Guix Date: Sun, 20 Jul 2014 23:42:53 +0400 Message-ID: <87egxfrf42.fsf@gmail.com> 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> 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]:46030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8x0j-00059E-1P for guix-devel@gnu.org; Sun, 20 Jul 2014 15:43:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8x0Z-00015i-Rw for guix-devel@gnu.org; Sun, 20 Jul 2014 15:43:04 -0400 In-Reply-To: <87iomsq8fe.fsf@gmail.com> (Alex Kost's message of "Sun, 20 Jul 2014 20:52:37 +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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org An addition to my previous mail. > I don't say that name+version should identify a package, but I think it > would be very convenient to have an ID for a package definition. For > example now manifest may tell that "out" of a "guile-2.0.11" package is > installed but there are 2 "guile-2.0.11" packages out there and it's > impossible to distinguish those. And vice versa when I list available > packages I want to see my installed outputs only for the right packages, > not for all packages with the same name+version. > > What if to make some =E2=80=98get-package-by-id=E2=80=99 function that wi= ll always > return a single package? And there is no need to add IDs for all > package definitions, as most of them are identified with name+version > already. What I suggest is to add an optional =E2=80=9Cpostfix=E2=80=9D = field to > record, so that a combination =E2=80=9Cname+version+[postfix]= =E2=80=9D will be > unique and will be returned by =E2=80=98package-id=E2=80=99 like this: > > (package-id #) =3D=3D> "g= uile-2.0.11" > (package-id #) =3D=3D> "g= uile-2.0.11_base" Perhaps it would be better to have a =E2=80=98unique-name=E2=80=99 field th= at defaults to a =E2=80=98name=E2=80=99 field if not specified, so =E2=80=98unique-name= +version=E2=80=99 pair will identify a package.