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: Sat, 19 Jul 2014 18:28:09 +0200 Message-ID: <8738dxe2jq.fsf@gnu.org> References: <87zjg9rgih.fsf@gmail.com> <871ttlgzfl.fsf@gnu.org> <87vbqxqg3n.fsf@gmail.com> <87ha2fm3gk.fsf@gnu.org> <87r41hrdks.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]:35222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8XUj-0004a6-Eh for guix-devel@gnu.org; Sat, 19 Jul 2014 12:28:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8XUa-0007px-CI for guix-devel@gnu.org; Sat, 19 Jul 2014 12:28:21 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:34599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8XUa-0007po-5S for guix-devel@gnu.org; Sat, 19 Jul 2014 12:28:12 -0400 In-Reply-To: <87r41hrdks.fsf@gmail.com> (Alex Kost's message of "Sat, 19 Jul 2014 11:51:31 +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: > Ludovic Court=C3=A8s (2014-07-18 13:16 +0400) wrote: [...] >> Actually I think eventually (i.e., soon ;-)) we should add guix.el to >> the Guix repo. Among other things, that means that the Scheme code for >> guix.el can be easily kept in sync with the (guix ...) API, which is >> more difficult otherwise. > > It would be great! I think the main features should be finished soon: > now I'm adding support for displaying info about installed outputs, and > then only implementing actions (installing/deleting) will be left. Excellent. We can discuss the details of integration once 0.7 is out. > 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 versio= ns 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 ri= ght? 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 sam= e 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 computin= g 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?) Thanks, Ludo=E2=80=99.