From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 OAVrOeh6Z2NLsgAAbAwnHQ (envelope-from ) for ; Sun, 06 Nov 2022 10:14:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8LZ5Oeh6Z2OPSQEA9RJhRA (envelope-from ) for ; Sun, 06 Nov 2022 10:14:16 +0100 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 AE78B1E7CC for ; Sun, 6 Nov 2022 10:14:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orbjB-00040D-7s; Sun, 06 Nov 2022 04:14:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orbj8-0003zc-OU for guix-patches@gnu.org; Sun, 06 Nov 2022 04:14:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1orbj8-0005XU-An for guix-patches@gnu.org; Sun, 06 Nov 2022 04:14:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1orbj8-0003dK-0j for guix-patches@gnu.org; Sun, 06 Nov 2022 04:14:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59074] [PATCH] build-system/linux-module: Add #:source-directory to linux-module-build-cross. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Nov 2022 09:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59074 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59074@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166772600613913 (code B ref -1); Sun, 06 Nov 2022 09:14:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Nov 2022 09:13:26 +0000 Received: from localhost ([127.0.0.1]:58663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orbiX-0003cL-VO for submit@debbugs.gnu.org; Sun, 06 Nov 2022 04:13:26 -0500 Received: from lists.gnu.org ([209.51.188.17]:50026) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orbiT-0003cB-Eo for submit@debbugs.gnu.org; Sun, 06 Nov 2022 04:13:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orbiT-0003v4-9L for guix-patches@gnu.org; Sun, 06 Nov 2022 04:13:21 -0500 Received: from mira.cbaines.net ([212.71.252.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orbiR-0005Ur-O7 for guix-patches@gnu.org; Sun, 06 Nov 2022 04:13:20 -0500 Received: from localhost (host-82-184-251-30.business.telecomitalia.it [82.184.251.30]) by mira.cbaines.net (Postfix) with ESMTPSA id 243A427BBE9 for ; Sun, 6 Nov 2022 09:13:18 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 38d3119a for ; Sun, 6 Nov 2022 09:13:17 +0000 (UTC) From: Christopher Baines Date: Sun, 6 Nov 2022 10:13:17 +0100 Message-Id: <20221106091317.27635-1-mail@cbaines.net> X-Mailer: git-send-email 2.37.3 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, 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: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667726056; 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=hrKgJnCaAsaTAS9YgEEPLRTwIBPYoBM2riJ6wBAzE/E=; b=LN+aapRSd6fesyew9H5W6rk2lFw4VPDMI1kz1F1ug6tekuNUSNgP64uWWCI1OCOxWGORzi n8YlBwi2DNvzxuh4OIqc4ptj236OT9HiWWEL1Ix3qdIZ6Qqf8A5xUpxNcrEZVmLs7SkE+V WcGN2qNqrKWEYk9PEM36/jWTlW3rsh0YZeKYtLbl8usHcNfFiZs7potTPK2ZEmOZQkYKtq iDFClTOURuJQIsygY/POq3CasJJSa5FZpTa2OETqJp006Sgno/lDXhIYcFsk9lYvsyrYwG lA4gjh8fpq1ipq27sGGisMlbR4OiIePRx8chLm0YGc/3OBovfIWYmnwh0rKv2Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667726056; a=rsa-sha256; cv=none; b=WvmHOZ6dH7HCnjcJrctpSnUXlF6QemT1EiQtzechBydZPQ7uG8RiPN/KXhp45FiR6mrPfX I4b//Ot9vhjkYgtybxQWnjEgEtwunOm0DZF6XQe0Acw2kC0rzKreJfYhLkl1MpKRoaUX+8 msih35+HeDxWl9R5+sx19arobeRtsBrQ1mBmKdoPvd3dVyMFh2SsJaLoqXg+z3ppL3Ec+9 uYJJccfZhS/nnhyvsGIl/8Gr3tDVE+m/3B90samk094CaVePVwiBXdyNum83MN3hGQ4gUD yte4McJha3S/+BgYffSc31gJ0T49u5HX/bSPgT/lUR8fHicdiNMSI1cZd7w3ng== 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: -1.50 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: AE78B1E7CC X-Spam-Score: -1.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: ouZM5LDbJgu/ Otherwise computing cross-compilation derivations for packages (e.g. xpadneo) using the #:source-directory argument fails with this error: Unrecognized keyword: #:source-directory * guix/build-system/linux-module.scm (linux-module-build-cross): Support #:source-directory. --- guix/build-system/linux-module.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guix/build-system/linux-module.scm b/guix/build-system/linux-module.scm index 94a293da13..d6c369d65d 100644 --- a/guix/build-system/linux-module.scm +++ b/guix/build-system/linux-module.scm @@ -210,6 +210,7 @@ (define* (linux-module-build-cross (tests? #f) (phases '%standard-phases) (system (%current-system)) + (source-directory ".") (substitutable? #t) (imported-modules %linux-module-build-system-modules) @@ -229,6 +230,7 @@ (define %build-target-inputs (linux-module-build #:name #$name #:source #+source + #:source-directory #$source-directory #:system #$system #:target #$target #:arch #$(system->arch (or target system)) -- 2.37.3