From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Nieuwenhuizen Subject: bug#40839: Shepherd activation .GO files are not cross-compiled ... and the Hurd Date: Sat, 25 Apr 2020 19:38:42 +0200 Message-ID: <875zdntqhp.fsf@gnu.org> References: <87imhnuc8a.fsf@gnu.org> <87wo63u5j6.fsf@gmail.com> <875zdnd0jf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48794) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSOlb-0005jg-0j for bug-guix@gnu.org; Sat, 25 Apr 2020 13:39:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSOla-00039d-HU for bug-guix@gnu.org; Sat, 25 Apr 2020 13:39:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48747) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSOla-00039N-4e for bug-guix@gnu.org; Sat, 25 Apr 2020 13:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jSOla-0000DT-2d for bug-guix@gnu.org; Sat, 25 Apr 2020 13:39:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <875zdnd0jf.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 25 Apr 2020 17:53:40 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 40839@debbugs.gnu.org Ludovic Court=C3=A8s writes: Hello! >> Now, the tricky part is the value of target, because >> #$(%current-target-system) might not be correct in that context. > > Yes, that brings us back to . > Time flies! But now we really need to address it. Oh! Yes, I guess we need that as soon as we unify the hurd VM with the guix system build? > Jan Nieuwenhuizen skribis: > >> + (let ((target (%current-target-system))) >> + (with-extensions (list shepherd) >> + (computed-file (string-append (basename (scheme-file-name file) "= .scm") >> + ".go") >> + #~(begin > > The problem here is that =E2=80=98%current-target-system=E2=80=99 is not = resolved in the > right context. Though in practice, it=E2=80=99s =E2=80=9Cgood enough=E2= =80=9D when using =E2=80=98guix > system build --target=E2=80=99 though, because =E2=80=98%current-target-s= ystem=E2=80=99 is bound > once and for all at the beginning. > > What about applying this patch, but adding a FIXME comment above =E2=80= =98let=E2=80=99 > pointing at ? Pushed to core-updates as d2fc76462e72268ee5b04fe53805efc05c35e139, with... > Also, you can avoid duplicating the =E2=80=98compile-file=E2=80=99 call b= y writing it > like this: > > (with-target #$(or target #~%host-type) ...this change too. Nice, that works (I tried (%current-system), which did not work). Thanks! janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com