From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Emacs interface for Guix Date: Sun, 20 Jul 2014 11:10:46 +0400 Message-ID: <87mwc4qzd5.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> 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]:54290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8lGp-0007PV-JV for guix-devel@gnu.org; Sun, 20 Jul 2014 03:11:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8lGg-00052o-4V for guix-devel@gnu.org; Sun, 20 Jul 2014 03:10:55 -0400 In-Reply-To: <8738dxe2jq.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 19 Jul 2014 18:28:09 +0200") 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 Ludovic Court=C3=A8s (2014-07-19 20:28 +0400) wrote: > Alex Kost skribis: > > [...] > >> Also I have a question: is there such thing as =E2=80=9Cobsolete package= =E2=80=9D? >> AFAIU after =E2=80=98guix pull=E2=80=99, a user can still have old versi= ons of packages >> installed that don't exist in the new guix anymore. I.e. after that >> some packages from the current manifest cannot be found with >> =E2=80=98(find-packages-by-name "foo" "")=E2=80=99. Am I r= ight? > > Yes. Thus, for such packages, the UI would be unable to display the > details. > > Actually, more generally, there is little meta-data about installed > packages, compared to available packages. The UI can assume that an > installed package called =E2=80=98guile-2.0.11=E2=80=99 is probably the s= ame as an > available package with the same name and version, but that=E2=80=99s not > necessarily the case. > > It=E2=80=99s possible to check whether they really are the same by comput= ing the > derivation of the available package and comparing its output directory > names to those of the installed package. > > So ideally the UI would show a little warning when it knows it doesn=E2= =80=99t > match. > > (Am I clear?) Yes, that's what concerned me since the very beginning =E2=80=93 unique ent= ities should have unique identifiers, i.e. ideally there should be an easy-to-get ID for every package. But as I'm using a non-unique =E2=80=98name-version=E2=80=99 spec to "identify" a package, information ab= out installed outputs is displayed for every matching package. You may look at: M-x guix-search-by-name guile-2.0.11 to see how it looks like in a =E2=80=9Clist=E2=80=9D and especially =E2=80= =9Cinfo=E2=80=9D buffers currently (I have updated the repo). Also I made some changes for augmenting paths, so please report if something does not work.