From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: A pleasant low-hanging fruit Date: Tue, 05 Mar 2013 20:47:21 +0100 Message-ID: <876215iq7q.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 ([208.118.235.92]:47053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCxpm-0000Rx-AX for bug-guix@gnu.org; Tue, 05 Mar 2013 14:47:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCxpl-0004J9-95 for bug-guix@gnu.org; Tue, 05 Mar 2013 14:47:34 -0500 Received: from [2a01:e0b:1:123:ca0a:a9ff:fe03:271e] (port=45728 helo=xanadu.aquilenet.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCxpl-0004Hz-2i for bug-guix@gnu.org; Tue, 05 Mar 2013 14:47:33 -0500 Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 5892DCA4A for ; Tue, 5 Mar 2013 20:47:22 +0100 (CET) Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mM93GLCEW2DZ for ; Tue, 5 Mar 2013 20:47:22 +0100 (CET) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id D956FCA32 for ; Tue, 5 Mar 2013 20:47:21 +0100 (CET) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: bug-guix@gnu.org Hi! I just had a brain wave and couldn=E2=80=99t resist: commit ef010c0 changes =E2=80=98guix package --install=E2=80=99 such that, when installing a GNU p= ackage, it automatically reports the availability of a new upstream version. So, for instance, if you run it today: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix package -i idutils -n [nothing special here] $ ./pre-inst-env guix package -i gettext -n gnu/packages/gettext.scm:27:3: note: using gettext-0.18.1.1 but gettext-0.1= 8.2.1 is available upstream --8<---------------cut here---------------end--------------->8--- Isn=E2=80=99t it cool? :-) This is fast (~1 sec.), except for packages like GCC with many versions and a deep FTP tree structure (~1 m!). It=E2=80=99s a rare operation, so it doesn=E2=80=99t have to be blazingly fast, but definitely faster than for G= CC. Room for improvement. The next step is to offer the option to automatically install from the upstream tarball, by downloading it and substituting it in the =E2=80=98pac= kage=E2=80=99 record. The only bit that is missing for this is a GPG keyring of GNU maintainer keys so that we can automatically authenticate tarballs (I=E2=80= =99ve asked Karl about this.) The next next step is some fancy stuff that, upon successful installation of the new upstream version, offers to automatically submit a patch for inclusion in Guix. This way, every user would end up participating in the maintenance of the distro in a simple yet effective fashion. :-) Ludo=E2=80=99.