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 QLedLnl7x2D4aQAAgWs5BA (envelope-from ) for ; Mon, 14 Jun 2021 17:53:29 +0200 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 4JcrKnl7x2DdLgAAB5/wlQ (envelope-from ) for ; Mon, 14 Jun 2021 15:53:29 +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 34B8026208 for ; Mon, 14 Jun 2021 17:53:29 +0200 (CEST) Received: from localhost ([::1]:44900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsou0-0002HT-6e for larch@yhetil.org; Mon, 14 Jun 2021 11:53:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsoh0-0006ja-Rv for guix-patches@gnu.org; Mon, 14 Jun 2021 11:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36106) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lsoh0-0008LT-GZ for guix-patches@gnu.org; Mon, 14 Jun 2021 11:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lsoh0-0004MO-Cl for guix-patches@gnu.org; Mon, 14 Jun 2021 11:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49025] [PATCH core-updates 30/37] glib: Verify the cross-compiled python is used in installed scripts. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 14 Jun 2021 15:40: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 Received: via spool by 49025-submit@debbugs.gnu.org id=B49025.162368514616635 (code B ref 49025); Mon, 14 Jun 2021 15:40:02 +0000 Received: (at 49025) by debbugs.gnu.org; 14 Jun 2021 15:39:06 +0000 Received: from localhost ([127.0.0.1]:47626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsog6-0004KA-CU for submit@debbugs.gnu.org; Mon, 14 Jun 2021 11:39:06 -0400 Received: from michel.telenet-ops.be ([195.130.137.88]:41494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsog5-0004AR-0a for 49025@debbugs.gnu.org; Mon, 14 Jun 2021 11:39:05 -0400 Received: from butterfly.local ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by michel.telenet-ops.be with bizsmtp id H3f42500b0mfAB4063f48W; Mon, 14 Jun 2021 17:39:04 +0200 Message-ID: <5e7f30def92fa5a6403df07ca2f2f2e0434b6679.camel@telenet.be> From: Maxime Devos Date: Mon, 14 Jun 2021 17:39:04 +0200 In-Reply-To: References: Content-Type: multipart/mixed; boundary="=-htIa/mOHt1rgD2wJaMcw" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1623685144; bh=ZU3ezvbLj96kkByIv7FSVytM9buN8I0jjvsF//5h2gI=; h=Subject:From:To:Date:In-Reply-To:References; b=ULHSb2pq37bP0mquCTR6oBB2yyEg2wRPV/F06hMqyXTBud/oKe2YoZxTO8zsPTa5Z DdnFgn4PsimzgZskcKsMkU7V2zoUKQIjZhUT3myIF3xZmgM3B8VABldPKXz4Qynh+X nrKfUZwZXwrw9Uei02Co1AWD1D4DBEmGykTSAvpCqr48H+uKr587mSvTuD6/E/wEgM N/NfYawss1/xxk5hU75DN87MMYwirGXIag9cR7urpUiB7czurA7RdsdjPMcDk1niLp G62k5QW3whENfh2ctfRRCN7QTT6/AjPBmews93JHap9uyiE/3xj5o7mOmA0Mvifrrg 8zHzZUyc7UNtw== 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=1623686009; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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=ZU3ezvbLj96kkByIv7FSVytM9buN8I0jjvsF//5h2gI=; b=dDTcuqdSoTtsEeS10a57gfmtQz3jCmJAUj4AVWZDQewGkMOWnGNCD1QYfkyXABZGsZP3J8 O7bb5LS+GERKgDB2Sk7d4yqLpQ1zs5he+zUjspitjOkXveXYnprctYAt+vKq1U6vbB/9ZR rggMb5Csp4n+ZsKz5roKb4GHyILhAmkhUenXEdisYgLegoi+EbiNYB2mtGViTSceifLYeN 6BAc5COamJo9HzLLYd27ZV0T479jz+K9lUUJ4L1ZfaFn0zg9ZyDmeujHbuBAKULWT/4MJV CFCrFJqqcKw+hxTzCQtJ+STI7GpxHQMUTBKUEIafZZ4RpROvckg2HCh/YAA4OQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623686009; a=rsa-sha256; cv=none; b=cw4QFB0HmAee7sF8WCZzgS8phFyVs6AgwBvxWVVFjcdRxvbMz4QdCPo2aYlkx6kGAaBIlw P2x+hFSmNbDeTKMObUAImxqyXt4D19V04EiynLl1Prl32XtyAUbEW7jZnBzWtPiZdcz6Lk fTl3zePggF/mWD6ks3ICUS47N0azxLIGmcUDPFLMQZJuvfN4RLbrD7GqVLQ4jjDblyeYa+ zGV+LP5ly0EFOpDOjAzaalYgCrEuiE9N78hnCl3iW3yJDZCb309GNQGhLXEU1JHN3r0e/4 FliZE2WEUz0OnE6lFNzr1mV7LB+YhoKPeAccRvmVf4IXiH4ilp50aUyA9PBGaA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=ULHSb2pq; 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: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=ULHSb2pq; 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: 34B8026208 X-Spam-Score: -1.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: RC76/Ru34iVe --=-htIa/mOHt1rgD2wJaMcw Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit * gnu/packages/glib.scm (glib)[arguments]<#:disallowed-references>: Disallow the native python when cross-compiling. --- gnu/packages/glib.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) --=-htIa/mOHt1rgD2wJaMcw Content-Disposition: attachment; filename="0030-glib-Verify-the-cross-compiled-python-is-used-in-ins.patch" Content-Transfer-Encoding: 7bit Content-Type: text/x-patch; name="0030-glib-Verify-the-cross-compiled-python-is-used-in-ins.patch"; charset="us-ascii" diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm index 25c5ae494b..244544ea6f 100644 --- a/gnu/packages/glib.scm +++ b/gnu/packages/glib.scm @@ -77,6 +77,8 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix utils) + #:use-module (guix gexp) + #:use-module (srfi srfi-26) #:use-module ((srfi srfi-1) #:hide (zip)) ;; Export variables up-front to allow circular dependency with the 'xorg' @@ -200,7 +202,15 @@ shared NFS home directories.") (outputs '("out" ; everything "bin")) ; glib-mkenums, gtester, etc.; depends on Python (arguments - `(#:disallowed-references (,tzdata-for-tests) + `(#:disallowed-references + (,tzdata-for-tests + ;; Verify glib-mkenums, gtester, ... use the cross-compiled + ;; python. + ,@(if (%current-target-system) + (map (cut gexp-input <> #:native? #t) + `(,(this-package-native-input "python") + ,(this-package-native-input "python-wrapper"))) + '())) #:configure-flags '("-Dman=true" "-Dselinux=disabled") #:phases --=-htIa/mOHt1rgD2wJaMcw--