From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uHaAALfwi2JuaQEAbAwnHQ (envelope-from ) for ; Mon, 23 May 2022 22:38:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ML9cO7bwi2KETQEAG6o9tA (envelope-from ) for ; Mon, 23 May 2022 22:38:14 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9B3821B796 for ; Mon, 23 May 2022 22:38:14 +0200 (CEST) Received: from localhost ([::1]:49808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntEof-0002US-Cf for larch@yhetil.org; Mon, 23 May 2022 16:38:13 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Josselin Poiret X-ACL-Warn: , Josselin Poiret via Guix-patches From: Josselin Poiret via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653338294; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=B3/Vi58u8iAWcietY4IycvZaPicFwJib6hOi4PAKYjY=; b=NtYvRGOja3xnwNGX4zErmcMIxQAnAbSnxbegHXkLdisCgLWOaJjFOanP39ipjrUFxesgB7 1hmiPWibKnDtw9S5HFhRl09JxdxEdRwZUUkgtKP6zUM55ZHQ08cSWXH017cwG6y6axDAGe BtQWZI5yJYzOI7Mhw75j7LXB5/JfGsXzcdavyICd12HiPRgNhyXXex56G8p1otm3qWnc57 2eXdCKx0J2hp4ggV8a8DOt70G+p4vNhNg9lptKqgeUXdMehCWF4xGLkY2oQXK9Dab+86us wKAgIfN9045g63UdJWn9tafSN8cspcWCIP3OHlcTvtNwDMG8CutTm74h1FaB4g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653338294; a=rsa-sha256; cv=none; b=KQUnpcTaEtqT6+TNUZFfIsrYmmIwyYgxNpZwewCnTTjMcAi+HpIYzE6m72Q2mCvrKk3t3V Jw5L/yfOmTtJTtSpNIJleAyU/HdFNjbrZux3ArV0GqkN60SDJriwOeMIJGimcBsS3VYsJd dSjIbtb0ikca4XIlYd4mWrvxoxB6cHfiKf+avN1Mm3kuu1+iJdAc2blR29GLUfloJfOWeY VPBE3SGMnnOzrgzdYlD+Z3JCunxib64jF2DPb4hWli/LwwU6rjBjXsIMX6AcnQ84MeCVSO bIlxYuzIFD5TFVStGKg9oMOk0uaRKK37IGvbOr4TKKdhQ8Lulg0BRmryma6a0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=MDlXxzDj; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.85 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=MDlXxzDj; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9B3821B796 X-Spam-Score: -1.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6W71+PUbWDLZ * 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 -- 2.36.0