From patchwork Fri Dec 6 18:21:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Becze X-Patchwork-Id: 16405 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 E3E441785E; Fri, 6 Dec 2019 18:59:05 +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 AEA1F1785C for ; Fri, 6 Dec 2019 18:59:05 +0000 (GMT) Received: from localhost ([::1]:44082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idIoj-0006gr-7E for patchwork@mira.cbaines.net; Fri, 06 Dec 2019 13:59:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50073) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idIEv-0004Nj-IV for guix-patches@gnu.org; Fri, 06 Dec 2019 13:22:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1idIEu-0003qY-59 for guix-patches@gnu.org; Fri, 06 Dec 2019 13:22:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41067) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1idIEu-0003po-07 for guix-patches@gnu.org; Fri, 06 Dec 2019 13:22:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1idIEt-00054w-Rx for guix-patches@gnu.org; Fri, 06 Dec 2019 13:22:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38408] [PATCH v3 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: Fri, 06 Dec 2019 18:22:03 +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.157565651319468 (code B ref 38408); Fri, 06 Dec 2019 18:22:03 +0000 Received: (at 38408) by debbugs.gnu.org; 6 Dec 2019 18:21:53 +0000 Received: from localhost ([127.0.0.1]:47034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idIEi-00053q-Mp for submit@debbugs.gnu.org; Fri, 06 Dec 2019 13:21:52 -0500 Received: from mx1.riseup.net ([198.252.153.129]:41892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idIEe-000536-Gd for 38408@debbugs.gnu.org; Fri, 06 Dec 2019 13:21:48 -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 47V1Bh10kwzFcqf for <38408@debbugs.gnu.org>; Fri, 6 Dec 2019 10:21:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1575656508; bh=dCIdzcohllKhuGZdXzOmICN0KPZQt8uvs6Lpd8lm9oE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KT/PaKke41+1QX9KUifRcCFfrY6q8QDwB6aw3ub6uvvlgxTv6pRckaIJd1GoHm/Vx T+pUBlXZXLOdncGbLGFlyCgOU82haFQ/hrKxpYUdKaKBWQiOtHtOI/d61IczJGLuXD GxWWPKbMpNj1EGMLmSraTn4rH44v9oBopf82JPEA= X-Riseup-User-ID: BEE56343BFF31AA3425503BF1F4D995DB9C329AB77454A685D9B34C484F5A1D6 Received: from [127.0.0.1] (localhost [127.0.0.1]) by capuchin.riseup.net (Postfix) with ESMTPSA id 47V1Bg4Fc3z8tXp; Fri, 6 Dec 2019 10:21:47 -0800 (PST) From: Martin Becze Date: Fri, 6 Dec 2019 13:21:36 -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")