From patchwork Mon May 23 20:37:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josselin Poiret X-Patchwork-Id: 39584 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 0096927BBEA; Mon, 23 May 2022 21:38:18 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no 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 C9AFB27BBE9 for ; Mon, 23 May 2022 21:38:18 +0100 (BST) Received: from localhost ([::1]:49808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntEoj-0002US-Sg for patchwork@mira.cbaines.net; Mon, 23 May 2022 16:38:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntEoV-0002P6-2V for guix-patches@gnu.org; Mon, 23 May 2022 16:38:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56404) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntEoU-00038Y-PN for guix-patches@gnu.org; Mon, 23 May 2022 16:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ntEoU-0002hu-Nv for guix-patches@gnu.org; Mon, 23 May 2022 16:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55602] [PATCH v2 2/2] build-system: linux-module: Directly use-module (guix platform). Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 23 May 2022 20:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55602 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55602@debbugs.gnu.org Cc: Josselin Poiret Received: via spool by 55602-submit@debbugs.gnu.org id=B55602.165333826410361 (code B ref 55602); Mon, 23 May 2022 20:38:02 +0000 Received: (at 55602) by debbugs.gnu.org; 23 May 2022 20:37:44 +0000 Received: from localhost ([127.0.0.1]:50298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntEoC-0002gx-HI for submit@debbugs.gnu.org; Mon, 23 May 2022 16:37:44 -0400 Received: from jpoiret.xyz ([206.189.101.64]:40226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntEo9-0002gf-PM for 55602@debbugs.gnu.org; Mon, 23 May 2022 16:37:42 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id E95E71851E0; Mon, 23 May 2022 20:37:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1653338261; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=B3/Vi58u8iAWcietY4IycvZaPicFwJib6hOi4PAKYjY=; b=MDlXxzDjrDgY3zEP1c0yJ/004/KjY3kE4auDZvUavWk4TAn58s2U5usqnJQN0FBilFbfrV dj2TTD6YXI9oA9M1VzyGhqM1WHijpSy4xgZs5+BKddvVO6blT4+mgkQKH/wl0FUzUKbpIx qgSMDZBb4sTTocTuVnUoTAameRP5TdUol2Z8yUBl13xU1Whbu/7C+Q9nxhMvVZ7HEinP/L 1tubUUiUGhkHc1xiF2q7q9kuf719foNAxgLwtIlSFq+M8Rp45ZHwXW2JSHJYy3Nww9vfcx IJHTjoVIrOxXubOgc0P2BeUTI7u3UpcSrfwbvUPzzQp89h73em4t9W799Cb7cA== Date: Mon, 23 May 2022 22:37:27 +0200 Message-Id: <20220523203727.2588-3-dev@jpoiret.xyz> In-Reply-To: <20220523203727.2588-1-dev@jpoiret.xyz> References: <20220523202902.32411-1-dev@jpoiret.xyz> <20220523203727.2588-1-dev@jpoiret.xyz> MIME-Version: 1.0 Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz X-Spamd-Bar: / 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: Josselin Poiret X-ACL-Warn: , Josselin Poiret via Guix-patches X-Patchwork-Original-From: Josselin Poiret via Guix-patches via From: Josselin Poiret X-getmail-retrieved-from-mailbox: Patches * guix/build-system/linux-module.scm (system->arch): Remove module-ref shenanigans. --- guix/build-system/linux-module.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guix/build-system/linux-module.scm b/guix/build-system/linux-module.scm index 761ebe25b1..94a293da13 100644 --- a/guix/build-system/linux-module.scm +++ b/guix/build-system/linux-module.scm @@ -28,6 +28,7 @@ (define-module (guix build-system linux-module) #:use-module (guix build-system) #:use-module (guix build-system gnu) #:use-module (guix packages) + #:use-module (guix platform) #:use-module (ice-9 match) #:export (%linux-module-build-system-modules linux-module-build @@ -50,8 +51,7 @@ (define (default-linux) (module-ref module 'linux-libre))) (define (system->arch system) - (let ((module (resolve-interface '(gnu platform)))) - ((module-ref module 'lookup-platform-by-target-or-system) system))) + (platform-linux-architecture (lookup-platform-by-target-or-system system))) (define (make-linux-module-builder linux) (package