unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Mathieu Othacehe <othacehe@gnu.org>
To: Thiago Jung Bauermann <bauermann@kolabnow.com>
Cc: help-guix@gnu.org
Subject: Re: help with use of %current-target-system parameter and gexps
Date: Sun, 15 Aug 2021 08:02:42 +0200	[thread overview]
Message-ID: <87fsvb8cu5.fsf@gnu.org> (raw)
In-Reply-To: <2108194.9MkYMPdv0c@popigai> (Thiago Jung Bauermann's message of "Sat, 14 Aug 2021 15:18:01 -0300")


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


  reply	other threads:[~2021-08-15  6:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-14 18:18 help with use of %current-target-system parameter and gexps Thiago Jung Bauermann
2021-08-15  6:02 ` Mathieu Othacehe [this message]
2021-08-16 19:30   ` Thiago Jung Bauermann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fsvb8cu5.fsf@gnu.org \
    --to=othacehe@gnu.org \
    --cc=bauermann@kolabnow.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).