From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: How to force rebuilding a pacakge? Date: Thu, 2 Jun 2016 09:03:21 -0400 Message-ID: References: <57502D46.3020607@crazy-compilers.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]:52617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8SHU-000509-4U for help-guix@gnu.org; Thu, 02 Jun 2016 09:03:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8SHS-0005fe-5N for help-guix@gnu.org; Thu, 02 Jun 2016 09:03:23 -0400 Received: from mail-yw0-x234.google.com ([2607:f8b0:4002:c05::234]:32777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8SHS-0005fQ-09 for help-guix@gnu.org; Thu, 02 Jun 2016 09:03:22 -0400 Received: by mail-yw0-x234.google.com with SMTP id h19so48957875ywc.0 for ; Thu, 02 Jun 2016 06:03:21 -0700 (PDT) In-Reply-To: <57502D46.3020607@crazy-compilers.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Hartmut Goebel Cc: help-guix On Thu, Jun 2, 2016 at 8:57 AM, Hartmut Goebel wrote: > Hi, > > I just try (force-) rebuilding some package (python-scikit-learn), I do > not succeed: > > - guix build =E2=80=A6 simply fetches the package from hydra > - guix build --no-substitutes =E2=80=A6 rebuilds an lot of other stuff , = e.g. > fontforge-dist > - guix build --check =E2=80=A6 does not provide a meaningful build log > - guix build --check --log-file =E2=80=A6 does not provide a meaningful b= uild > log either > guix gc -d /gnu/store/*python-scikit-learn* does not change this > > Any help? You are misundering many things about Guix here. First, why do you think you want to "force rebuild" something? If you've made a change to a build recipe, then that will naturally change the identity of the build, thus getting a new build. If you haven't changed the package recipe, but want to build *just* that package from source for some reason, you could try the following hack: guix environment --search-paths python-scikit-learn guix build --no-substitutes python-scikit-learn The first command will fetch all the dependencies for the package, taking advantage of substitutes. The second command will then build python-scikit-learn without substitutes, but it won't build anything except python-scikit-learn because you just got all the necessary dependencies with the prior command. Finally, if the package build is already present in the store, then you need to use the garbage collector to remove it. - Dave