From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iGpjNusgfF8XYwAA0tVLHw (envelope-from ) for ; Tue, 06 Oct 2020 07:46:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CIMuMusgfF9bMgAAbx9fmQ (envelope-from ) for ; Tue, 06 Oct 2020 07:46:51 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 59E73940390 for ; Tue, 6 Oct 2020 07:46:51 +0000 (UTC) Received: from localhost ([::1]:35204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPhgQ-0000mj-9K for larch@yhetil.org; Tue, 06 Oct 2020 03:46:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPf8s-0008NQ-VX for bug-guix@gnu.org; Tue, 06 Oct 2020 01:04:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39649) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPf8s-0008Fy-K2 for bug-guix@gnu.org; Tue, 06 Oct 2020 01:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kPf8s-0002Ke-GK for bug-guix@gnu.org; Tue, 06 Oct 2020 01:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43821: [PATCH 0/1] Progress improving vlang package References: <87k0w48d3p.fsf@nckx> In-Reply-To: <87k0w48d3p.fsf@nckx> Resent-From: Ryan Prior Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 06 Oct 2020 05:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43821 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 43821@debbugs.gnu.org Received: via spool by 43821-submit@debbugs.gnu.org id=B43821.16019606248909 (code B ref 43821); Tue, 06 Oct 2020 05:04:02 +0000 Received: (at 43821) by debbugs.gnu.org; 6 Oct 2020 05:03:44 +0000 Received: from localhost ([127.0.0.1]:51186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPf8a-0002Jd-GW for submit@debbugs.gnu.org; Tue, 06 Oct 2020 01:03:44 -0400 Received: from mail1.protonmail.ch ([185.70.40.18]:38284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPf8Y-0002J7-MZ for 43821@debbugs.gnu.org; Tue, 06 Oct 2020 01:03:43 -0400 Date: Tue, 06 Oct 2020 05:03:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1601960616; bh=h5DafVBnjWRgGIZpgqX8epkYLydkGYsfWKsXFfrmaPQ=; h=Date:To:From:Reply-To:Subject:From; b=pMOkw+ob8tEJqCtpWnCufke3Ty827Cw9S9gn37QDdKN8QI6Oatp2oGAQNP4KF1I/o AMwPuIe5qhDX6KNKi072By2B5HYKPxPn9iOhS0XAdhJMUfbcMP9d4Za4uX4cNSROnd zSO+IQN2hCGsENaWQn0pWWtpgmgg10mVEIno8K7Q= Message-ID: <20201006050329.6648-1-rprior@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-Mailman-Approved-At: Tue, 06 Oct 2020 03:46:14 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: Ryan Prior , Ryan Prior From: Ryan Prior via Bug reports for GNU Guix X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=protonmail.com header.s=protonmail header.b=pMOkw+ob; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.51 X-TUID: AihpkwXRTh47 One of the challenges of packaging v is that its install script assumes tha= t you'll install it in a mutable folder, and uses that assumption to lazily= build the included tools as they're needed instead of eagerly building eve= rything up-front. There's an included command for eagerly building these tools, which we shou= ld invoke in order to make sure that the repl &c are available at package i= nstallation time and the user won't need write access to the v directory. This patch presents progress in that direction, but it has a ways to go. Li= ke golang, the v build system resolves dependencies on git repos as it goes= , so once I run `v build-tools` it wants to go and fetch the vlang/markdown= repo. So we'll probably need to package that ahead of time. That, however, raises the chicken-and-egg problem. Do we create a vlang-boo= tstrap package that we use to compile the deps (like vlang/markdown) and th= en in turn use those as inputs to the "real" v package which also builds al= l the tools? Do we include those deps as explicit source-only native-inputs= of the v package? I don't know which strategy I prefer yet, I'd be interes= ted to hear any input from others. So in the spirit of progress here's my work-in-progress patch! Cheers, Ryan Ryan Prior (1): gnu: vlang: Build included tools at package time. gnu/packages/vlang.scm | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) --=20 2.17.1