From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id JpHdEA+uGGEC9gAAgWs5BA (envelope-from ) for ; Sun, 15 Aug 2021 08:02:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QHMnDA+uGGGFfAAA1q6Kng (envelope-from ) for ; Sun, 15 Aug 2021 06:02:55 +0000 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 C036823D8C for ; Sun, 15 Aug 2021 08:02:54 +0200 (CEST) Received: from localhost ([::1]:49300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mF9ET-0007Wy-EY for larch@yhetil.org; Sun, 15 Aug 2021 02:02:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mF9EK-0007VW-CI for help-guix@gnu.org; Sun, 15 Aug 2021 02:02:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41406) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mF9EJ-0003qa-Th; Sun, 15 Aug 2021 02:02:43 -0400 Received: from [2a01:e0a:19b:d9a0:f2f7:a404:c3d3:f8b4] (port=44656 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mF9EJ-0004Nf-LI; Sun, 15 Aug 2021 02:02:43 -0400 From: Mathieu Othacehe To: Thiago Jung Bauermann Subject: Re: help with use of %current-target-system parameter and gexps References: <2108194.9MkYMPdv0c@popigai> Date: Sun, 15 Aug 2021 08:02:42 +0200 In-Reply-To: <2108194.9MkYMPdv0c@popigai> (Thiago Jung Bauermann's message of "Sat, 14 Aug 2021 15:18:01 -0300") Message-ID: <87fsvb8cu5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629007374; 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; bh=TRJEku749ZOnRh38MNmM07g4rYEej752FIAoZea+iJA=; b=DLgm0ngT67Ldy7LulDMWikmGOityZMoxOzVZtJBIKd+UHkiVQf4waQ+ofXC7TVei2k2K9F rbhpbXDnRrmX2MbfCOhneUlmkdLXxHMszBE78qtdr6hlUnENatW6+aJW2gdlAqPhvWwZYi WBjw5JtzfKSozK+ZWSbmWDjgr530zA78Zdb5xUbw4Tgfi/fweY7Bv3sUOsWl3D5bQ8tSQh ZNOjOJcnvg3zsbJ0ixX1EQEBwcqYDe/M/sibUQpyKKji/nnFkShYkt8T5eH9xH3viazfX9 dyLo+X7YdAIwNs6bxiE9ccpFKfxVeA3pVwdPZ96PJQikD+poMO6Fi+1q7i3gnQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629007374; a=rsa-sha256; cv=none; b=sydGolhOEoc/EWpv8BNE+7CA7ZLLxI+goMqXeALMGfH86BRPuZ3J3ASJJy4hSbWYReaOAK 9RCaLSuNNs2+0Uj7KQgUIhfZVhVs3W6JQgocewss1uofLz/ltCYPm1D3cdUqOLeZRooV4D nJKt9s1rTvDEiiVy6uCMuJ+j6GXomNBqTsFF/Q64lmEWGxm1af9Ny/Tla21DhO8pqcOSdD H/CuoyyUwUaeo3r2ioC/o7j4cO1B4nZtnTVhjR5LBa8LVnpz5iDD+5fETIXvpi+LdoauOz ZsuwR/RNflDPDtEhqLwaqCFZ6fmEagCaBcZFZtgEYtaQnSwyeSfYopmdmsemyQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: C036823D8C X-Spam-Score: -2.91 X-Migadu-Scanner: scn1.migadu.com X-TUID: zT2Q+xHA1HXq Hello Thiago, > + ;; LuaJIT is not ported to powerpc64le* yet. > + (if (string-prefix? "powerpc64le" > + (or (%current-target-system) > + (%current-system))) > + (substitute* fmtutilcnf > + (((string-append "^(luajittex|luajithbtex|mfluajit)") m) > + (string-append "#! " m)))) > ;; Register SHARE as TEXMFROOT in texmf.cnf. > (substitute* texmfcnf > (("TEXMFROOT = \\$SELFAUTOPARENT") > The issue here is that the %current-target-system and %current-system are not defined at build time. You need to force their evaluation by using "unquote", this way: --8<---------------cut here---------------start------------->8--- (arguments `(#:phases ... (if (string-prefix? "powerpc64le" ,(or (%current-target-system) (%current-system))) ...))) --8<---------------cut here---------------end--------------->8--- > > + #~(let-system (system target) > + ;; LuaJIT is not ported to powerpc64le* yet. Here also you need to unquote this part, using "ungexp": --8<---------------cut here---------------start------------->8--- #$(let-system (system target) ... --8<---------------cut here---------------end--------------->8--- Thanks, Mathieu