From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4OlBK/e8GmFaMgAAgWs5BA (envelope-from ) for ; Mon, 16 Aug 2021 21:31:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0EDIJve8GmF9MgAAbx9fmQ (envelope-from ) for ; Mon, 16 Aug 2021 19:31:03 +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 F2346BD85 for ; Mon, 16 Aug 2021 21:31:02 +0200 (CEST) Received: from localhost ([::1]:46116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mFiK6-0000W1-4o for larch@yhetil.org; Mon, 16 Aug 2021 15:31:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFiJp-0000V9-QX for help-guix@gnu.org; Mon, 16 Aug 2021 15:30:45 -0400 Received: from mx.kolabnow.com ([95.128.36.40]:24978) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFiJm-00062a-V5; Mon, 16 Aug 2021 15:30:45 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTP id 503104198C; Mon, 16 Aug 2021 21:30:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:date:subject:subject :from:from:received:received:received; s=dkim20160331; t= 1629142235; x=1630956636; bh=BqisFjulOK1oAGpUAthg/L9OCNV+HXQSGrs yFdgM3YY=; b=DGkH2+OIFey6y2ezF+NjFLodw3QEt2o5pGR0SDelUEalMlXQtVa E7NX7C7WZ3IjXyF/9qWJ1e98pnhtrPsSUdGHSJDwg8kZABFMA0r843mhDYxSVSaq sd8s9Jr0wtVNBzFhvSSvQmNRUiHVokqEv5h77oo2BzkY7IpAoL6od6p1YZZ1q3fe Dy6bmZydf7unKCxpIJ30ft+cqYid6PCYMoAMYS+niNIGQvj2S/oQSaAc2u8fRtcz 349TYJeOR4RmfyA51xlSYO64dLPTo5tbZuAH3JzZsQJNiMwoou7kD5qOGLzGbXrX TdodrYuDSJt2brLGTn+3toz2yCHinuL9YWkCu56LTzYrk9ZGx05dtI6FsE1vD+M4 Fi490ry+B8+2CVjrNa6seeQsBrP59HH3SRz0tBKkNp4FzArXgQjKt0DxmVYDY532 1Ai/tYDp6M+bGd+bR8Lv9FeFAjv9mk2YRpAITi9ioSwnb99h3+m3hvuxFS/W4u3J LgdP77an2qhPQcmQ9RHiReSP2LkUm/73/V6hh3pXplZpnas2jkmgdGpkK32zUF4N oyKS7K4vd/3l3tJJOvwtls1X3pQJf7Zz7eoiSkovzfDncCxBwWmnALNU/YUIo35h 0vzA/YmS+/ZH2g7ucjYfw2w616u3YbrJJoc/xoS5OggAmoS8NNkIEFvs= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xa8meQffF7-c; Mon, 16 Aug 2021 21:30:35 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTPS id 7212041961; Mon, 16 Aug 2021 21:30:35 +0200 (CEST) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx001.mykolab.com (Postfix) with ESMTPS id E5E921B4C; Mon, 16 Aug 2021 21:30:33 +0200 (CEST) From: Thiago Jung Bauermann To: Mathieu Othacehe Cc: help-guix@gnu.org Subject: Re: help with use of %current-target-system parameter and gexps Date: Mon, 16 Aug 2021 16:30:19 -0300 Message-ID: <2198298.QmL5SxD5ED@popigai> In-Reply-To: <87fsvb8cu5.fsf@gnu.org> References: <2108194.9MkYMPdv0c@popigai> <87fsvb8cu5.fsf@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=95.128.36.40; envelope-from=bauermann@kolabnow.com; helo=mx.kolabnow.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , 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=1629142263; 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: 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=BqisFjulOK1oAGpUAthg/L9OCNV+HXQSGrsyFdgM3YY=; b=FvtJtf8oiKoNgjQj1WmlmykzcGaLxlqAJUCkFuhVCYE9mXgKNOmmNGN0EpH89zdZ4WPP7W sZ7SwiHk4WFnFvHxHYroU0ilJ2MElukQsk+IJLLa0sqlAk7FfW5VqiUY8XCDb9xq3Eblwr qBAVRjD63p/bQxPETmxtMqXK04jZbrGiGrsB6SWS58Byg49+p2xoDLOVSiGXH+OXxyKPOg TTNAT343csD/cSg7lZs2ugGy+cDJNWgzSVx/umTjx5c2kxTSzI+U1CnMkeEsob1ydTu9mK DEoqcERRRndqybzOBzXvx1uxAm9ge+qxfoPh7t8afs8wDgSSdq/PhcGZJGAOsw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629142263; a=rsa-sha256; cv=none; b=uDAosK6yOxkDuZTV2NgwAUUvvMgLYmWiIFtVGlmp5LOQbL/AQVBQLH2jcPXjOaLHAriWUj e5fbTUIy+Fn804jDDZrACmCI5M5UGtognpLpsGCWDszBMb9DLTdiBHXFigo+cSj+UJcyJJ nxY6pjjDWUvKiTusUNIP4Hvgy3L86n5Uv5QVlXPTa+P/6o9XbZHtFY4+yl+PNmu/4Y69jc rEIxwpwErDYfSqX6YZluVphh0RqRu+DGAPmsb6bPR+QN9krX1MpgSa4EAWW6ED7DrfDbPd 14m6yPDkndqcGsjWe1XQUOHfBr6kyr3WQAPShmH8/LsjzgF0uc2r55O0jaKCtw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kolabnow.com header.s=dkim20160331 header.b=DGkH2+OI; dmarc=pass (policy=quarantine) header.from=kolabnow.com; 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.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kolabnow.com header.s=dkim20160331 header.b=DGkH2+OI; dmarc=pass (policy=quarantine) header.from=kolabnow.com; 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: F2346BD85 X-Spam-Score: -2.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5B2Z1B+7WpKO Hello Mathieu, Em domingo, 15 de agosto de 2021, =C3=A0s 03:02:42 -03, Mathieu Othacehe escreveu: > > + ;; 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) + =20 > > (string-append "#! " m)))) > >=20 > > ;; Register SHARE as TEXMFROOT in texmf.cnf. > > (substitute* texmfcnf > > =20 > > (("TEXMFROOT =3D \\$SELFAUTOPARENT") >=20 > 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: Ah! I wasn=E2=80=99t aware of that trick. It indeed solved the problem. Tha= nk you very much for your help! > --8<---------------cut here---------------start------------->8--- > (arguments > `(#:phases =E2=80=98texlive-texmf=E2=80=99 already has this quasiquote, so I only nee= ded the unquote below to make it work. > ... > (if (string-prefix? "powerpc64le" > ,(or (%current-target-system) > (%current-system))) > ...))) > --8<---------------cut here---------------end--------------->8--- >=20 > > + #~(let-system (system target) > > + ;; LuaJIT is not ported to powerpc64le* yet. >=20 > Here also you need to unquote this part, using "ungexp": >=20 > --8<---------------cut here---------------start------------->8--- > #$(let-system (system target) > ... > --8<---------------cut here---------------end--------------->8--- Not that it matters anymore, but just for completeness: unfortunately I couldn=E2=80=99t make this one work. When I used =E2=80=9Cungexp=E2=80=9D= , I got this error: =2D-8<---------------cut here---------------start------------->8--- [ 79%] GUILEC gnu/packages/tex.go gnu/packages/tex.scm:6832:24: warning: possibly unbound variable `substitut= e*' gnu/packages/tex.scm:6832:24: warning: possibly unbound variable `fmtutilcn= f' gnu/packages/tex.scm:6833:27: warning: possibly unbound variable `m' Compiling Scheme modules... Compiling Scheme modules... make[2]: Saindo do diret=C3=B3rio '/home/debian/src/guix' make[1]: Saindo do diret=C3=B3rio '/home/debian/src/guix' gnu/packages/tex.scm:6832:24: error: substitute*: unbound variable hint: Did you forget `(use-modules (guix build utils))'? =2D-8<---------------cut here---------------end--------------->8--- I tried using this at the beginning of the gexp: =2D-8<---------------cut here---------------start------------->8--- (with-imported-modules '((guix build utils)) #~(begin (use-modules ((guix build utils))) =E2=8B=AE =2D-8<---------------cut here---------------end--------------->8--- But it still resulted in the same error. But no problem, your =E2=80=9Cunqu= ote=E2=80=9D solution worked. =2D-=20 Thanks, Thiago