Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pylibfdt for openSUSE:Factory
checked in at 2026-11-19 16:54:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pylibfdt (Old)
and /work/SRC/openSUSE:Factory/.python-pylibfdt.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pylibfdt"
Thu Nov 19 16:54:51 2026 rev:5 rq:1398533 version:1.7.2.post2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pylibfdt/python-pylibfdt.changes
2025-08-15 21:54:02.157048703 +0200
+++
/work/SRC/openSUSE:Factory/.python-pylibfdt.new.1251/python-pylibfdt.changes
2026-11-19 16:55:13.038043129 +0100
@@ -1,0 +2,8 @@
+Thu Nov 19 01:29:23 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Update to 1.7.2.post2:
+ * No changelog.
+- Add patch replace-python-2-swig-macros.patch:
+ * Replace removed SWIG 4.5 Python 2 macros in libfdt.i
+
+-------------------------------------------------------------------
Old:
----
pylibfdt-1.7.2.post1.tar.gz
New:
----
pylibfdt-1.7.2.post2.tar.gz
replace-python-2-swig-macros.patch
----------(New B)----------
New: * No changelog.
- Add patch replace-python-2-swig-macros.patch:
* Replace removed SWIG 4.5 Python 2 macros in libfdt.i
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pylibfdt.spec ++++++
--- /var/tmp/diff_new_pack.etIc41/_old 2026-11-19 16:55:14.034085349 +0100
+++ /var/tmp/diff_new_pack.etIc41/_new 2026-11-19 16:55:14.035085392 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pylibfdt
#
-# Copyright (c) 2025 SUSE LLC and contributors
+# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,12 +17,14 @@
Name: python-pylibfdt
-Version: 1.7.2.post1
+Version: 1.7.2.post2
Release: 0
Summary: Python binding for libfdt
License: BSD-2-Clause AND GPL-2.0-only
URL: https://pypi.org/project/pylibfdt/
Source:
https://files.pythonhosted.org/packages/source/p/pylibfdt/pylibfdt-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM Based on gh#dgibson/dtc@5008d1d
+Patch0: replace-python-2-swig-macros.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
@@ -40,7 +42,7 @@
Python binding part.
%prep
-%setup -q -n pylibfdt-%{version}
+%autosetup -p1 -n pylibfdt-%{version}
%build
%pyproject_wheel
++++++ pylibfdt-1.7.2.post1.tar.gz -> pylibfdt-1.7.2.post2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pylibfdt-1.7.2.post1/PKG-INFO
new/pylibfdt-1.7.2.post2/PKG-INFO
--- old/pylibfdt-1.7.2.post1/PKG-INFO 2025-04-09 14:59:43.774351100 +0200
+++ new/pylibfdt-1.7.2.post2/PKG-INFO 2026-09-01 02:16:02.569635000 +0200
@@ -1,6 +1,6 @@
-Metadata-Version: 2.2
+Metadata-Version: 2.4
Name: pylibfdt
-Version: 1.7.2.post1
+Version: 1.7.2.post2
Summary: Python binding for libfdt
Author: Simon Glass <[email protected]>
Description-Content-Type: text/plain
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pylibfdt-1.7.2.post1/libfdt/libfdt.py
new/pylibfdt-1.7.2.post2/libfdt/libfdt.py
--- old/pylibfdt-1.7.2.post1/libfdt/libfdt.py 2025-04-09 14:45:08.000000000
+0200
+++ new/pylibfdt-1.7.2.post2/libfdt/libfdt.py 2026-09-01 02:10:58.000000000
+0200
@@ -1,12 +1,12 @@
# This file was automatically generated by SWIG (https://www.swig.org).
-# Version 4.3.0
+# Version 4.4.1
#
# Do not make changes to this file unless you know what you are doing - modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
# Import the low-level C/C++ module
-if __package__ or "." in __name__:
+if getattr(globals().get("__spec__"), "parent", None) or __package__ or "." in
__name__:
from . import _libfdt
else:
import _libfdt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pylibfdt-1.7.2.post1/libfdt/pylibfdt.egg-info/PKG-INFO
new/pylibfdt-1.7.2.post2/libfdt/pylibfdt.egg-info/PKG-INFO
--- old/pylibfdt-1.7.2.post1/libfdt/pylibfdt.egg-info/PKG-INFO 2025-04-09
14:59:43.000000000 +0200
+++ new/pylibfdt-1.7.2.post2/libfdt/pylibfdt.egg-info/PKG-INFO 2026-09-01
02:16:02.000000000 +0200
@@ -1,6 +1,6 @@
-Metadata-Version: 2.2
+Metadata-Version: 2.4
Name: pylibfdt
-Version: 1.7.2.post1
+Version: 1.7.2.post2
Summary: Python binding for libfdt
Author: Simon Glass <[email protected]>
Description-Content-Type: text/plain
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pylibfdt-1.7.2.post1/libfdt/pylibfdt.egg-info/SOURCES.txt
new/pylibfdt-1.7.2.post2/libfdt/pylibfdt.egg-info/SOURCES.txt
--- old/pylibfdt-1.7.2.post1/libfdt/pylibfdt.egg-info/SOURCES.txt
2025-04-09 14:59:43.000000000 +0200
+++ new/pylibfdt-1.7.2.post2/libfdt/pylibfdt.egg-info/SOURCES.txt
2026-09-01 02:16:02.000000000 +0200
@@ -25,4 +25,6 @@
libfdt/pylibfdt.egg-info/PKG-INFO
libfdt/pylibfdt.egg-info/SOURCES.txt
libfdt/pylibfdt.egg-info/dependency_links.txt
+libfdt/pylibfdt.egg-info/scm_file_list.json
+libfdt/pylibfdt.egg-info/scm_version.json
libfdt/pylibfdt.egg-info/top_level.txt
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pylibfdt-1.7.2.post1/libfdt/pylibfdt.egg-info/scm_file_list.json
new/pylibfdt-1.7.2.post2/libfdt/pylibfdt.egg-info/scm_file_list.json
--- old/pylibfdt-1.7.2.post1/libfdt/pylibfdt.egg-info/scm_file_list.json
1970-01-01 01:00:00.000000000 +0100
+++ new/pylibfdt-1.7.2.post2/libfdt/pylibfdt.egg-info/scm_file_list.json
2026-09-01 02:16:02.000000000 +0200
@@ -0,0 +1,29 @@
+{
+ "files": [
+ ".gitignore",
+ "BSD-2-Clause",
+ "GPL",
+ "MANIFEST.in",
+ "README",
+ "dtc-sync.sh",
+ "libfdt/.gitignore",
+ "libfdt/fdt.c",
+ "libfdt/fdt.h",
+ "libfdt/fdt_addresses.c",
+ "libfdt/fdt_check.c",
+ "libfdt/fdt_empty_tree.c",
+ "libfdt/fdt_overlay.c",
+ "libfdt/fdt_ro.c",
+ "libfdt/fdt_rw.c",
+ "libfdt/fdt_strerror.c",
+ "libfdt/fdt_sw.c",
+ "libfdt/fdt_wip.c",
+ "libfdt/libfdt.h",
+ "libfdt/libfdt.i",
+ "libfdt/libfdt_env.h",
+ "libfdt/libfdt_internal.h",
+ "pyproject.toml",
+ "sbom.cdx.json",
+ "setup.py"
+ ]
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pylibfdt-1.7.2.post1/libfdt/pylibfdt.egg-info/scm_version.json
new/pylibfdt-1.7.2.post2/libfdt/pylibfdt.egg-info/scm_version.json
--- old/pylibfdt-1.7.2.post1/libfdt/pylibfdt.egg-info/scm_version.json
1970-01-01 01:00:00.000000000 +0100
+++ new/pylibfdt-1.7.2.post2/libfdt/pylibfdt.egg-info/scm_version.json
2026-09-01 02:16:02.000000000 +0200
@@ -0,0 +1,8 @@
+{
+ "tag": "1.7.2.post2",
+ "distance": 0,
+ "node": "gf48b96548e2d8baef79ae2d5a2a2f8de3382260f",
+ "dirty": false,
+ "branch": "pin-swig",
+ "node_date": "2026-09-01"
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pylibfdt-1.7.2.post1/pyproject.toml
new/pylibfdt-1.7.2.post2/pyproject.toml
--- old/pylibfdt-1.7.2.post1/pyproject.toml 2024-09-16 21:40:40.000000000
+0200
+++ new/pylibfdt-1.7.2.post2/pyproject.toml 2026-09-01 02:10:17.000000000
+0200
@@ -1,3 +1,3 @@
[build-system]
-requires = ["setuptools","setuptools_scm","swig"]
+requires = ["setuptools","setuptools_scm","swig==4.4.*"]
build-backend = "setuptools.build_meta"
++++++ replace-python-2-swig-macros.patch ++++++
>From 5008d1d6a356b8d0a78060da2e1021507d529cff Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <[email protected]>
Date: Wed, 29 Jul 2026 07:55:56 +0200
Subject: [PATCH] pylibfdt: Replace removed SWIG Python 2 compatibility macros
SWIG 4.5.0 removed Python 2 compatibility macros (PyInt_*, PyString_*)
from its runtime header pyhead.swg (see commit 79f7a2b7cb7d). Replace
them with their Python 3 C API equivalents:
- PyString_FromString -> PyUnicode_FromString
- PyString_AsString -> PyBytes_AsString
- PyInt_AsLong -> PyLong_AsLong
The replacements are safe since the macros were already aliased to
these exact functions in SWIG's Python 3 code path.
Signed-off-by: Jitka Plesnikova <[email protected]>
Signed-off-by: Peter Robinson <[email protected]>
Signed-off-by: David Gibson <[email protected]>
---
pylibfdt/libfdt.i | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pylibfdt/libfdt.i b/pylibfdt/libfdt.i
index 1f9c0471..b1cb9873 100644
--- a/libfdt/libfdt.i
+++ b/libfdt/libfdt.i
@@ -1136,7 +1136,7 @@ typedef uint32_t fdt32_t;
PyObject *buff;
if ($1) {
- resultobj = PyString_FromString(
+ resultobj = PyUnicode_FromString(
fdt_string(fdt1, fdt32_to_cpu($1->nameoff)));
buff = PyByteArray_FromStringAndSize(
(const char *)($1 + 1), fdt32_to_cpu($1->len));
@@ -1169,13 +1169,13 @@ typedef uint32_t fdt32_t;
}
$1 = PyBytes_AsString($input);
%#else
- $1 = PyString_AsString($input); /* char *str */
+ $1 = PyBytes_AsString($input); /* char *str */
%#endif
}
/* typemaps used for fdt_next_node() */
%typemap(in, numinputs=1) int *depth (int depth) {
- depth = (int) PyInt_AsLong($input);
+ depth = (int) PyLong_AsLong($input);
$1 = &depth;
}