From patchwork Mon Oct 9 15:07:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Z572 X-Patchwork-Id: 54635 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 B270727BBE2; Mon, 9 Oct 2023 16:09:54 +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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable 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 DBED627BBE9 for ; Mon, 9 Oct 2023 16:09:52 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qprtB-0007Hq-3V; Mon, 09 Oct 2023 11:09:45 -0400 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 1qprt8-0007GD-3i for guix-patches@gnu.org; Mon, 09 Oct 2023 11:09:42 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qprt7-0000D5-SG for guix-patches@gnu.org; Mon, 09 Oct 2023 11:09:41 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qprtS-0000Sz-9P for guix-patches@gnu.org; Mon, 09 Oct 2023 11:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66424] [PATCH] gnu: libxkbcommon: Fix cross-compile. Resent-From: Zheng Junjie Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 09 Oct 2023 15:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66424 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66424@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16968641611736 (code B ref -1); Mon, 09 Oct 2023 15:10:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Oct 2023 15:09:21 +0000 Received: from localhost ([127.0.0.1]:60697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qprsn-0000Rw-Ad for submit@debbugs.gnu.org; Mon, 09 Oct 2023 11:09:21 -0400 Received: from lists.gnu.org ([2001:470:142::17]:42272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qprsk-0000Ri-NP for submit@debbugs.gnu.org; Mon, 09 Oct 2023 11:09:20 -0400 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 1qprrz-0006pT-Dl for guix-patches@gnu.org; Mon, 09 Oct 2023 11:08:33 -0400 Received: from smtp81.cstnet.cn ([159.226.251.81] helo=cstnet.cn) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1qprrp-0008NU-0E for guix-patches@gnu.org; Mon, 09 Oct 2023 11:08:30 -0400 Received: from localhost.localdomain (unknown [183.247.5.151]) by APP-03 (Coremail) with SMTP id rQCowACnryNTFyRlpRMYEQ--.58643S2; Mon, 09 Oct 2023 23:08:04 +0800 (CST) From: Zheng Junjie Date: Mon, 9 Oct 2023 23:07:42 +0800 Message-ID: <62c95fe412c55e9350adff139ff33cb6fe91db68.1696864062.git.zhengjunjie@iscas.ac.cn> X-Mailer: git-send-email 2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ZEXa7IU8v_M3UUUUU== X-Originating-IP: [183.247.5.151] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ Received-SPF: pass client-ip=159.226.251.81; envelope-from=zhengjunjie@iscas.ac.cn; helo=cstnet.cn 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 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/xdisorg.scm (libxkbcommon): Fix cross-compile. [native-inputs]: When cross-compile add PKG-CONFIG-FOR-BUILD. --- gnu/packages/xdisorg.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) base-commit: 9b77bd0b9b4f3de69390da0ba7db5b9dbc01e554 diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index db948a9318..84bdcad031 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -527,9 +527,13 @@ (define-public libxkbcommon wayland-protocols xkeyboard-config)) (native-inputs - (list bison doxygen pkg-config python - ;; wayland-scanner is required at build time. - wayland)) + (append + (if (%current-target-system) + (list pkg-config-for-build) + '()) + (list bison doxygen pkg-config python + ;; wayland-scanner is required at build time. + wayland))) (arguments (list #:configure-flags #~(list (string-append "-Dxkb-config-root="