From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GCSOA2T7LWFAogAAgWs5BA (envelope-from ) for ; Tue, 31 Aug 2021 11:50:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6CymOmP7LWHqSQAAB5/wlQ (envelope-from ) for ; Tue, 31 Aug 2021 09:50:27 +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 920901ABAA for ; Tue, 31 Aug 2021 11:50:27 +0200 (CEST) Received: from localhost ([::1]:55500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mL0PS-00061i-LM for larch@yhetil.org; Tue, 31 Aug 2021 05:50:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mL0P5-00061Q-6a for guix-patches@gnu.org; Tue, 31 Aug 2021 05:50:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49758) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mL0P4-0001n5-VP for guix-patches@gnu.org; Tue, 31 Aug 2021 05:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mL0P4-0002YC-Td for guix-patches@gnu.org; Tue, 31 Aug 2021 05:50:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50201] [PATCH core-updates-frozen 0/52] Support cross-compilation in glib-or-gtk-build-system and fix cross-compilation errors Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 31 Aug 2021 09:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50201 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: 50201@debbugs.gnu.org Received: via spool by 50201-submit@debbugs.gnu.org id=B50201.16304034009792 (code B ref 50201); Tue, 31 Aug 2021 09:50:02 +0000 Received: (at 50201) by debbugs.gnu.org; 31 Aug 2021 09:50:00 +0000 Received: from localhost ([127.0.0.1]:33071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mL0P2-0002Xs-5Y for submit@debbugs.gnu.org; Tue, 31 Aug 2021 05:50:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mL0Oz-0002Xe-I2 for 50201@debbugs.gnu.org; Tue, 31 Aug 2021 05:49:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57168) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mL0Ou-0001du-43; Tue, 31 Aug 2021 05:49:52 -0400 Received: from [2a01:e0a:19b:d9a0:f2f7:a404:c3d3:f8b4] (port=37374 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mL0Ot-00087D-0A; Tue, 31 Aug 2021 05:49:52 -0400 From: Mathieu Othacehe References: <20210825180332.5720-1-maximedevos@telenet.be> <20210825180332.5720-17-maximedevos@telenet.be> <87sfyr9jff.fsf_-_@gnu.org> <8b124a24c7ffc56efcb0b44b064bce0ff0085123.camel@telenet.be> Date: Tue, 31 Aug 2021 11:49:49 +0200 In-Reply-To: <8b124a24c7ffc56efcb0b44b064bce0ff0085123.camel@telenet.be> (Maxime Devos's message of "Mon, 30 Aug 2021 18:45:48 +0200") Message-ID: <87r1ea54g2.fsf@gnu.org> 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630403427; 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; bh=IhOmoJ4QIvdtJJ8tFMA6WBp4NN20ZLodraFAHUcWpSQ=; b=MTfmEICz8yh/kbjpO6HuDupmyzSPl+MC4us5xjdYGDCeOu3HjN8oykItXPJIZocpQYt7yV CnM+0hOLgYEUaGOnWthRIcxUA7QHu+23kQVX6Tz7SggDtsGSmCsaH6TuRb4n3DryqqmiER cETh9kHaMkgFdndaVJQZhqopyxxWrpD23ELvMwMvsQVDAMhLlugkUvva8GP87cPrKf4nAg u3/goQNpZ5cnoNbLF5147F86I8ls4wA0n6smdBA9DR/JKmNwLcHSKurABxY+eYFjebGhKL NhfOJA/Pfz7FRn9b/sWOdrvPWXez/Fz5LzhMH7yaZAhcX1nKGejDwXxomlKsoQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630403427; a=rsa-sha256; cv=none; b=R+K4HnoAT9HWE/7RsM/8lkNxfP+sG+WVA/Uyz7zBV9BrMtvFMUz8WgewBffMq5m5NrXqXL 10LLfKe557UwE+kqcc6T7ocaUSEyn9HR8dcaDdBDLsiH8bif8EzHbGHeIwNDlfmHugFk9Y XRbbxqzq2a209C4oDzoXK8KhpGX0FgfRZKIeS5zfbbkGVwSk7aVKB+lOMSaEBRocVGOwbe 0LbSdGkzK+P98ag+U4bW+RAfyYsZjXhDXzqsIXBHPpmzGdZmGEQQFLlBRrP8RQB31toYWr 0VT5diz/ZE6fxFq3XG0iRpE0PZL3DmUdA4vLg0rQoeSlOBR/SoTGRG/ZcUz4Vw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 920901ABAA X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: P0db8oztCeKW Hey, Thanks for investigating it. > One =E2=80=98solution=E2=80=99 is to run g-ir-scanner under QEMU: > . That isn't really cross-co= mpilation > though, but emulated compilation, so it won't work with the Hurd. > Might be good enough for cross-compiling between Linux targets though ... Yes, looks like some projects such as Yocto[1] and Void[2] are also using this solution. Requiring transparent emulating through QEMU while cross-compiling will for sure make the process more complex. Restricting this support to architectures that can be emulated by QEMU is also an important limitation. > (*) One solution would be to copy it over anyway and substitute things(**= *) where needed, > and re-generate the typelib data. That seems rather prone to mistake= s though, > so maybe we should then hash the adjusted introspection data and comp= are the hash > to the hash of what we now the introspection data must be (**). This is a very interesting idea, I'm not familiar with this introspection mechanism an couldn't judge how hard the substitution would be. Maybe we could bring this topic upstream, to see what's their opinion about it. That's a whole new topic anyway, that shouldn't block the current patchset we are discussing. Thanks, Mathieu [1]: https://www.openembedded.org/pipermail/openembedded-core/2015-November= /113390.html [2]: https://voidlinux.org/news/2019/02/cross-gobject.html