From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: Re: [PATCH] profiles: Generate GHC's package database cache. Date: Sun, 5 Apr 2015 10:16:21 +0200 Message-ID: References: <87pp7j40aw.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YefjD-0004mF-CI for guix-devel@gnu.org; Sun, 05 Apr 2015 04:16:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YefjC-0000pC-7b for guix-devel@gnu.org; Sun, 05 Apr 2015 04:16:23 -0400 Received: from mail-la0-x22a.google.com ([2a00:1450:4010:c03::22a]:36422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YefjB-0000p8-VG for guix-devel@gnu.org; Sun, 05 Apr 2015 04:16:22 -0400 Received: by lagv1 with SMTP id v1so4098176lag.3 for ; Sun, 05 Apr 2015 01:16:21 -0700 (PDT) In-Reply-To: <87pp7j40aw.fsf@netris.org> 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mark H Weaver Cc: Guix-devel On Sun, Apr 5, 2015 at 7:21 AM, Mark H Weaver wrote: > I believe this will require GHC to build *any* non-empty profile. Since > GHC is only available on Intel platforms, this will break profile > building on MIPS and ARM. > > Even on Intel platforms, I don't want to have to install GHC to build > profiles that don't contain any Haskell packages, especially since it > involves trusting the upstream binaries from GHC. Good point. Would this check be satisfactory for you? ;; Don't depend on GHC when there's nothing to do. (if (any (cut string-prefix? "ghc" <>) (map manifest-entry-name (manifest-entries manifest))) (gexp->derivation "ghc-package-cache" build #:modules '((guix build utils)) #:local-build? #t) (gexp->derivation "ghc-package-cache" #~(mkdir #$output)))) > > What if I want to use Hugs instead, or some other Haskell implementation > that is capable of being bootstrapped from source code. Is GHC the only > tool that can do this job? As far as I know, the library database is compiler specific. Here we are handling GHC only. But, if you know better, don't hesitate to make a concrete suggestion. Regards, Fede