From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OF/UJSBlvWHqQQAAgWs5BA (envelope-from ) for ; Sat, 18 Dec 2021 05:35:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id yHuQISBlvWFVCQAA1q6Kng (envelope-from ) for ; Sat, 18 Dec 2021 04:35:44 +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 4784F368B7 for ; Sat, 18 Dec 2021 05:35:44 +0100 (CET) Received: from localhost ([::1]:47342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myRRf-0006tu-Fz for larch@yhetil.org; Fri, 17 Dec 2021 23:35:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myRR0-0006sw-8F for bug-guix@gnu.org; Fri, 17 Dec 2021 23:35:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57728) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myRQz-0006Rc-Vt for bug-guix@gnu.org; Fri, 17 Dec 2021 23:35:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myRQz-00042q-Re for bug-guix@gnu.org; Fri, 17 Dec 2021 23:35:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52574: Cross-compiling glib failure Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 18 Dec 2021 04:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52574 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos Received: via spool by 52574-submit@debbugs.gnu.org id=B52574.163980209615531 (code B ref 52574); Sat, 18 Dec 2021 04:35:01 +0000 Received: (at 52574) by debbugs.gnu.org; 18 Dec 2021 04:34:56 +0000 Received: from localhost ([127.0.0.1]:41041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myRQu-00042R-1D for submit@debbugs.gnu.org; Fri, 17 Dec 2021 23:34:56 -0500 Received: from mail-qk1-f179.google.com ([209.85.222.179]:43533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myRQs-00042F-PK for 52574@debbugs.gnu.org; Fri, 17 Dec 2021 23:34:55 -0500 Received: by mail-qk1-f179.google.com with SMTP id 193so4196786qkh.10 for <52574@debbugs.gnu.org>; Fri, 17 Dec 2021 20:34:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=aNL56/0UcpzqXpqjdZgRAPmwMQ51hSsaF7FL1VjLW7w=; b=YozHBLTT/O/rZ0cSfgPJvdYS/M7WkUGaNyU+Z4avemgLSp+yl198Yg6Ek9x6hDbZCD HWK/KoOszFSh22ePe9bvhTRYgAOk9lUZjkqTNZaV2QesYOe7qxb0NXnKeJ2PnqzmlU3M UeKzWw3WJLcUunNxnE3O+CkZAX6k+YBlk8FrLJDjdNyvH//CNMSHZoRzNnfXpfs+NiyI Azbv0QQTDvlaQbQPZ3Agzq8xjliBQGRe0Ptnb0El/l3K1XH7SjxPENQ9xN2OjjU3yewZ xQVQWQtlsXIJ3RCKD+O9omJ0o5flXHfmZRm6zVxvhJciatws7q4wzx1api2kz0JFQxFq Jjhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=aNL56/0UcpzqXpqjdZgRAPmwMQ51hSsaF7FL1VjLW7w=; b=gjzck5ALPs3qQwXnF2ijmGIUSBMh5w2EGQi/AzdsLGwdb3pUGyWDtMa7lJaYcp1Yjg wD4xFEO2BOzpMKa8LLvNsObVuncCfQzN9fys2UM9etooXvaTmR1DkJnBYABhf4fsadiF 8bvjV70sFDhZQU/6ePqX25yyJicd2nZDtqNwmSn7wXJX6Wq9Z6kgVu7xo2zIY3DwoCml Sx+3wTA+fpuHTsmfyH7190xHL4p2oTRXSQGjKGD2AdScUzSy50lT8eCN94eR6VbZZORX 0RTWas3xo6XIMQOXpzRSh1cF+40P9+kOj5sfyo1G/rXfLcr16uVdhUGZpeBPFYWPnwpI tO+g== X-Gm-Message-State: AOAM533bW6cuAQmCXaj2JcnT/N0HSgCr3S1wq6Q5TUJdazJ4JzQBjBY1 sd8VjwdZkyrhgXdsdRSIPoKrrNvCDLA= X-Google-Smtp-Source: ABdhPJz/fL2/h/8evL33rQSJCWG6FZGmzboG5G6rByBTae8RasAsWRPO564DYjsUq83ATtmPkduqCA== X-Received: by 2002:a05:620a:254a:: with SMTP id s10mr3893969qko.654.1639802089036; Fri, 17 Dec 2021 20:34:49 -0800 (PST) Received: from hurd ([207.35.95.41]) by smtp.gmail.com with ESMTPSA id n20sm6029435qkp.65.2021.12.17.20.34.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 20:34:48 -0800 (PST) From: Maxim Cournoyer References: <87k0g3fl7c.fsf@lprndn.info> Date: Fri, 17 Dec 2021 23:34:47 -0500 In-Reply-To: (Maxime Devos's message of "Fri, 17 Dec 2021 21:40:17 +0000") Message-ID: <87r1aa4jko.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 52574@debbugs.gnu.org, L p R n d n Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639802144; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aNL56/0UcpzqXpqjdZgRAPmwMQ51hSsaF7FL1VjLW7w=; b=N77kMRkVXZJRZ/SSuyjhLUVQ2umQBMp6+zWqow/I35H4yYoyu/u9HzMbglr1ydjxk9BvPY 5z+basbBbMox3FiPZf1XxKyEG2bijmuTXmTb4I9DtrsuxmbRKlpy4izQVoARGMWWFzZ51H 2AMH/7V++WtOZnW+EoUc7yyVpp93MW6iIbl7pLggKdCgkRujGxCP823BARyJNrlfZNuGc7 b2/PCtB5EHFGFdH27r+Xq6stKgNJWJ5VfE54L06M8PAt9MINY1Eqawb5YF5MU7N21w+/G9 aEUzBMC7sVbTYGMF1U1AlBlNQ7OparhAySf0G9p1xcY4rxb3otQpJtxP3/aC0A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639802144; a=rsa-sha256; cv=none; b=tlO4kYZPmN+RIVasr+0R/VINUFKmnvphICYooM1Z/4crQpeP9esQVecKFRmY/nAVwsdNhV Sc1O91Xz1YiPN/UJ1rsMO9qUxiZij78xqgv4TRrGk2z2/k68EKZwgNoS4ymXkBudJA8YPt RcKeekQgxU2bGQ3uA5ab+8hFgMwdkgIYNFqwNsYmENDqRGC9bV06ToqXaBzD8GK11rpyTr Dg/guMTmw3u8HfEMZbZHSuXc+IrZqZLZIW73YSiGJ37o/ZRnx9tCjdbPItBaHQg0+UXI9u xWYOuQZKAESUAf7+JzLFGwvd5VDfcuZa20+pqXLZqD4yEZR3ztLXrnk+OujncQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=YozHBLTT; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.20 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=YozHBLTT; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4784F368B7 X-Spam-Score: -3.20 X-Migadu-Scanner: scn0.migadu.com X-TUID: YSm02Be8+X+J Maxime Devos writes: > L p R n d n schreef op vr 17-12-2021 om 12:51 [+0000]: >>=20 >> Hello guix, >>=20 >> Trying to cross-compile glib to aarch64with: >>=20 >> guix build --target=3Daarch64-linux-gnu glib >>=20 >> I get this error: >>=20 >> `Unbound variable: %outputs >>=20 >> I suppose the glib=E2=80=99s definition needs to be adapted to Guix=E2= =80=99s new >> style >> which was merged a few days ago? >>=20 > > Actually, glib's build system (meson-build-system) did not support > cross-compilation at all before the merge. Cross-compilation support > was added on that branch, but glib's package broke later, presumably in > . > > The fix would be to replace to wrap the configure flags in a #~, > instead of a =C2=B4,replace (assoc-ref %outputs "bin") by #$output:bin and > adjust the configure flags of glib-with-documentation to use #~ and #$ > instead of =C2=B4 and ,. > > To avoid rebuilds, some > (if (%current-target-system) #~#$output:bin #~(assoc-ref %outputs > "bin")) > may be needed. Thanks for the hints. I'm trying the following fix on my (local for now) version-1.4.0 branch: --8<---------------cut here---------------start------------->8--- modified gnu/packages/glib.scm @@ -212,12 +212,11 @@ (define glib `(,(this-package-native-input "python") ,(this-package-native-input "python-wrapper"))) '())) - #:configure-flags (list "--default-library=3Dboth" - "-Dman=3Dfalse" - "-Dselinux=3Ddisabled" - (string-append "--bindir=3D" - (assoc-ref %outputs "bin") - "/bin")) + #:configure-flags #~(list "--default-library=3Dboth" + "-Dman=3Dfalse" + "-Dselinux=3Ddisabled" + (string-append "--bindir=3D" + #$output:bin "/bin")) #:phases (modify-phases %standard-phases ;; Needed to pass the test phase on slower ARM and i686 machines. @@ -365,8 +364,8 @@ (define-public glib-with-documentation (arguments (substitute-keyword-arguments (package-arguments glib) ((#:configure-flags flags ''()) - `(cons "-Dgtk_doc=3Dtrue" - (delete "-Dman=3Dfalse" ,flags))) + #~(cons "-Dgtk_doc=3Dtrue" + (delete "-Dman=3Dfalse" #$flags))) ((#:phases phases) `(modify-phases ,phases (add-after 'unpack 'patch-docbook-xml --8<---------------cut here---------------end--------------->8--- Thanks, Maxim