From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#31836: Installing bc downloads ghc Date: Sat, 16 Jun 2018 22:55:53 +0200 Message-ID: <87in6i5u3q.fsf@mdc-berlin.de> References: <87a7rwuw6m.fsf@mdc-berlin.de> 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]:56897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUIFt-0002Z9-Cg for bug-guix@gnu.org; Sat, 16 Jun 2018 16:57:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUIFq-0000mR-PX for bug-guix@gnu.org; Sat, 16 Jun 2018 16:57:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:44243) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fUIFq-0000mB-L9 for bug-guix@gnu.org; Sat, 16 Jun 2018 16:57:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: 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" To: Caleb Ristvedt Cc: 31836@debbugs.gnu.org Hi Caleb, > The only mention of hooks I see in the manual, though, is referring to the > daemon's build hook used for offloading. Hmm, you=E2=80=99re right. I can=E2=80=99t find any documentation about th= em. It might be good to add this to the manual. > From what I see, though, I'd > assume that they are probably run in a way that errs on the side of "bett= er > to run when unnecessary than not run when necessary". You can inspect the default hooks in =E2=80=9Cguix/profiles.scm=E2=80=9D. = All hooks that are run by default are in =E2=80=9C%default-profile-hooks=E2=80=9D. T= he =E2=80=9Cghc-package-cache-file=E2=80=9D hook is run when there is any pack= age in the profile whose name begins with =E2=80=9Cghc=E2=80=9D. There are similar checks for other hooks. Generally, they don=E2=80=99t do anything when a profile does not require them. > This seems like a fairly common experience - "I ran foo and then it did > WHAT?". For hooks this can be documented. Generally, though, it can be disorienting to update a profile after upgrading Guix, because it will go ahead and do things first in order to become able to tell you what it planned to do=E2=80=A6 That=E2=80=99s a known problem with the current imp= lementation of grafts. I wonder if we can add a mechanism to mark different types of derivations (like profile hooks, grafts, fixed output, and regular package derivations) and display them differently. As we have at least confirmed that =E2=80=9Cbc=E2=80=9D does not depend on = =E2=80=9Cghc=E2=80=9D, would you agree to close this bug? :) -- Ricardo