Message ID | cover.1645447521.git.efraim@flashner.co.il |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 849D627BBEA; Mon, 21 Feb 2022 13:44:26 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4850027BBE9 for <patchwork@mira.cbaines.net>; Mon, 21 Feb 2022 13:44:26 +0000 (GMT) Received: from localhost ([::1]:38580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org>) id 1nM8zI-0002ue-Cr for patchwork@mira.cbaines.net; Mon, 21 Feb 2022 08:44:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nM88N-0005aP-Kp for guix-patches@gnu.org; Mon, 21 Feb 2022 07:50:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41412) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nM87i-0000pC-Iy for guix-patches@gnu.org; Mon, 21 Feb 2022 07:49:12 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nM87i-0007FW-HE for guix-patches@gnu.org; Mon, 21 Feb 2022 07:49:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54088] [PATCH 0/2] julia-build-system: Add missing julia-pkg-deps Resent-From: Efraim Flashner <efraim@flashner.co.il> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 21 Feb 2022 12:49:02 +0000 Resent-Message-ID: <handler.54088.B.164544770027808@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54088 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54088@debbugs.gnu.org, zimon.toutoune@gmail.com Cc: Efraim Flashner <efraim@flashner.co.il> X-Debbugs-Original-To: guix-patches@gnu.org, zimon.toutoune@gmail.com Received: via spool by submit@debbugs.gnu.org id=B.164544770027808 (code B ref -1); Mon, 21 Feb 2022 12:49:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Feb 2022 12:48:20 +0000 Received: from localhost ([127.0.0.1]:35309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1nM872-0007ES-9I for submit@debbugs.gnu.org; Mon, 21 Feb 2022 07:48:20 -0500 Received: from lists.gnu.org ([209.51.188.17]:47082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <efraim@flashner.co.il>) id 1nM871-0007EL-Co for submit@debbugs.gnu.org; Mon, 21 Feb 2022 07:48:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <efraim@flashner.co.il>) id 1nM86v-0005Oc-Vi for guix-patches@gnu.org; Mon, 21 Feb 2022 07:48:18 -0500 Received: from flashner.co.il ([178.62.234.194]:56074) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from <efraim@flashner.co.il>) id 1nM86u-0000jL-D3 for guix-patches@gnu.org; Mon, 21 Feb 2022 07:48:13 -0500 Received: from localhost (unknown [31.210.181.166]) by flashner.co.il (Postfix) with ESMTPSA id BD39D40313; Mon, 21 Feb 2022 12:47:39 +0000 (UTC) From: Efraim Flashner <efraim@flashner.co.il> Date: Mon, 21 Feb 2022 14:47:05 +0200 Message-Id: <cover.1645447521.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-getmail-retrieved-from-mailbox: Patches |
Series |
julia-build-system: Add missing julia-pkg-deps
|
|
Message
Efraim Flashner
Feb. 21, 2022, 12:47 p.m. UTC
It turns out we didn't expose julia-package-dependencies in the julia-build-system, making the created Package.toml incomplete. This corrects the omission and fixes the one package where it is manually added. Efraim Flashner (2): build: julia: Add julia-package-dependencies as keyword. gnu: julia-media: Use julia-package-dependencies. gnu/packages/julia-xyz.scm | 15 ++------------- guix/build-system/julia.scm | 5 ++++- guix/build/julia-build-system.scm | 7 ++++++- 3 files changed, 12 insertions(+), 15 deletions(-) base-commit: 7eefff2054b94f8a7ad850ad8f36b8773bb39ce9
Comments
Hi Efraim, On Mon, 21 Feb 2022 at 14:47, Efraim Flashner <efraim@flashner.co.il> wrote: > It turns out we didn't expose julia-package-dependencies in the > julia-build-system, making the created Package.toml incomplete. This > corrects the omission and fixes the one package where it is manually > added. All LGTM. But I take this opportunity to uniform, as discussed: It's definitely the new pattern we're using now. I suppose it's not really necessary here, but having more instances of it throughout the codebase also makes it easier to search for examples when others are looking to use or modify gexps. <https://issues.guix.gnu.org/issue/53656#4-lineno49> The first patch of the series uses G-exps. Note that it does not imply any rebuild. The Julia build system is adapted for the new 'julia-package-dependencies' and so it requires the minor tweak to default with ''() instead of #f; otherwise it crashes for some packages. Since we are at it, I fix a minor typo of how Julia uses --procs. Other said, currently "guix build julia-media -c 0" works but not "guix build julia-media -c 1" which crashes. Because the build system modifications imply a full Julia rebuild, let take the opportunity to remove the trailing #t. It is done package per package because each modified package need a rebuild so it eases to follow, IMHO. They can be squashed otherwise. Cheers, simon
Great job! Patches pushed (with one change) On Wed, Feb 23, 2022 at 02:44:43PM +0100, zimoun wrote: > Hi Efraim, > > On Mon, 21 Feb 2022 at 14:47, Efraim Flashner <efraim@flashner.co.il> wrote: > > > It turns out we didn't expose julia-package-dependencies in the > > julia-build-system, making the created Package.toml incomplete. This > > corrects the omission and fixes the one package where it is manually > > added. > > All LGTM. But I take this opportunity to uniform, as discussed: > > It's definitely the new pattern we're using now. I suppose it's > not really necessary here, but having more instances of it > throughout the codebase also makes it easier to search for > examples when others are looking to use or modify gexps. > > <https://issues.guix.gnu.org/issue/53656#4-lineno49> > > The first patch of the series uses G-exps. Note that it does not imply > any rebuild. > > The Julia build system is adapted for the new > 'julia-package-dependencies' and so it requires the minor tweak to > default with ''() instead of #f; otherwise it crashes for some packages. > > Since we are at it, I fix a minor typo of how Julia uses --procs. Other > said, currently "guix build julia-media -c 0" works but not "guix build > julia-media -c 1" which crashes. > > Because the build system modifications imply a full Julia rebuild, let > take the opportunity to remove the trailing #t. It is done package per > package because each modified package need a rebuild so it eases to > follow, IMHO. They can be squashed otherwise. > > > Cheers, > simon
On Thu, 24 Feb 2022 at 12:24, Efraim Flashner <efraim@flashner.co.il> wrote:
> Great job! Patches pushed (with one change)
Thanks!
Cheers,
simon