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 oLC3HwJHi2KTzQAAbAwnHQ (envelope-from ) for ; Mon, 23 May 2022 10:34:10 +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 BsfVHgJHi2JGRQEAG6o9tA (envelope-from ) for ; Mon, 23 May 2022 10:34:10 +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 EC5C624FC7 for ; Mon, 23 May 2022 10:34:09 +0200 (CEST) Received: from localhost ([::1]:55526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nt3Vw-000197-Bp for larch@yhetil.org; Mon, 23 May 2022 04:34:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nt3Vq-00018v-ME for guix-patches@gnu.org; Mon, 23 May 2022 04:34:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53340) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nt3Vq-0006Dk-EE for guix-patches@gnu.org; Mon, 23 May 2022 04:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nt3Vq-00087h-Bf for guix-patches@gnu.org; Mon, 23 May 2022 04:34:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55591] [PATCH] WIP: fix the linux build system Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 23 May 2022 08:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55591 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55591@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165329482231193 (code B ref -1); Mon, 23 May 2022 08:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 May 2022 08:33:42 +0000 Received: from localhost ([127.0.0.1]:47237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nt3VW-000872-Hx for submit@debbugs.gnu.org; Mon, 23 May 2022 04:33:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:55614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nt3VV-00086v-1X for submit@debbugs.gnu.org; Mon, 23 May 2022 04:33:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nt3VU-00016K-Lc for guix-patches@gnu.org; Mon, 23 May 2022 04:33:40 -0400 Received: from mira.cbaines.net ([212.71.252.8]:36344) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nt3VP-0006BS-Qp for guix-patches@gnu.org; Mon, 23 May 2022 04:33:37 -0400 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:54d1:d5d4:280e:f699]) by mira.cbaines.net (Postfix) with ESMTPSA id C569827BBE9 for ; Mon, 23 May 2022 09:33:32 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id d72e496c for ; Mon, 23 May 2022 08:33:32 +0000 (UTC) From: Christopher Baines Date: Mon, 23 May 2022 09:33:32 +0100 Message-Id: <20220523083332.21626-1-mail@cbaines.net> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=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+larch=yhetil.org@gnu.org Sender: "Guix-patches" 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=1653294850; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=etk+m5mOu8BuYmfK5/rzescIaaatyt5TCUKCHL2DJd0=; b=pzhc6WZnKmcOgD0+ssehT2kRqnHD9G8NIny7FCh383p/Gso3qHZR50c9NoLMRAbygShQeH 4JPxoNBLM8rDVojhsneSKMYnaDM+SXZ2Hud8OO5FpJk/afOo4+JVHTUcYg9T4bvL2Cx8VH VMPQktGlg0eTll5w/yoYvlkZYNq0D9viEffSWST/2qnXrMLrrZhsGzbeQ/YXflR2i3xWGq Rd22by0MFbp6AopzqLOG+ueEOrnqo6IQvSZKut3fsMYD1+Q92ITWBU07UiZ3hfenz7W5LI U6hidyDl/Sqb/gLEqJeZw5mjgE5Ru7OCwZDwSzBDkxJdA7HHOYq4z+9a9l22pw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653294850; a=rsa-sha256; cv=none; b=nvA2p3eno4+ZYja1N3nGJW8G7XeoWMF+WH5yi8Y46FuUQbqOLt3TS6hFPMiXexUYmiiHeU jrfbuU4QdWKLh35IXWvwm4OVpPFViuw/86T6Ka5V8s+fAG0UIuY88Qnt5cwiTtf/dlM1TS YED/YelQXbODgie2tshrnU3e9IDNrs3vFEwzQVVAvcPhtVUquXv1l7a/v5ANAF+XLUovrs aILy6dYtVUDHFaXM+UY8MWBKy1RRtwjKbHC0k6bsD8S6yuULhdqOJiAVaxmNUxQ9D2Z9zL AJauVxaJiT+OcbUjSipQIaUZzjBNRLDR1Ih+thkuwXFzbFNxZYQ0L+lVuaFh1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -2.55 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: EC5C624FC7 X-Spam-Score: -2.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: Y67+ivd3kv7Q --- gnu/platform.scm | 6 +++++- guix/build-system/linux-module.scm | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gnu/platform.scm b/gnu/platform.scm index fdc3685e7c..91a1854e68 100644 --- a/gnu/platform.scm +++ b/gnu/platform.scm @@ -66,10 +66,14 @@ (define-record-type* platform make-platform platform? (target platform-target) (system platform-system) - (linux-architecture platform-linux-architecture + (linux-architecture platform-linux-architecture* (default #f)) (glibc-dynamic-linker platform-glibc-dynamic-linker)) +;; Provide a procedure so this can be used via module-ref +(define (platform-linux-architecture platform) + (platform-linux-architecture* platform)) + ;;; ;;; Platforms. diff --git a/guix/build-system/linux-module.scm b/guix/build-system/linux-module.scm index 761ebe25b1..78a3ba95b2 100644 --- a/guix/build-system/linux-module.scm +++ b/guix/build-system/linux-module.scm @@ -51,7 +51,8 @@ (define (default-linux) (define (system->arch system) (let ((module (resolve-interface '(gnu platform)))) - ((module-ref module 'lookup-platform-by-target-or-system) system))) + ((module-ref module 'platform-linux-architecture) + ((module-ref module 'lookup-platform-by-target-or-system) system)))) (define (make-linux-module-builder linux) (package -- 2.34.0