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 ms0.migadu.com with LMTPS id wCFVMmGKOWL8GgEAgWs5BA (envelope-from ) for ; Tue, 22 Mar 2022 09:35:45 +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 gJ+1L2GKOWIsGwEA9RJhRA (envelope-from ) for ; Tue, 22 Mar 2022 09:35:45 +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 420B527C34 for ; Tue, 22 Mar 2022 09:35:45 +0100 (CET) Received: from localhost ([::1]:45116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWZzT-0002qe-Q0 for larch@yhetil.org; Tue, 22 Mar 2022 04:35:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWZx7-0000Tf-8T for help-guix@gnu.org; Tue, 22 Mar 2022 04:33:19 -0400 Received: from m12-14.163.com ([220.181.12.14]:41450) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWZx0-0003Zh-Iw for help-guix@gnu.org; Tue, 22 Mar 2022 04:33:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=IKMCX 9zMA40FnDNVprWU50oNRBy620/0iWtCKTqBYes=; b=ktAGrajsq3VzdQKLVgQJK nfitB/XkrPtc+4h+gxEE+rbiTO1iaXqr25M2cJDAP2vqQ/EGCkPAE0N0EQQMv9xB Tr1o/TXe1pE8o6diMIGFF6rInMAvdXQ7tld24+5NGmC+/KOXA8TI5YkyHgZBNVoF Qxkvw0i5F7rpESzK2bjNR0= Received: from debian (unknown [218.92.14.78]) by smtp10 (Coremail) with SMTP id DsCowAA3gIPuhTliceXcCA--.5262S2; Tue, 22 Mar 2022 16:16:47 +0800 (CST) From: "Feng Shu" To: Mekeor Melire Subject: Re: How to replace %output with #$output? References: <87zgljx9yn.fsf@posteo.de> <858439E5-5340-49D8-B1F2-F51DEEF79FDE@tobias.gr> <87v8w6xwri.fsf@posteo.de> Date: Tue, 22 Mar 2022 16:16:46 +0800 In-Reply-To: <87v8w6xwri.fsf@posteo.de> (Mekeor Melire's message of "Tue, 22 Mar 2022 07:26:38 +0000") Message-ID: <87pmmequ4x.fsf@163.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-CM-TRANSID: DsCowAA3gIPuhTliceXcCA--.5262S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrKryrGr13Cw4kuryfJw4ruFg_yoWDKFX_uF WUuryxGa98W3yIgw43C393Wr4Dta4kCr95Xa15tr1qvr1kWFZ3Xrs2ya9Y9w4rGw4rKrn8 KFn29rW29r1avjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUUYL9UUUUUU== X-Originating-IP: [218.92.14.78] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/xtbBEQ-L1FaEHI8XSAAAsf Received-SPF: pass client-ip=220.181.12.14; envelope-from=tumashu@163.com; helo=m12-14.163.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" 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=1647938145; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=IKMCX9zMA40FnDNVprWU50oNRBy620/0iWtCKTqBYes=; b=BayNWAxdbgrCKrzyUIA9EMeVGPLKAzMLfvQaTOV2x8MSJS6+m0eKs3haspWYHp+nI81V+7 OFR/8P9gO8qG2YP5i4SgTjcvYYY2Q48sm1nsnTDurHRNSoHxN8ykv9Cl8u8bfo6Du0nwPz 9P6A3bGqLQszRC8vv9DslKe0WLxsqGoy2lqNytlLO0JVu7Eq0OrVylPU4+h9f7gjIAMd4p aVrHMQA4ip7+fzI5N93dOj4G8eJ2LXKLjAEt6IksYGWCP6CThT+UCjrutfhJsdDgsbhDLR ePX7UNh0O8qR2y9xT8CkdnfnVOhzz4Cjxwh7v3JVpSiKp0H5W6ov26QKkSa/JA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647938145; a=rsa-sha256; cv=none; b=uBgkNfaF7CSLKFV9Btbd0Ltdvip5VV2TUcv1B+JS8eMT/FXakONgSuqO3NXAswhClA77xE XPYYzLeHnFEUSoY95KO4WTh28cxFmnGdt9msz3xZ4u/R+U5t4emJjUO4rCO8ztkJ4S36wu et76YsHvEKpWmRl8LCPZYQD53DzlZ/Rt3wqw6T32mYyzwjKOVg7PnS1JLsVJqfnPXA3Tf1 l5vyybex36YkjswBCvt4IKlvUdbg/21nExNVBFtHM9DwIk0m5cuPkzVrbZYvNAY/rB/OW3 /CscylnjsUlEuHCsz/Mlu+SPqo7R9TanNGNQk1+Dy/UqJ2u7XzhbMtCNwI3k4g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=163.com header.s=s110527 header.b=ktAGrajs; dmarc=pass (policy=none) header.from=163.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=163.com header.s=s110527 header.b=ktAGrajs; dmarc=pass (policy=none) header.from=163.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 420B527C34 X-Spam-Score: -7.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: aFdg/IszrlTI Mekeor Melire writes: > 2022-03-21 / 21:57 / me@tobias.gr: > >> Remove the quote after arguments (replace it with a plain LIST call) and add #~ before (modify-phases ...) to define a gexp. >> >> Untested example: >> >> (arguments >> (list #:tests? #f ; no tests >> #:make-flags (list "CC=gcc") >> #:phases >> #~(modify-phases %standard-phases >> (delete 'configure) >> (add-after 'unpack 'patch-makefile >> (lambda _ >> (substitute* "Makefile" >> (("/usr/local") >> #$output))))))) > > With these changes I get this error: > > Wrong type to apply: "CC=gcc" What about #~(list "CC=gcc") or '(list "CC=gcc") ? > >> So does hard-coding 'gcc' over using (cc-for-target). > > Yes, I would also prefer to use cc-for-target. But I wanted to simplify > my code first. Because in order to use cc-for-target, I have to use > backticks. If you have a suggestion for how to use both cc-for-target > and #$output, let me know. > >> Very strong opinions on Scheme coding style, that boy. > > Please don't assume gender. But yes, you can refer to me with the "he" > pronoun. --