From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cJX8EcbdGGS4UQEASxT56A (envelope-from ) for ; Mon, 20 Mar 2023 23:27:18 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QC7QEcbdGGQTLgEAauVa8A (envelope-from ) for ; Mon, 20 Mar 2023 23:27:18 +0100 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 aspmx2.migadu.com (Postfix) with ESMTPS id E24893980C for ; Mon, 20 Mar 2023 23:27:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peNy4-0000Xz-W2; Mon, 20 Mar 2023 18:27:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peNy2-0000Xa-FR for guix-patches@gnu.org; Mon, 20 Mar 2023 18:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1peNy2-0000Wd-4o for guix-patches@gnu.org; Mon, 20 Mar 2023 18:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peNy2-0007rE-0p for guix-patches@gnu.org; Mon, 20 Mar 2023 18:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62309] [PATCH core-updates 2/2] u-boot: Fix build under Python 3.10. Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 20 Mar 2023 22:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62309 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Josselin Poiret , 62309@debbugs.gnu.org Received: via spool by 62309-submit@debbugs.gnu.org id=B62309.167935120830177 (code B ref 62309); Mon, 20 Mar 2023 22:27:01 +0000 Received: (at 62309) by debbugs.gnu.org; 20 Mar 2023 22:26:48 +0000 Received: from localhost ([127.0.0.1]:57089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peNxn-0007qf-Pe for submit@debbugs.gnu.org; Mon, 20 Mar 2023 18:26:48 -0400 Received: from jpoiret.xyz ([206.189.101.64]:49088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peNxi-0007qK-UM for 62309@debbugs.gnu.org; Mon, 20 Mar 2023 18:26:46 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 1E325185317; Mon, 20 Mar 2023 22:26:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1679351201; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4L9q0bG/iJL8EYBgRaHWW3os0DvdWFOZNPR1mLop+Qg=; b=OXXQDTLYPnBwEkLmWwjChmTxqoz2tQ7Qz96hiYeXDISCICGMPTScwYvz0LSCkHpERuaxqk +ndxVjgo+egFxfsoMoj84rpSbgpe5+SQbrFZi1EB+3x4SALYsSmMdRsS1V+ObJvOGpbZOs an36esWD1+MQzdo6kKog3J872VziLQl1oXV54C85n/xU+VnHE9FRzXJC/xRVWm9WVf9yxU /0Pglt59Y9aRJ1SbNSZwzwbp6x29/W8gwDE9oipay9QenmAv8h4o7jnqFQdM0+8q8558XS zPy4oUGhO1LZRJ/Wm2dw9mBolBtAWC5d4Xfgn/GzUp9b1gPTIiU3NSCejhjc4w== Date: Mon, 20 Mar 2023 23:26:37 +0100 Message-Id: <63a067a83bcb04fae466b42c818abef4859dfffc.1679350685.git.dev@jpoiret.xyz> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: / 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: , Reply-to: Josselin Poiret X-ACL-Warn: , Josselin Poiret via Guix-patches From: Josselin Poiret via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679351237; a=rsa-sha256; cv=none; b=AcOLq1ELF+zHkN6/eZvu0/eRGtV4nsauhNgQqO6h8rLvz03716594tS9vjsttURVpZ3JUM 9EaXjO3qmgv0vzjxZUyTRaROYKxXC7XwuEZ2XXigNR8hoqV4n/tH3L/3ymM88swD9EDSQH kFkv5yUKfPB5Dnj+n2mxDNGsLFFsbxq6aZMrVIKcO2Cdixp0o8pxyNyVgKSs2Reg2q+4N+ 9k+4DAq/OaP5sVU2wvYteqDVHgGyIh6EETZ20mCGU8IQNlEB7oZctP3L20gLSZV7lNIGHJ ORdFe0djfTqy39bV6+sarOluR3mRoOjHdV/q0pwkNpPs8w1jEYc+FN26Dq6Ofg== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=OXXQDTLY; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679351237; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: 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=4L9q0bG/iJL8EYBgRaHWW3os0DvdWFOZNPR1mLop+Qg=; b=t72dD/9Da2p3fhSxzL6B9he9VpOVmpmqmCoet367ExbsPHP1qUKJN/leSBnp/grmuGRiPJ 7GVI8m92F+LhKe8TMn1q0tAi2XTT8kL1P3cNlfvjnwF8mkMdaTnrzaAEDkHgBeXYaEqUap evDnZkTOeOPohvCii2dOv5FmFXkeSgAUuRFfbD7Qacg2rMQe8B1+AGykSIPJ061PbcHTW3 eHSeD6WzFoTwoTmx1+h2+gD5rWZSh8mVuvCZuNYjdzxy1SO+E4hhuQt1EOHZoNCi/UEdcY 34nlj/ZzfgVFlfGoNRpGhoIL0Ze0Lvx/VKluhhMinLy2R8vAlfWjGZRh2UZLvg== X-Migadu-Spam-Score: -2.25 X-Spam-Score: -2.25 X-Migadu-Queue-Id: E24893980C Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=OXXQDTLY; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn1.migadu.com X-TUID: EzBi00B3XCB+ * gnu/packages/patches/u-boot-fix-build-python-3.10.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/bootloaders.scm (u-boot): Apply patch. --- gnu/local.mk | 1 + gnu/packages/bootloaders.scm | 3 ++ .../u-boot-fix-build-python-3.10.patch | 35 +++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 gnu/packages/patches/u-boot-fix-build-python-3.10.patch diff --git a/gnu/local.mk b/gnu/local.mk index 058b23c683..20bf2bea77 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1936,6 +1936,7 @@ dist_patch_DATA = \ %D%/packages/patches/tuxpaint-stamps-path.patch \ %D%/packages/patches/twinkle-bcg729.patch \ %D%/packages/patches/u-boot-allow-disabling-openssl.patch \ + %D%/packages/patches/u-boot-fix-build-python-3.10.patch \ %D%/packages/patches/u-boot-infodocs-target.patch \ %D%/packages/patches/u-boot-patman-guix-integration.patch \ %D%/packages/patches/u-boot-nintendo-nes-serial.patch \ diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm index ac269807be..457f3b3994 100644 --- a/gnu/packages/bootloaders.scm +++ b/gnu/packages/bootloaders.scm @@ -655,6 +655,9 @@ (define u-boot %u-boot-allow-disabling-openssl-patch %u-boot-sifive-prevent-relocating-initrd-fdt %u-boot-rk3399-enable-emmc-phy-patch + ;; FIXME The following patch is backported from 2023.01, + ;; remove when updating. + (search-patch "u-boot-fix-build-python-3.10.patch") (search-patch "u-boot-infodocs-target.patch") (search-patch "u-boot-patman-guix-integration.patch"))) (method url-fetch) diff --git a/gnu/packages/patches/u-boot-fix-build-python-3.10.patch b/gnu/packages/patches/u-boot-fix-build-python-3.10.patch new file mode 100644 index 0000000000..27c03f92f4 --- /dev/null +++ b/gnu/packages/patches/u-boot-fix-build-python-3.10.patch @@ -0,0 +1,35 @@ +From 7d01bb1c5a1daef0187c9ea276bde19a8d0e7fde Mon Sep 17 00:00:00 2001 +From: Michal Suchanek +Date: Thu, 13 Oct 2022 22:43:41 +0200 +Subject: [PATCH] libfdt: Fix build with python 3.10 + +Python 3.10 requires defining PY_SSIZE_T_CLEAN. This will be fixed in +swig 4.10 but it is not clear when it will be released. There was a +warning since python 3.8. + +Link: https://github.com/swig/swig/pull/2277 + +Signed-off-by: Michal Suchanek +Reviewed-by: Simon Glass +--- + scripts/dtc/pylibfdt/libfdt.i_shipped | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/scripts/dtc/pylibfdt/libfdt.i_shipped b/scripts/dtc/pylibfdt/libfdt.i_shipped +index 27c29ea260..56cc5d48f4 100644 +--- a/scripts/dtc/pylibfdt/libfdt.i_shipped ++++ b/scripts/dtc/pylibfdt/libfdt.i_shipped +@@ -7,6 +7,10 @@ + + %module libfdt + ++%begin %{ ++#define PY_SSIZE_T_CLEAN ++%} ++ + %include + + %{ +-- +GitLab + -- 2.39.2