From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4AuLEAtU+GTpMQAAauVa8A:P1 (envelope-from ) for ; Wed, 06 Sep 2023 12:27:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4AuLEAtU+GTpMQAAauVa8A (envelope-from ) for ; Wed, 06 Sep 2023 12:27:23 +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 D13176FAC8 for ; Wed, 6 Sep 2023 12:27:22 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693996043; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: 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=a5ZR2o00qPITzeXlvWd5VzGATcJLIMGpohrYCbdunZs=; b=AwbjzWwpdvBsmKqUWViTwdbDDcflHRkJG9pmKCxHzWVS/yIx3JyTIz0N6pZmu0zuqH0uKy 0d1TFhK2T5NnwaPc4Si3sLBZZpuMoLEHzRYNwg1/ax2A7v1sQr4NkXMvo8utdZyT63Bq5C CEPxELJa9Boar16u2jb82H+2WQ+dS1/c3AMJj/QE6why9fyhhhdGmjrzlvAPms8WxGetfh m+1LlXCAduCNvTdVKcGx1U5fzYXpHo1FLGOTqaP29PyXlFr1/iqi2csACzLe616NgKWwjC DssC1h80r43XNmYmzZ6BXZ7l+6GWF51EKxyZ9DttNBSbQKTeoEGys+g5Q4msow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693996043; a=rsa-sha256; cv=none; b=PrmTcyCaT5QYUyOJqzid8n5xpzpyl4TxSyoSi4xg8T0UAGPcJpKHUMiMUptwUoFeK2g9fG ZCqFZXlXzXM6hS2d1rcVhhb50zOYd1qq2/yyINHTJsM62qs4a59L38KJ60u4flsJNkXvq1 v7+vvtjPWsJVnfcdn9FNyzNY63bMef3l1x0iB5AiP87CtFOQ2qDGP3WkNJbXSiUes/GzId DICkDuajClWqkGEmvb8mmJEHW14nAfX0GvXQ5fBEon0CtF23knBs7gZrghhlEIbAuI2DdI 26wivQ98VN29yFZRLvaZys5CbmJBoqmmh3IEijVFdlOfPS1bmyqReHWRzeVvVQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdpkW-0005FD-Q4; Wed, 06 Sep 2023 06:27:04 -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 1qdpkT-0005BD-D3 for guix-patches@gnu.org; Wed, 06 Sep 2023 06:27:01 -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 1qdpkT-0002nB-57 for guix-patches@gnu.org; Wed, 06 Sep 2023 06:27:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qdpkT-0002b6-Tc for guix-patches@gnu.org; Wed, 06 Sep 2023 06:27:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65778] [PATCH] gnu: makefile2graph: fix cross-compile. Resent-From: Zheng Junjie Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Sep 2023 10:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65778 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65778@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16939959999949 (code B ref -1); Wed, 06 Sep 2023 10:27:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Sep 2023 10:26:39 +0000 Received: from localhost ([127.0.0.1]:33028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdpk6-0002aP-TF for submit@debbugs.gnu.org; Wed, 06 Sep 2023 06:26:39 -0400 Received: from lists.gnu.org ([2001:470:142::17]:57982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdpk0-0002a8-Ts for submit@debbugs.gnu.org; Wed, 06 Sep 2023 06:26:37 -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 1qdpji-0004rr-Pb for guix-patches@gnu.org; Wed, 06 Sep 2023 06:26:14 -0400 Received: from smtp84.cstnet.cn ([159.226.251.84] 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 1qdpje-0002Pd-KN for guix-patches@gnu.org; Wed, 06 Sep 2023 06:26:13 -0400 Received: from localhost.localdomain (unknown [111.0.51.83]) by APP-05 (Coremail) with SMTP id zQCowAB3fe23U_hkRw4OCw--.36376S2; Wed, 06 Sep 2023 18:26:00 +0800 (CST) From: Zheng Junjie Date: Wed, 6 Sep 2023 18:25:53 +0800 Message-ID: <73861664e7cb3ca637a05ff57702f1f7f6a2a371.1693995953.git.zhengjunjie@iscas.ac.cn> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit X-CM-TRANSID: zQCowAB3fe23U_hkRw4OCw--.36376S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYf7k0a2IF6F4UM7kC6x804xWl14x267AK xVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUJVWUGw A2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj 6F1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIE14v26F 4UJVW0owA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAa Y2xG8wASzI0E04IjxsIE14AKx2xKxwAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI 8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwAC jcxG0xvY0x0EwIxGrwAKzVC20s0267AEwI8IwI0ExsIj0wCF04k20xvY0x0EwIxGrwCFx2 IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v2 6r1j6r18MI8E67AF67kF1VAFwI0_Jr0_JrylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67 AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IY s7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr 0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU86OJ5UUUUU== X-Originating-IP: [111.0.51.83] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ Received-SPF: pass client-ip=159.226.251.84; 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: D13176FAC8 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -5.23 X-Spam-Score: -5.23 X-TUID: GrZD3qsMvUU/ * gnu/packages/code.scm (makefile2graph): fix cross-compile. [arguments]: Use gexp and CC-FOR-TARGET. --- gnu/packages/code.scm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 9cdda2b751..3e91392ef8 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -17,6 +17,7 @@ ;;; Copyright © 2021 lu hui ;;; Copyright © 2021, 2022 Foo Chuan Wei ;;; Copyright © 2022 Michael Rohleder +;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -769,11 +770,13 @@ (define-public makefile2graph (base32 "1gjfk3d8qg3cla7qd2y7r9s03whlfwy83q8k76xfcnqrjjfavdgk")))) (build-system gnu-build-system) (arguments - '(#:test-target "test" - #:make-flags (list "CC=gcc" (string-append "prefix=" %output)) - #:phases - (modify-phases %standard-phases - (delete 'configure)))) + (list + #:test-target "test" + #:make-flags #~(list (string-append "CC=" #$(cc-for-target)) + (string-append "prefix=" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure)))) (native-inputs (list graphviz)) (home-page "https://github.com/lindenb/makefile2graph") base-commit: 6113e0529d61df7425f64e30a6bf77f7cfdfe5a5 -- 2.41.0