From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: Graft hooks Date: Fri, 24 Aug 2018 17:59:23 -0400 Message-ID: <87va7zbf44.fsf@netris.org> References: <87k1ovbc0t.fsf@ngyro.com> <87y3d1h05e.fsf@gnu.org> <87k1ojafqa.fsf@ngyro.com> <874lfmh477.fsf@gnu.org> <87y3cxa6z4.fsf@netris.org> <87d0u8qda6.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 ([2001:4830:134:3::10]:43324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftK8b-0007mD-Hu for guix-devel@gnu.org; Fri, 24 Aug 2018 18:01:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftK8X-0002s9-DB for guix-devel@gnu.org; Fri, 24 Aug 2018 18:01:01 -0400 In-Reply-To: <87d0u8qda6.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 24 Aug 2018 12:17:37 +0200") 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" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Hi Ludovic, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Mark H Weaver skribis: > >> I think it would be quite unfortunate if _every_ graft had to run >> _every_ graft hook, or if every graft hook had to be defined in >> (guix grafts) and/or (guix build graft). >> >> It's reasonable to have a few global graft hooks, e.g. for handling >> debugging information, but I would greatly prefer for Guix to also have >> a mechanism allowing individual packages or build systems to introduce >> graft hooks without modifying (guix grafts) or (guix build graft), and >> for such a mechanism to be used for Racket and its libraries. > > Sure, like I wrote, a more extensible solution along the lines of what > Timothy and you suggest sounds better long-term. It just happens to be > harder to implement today (in particular until =E2=80=98wip-build-systems= -gexp=E2=80=99 > is merged), and not entirely clear how this could work, as discussed > with Timothy. That's fine. This solution is fine for now, as long as the number of graft hooks is fairly small. Maybe we can revisit this after 'wip-build-systems-gexp' is merged. Thanks, Mark