From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] gnu: Add OCaml. licenses: Add QPL. Date: Mon, 21 Jan 2013 23:42:07 +0100 Message-ID: <87y5fm5fb4.fsf@gnu.org> References: <1358732753-8220-1-git-send-email-tipecaml@gmail.com> <201301211043.28518.andreas@enge.fr> <87mww28f2x.fsf@gnu.org> <201301212125.29802.andreas@enge.fr> 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]:60481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxQ4B-000487-C3 for bug-guix@gnu.org; Mon, 21 Jan 2013 17:42:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxQ4A-0002NI-Bt for bug-guix@gnu.org; Mon, 21 Jan 2013 17:42:11 -0500 Received: from mail4-relais-sop.national.inria.fr ([192.134.164.105]:56275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxQ4A-0002N6-5i for bug-guix@gnu.org; Mon, 21 Jan 2013 17:42:10 -0500 In-Reply-To: <201301212125.29802.andreas@enge.fr> (Andreas Enge's message of "Mon, 21 Jan 2013 21:25:29 +0100") 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: Andreas Enge Cc: bug-guix@gnu.org Andreas Enge skribis: > Am Montag, 21. Januar 2013 schrieb Ludovic Court=C3=A8s: >> Alternately, you could move the =E2=80=98check=E2=80=99 phase after the = install phase, >> like this (untested): > > But then, if the check fails, the /nix/store would contain an "invalid"=20 > package, no? No: if =E2=80=98check=E2=80=99 fails (or =E2=80=98install=E2=80=99, or =E2= =80=98patch-shebangs=E2=80=99), then the whole process fails, and the store path is marked as invalid. That is, /nix/store/*-ocaml* exists and may even be populated, but =E2=80=98valid-path?=E2=80=99 returns #f for that directory. Thus, the dae= mon considers that it has to rebuild it, as if it did not exist at all. Thanks, Ludo=E2=80=99.