From patchwork Thu Dec 5 20:05:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Becze X-Patchwork-Id: 16387 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7E5EA17851; Thu, 5 Dec 2019 20:07:13 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 40CB71784F for ; Thu, 5 Dec 2019 20:07:13 +0000 (GMT) Received: from localhost ([::1]:60466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icxP5-00038S-Ej for patchwork@mira.cbaines.net; Thu, 05 Dec 2019 15:07:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55382) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icxOy-00036O-Mi for guix-patches@gnu.org; Thu, 05 Dec 2019 15:07:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icxOx-000797-Da for guix-patches@gnu.org; Thu, 05 Dec 2019 15:07:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39294) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1icxOx-00077s-68 for guix-patches@gnu.org; Thu, 05 Dec 2019 15:07:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1icxOw-0002nV-VT for guix-patches@gnu.org; Thu, 05 Dec 2019 15:07:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38408] [PATCH v2 4/5] added "#:skip-build? #t" to the output of (make-crate-sexp). Most the the packages imported will be libaries and won't need to build. The top level package will build them though. Resent-From: Martin Becze Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 05 Dec 2019 20:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38408 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38408@debbugs.gnu.org Cc: Martin Becze Received: via spool by 38408-submit@debbugs.gnu.org id=B38408.157557638410639 (code B ref 38408); Thu, 05 Dec 2019 20:07:02 +0000 Received: (at 38408) by debbugs.gnu.org; 5 Dec 2019 20:06:24 +0000 Received: from localhost ([127.0.0.1]:45253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icxOK-0002lR-0v for submit@debbugs.gnu.org; Thu, 05 Dec 2019 15:06:24 -0500 Received: from mx1.riseup.net ([198.252.153.129]:45890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icxOH-0002lA-SI for 38408@debbugs.gnu.org; Thu, 05 Dec 2019 15:06:22 -0500 Received: from capuchin.riseup.net (capuchin-pn.riseup.net [10.0.1.176]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 47TRYh4fN5zFcpY for <38408@debbugs.gnu.org>; Thu, 5 Dec 2019 12:06:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1575576381; bh=dCIdzcohllKhuGZdXzOmICN0KPZQt8uvs6Lpd8lm9oE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MgfpL4DjAWBAVSMuMiYmbEMTitt1DqA30d1vt9clgc4gKi99TzB2AQUdHXvTfwmQh v3oB1WbWgPdA4lRI7BQQnchcszRnJCEPVU1nciZEK57CWZYLEI36RduKjBo07NM5+t 9MUSuDUer0QcqNODAlRWGrXCTvePmR85Kqy3L8PY= X-Riseup-User-ID: 134C14AFC1AB0883C1F6CA33F2B635C0DE9ACC0500019DFBFCE498836F219393 Received: from [127.0.0.1] (localhost [127.0.0.1]) by capuchin.riseup.net (Postfix) with ESMTPSA id 47TRYH3JtFz8tgT; Thu, 5 Dec 2019 12:05:55 -0800 (PST) From: Martin Becze Date: Thu, 5 Dec 2019 15:05:34 -0500 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * guix/import/crate.scm (make-crate-sexp): added "#:skip-build? #t" to the output --- guix/import/crate.scm | 3 ++- tests/crate.scm | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/guix/import/crate.scm b/guix/import/crate.scm index da92c43b8c..5683369b7a 100644 --- a/guix/import/crate.scm +++ b/guix/import/crate.scm @@ -183,7 +183,8 @@ record or #f if it was not found." (base32 ,(bytevector->nix-base32-string (port-sha256 port)))))) (build-system cargo-build-system) - ,@(maybe-arguments (append (maybe-cargo-inputs cargo-inputs) + ,@(maybe-arguments (append `(#:skip-build? #t) + (maybe-cargo-inputs cargo-inputs) (maybe-cargo-development-inputs cargo-development-inputs))) (home-page ,(match home-page diff --git a/tests/crate.scm b/tests/crate.scm index b77cbb08c6..64e5b6932e 100644 --- a/tests/crate.scm +++ b/tests/crate.scm @@ -102,7 +102,8 @@ ('build-system 'cargo-build-system) ('arguments ('quasiquote - ('#:cargo-inputs (("rust-bar" ('unquote rust-bar)))))) + ('#:skip-build? #t + #:cargo-inputs (("rust-bar" ('unquote rust-bar)))))) ('home-page "http://example.com") ('synopsis "summary") ('description "summary")