From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YKh8AvIMwGFsFwAAgWs5BA (envelope-from ) for ; Mon, 20 Dec 2021 05:56:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wNHeOfEMwGEjQAAAB5/wlQ (envelope-from ) for ; Mon, 20 Dec 2021 04:56:17 +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 C52432E849 for ; Mon, 20 Dec 2021 05:56:17 +0100 (CET) Received: from localhost ([::1]:55530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mzAie-0007BE-G7 for larch@yhetil.org; Sun, 19 Dec 2021 23:56:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzAiQ-0007AJ-35 for bug-guix@gnu.org; Sun, 19 Dec 2021 23:56:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37138) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mzAiP-0007mz-PJ for bug-guix@gnu.org; Sun, 19 Dec 2021 23:56:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mzAiP-0003pe-Ow for bug-guix@gnu.org; Sun, 19 Dec 2021 23:56: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: Mon, 20 Dec 2021 04:56: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 52574-submit@debbugs.gnu.org id=B52574.163997614914711 (code B ref 52574); Mon, 20 Dec 2021 04:56:01 +0000 Received: (at 52574) by debbugs.gnu.org; 20 Dec 2021 04:55:49 +0000 Received: from localhost ([127.0.0.1]:48684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzAiD-0003pC-Cj for submit@debbugs.gnu.org; Sun, 19 Dec 2021 23:55:49 -0500 Received: from mail-qt1-f170.google.com ([209.85.160.170]:38900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzAiB-0003oz-Ja for 52574@debbugs.gnu.org; Sun, 19 Dec 2021 23:55:48 -0500 Received: by mail-qt1-f170.google.com with SMTP id 8so8715599qtx.5 for <52574@debbugs.gnu.org>; Sun, 19 Dec 2021 20:55:47 -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=E2p325gQEfgn134RNYGE/7xOvfrhOBTeVMy5POTzS9U=; b=DzfMh9fqkeBJOlhsg7GP1TNVbGxo1J0sOfCT3kpgJ4LXRdkEXjjanpshEZ7U/Ncu5f a6zPK4NotY1EomouXe1gaC8lNIVjuMKdm3cgZEFkq+6+LPcb4UKSo9djW2gQjJfQh4F7 PVZUDEsRB1YYWvqVICn7aviOEKNnHYrp7fBeSpXRrd2EpzBNjtg9Y1T3FJuv+bAV7ywP lxDrljZ9yjFHmMAcUbZqMM3NDgv598hG5+wL1CsuG85cnDf7THouC6JeVkp1vGNQ75BI U07wkXnxY0SPFHq9MFqriMTFAtW+A2mZQ+wyi42+RHsBK4i/jXVQrB4vprzXGQLm/59R /3ng== 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=E2p325gQEfgn134RNYGE/7xOvfrhOBTeVMy5POTzS9U=; b=V3lCOyo9jg983rI7etIwo+wQAl+AV/nXjg/y02wyvTEDFGh2rbJhS2pl78cYV5RW15 EJQpO0RkktE54e/01z8fd2HOsLPrPfU9kzQm0A045UrAeYEr+ASj/U7NUpVIfTnFSXCP gGItqQaLULJuRiF1BroMDevi5hLnn8JO8vHD5xAlBJX7FISW9ToQe17AsoEShm8oXpde 32XW06ScoKcqYOqXKVW2qbARMO5BDivTUqGfbWjXdSdnVgzxMkaCb/m9+G4UwYVjchlu uhtgVuIM5ZwcTIvfz6LofC/4rjg2Mr+68vFMdFQzV6qRmi3t7ZX0mqJaDDlsPOo7Duyn DVwQ== X-Gm-Message-State: AOAM53304hIxjeFh4b1A0soWRgDfZ+5yRY2UF9viTHRUDfNfAkg5bYDK eCUF/MhFWX7ncR+uD5dhUnQ= X-Google-Smtp-Source: ABdhPJxjkGunXu8v2FVlhVrW9mqPPWsvyBvHHXAObFa1jv/RTZkkNVhhBMnbieOyRvgIfMFb2MMeDA== X-Received: by 2002:ac8:5ad1:: with SMTP id d17mr11022631qtd.23.1639976142018; Sun, 19 Dec 2021 20:55:42 -0800 (PST) Received: from hurd (dsl-10-133-19.b2b2c.ca. [72.10.133.19]) by smtp.gmail.com with ESMTPSA id bs7sm10444965qkb.79.2021.12.19.20.55.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Dec 2021 20:55:41 -0800 (PST) From: Maxim Cournoyer References: <87k0g3fl7c.fsf@lprndn.info> <87sfuomefw.fsf@gnu.org> Date: Sun, 19 Dec 2021 23:55:40 -0500 In-Reply-To: <87sfuomefw.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sun, 19 Dec 2021 23:12:51 +0100") Message-ID: <87fsqn3mer.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=1639976177; 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=E2p325gQEfgn134RNYGE/7xOvfrhOBTeVMy5POTzS9U=; b=ubPl+DHA10Mi79VjO0dUgRuqsyAsn4ikb+LQTCc3XbEMOgpfZtqsT+9Wqm9T65s51R8gsB uUyQhQWJ2oF+A4Lhi8EtoihiPLRyYiKAdEz2tBIam6OFCrhGjCzeE4Hwl9C0Gs5eFfSWJ/ XSZBXWRPSTtgtynoIINaWkddIwXO8MWv+5OQP1EkrgjlstAkIN0H62UT3A0vIBmdbNvWZ0 ly/N9W0gKsHyHjrY1Fr5w93gyDe1yCgNvI8O8YggY5aagq3h2kZWr3SbSgS2yXF9Ri47YS yMj/PMWYoEn4q4EapOSJu2hWYyHNFXjMocUkEuXEAMh80U9Ryh12seg1urHjbA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639976177; a=rsa-sha256; cv=none; b=kggEwor/+tdQDNjxzGTJXXVRMtaz9CVuENxT0qiNaMF9wDXXPSRt/vLC8ahNZvpfoHTuel 9tCFxz1UPgQ0WpcrtLo4Ahf4YNUSAyQY0rOrQGMpBHMrogFZWpRYO7TdHV36xzO8kY8mRj BWWiQOzo+MljWvQZ+eqGGDUeFK1M47YEuw585NdsoNIg2X5QAawSUy0frxy4OXMs9BN8EH h5N7H8Kk45EmZ8VXK4kVxeMWsjacKwcQXfnFrRnLNQg+ThbFY3t6KG2/cP6U2iUzP5fieB QKPMokncSkcHgw9PuaLezTr1zicjGHghAdblnbuoyO+d9jA3N30nfHLapf+5GQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=DzfMh9fq; 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: -2.72 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=DzfMh9fq; 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: C52432E849 X-Spam-Score: -2.72 X-Migadu-Scanner: scn0.migadu.com X-TUID: LIE1/peLF/Ru Hi, Ludovic Court=C3=A8s writes: > Hi, > > Maxime Devos skribis: > >> 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 a= nd >> 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. > > In the case of =E2=80=98meson-build-system=E2=80=99, the logical fix IMO = would be to > define =E2=80=98%build-inputs=E2=80=98, =E2=80=98%outputs=E2=80=99, etc. = when cross-compiling, with the > patch below. > > This would be consistent with the fact that =E2=80=98meson-build-system= =E2=80=99 defines > those variables for native builds already. > > Thoughts? > > Longer-term we can move away from =E2=80=98%outputs=E2=80=99, =E2=80=98%b= uild-inputs=E2=80=99, & co., > but that=E2=80=99s another story. Seems the proper fix; I'm just wondering; could there be other build systems that were overlooked needing the same fix? If so, we should fix them now too.