From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SEVwBPH0OGIuxAAAgWs5BA (envelope-from ) for ; Mon, 21 Mar 2022 22:58:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8COvAPH0OGL5IQAA9RJhRA (envelope-from ) for ; Mon, 21 Mar 2022 22:58:09 +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 9B06F2F511 for ; Mon, 21 Mar 2022 22:58:07 +0100 (CET) Received: from localhost ([::1]:37450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWQ2Q-0000Kp-CF for larch@yhetil.org; Mon, 21 Mar 2022 17:58:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWQ1q-0000JI-Oc for help-guix@gnu.org; Mon, 21 Mar 2022 17:57:33 -0400 Received: from [2a02:c205:2020:6054::1] (port=39600 helo=tobias.gr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWQ1o-0003r0-FG for help-guix@gnu.org; Mon, 21 Mar 2022 17:57:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=3Sq4M+dEO5g7T J6U6lPD3z9iDeQIfCRk6PkulTbW2LQ=; h=references:in-reply-to:subject:to: from:date; d=tobias.gr; b=PvMBmTWC3MctLFvxAtsqcx1P8HUtoabrVuge8EcV4f2h mY6onUw/6mBAOm3kRMmr6uv8tG8lDis8d1RswuJXm9rSj/jaWmCuRnSqruSp55Q3Krq/5g cMaz30Yvpofc0iWwNrzJZD226K8zpskf5gUFrQPUr82iYd6kLu8c8P/jdklXgO1ejHXXDo G19R1Slzd+mWGjUAsS1mSF9BRPzy3ELn9WpiD762GlIWuc2LQ61T+JimDTgIK+bWdMtRE+ e/ocrJ8u+qhvLxNMjSg7YZpsoSMs3BehW2qdeQLzOe2YYJfyXPTKcFv7R5T3EnYj51Nl6E Tsnqe+IRg4QoUaUXPw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 88594ea3 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Mon, 21 Mar 2022 21:57:17 +0000 (UTC) Date: Mon, 21 Mar 2022 21:57:19 +0000 From: Tobias Geerinckx-Rice To: help-guix@gnu.org, Mekeor Melire Subject: Re: How to replace %output with #$output? In-Reply-To: <87zgljx9yn.fsf@posteo.de> References: <87zgljx9yn.fsf@posteo.de> Message-ID: <858439E5-5340-49D8-B1F2-F51DEEF79FDE@tobias.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:c205:2020:6054::1 (failed) Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , 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=1647899888; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=3Sq4M+dEO5g7TJ6U6lPD3z9iDeQIfCRk6PkulTbW2LQ=; b=pcm84PpoP24B2+L4RkW97xeH9X/1o2raMBpsRhlyJ99NOiJvuwNF+T1oNxRz9B0A7rinFz zbsxvpebxNiO0nBqMBP8pRxZP8jPKBroiQUVH6oz5DFsZva8k2TbM2WqM7CyNzL8Y4hxt7 J7TrqN4RBLsPtNeZiWlHsmT47nffRv6YzOjBqgDTB6oDQf7r9iI2Wr2LYWjMEhW+EYmBHn L1+kN6/1nJ3sBdAHNzgcmyr3I1xtBja5ebcFqFbDikqOO6F4T0kj2cKocERKbksDTN+awQ qEYzJ7I3/M4BzB6KchYtmYIXrHzuDdhnJVQvZNjfBdmMrOWyiP1seZ2QRk/kpA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647899888; a=rsa-sha256; cv=none; b=isLUtFLQb0Z/aJD3r8O9bNA8iVjOlxg2jK1rhtfNsv1wiFrWjdwIEdtqCv1btDYqlvoPp1 SyGdhXiUcJt8Yx2ZaodfiXGDkZOWPp6QPPdMmefFSWvnG8NXZEAvhR+TfBZ5Wfn7Of7AVh 2dnH9C3hFCjb/HXISdx/IjJisBcEwZ0AFh0ocQjxfWUDF6dXipdqfbLB7WTvty/rT54bId 3AT1vVfnRfEQnfrC5J0JJ3N2w2pXepv6SYFOVTGw8BBPMa6GxxAT7HIqflHyqAlKgIIE0A SsA53LBpii+JpHkmForB8SaXM4V86cGcijulS0OwUhp9P1qCbWO/JCl4+I0gAg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=PvMBmTWC; dmarc=pass (policy=reject) header.from=tobias.gr; 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: -5.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=PvMBmTWC; dmarc=pass (policy=reject) header.from=tobias.gr; 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: 9B06F2F511 X-Spam-Score: -5.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: rf9w++z+hM3Y Hi Mekeor, Remove the quote after arguments (replace it with a plain LIST call) and a= dd #~ before (modify-phases =2E=2E=2E) to define a gexp=2E Untested example: (arguments (list #:tests? #f ; no tests #:make-flags (list "CC=3Dgcc") #:phases #~(modify-phases %standard-phases (delete 'configure) (add-after 'unpack 'patch-makefile (lambda _ (substitute* "Makefile" (("/usr/local") #$output))))))) Also, newlines after ( make the baby Jesus cry=2E So does hard-coding 'gcc' over using (cc-for-target)=2E Very strong opinions on Scheme coding style, that boy=2E Kind regards, T G-R Sent on the go=2E Excuse or enjoy my brevity=2E