From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id aPtHMZ1ScmdZKQEAe85BDQ:P1 (envelope-from ) for ; Mon, 30 Dec 2024 07:58:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id aPtHMZ1ScmdZKQEAe85BDQ (envelope-from ) for ; Mon, 30 Dec 2024 08:58:21 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=vsXFyRsz; 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=1735545501; 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:dkim-signature; bh=AI+QCH8xOdMzwVyiA4FgQ8g6KM/HyKqP5O8qXexXI8E=; b=bsnHKpbBVjCWtu/4CxX4PdKYRr1pIDkGe7HykCK+BCUCnRY4mw1R6TywkQvjvPJyleScTU slLYwJNDd8EuRceOyjEbqbdXEqPXI4Rx6G489fDy0UcpkoWtg38MUgugqetkLLUAG96yO5 uqCIhufX3qwFEDD2t4LBurkgU4+YOTZeHQcvAlT1f4HAVkuG6LJDfeSBHce8PacqbyMiCR gcemnFlQsqMe/wObiNSn1DYKwIWZkL4f/HuZjB3AFxrbSrHR5jBJrA9kWtoPy+6L9jjBZG 5YmMeXvYO2ponCxDi/2nBtRNCOlF2IoqQ9Cx3zf90WPXp9lUztwlt0+5xHwSQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=vsXFyRsz; 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=1735545501; a=rsa-sha256; cv=none; b=UffFJe/UbBOP8RAXY3IZdaI8YaRSYpRV2GZhByMfiz1heyo8xFSV2sUlioxiE2iUeCw0FR d7LdeDBDf5B0bNKT18h13KGsFCd8bM1b7cqFgWkT3lVBiZZQzrulACL/bN81TYCtDb3YSA /uFmd3KL1rjoNE0XD8ahi2h448P85bEA5F3QwCdn56Mk5/Q8eeLNTFb98wVxJjmzplSLMY W1iiouw6PmHiQ94FDj6hb/931qDu9cBNTcCY3XpyEzIaw2LgNRMCyS1q/pCZoVvouzFjPy bryNYrIKSbk1fRtAS/i7wgizXn2bTA16jh9QR3N62OuCxM+ADEyknPwpg5pMzA== 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 2E7FC1AECE for ; Mon, 30 Dec 2024 08:58:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSAf9-0007lk-Ox; Mon, 30 Dec 2024 02:58:07 -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 1tSAf4-0007l8-Q6 for guix-patches@gnu.org; Mon, 30 Dec 2024 02:58:04 -0500 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 1tSAf4-0008Tz-C9 for guix-patches@gnu.org; Mon, 30 Dec 2024 02:58:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=AI+QCH8xOdMzwVyiA4FgQ8g6KM/HyKqP5O8qXexXI8E=; b=vsXFyRszYzIN+KfonEowiQVhFACN0y30ploiKG5soCOgLgP7y54yUX58LP3mOpj/upwR1cZatMFd8E6P287wHBKYVSiTzh/tBbLyktQ1jIRSRLCY+Q60nWu3A4Rh+Oa5+SiV6gOMhqmKBSPVlivC2a9+i8B+091PljPfYE4Vr/mVR/Rx8H6YIqynleMgdShQRjlZMFSniwF/hSliODwSup46/2bvdN4mVhcQaSwNqSDWrOS9vW9aXwDU4vb/IO/5+GaDEowt5ch2FyUxmAestJiXng/6CK8/4tW6GG6Wj6hugZfzte0F/SUdllx83icmqtCRLed9fdv8HROSf9P3nQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tSAf3-0001gb-UX for guix-patches@gnu.org; Mon, 30 Dec 2024 02:58:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75187] [PATCH] gnu: chibi-scheme: Fix cross-compilation. Resent-From: Zheng Junjie Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 30 Dec 2024 07:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75187 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75187@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17355454806471 (code B ref -1); Mon, 30 Dec 2024 07:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 30 Dec 2024 07:58:00 +0000 Received: from localhost ([127.0.0.1]:57202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSAf1-0001gI-Vw for submit@debbugs.gnu.org; Mon, 30 Dec 2024 02:58:00 -0500 Received: from lists.gnu.org ([209.51.188.17]:43694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSAez-0001gA-II for submit@debbugs.gnu.org; Mon, 30 Dec 2024 02:57:58 -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 1tSAex-0007kn-F9 for guix-patches@gnu.org; Mon, 30 Dec 2024 02:57:56 -0500 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 1tSAeu-0008TR-2T for guix-patches@gnu.org; Mon, 30 Dec 2024 02:57:55 -0500 Received: from m.tailaa68d.ts.net (unknown [107.174.64.25]) by APP-05 (Coremail) with SMTP id zQCowACHjaFvUnJn_c2VBA--.2166S2; Mon, 30 Dec 2024 15:57:38 +0800 (CST) From: Zheng Junjie Date: Mon, 30 Dec 2024 15:57:33 +0800 Message-ID: <6995baa0afe1ad3b96e7b9bf0b00fa2854ecbde2.1735545453.git.zhengjunjie@iscas.ac.cn> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CM-TRANSID: zQCowACHjaFvUnJn_c2VBA--.2166S2 X-Coremail-Antispam: 1UD129KBjvJXoW7tFy7Wr4rGF45Gw43AF47Arb_yoW8tF1Up3 ZFkw17Cw1F934ftw43JF48KrW5X3WxCryj9wsFkr4kKw4YkrW0gry3KFW3ZF17KFy7Ca43 Gan5GFWUWayUGFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUyab7Iv0xC_KF4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwV C2z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC 0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUGVWUXwAv7VC2z280aVAFwI0_Jr0_Gr 1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxAIw28IcxkI7VAKI48JMxC2 0s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI 0_JrI_JrWlx4CE17CEb7AF67AKxVWUJVWUXwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE 14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20x vaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8 JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU8xHUDUUUUU== X-Originating-IP: [107.174.64.25] 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: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -3.37 X-Spam-Score: -3.37 X-Migadu-Queue-Id: 2E7FC1AECE X-TUID: aa5qM4TX7dZp * gnu/packages/scheme.scm (chibi-scheme)[arguments]: Use G-expression. <#:make-flags>:When cross-compilation, Set CHIBI. [native-inputs]: When cross-compilation. Add this-package. Change-Id: I424854d77e575f2e2aab8a5a9d32ef628c9db953 --- gnu/packages/scheme.scm | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm index 490a09aa1ca..678ca9db064 100644 --- a/gnu/packages/scheme.scm +++ b/gnu/packages/scheme.scm @@ -25,6 +25,7 @@ ;;; Copyright © 2023 Maxim Cournoyer ;;; Copyright © 2024 Skylar Hill ;;; Copyright © 2024 Artyom V. Poptsov +;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -603,14 +604,24 @@ (define-public chibi-scheme (base32 "02zq35hdbi03rmmamx6ml4ihsigdl4mmbf6d9ysazv8ciiln5v4b")))) (build-system gnu-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (delete 'configure)) ; no configure script - #:make-flags (let ((out (assoc-ref %outputs "out"))) - (list (string-append "PREFIX=" out) - (string-append "CC=" ,(cc-for-target)) - (string-append "LDFLAGS=-Wl,-rpath=" out "/lib"))) - #:test-target "test")) + (list #:phases + #~(modify-phases %standard-phases + (delete 'configure)) ; no configure script + #:make-flags + #~(list + #$@(if + (%current-target-system) + #~((string-append + "CHIBI=" #+(this-package-native-input "chibi-scheme") + "/bin/chibi-scheme")) + #~()) + (string-append "PREFIX=" #$output) + (string-append "CC=" #$(cc-for-target)) + (string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib")) + #:test-target "test")) + (native-inputs (if (%current-target-system) + (list this-package) + (list))) (synopsis "Small embeddable Scheme implementation") (description "Chibi-Scheme is a very small library with no external dependencies base-commit: a74324f31075f05e7464d23192b29967fa254f26 prerequisite-patch-id: 54256209498bcad438d9fe404caa48d0cdb1ad33 -- 2.47.1