From patchwork Mon Jul 12 05:35:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sarah Morgensen X-Patchwork-Id: 222 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 562B127BC83; Mon, 12 Jul 2021 06:36:10 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2D9EC27BC81 for ; Mon, 12 Jul 2021 06:36:10 +0100 (BST) Received: from localhost ([::1]:58956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2obx-0002dR-47 for patchwork@mira.cbaines.net; Mon, 12 Jul 2021 01:36:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2obq-0002dB-JF for guix-patches@gnu.org; Mon, 12 Jul 2021 01:36:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2obq-0002uE-BS for guix-patches@gnu.org; Mon, 12 Jul 2021 01:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m2obp-0003iB-V1 for guix-patches@gnu.org; Mon, 12 Jul 2021 01:36:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49531] [PATCH core-updates 0/4] import: {utils, go, crate}: Emit new-style package inputs. Resent-From: Sarah Morgensen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 12 Jul 2021 05:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49531 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49531@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162606812914225 (code B ref -1); Mon, 12 Jul 2021 05:36:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Jul 2021 05:35:29 +0000 Received: from localhost ([127.0.0.1]:36321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2obJ-0003hM-9O for submit@debbugs.gnu.org; Mon, 12 Jul 2021 01:35:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:46274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2obF-0003hD-5u for submit@debbugs.gnu.org; Mon, 12 Jul 2021 01:35:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2obC-0002K2-B6 for guix-patches@gnu.org; Mon, 12 Jul 2021 01:35:23 -0400 Received: from out0.migadu.com ([2001:41d0:2:267::]:30534) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2ob9-000282-FR for guix-patches@gnu.org; Mon, 12 Jul 2021 01:35:22 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1626068114; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=37VHsn0Ih1WJ5XsS8dIX7BgttA6ueIM+CthOMGEdjfA=; b=Hof4YCPs5ARJoJDXvV57h37wMox61fU5rBLHBdvw23t8kBKq7D9N8mau3hB2BxYbHBoo3s OEPpK242Z2KzycRwqTKcNVgJB6fFnoiEazsDN1nadEOncnXGFR7wfnR4aMrmZsO7YTR5Qa Omm/DJfCVnNHVdrbNZINNODNQmUgPAI= Date: Sun, 11 Jul 2021 22:35:11 -0700 Message-Id: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: iskarian@mgsn.dev Received-SPF: pass client-ip=2001:41d0:2:267::; envelope-from=iskarian@mgsn.dev; helo=out0.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Sarah Morgensen X-ACL-Warn: , Sarah Morgensen via Guix-patches X-Patchwork-Original-From: Sarah Morgensen via Guix-patches via From: Sarah Morgensen X-getmail-retrieved-from-mailbox: Patches Hello Guix, This should bring the go and crate importers into the new input-label-less world (they both use PACKAGE-NAMES->PACKAGE-INPUTS in import/utils.scm). Cargo build system is correspondingly updated to accept both new- and old-style package inputs. I successfully tested importing, building, and running 'drill', a cargo-build-system package. I think this leaves the hackage/stackage, egg, gem, and opam importers. Should we open a bug to track them? --- Sarah Morgensen (4): import: utils: Emit new-style package inputs. import: go: Emit new-style package inputs. import: crate: Emit new-style package inputs. cargo-build-system: Accept new-style package inputs. guix/build-system/cargo.scm | 9 ++++++--- guix/import/crate.scm | 5 +++-- guix/import/utils.scm | 13 ++++++------- guix/packages.scm | 2 ++ tests/crate.scm | 30 +++++++++++------------------- tests/go.scm | 3 ++- 6 files changed, 30 insertions(+), 32 deletions(-) base-commit: 9b4c3c675c05870e5983c21ce4ff944e0b0bc2fa