From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id g8AhHQXH7mCTAAAAgWs5BA (envelope-from ) for ; Wed, 14 Jul 2021 13:14:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yGsiGAXH7mArNQAAbx9fmQ (envelope-from ) for ; Wed, 14 Jul 2021 11:14:13 +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 15AC9139A6 for ; Wed, 14 Jul 2021 13:14:13 +0200 (CEST) Received: from localhost ([::1]:45518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3cqC-0000vU-11 for larch@yhetil.org; Wed, 14 Jul 2021 07:14:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3cq3-0000u5-GU for guix-patches@gnu.org; Wed, 14 Jul 2021 07:14:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59874) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3cq3-0000wM-3G for guix-patches@gnu.org; Wed, 14 Jul 2021 07:14:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m3cq2-0001PL-VZ for guix-patches@gnu.org; Wed, 14 Jul 2021 07:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49025] [PATCH v6 00/22] Support cross-compilation with meson References: <419215938396207999184dafa43afaed6d7a0715.camel@telenet.be> In-Reply-To: <419215938396207999184dafa43afaed6d7a0715.camel@telenet.be> Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 14 Jul 2021 11:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49025 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49025@debbugs.gnu.org Cc: Mathieu Othacehe , Maxime Devos Received: via spool by 49025-submit@debbugs.gnu.org id=B49025.16262612035136 (code B ref 49025); Wed, 14 Jul 2021 11:14:02 +0000 Received: (at 49025) by debbugs.gnu.org; 14 Jul 2021 11:13:23 +0000 Received: from localhost ([127.0.0.1]:43117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3cpO-0001KW-Lq for submit@debbugs.gnu.org; Wed, 14 Jul 2021 07:13:23 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:39776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3cpL-0001Jc-JK for 49025@debbugs.gnu.org; Wed, 14 Jul 2021 07:13:21 -0400 Received: from localhost.localdomain ([188.188.219.228]) by andre.telenet-ops.be with bizsmtp id UzDG2500W4wFxCU01zDHEW; Wed, 14 Jul 2021 13:13:18 +0200 From: Maxime Devos Date: Wed, 14 Jul 2021 13:12:45 +0200 Message-Id: <20210714111307.19324-1-maximedevos@telenet.be> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1626261198; bh=q4b0dgmyY5kQfPcLnGOq/U1SXqMu5FBziUq0EX6qhyA=; h=From:To:Cc:Subject:Date; b=rnqIH37YElbqMgPhdhQlJICStghKa23IN8jMI/21lYh24U7yIa4Y6U7R4IfEEoZw7 o7EIZ/hrX/f+db8QxjFXmo60nKfPI/Xmn0laerHzzMch/uxBqoF4GFrAAKTHUUaeUS eGIy1jMOTaCd96MUsPYfuNN0FXrNuLWi1r1dGPrOHU5Iqdnk6kIscPzxanU7jqfIYK qYxNcCIP7aZhY2pnSCUZUzR/Q3IvfnHtWihYka1ikMxx73eWJLs6S7Q0289e2elpRC +GJhjjzc6hGrs8gEfwxMpwFGSHzlyzzQ+oKt+Y8I/nFxv4U6QLtyDvj/jPkseE2FP1 LSSKtMYiUKaCA== 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=1626261253; 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=q4b0dgmyY5kQfPcLnGOq/U1SXqMu5FBziUq0EX6qhyA=; b=HoTvmYgsD4BV6A1yAZ5YwsDmKxfqCczcP9gVWPEMvVE0auJRXUUMEI3UWP/8L+QpQA/7+3 hhaGM/p06ihulnoQZrnfZ4dwx9mT6Fh3m7vIY8OJ8FjZlaN+Wo5+EwP0NqiGm+eQZGKZdq CGQZKY55h6a587SorziI5cVWtzn7neZjlefQXF73nS9P1YBOWcS0N97lm7KYaSQ0EoKkQZ p5bw0NGjPRZu+AkBkYY5fdGNlPmmDuJzArB9NaHlYEmpQsc7R8IKyeo8B7ybzDn3PrbUYU slKm40T2n4TKQRglGCaqjRqh30fkiPFozWL0IrzmsH6h3xIVwT2gbKhFoVDlFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626261253; a=rsa-sha256; cv=none; b=Vy9I7C7ffOZzy2g/bPvG5XmOeF61Zs9hFH3k7MtUmxZZjF5v8j1PAXps+EisieiA0WDV/N x8OdxQyNTGXw0vC33HwcmUzHFOMA/3BfXqOFQ6xM/YSs41nulGfkFtSd85bRnEfDpPBqSA HMG7qLpfQxiuRH3GrDpXyaKqtJ2m6AeNcRQbFonRfJe/0MpL8ft9CPSH57OpP9BDw7NC3w nXmHIrDFVDOyCRRAeHa6QZ6CqgSwljrXZIfGzjo6nJJ7urCPaXlAVt0P2AELHXhxiKDl+v iubV4bqWvoRbKkCQramRm0lemDlCKhnXEgiTH/BER3uVKbE73Q60NT18Tifskw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=rnqIH37Y; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=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: -0.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=rnqIH37Y; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=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-Queue-Id: 15AC9139A6 X-Spam-Score: -0.30 X-Migadu-Scanner: scn1.migadu.com X-TUID: UrjT2QbBWgmh The following changes were made since the v5: * The 'configuration-port' parameter has been eliminated * #:target and #:build is set in meson-cross-build, such that 'TARGET-strip' is used instead of 'strip' * #:dynamic-linker-cache? is set to to #f in meson-cross-build, as in gnu-cross-build * 'make-machine-alist' now supports 'arm-linux-gnueabihf'. * 'make-machine-alist' now has a generic fallback fake ‘CPU type’. Apparently, meson doesn't care what the value is and most software doesn't. Now powerpc64le-linux-gnu is supported (tested with qemu) and also mips64le is supported (untested). All supported cross targets should now be supported by meson. * the new target-...? proedures always return booleans * added some docstrings * target-hurd? is moved to (guix utils) Maxime Devos (22): utils: Define 'target-linux?' predicate. utils: Define 'target-hurd?' predicate. utils: Give 'target-mingw?' a docstring. utils: Define a target-x86-32? and target-x86-64? predicate. packages: Define this-package-input and this-package-native-input. net-base: Don't cross-compile. tzdata: Don't bother with cross-compiling. libgpg-error: Remove trailing #f from phases. libgpg-error: Prevent silent miscompilation some systems. libgpg-error: Fix cross-compilation error. python: Fix reference to input when cross-compiling. openssl: Remove trailing #t from phases. openssl: Make the #:phases argument a G-expression. openssl: Use G-exp machinery for referring to outputs. openssl: Move documentation instead of copying and deleting it. openssl: Move all man pages to separate output, not only man3. openssl: Extract logic for computing CONFIGURE_TARGET_ARCH. glib: Use a correct python in scripts when cross-compiling. glib: Verify the cross-compiled python is used in installed scripts. glib: Look up "tzdata" in 'native-inputs', not 'inputs'. libelf: Update configure script and config.guess and config.sub. build-system/meson: Support cross-compilation. Makefile.am | 1 + gnu/packages/admin.scm | 5 + gnu/packages/base.scm | 9 ++ gnu/packages/bdw-gc.scm | 4 +- gnu/packages/cross-base.scm | 6 +- gnu/packages/elf.scm | 44 +++--- gnu/packages/glib.scm | 34 ++++- gnu/packages/gnupg.scm | 48 ++++--- gnu/packages/hurd.scm | 10 +- gnu/packages/make-bootstrap.scm | 2 +- gnu/packages/python.scm | 5 +- gnu/packages/tls.scm | 136 ++++++++++--------- guix/build-system/meson.scm | 209 ++++++++++++++++++++++++++--- guix/build/meson-configuration.scm | 56 ++++++++ guix/packages.scm | 29 ++++ guix/utils.scm | 38 ++++++ tests/packages.scm | 34 +++++ tests/utils.scm | 40 ++++++ 18 files changed, 575 insertions(+), 135 deletions(-) create mode 100644 guix/build/meson-configuration.scm -- 2.32.0