all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 27c03f92f4ecc797b8fb81e19e47c8bce5f9b422 930 bytes (raw)
name: gnu/packages/patches/u-boot-fix-build-python-3.10.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
From 7d01bb1c5a1daef0187c9ea276bde19a8d0e7fde Mon Sep 17 00:00:00 2001
From: Michal Suchanek <msuchanek@suse.de>
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 <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
 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 <stdint.i>
 
 %{
-- 
GitLab


debug log:

solving 27c03f92f4 ...
found 27c03f92f4 in https://yhetil.org/guix/63a067a83bcb04fae466b42c818abef4859dfffc.1679350685.git.dev@jpoiret.xyz/ ||
	https://yhetil.org/guix/1896443a4ab3038fdbd1077a625178eeae1f737b.1679389017.git.dev@jpoiret.xyz/

applying [1/1] https://yhetil.org/guix/63a067a83bcb04fae466b42c818abef4859dfffc.1679350685.git.dev@jpoiret.xyz/
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

1:29: trailing whitespace.
 
1:31: trailing whitespace.
 
1:37: trailing whitespace.
 
1:39: trailing whitespace.
-- 
Checking patch gnu/packages/patches/u-boot-fix-build-python-3.10.patch...
1:41: new blank line at EOF.
+
Applied patch gnu/packages/patches/u-boot-fix-build-python-3.10.patch cleanly.
warning: 5 lines add whitespace errors.

skipping https://yhetil.org/guix/1896443a4ab3038fdbd1077a625178eeae1f737b.1679389017.git.dev@jpoiret.xyz/ for 27c03f92f4
index at:
100644 27c03f92f4ecc797b8fb81e19e47c8bce5f9b422	gnu/packages/patches/u-boot-fix-build-python-3.10.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.