package/{, lib}apparmor: bump to version 4.1.8
PATCH 1/7 package/{, lib}apparmor: bump to version 4.1.8
https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_4.1.8
https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_4.1.7
https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_4.1.6
https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_4.1.5
https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_4.1.4
https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_4.1.3
https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_4.1.2
Switched tarballs to bz2.
---
Gitlab pipelines specific for apparmor passed:
https://gitlab.com/bkuhls/buildroot/-/commits/442dab9ea2ad370bfdfb530e84e748908d87fb8c
This bump fixes build errors with the upcoming bump of swig to 4.5.1.
package/apparmor/apparmor.hash | 4 ++-- package/apparmor/apparmor.mk | 4 ++-- package/libapparmor/libapparmor.hash | 4 ++-- package/libapparmor/libapparmor.mk | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-)
package/apparmor/apparmor.hash +2 -2
@@ -1,5 +1,5 @@ -# From https://gitlab.com/apparmor/apparmor/-/releases/v4.1.1 -sha256 f125aae32964e4e84443fec005f37f37abd5164f30620239c42864655a1b0281 apparmor-v4.1.1.tar.gz +# From https://gitlab.com/apparmor/apparmor/-/releases/v4.1.8 +sha256 e5b61bdda754ce55091d390094bdc9eaa7e5c60ae24e75cea18f51c288afa65d apparmor-v4.1.8.tar.bz2 # locally computed sha256 a7e0cdcbea5c14927cedfc600d46526bdcbb1eb0a4d951e2ea53c2a6de159cb4 LICENSE
package/apparmor/apparmor.mk +2 -2
@@ -6,8 +6,8 @@ # When updating the version here, please also update the libapparmor package APPARMOR_VERSION_MAJOR = 4.1 -APPARMOR_VERSION = $(APPARMOR_VERSION_MAJOR).1 -APPARMOR_SOURCE = apparmor-v$(APPARMOR_VERSION).tar.gz +APPARMOR_VERSION = $(APPARMOR_VERSION_MAJOR).8 +APPARMOR_SOURCE = apparmor-v$(APPARMOR_VERSION).tar.bz2 APPARMOR_SITE = https://gitlab.com/apparmor/apparmor/-/archive/v$(APPARMOR_VERSION) APPARMOR_DL_SUBDIR = apparmor APPARMOR_LICENSE = GPL-2.0
package/libapparmor/libapparmor.hash +2 -2
@@ -1,5 +1,5 @@ -# From https://gitlab.com/apparmor/apparmor/-/releases/v4.1.1 -sha256 f125aae32964e4e84443fec005f37f37abd5164f30620239c42864655a1b0281 apparmor-v4.1.1.tar.gz +# From https://gitlab.com/apparmor/apparmor/-/releases/v4.1.8 +sha256 e5b61bdda754ce55091d390094bdc9eaa7e5c60ae24e75cea18f51c288afa65d apparmor-v4.1.8.tar.bz2 # locally computed sha256 a7e0cdcbea5c14927cedfc600d46526bdcbb1eb0a4d951e2ea53c2a6de159cb4 LICENSE
package/libapparmor/libapparmor.mk +2 -2
@@ -6,8 +6,8 @@ # When updating the version here, please also update the apparmor package LIBAPPARMOR_VERSION_MAJOR = 4.1 -LIBAPPARMOR_VERSION = $(LIBAPPARMOR_VERSION_MAJOR).1 -LIBAPPARMOR_SOURCE = apparmor-v$(LIBAPPARMOR_VERSION).tar.gz +LIBAPPARMOR_VERSION = $(LIBAPPARMOR_VERSION_MAJOR).8 +LIBAPPARMOR_SOURCE = apparmor-v$(LIBAPPARMOR_VERSION).tar.bz2 LIBAPPARMOR_SITE = https://gitlab.com/apparmor/apparmor/-/archive/v$(LIBAPPARMOR_VERSION) LIBAPPARMOR_LICENSE = LGPL-2.1 LIBAPPARMOR_LICENSE_FILES = LICENSE libraries/libapparmor/COPYING.LGPL
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/7 package/libselinux: fix build with swig >= 4.5.0
--- ...ce-PyString_FromString-with-PyUnicod.patch | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 package/libselinux/0003-libselinux-Replace-PyString_FromString-with-PyUnicod.patch
package/libselinux/0003-libselinux-Replace-PyString_FromString-with-PyUnicod.patch new file +60 -0
@@ -0,0 +1,60 @@ +From fb518ff492cd6a286f35b415cbd7fd0f6e3faedb Mon Sep 17 00:00:00 2001 +From: Petr Lautrbach <[email protected]> +Date: Thu, 6 Aug 2026 16:30:44 +0200 +Subject: [PATCH] libselinux: Replace PyString_FromString with + PyUnicode_FromString for SWIG 4.5.0 compatibility +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +SWIG 4.5.0 removed Python 2 C API compatibility macros (PyInt_*, +PyString_*, SWIG_Python_str_*) from its runtime header pyhead.swg. +These macros previously mapped deprecated Python 2 C API names to their +Python 3 equivalents. + +Fixes: https://github.com/SELinuxProject/selinux/issues/538 +Authored-by: Jitka Plesníková <[email protected]> +Signed-off-by: Petr Lautrbach <[email protected]> +Acked-by: Stephen Smalley <[email protected]> + +Upstream: https://github.com/SELinuxProject/selinux/commit/fb518ff492cd6a286f35b415cbd7fd0f6e3faedb + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + src/selinuxswig_python.i | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/selinuxswig_python.i b/src/selinuxswig_python.i +index c8c08a40..74d923e4 100644 +--- a/src/selinuxswig_python.i ++++ b/src/selinuxswig_python.i +@@ -69,7 +69,7 @@ def install(src, dest): + PyObject* list = PyList_New(*$2); + int i; + for (i = 0; i < *$2; i++) { +- PyList_SetItem(list, i, PyString_FromString((*$1)[i])); ++ PyList_SetItem(list, i, PyUnicode_FromString((*$1)[i])); + } + $result = SWIG_AppendOutput($result, list); + } +@@ -123,7 +123,7 @@ def install(src, dest): + len++; + plist = PyList_New(len); + for (i = 0; i < len; i++) { +- PyList_SetItem(plist, i, PyString_FromString((*$1)[i])); ++ PyList_SetItem(plist, i, PyUnicode_FromString((*$1)[i])); + } + } else { + plist = PyList_New(0); +@@ -140,7 +140,7 @@ def install(src, dest): + if (*$1) { + plist = PyList_New(result); + for (i = 0; i < result; i++) { +- PyList_SetItem(plist, i, PyString_FromString((*$1)[i])); ++ PyList_SetItem(plist, i, PyUnicode_FromString((*$1)[i])); + } + } else { + plist = PyList_New(0); +-- +2.47.3 +
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/7] package/libselinux: fix build with swig >= 4.5.0
Am 05.09.26 um 14:20 schrieb Bernd Kuhls:
Quoted 24 lines
Signed-off-by Bernd Kuhls <[email protected]>--- ...ce-PyString_FromString-with-PyUnicod.patch | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+)create mode 100644
package/libselinux/0003-libselinux-Replace-PyString_FromString-with-PyUnicod.patchpackage/libselinux/0003-libselinux-Replace-PyString_FromString-with-PyUnicod.patch new file +12
-0@@ -0,0 +1,60 @@ +From fb518ff492cd6a286f35b415cbd7fd0f6e3faedb Mon Sep 17 00:00:00 2001 +From: Petr Lautrbach <[email protected]> +Date: Thu, 6 Aug 2026 16:30:44 +0200 +Subject: [PATCH] libselinux: Replace PyString_FromString with + PyUnicode_FromString for SWIG 4.5.0 compatibility +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +SWIG 4.5.0 removed Python 2 C API compatibility macros (PyInt_*, +PyString_*, SWIG_Python_str_*) from its runtime header pyhead.swg. +These macros previously mapped deprecated Python 2 C API names to their
package/libselinux/0003-libselinux-Replace-PyString_FromString-with-PyUnicod.patch line 22
Quoted 10 lines
package/libselinux/0003-libselinux-Replace-PyString_FromString-with-PyUnicod.patch new file +10
-0+Python 3 equivalents. + +Fixes: https://github.com/SELinuxProject/selinux/issues/538 +Authored-by: Jitka Plesníková <[email protected]> +Signed-off-by: Petr Lautrbach <[email protected]> +Acked-by: Stephen Smalley <[email protected]> + +Upstream: https://github.com/SELinuxProject/selinux/commit/fb518ff492cd6a286f35b415cbd7fd0f6e3faedb + +Signed-off-by: Bernd Kuhls <[email protected]>
Works with and without the swig bump.
Best regards,
Fiona
Quoted 28 lines
package/libselinux/0003-libselinux-Replace-PyString_FromString-with-PyUnicod.patch new file +28
-0+--- + src/selinuxswig_python.i | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/selinuxswig_python.i b/src/selinuxswig_python.i +index c8c08a40..74d923e4 100644 +--- a/src/selinuxswig_python.i ++++ b/src/selinuxswig_python.i +@@ -69,7 +69,7 @@ def install(src, dest): + PyObject* list = PyList_New(*$2); + int i; + for (i = 0; i < *$2; i++) { +- PyList_SetItem(list, i, PyString_FromString((*$1)[i])); ++ PyList_SetItem(list, i, PyUnicode_FromString((*$1)[i])); + } + $result = SWIG_AppendOutput($result, list); + } +@@ -123,7 +123,7 @@ def install(src, dest): + len++; + plist = PyList_New(len); + for (i = 0; i < len; i++) { +- PyList_SetItem(plist, i, PyString_FromString((*$1)[i])); ++ PyList_SetItem(plist, i, PyUnicode_FromString((*$1)[i])); + } + } else { + plist = PyList_New(0); +@@ -140,7 +140,7 @@ def install(src, dest): + if (*$1) {
package/libselinux/0003-libselinux-Replace-PyString_FromString-with-PyUnicod.patch line 60
Quoted 10 lines
package/libselinux/0003-libselinux-Replace-PyString_FromString-with-PyUnicod.patch new file +10
-0+ plist = PyList_New(result); + for (i = 0; i < result; i++) { +- PyList_SetItem(plist, i, PyString_FromString((*$1)[i])); ++ PyList_SetItem(plist, i, PyUnicode_FromString((*$1)[i])); + } + } else { + plist = PyList_New(0); +-- +2.47.3 +
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/7 package/libcec: fix build with swig >= 4.5.0
In reply to Bernd KuhlsPatch 0002 fixes the build with swig >= 4.5.0.
Patch 0001 is needed to cleanly apply patch 0002.
--- ...DeviceLanguage-accepts-3-char-ISO-co.patch | 66 ++++++++++++++++ ...Python-wrapper-against-SWIG-4.5-whic.patch | 78 +++++++++++++++++++ 2 files changed, 144 insertions(+) create mode 100644 package/libcec/0001-fixed-Python-strDeviceLanguage-accepts-3-char-ISO-co.patch create mode 100644 package/libcec/0002-fixed-build-the-Python-wrapper-against-SWIG-4.5-whic.patch
package/libcec/0001-fixed-Python-strDeviceLanguage-accepts-3-char-ISO-co.patch new file +66 -0
@@ -0,0 +1,66 @@ +From f53490e23037f17b68043f5e1ff2f4378d227d56 Mon Sep 17 00:00:00 2001 +From: Lars Op den Kamp <[email protected]> +Date: Mon, 13 Jul 2026 15:24:27 +0200 +Subject: [PATCH] fixed: Python strDeviceLanguage accepts 3-char ISO codes + (SWIG char[3] typemap) + +The SWIG default char[ANY] setter uses SWIG_AsCharArray, which reserves a +byte for a NUL terminator. strDeviceLanguage is a raw, non-terminated +char[3] holding a 3-character ISO 639-2 code, so a valid 3-char value needs +4 bytes and overflowed the buffer, raising a TypeError; only 2-char codes +fit. Add member-name-scoped in/memberin typemaps that copy the raw bytes +(str or bytes) so 3-char codes assign correctly. Scoped by name so the +NUL-terminated strDeviceName keeps the default behaviour. + +Upstream: https://github.com/Pulse-Eight/libcec/commit/f53490e23037f17b68043f5e1ff2f4378d227d56 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + src/libcec/libcec.i | 31 +++++++++++++++++++++++++++++++ + 1 file changed, 31 insertions(+) + +diff --git a/src/libcec/libcec.i b/src/libcec/libcec.i +index a01f9afc..520ff7af 100644 +--- a/src/libcec/libcec.i ++++ b/src/libcec/libcec.i +@@ -15,6 +15,37 @@ + $result = PyString_FromString($1.name); + } + ++/////// libcec_configuration::strDeviceLanguage /////// ++// strDeviceLanguage is a raw, fixed-size char[3] that is NOT NUL-terminated (a ++// 3-character ISO 639-2 code). SWIG's default char[ANY] setter reserves a byte ++// for a terminator, so a valid 3-char code needs 4 bytes and overflows the ++// buffer, raising a TypeError; only 2-char codes fit. Copy the raw bytes ++// instead (accepting str or bytes), scoped to this member by name so the ++// NUL-terminated strDeviceName keeps the default behaviour. ++%typemap(in) char strDeviceLanguage[ANY] (char temp[$1_dim0]) { ++ char *cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ; ++ int res = SWIG_AsCharPtrAndSize($input, &cptr, &csize, &alloc); ++ if (!SWIG_IsOK(res)) { ++ %argument_fail(res, "char [$1_dim0]", $symname, $argnum); ++ } ++ { ++ /* csize counts the trailing NUL; strDeviceLanguage stores no terminator */ ++ size_t slen = (csize > 0) ? csize - 1 : 0; ++ if (slen > (size_t)($1_dim0)) { ++ if (alloc == SWIG_NEWOBJ) %delete_array(cptr); ++ %argument_fail(SWIG_ValueError, "char [$1_dim0]", $symname, $argnum); ++ } ++ memset(temp, 0, $1_dim0); ++ if (slen) memcpy(temp, cptr, slen); ++ } ++ $1 = temp; ++ if (alloc == SWIG_NEWOBJ) %delete_array(cptr); ++} ++ ++%typemap(memberin) char strDeviceLanguage[ANY] { ++ memcpy($1, $input, $1_dim0 * sizeof(char)); ++} ++ + /////// replace operator[]() /////// + + // CEC::cec_datapacket::operator[]() +-- +2.47.3 +
package/libcec/0002-fixed-build-the-Python-wrapper-against-SWIG-4.5-whic.patch new file +78 -0
78 lines not on this page · raw message
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 4/7 package/libftdi1: fix build with swig >= 4.5.0
In reply to Bernd Kuhls--- .../0001-python-update-for-SWIG-4.5.patch | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 package/libftdi1/0001-python-update-for-SWIG-4.5.patch
package/libftdi1/0001-python-update-for-SWIG-4.5.patch new file +48 -0
@@ -0,0 +1,48 @@ +From 6c965463223ea46d0b7ae22586cadc150f719f84 Mon Sep 17 00:00:00 2001 +From: Jitka Plesnikova <[email protected]> +Date: Tue, 11 Aug 2026 13:55:58 +0200 +Subject: [PATCH] python: update for SWIG 4.5 + +SWIG 4.5.0 removed Python 2 compatibility macros (PyInt_, PyString_, SWIG_Python_str_*) +from its runtime header pyhead.swg (see commit [1]). These macros mapped old Python 2 +C API names to their Python 3 equivalents. Packages that reference them in custom SWIG +typemaps or pre-generated wrapper code now fail to compile. + +This patch replaces all occurrences with the corresponding Python 3 C API functions. +The replacements are safe since the macros were already aliased to these exact functions +in SWIG's Python 3 code path. + +[1] https://github.com/swig/swig/commit/79f7a2b7cb7ddc256eba09c8770133148025171d + +Upstream: http://developer.intra2net.com/mailarchive/html/libftdi/2026/msg00012.html + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + python/ftdi1.i | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/python/ftdi1.i b/python/ftdi1.i +index fac4d16..31e17c6 100644 +--- a/python/ftdi1.i ++++ b/python/ftdi1.i +@@ -91,7 +91,7 @@ char * str2charp_size(PyObject* pyObj, int * size) + "read_data(context) -> (return_code, buf)" + %enddef + %feature("autodoc", ftdi_read_data_docstring) ftdi_read_data; +-%typemap(in,numinputs=1) (unsigned char *buf, int size) %{ $2 = PyInt_AsLong($input);$1 = (unsigned char*)malloc($2*sizeof(char)); %} ++%typemap(in,numinputs=1) (unsigned char *buf, int size) %{ $2 = PyLong_AsLong($input);$1 = (unsigned char*)malloc($2*sizeof(char)); %} + %typemap(argout,noblock=1) (unsigned char *buf, int size) { + if(result<0) + $2=0; +@@ -136,7 +136,7 @@ char * str2charp_size(PyObject* pyObj, int * size) + int ftdi_get_eeprom_value(struct ftdi_context *ftdi, enum ftdi_eeprom_value value_name, int* value); + %clear int* value; + +-%typemap(in,numinputs=1) (unsigned char *buf, int size) %{ $2 = PyInt_AsLong($input);$1 = (unsigned char*)malloc($2*sizeof(char)); %} ++%typemap(in,numinputs=1) (unsigned char *buf, int size) %{ $2 = PyLong_AsLong($input);$1 = (unsigned char*)malloc($2*sizeof(char)); %} + %typemap(argout,noblock=1) (unsigned char *buf, int size) { + if(result<0) + $2=0; +-- +2.55.0 +
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 4/7] package/libftdi1: fix build with swig >= 4.5.0
Quoted 2 lines · Bernd Kuhls
Signed-off-by Bernd Kuhls <[email protected]>
Quoted 60 lines
--- .../0001-python-update-for-SWIG-4.5.patch | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 package/libftdi1/0001-python-update-for-SWIG-4.5.patchpackage/libftdi1/0001-python-update-for-SWIG-4.5.patch new file +48
-1@@ -0,0 +1,48 @@ +From 6c965463223ea46d0b7ae22586cadc150f719f84 Mon Sep 17 00:00:00 2001 +From: Jitka Plesnikova <[email protected]> +Date: Tue, 11 Aug 2026 13:55:58 +0200 +Subject: [PATCH] python: update for SWIG 4.5 + +SWIG 4.5.0 removed Python 2 compatibility macros (PyInt_, PyString_, SWIG_Python_str_*) +from its runtime header pyhead.swg (see commit [1]). These macros mapped old Python 2 +C API names to their Python 3 equivalents. Packages that reference them in custom SWIG +typemaps or pre-generated wrapper code now fail to compile. + +This patch replaces all occurrences with the corresponding Python 3 C API functions. +The replacements are safe since the macros were already aliased to these exact functions +in SWIG's Python 3 code path. + +[1] https://github.com/swig/swig/commit/79f7a2b7cb7ddc256eba09c8770133148025171d + +Upstream: http://developer.intra2net.com/mailarchive/html/libftdi/2026/msg00012.html + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + python/ftdi1.i | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/python/ftdi1.i b/python/ftdi1.i +index fac4d16..31e17c6 100644 +--- a/python/ftdi1.i ++++ b/python/ftdi1.i +@@ -91,7 +91,7 @@ char * str2charp_size(PyObject* pyObj, int * size) + "read_data(context) -> (return_code, buf)" + %enddef + %feature("autodoc", ftdi_read_data_docstring) ftdi_read_data; +-%typemap(in,numinputs=1) (unsigned char *buf, int size) %{ $2 = PyInt_AsLong($input);$1 = (unsigned char*)malloc($2*sizeof(char)); %} ++%typemap(in,numinputs=1) (unsigned char *buf, int size) %{ $2 = PyLong_AsLong($input);$1 = (unsigned char*)malloc($2*sizeof(char)); %} + %typemap(argout,noblock=1) (unsigned char *buf, int size) { + if(result<0) + $2=0; +@@ -136,7 +136,7 @@ char * str2charp_size(PyObject* pyObj, int * size) + int ftdi_get_eeprom_value(struct ftdi_context *ftdi, enum ftdi_eeprom_value value_name, int* value); + %clear int* value; + +-%typemap(in,numinputs=1) (unsigned char *buf, int size) %{ $2 = PyInt_AsLong($input);$1 = (unsigned char*)malloc($2*sizeof(char)); %} ++%typemap(in,numinputs=1) (unsigned char *buf, int size) %{ $2 = PyLong_AsLong($input);$1 = (unsigned char*)malloc($2*sizeof(char)); %} + %typemap(argout,noblock=1) (unsigned char *buf, int size) { + if(result<0) + $2=0; +-- +2.55.0 + --
Quoted 2 lines
2.47.3
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 5/7 package/python-pylibfdt: fix build with swig >= 4.5.0
In reply to Bernd Kuhls--- ...e-removed-SWIG-Python-2-compatibilit.patch | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 package/python-pylibfdt/0001-pylibfdt-Replace-removed-SWIG-Python-2-compatibilit.patch
package/python-pylibfdt/0001-pylibfdt-Replace-removed-SWIG-Python-2-compatibilit.patch new file +59 -0
@@ -0,0 +1,59 @@ +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]> + +Upstream: https://github.com/dgibson/dtc/commit/5008d1d6a356b8d0a78060da2e1021507d529cff + +python-pylibfdt imports tagged dtc versions and currently waits for a +new dtc release: https://github.com/devicetree-org/pylibfdt/pull/10 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + libfdt/libfdt.i | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/libfdt/libfdt.i b/libfdt/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; + } +
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 6/7 package/trace-cmd: fix build with swig >= 4.5.0
In reply to Bernd Kuhls--- ...Python-2-C-API-macros-for-SWIG-4.5.0.patch | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package/trace-cmd/0001-Replace-removed-Python-2-C-API-macros-for-SWIG-4.5.0.patch
package/trace-cmd/0001-Replace-removed-Python-2-C-API-macros-for-SWIG-4.5.0.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 797a541398bbbd55a29ac22ca3fc7271d6627aa5 Mon Sep 17 00:00:00 2001 +From: Jitka Plesnikova <[email protected]> +Date: Sat, 5 Sep 2026 09:34:04 +0200 +Subject: [PATCH] Replace removed Python 2 C API macros for SWIG 4.5.0 + compatibility + +Downloaded from Fedora: +https://src.fedoraproject.org/rpms/trace-cmd/c/eff667a072e69238efc469775585b1b30c056187 + +Upstream: https://bugzilla.kernel.org/show_bug.cgi?id=221966 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + python/ctracecmd.i | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/python/ctracecmd.i b/python/ctracecmd.i +index 38564601..2525309e 100644 +--- a/python/ctracecmd.i ++++ b/python/ctracecmd.i +@@ -218,7 +218,7 @@ static int python_callback(struct trace_seq *s, + result = PyObject_Call(context, arglist, NULL); + Py_XDECREF(arglist); + if (result && result != Py_None) { +- if (!PyInt_Check(result)) { ++ if (!PyLong_Check(result)) { + PyErr_SetString(PyExc_TypeError, + "callback must return int"); + PyErr_Print(); +-- +2.47.3 +
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 7/7 package/swig: bump version to 4.5.1
In reply to Bernd Kuhlshttps://www.swig.org/Release/RELEASENOTES
Added upstream sha1 & sha256 hashes.
Switched _SITE to https.
---
Series passed Gitlab pipelines:
https://gitlab.com/bkuhls/buildroot/-/commits/3a1e018bd92f929d1acc1882742820bbefe06800
with the exception of bootlin-x86-64-uclibc
https://gitlab.com/bkuhls/buildroot/-/jobs/16323077584
where libselinux caused an unrelated build error also caught by the autobuilders:
https://autobuild.buildroot.net/results/684/684a779841c26499f2b28f74edf183c73d12773b/
and the exception of bootlin-powerpc-e500mc-uclibc
https://gitlab.com/bkuhls/buildroot/-/jobs/16323077582
where sdl2 caused an unrelated build error also caught by the autobuilders:
https://autobuild.buildroot.net/results/968/968608bfd41d40ecec3c2cf9544cdcfd1693da3f/
package/swig/swig.hash | 4 +++- package/swig/swig.mk | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-)
package/swig/swig.hash +3 -1
@@ -1,5 +1,7 @@ +# From https://sourceforge.net/projects/swig/files/swig/swig-4.5.1 +sha1 fab5ee9e27b703ea964e55abca585567ebac9bcf swig-4.5.1.tar.gz +sha256 7fec50b27deddab5455a9633780b6341eddfb96215a7619e93a76eb27178f653 swig-4.5.1.tar.gz # Locally computed: -sha256 2af08aced8fcd65cdb5cc62426768914bedc735b1c250325203716f78e39ac9b swig-4.1.1.tar.gz sha256 f53abaeed775018d519a1b9615f0ca17894772bd9ca21c2a156bf340ac41c13e LICENSE sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSE-GPL sha256 7f50d942373a871211c5efee03f3db2f9efd1cff1002b0ef8e3748baa611a5c2 LICENSE-UNIVERSITIES
package/swig/swig.mk +2 -2
@@ -4,9 +4,9 @@ # ################################################################################ -SWIG_VERSION_MAJOR = 4.1 +SWIG_VERSION_MAJOR = 4.5 SWIG_VERSION = $(SWIG_VERSION_MAJOR).1 -SWIG_SITE = http://downloads.sourceforge.net/project/swig/swig/swig-$(SWIG_VERSION) +SWIG_SITE = https://downloads.sourceforge.net/project/swig/swig/swig-$(SWIG_VERSION) HOST_SWIG_DEPENDENCIES = host-bison host-pcre2 HOST_SWIG_CONF_OPTS = \ --with-pcre \
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 7/7] package/swig: bump version to 4.5.1
Quoted 8 lines · Bernd Kuhls
https://www.swig.org/Release/RELEASENOTES
Added upstream sha1 & sha256 hashes.
Switched
_SITEto https.Signed-off-by Bernd Kuhls <[email protected]>
Quoted 50 lines
---
Series passed Gitlab pipelines:
https://gitlab.com/bkuhls/buildroot/-/commits/3a1e018bd92f929d1acc1882742820bbefe06800with the exception of bootlin-x86-64-uclibc
https://gitlab.com/bkuhls/buildroot/-/jobs/16323077584
where libselinux caused an unrelated build error also caught by the autobuilders:
https://autobuild.buildroot.net/results/684/684a779841c26499f2b28f74edf183c73d12773b/and the exception of bootlin-powerpc-e500mc-uclibc
https://gitlab.com/bkuhls/buildroot/-/jobs/16323077582
where sdl2 caused an unrelated build error also caught by the autobuilders:
https://autobuild.buildroot.net/results/968/968608bfd41d40ecec3c2cf9544cdcfd1693da3f/package/swig/swig.hash | 4 +++- package/swig/swig.mk | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-)package/swig/swig.hash +3
-1@@ -1,5 +1,7 @@ +# From https://sourceforge.net/projects/swig/files/swig/swig-4.5.1 +sha1 fab5ee9e27b703ea964e55abca585567ebac9bcf swig-4.5.1.tar.gz +sha256 7fec50b27deddab5455a9633780b6341eddfb96215a7619e93a76eb27178f653 swig-4.5.1.tar.gz # Locally computed: -sha256 2af08aced8fcd65cdb5cc62426768914bedc735b1c250325203716f78e39ac9b swig-4.1.1.tar.gz sha256 f53abaeed775018d519a1b9615f0ca17894772bd9ca21c2a156bf340ac41c13e LICENSE sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSE-GPL sha256 7f50d942373a871211c5efee03f3db2f9efd1cff1002b0ef8e3748baa611a5c2 LICENSE-UNIVERSITIESpackage/swig/swig.mk +2
-3@@ -4,9 +4,9 @@ # ################################################################################ -SWIG_VERSION_MAJOR = 4.1 +SWIG_VERSION_MAJOR = 4.5 SWIG_VERSION = $(SWIG_VERSION_MAJOR).1 -SWIG_SITE = http://downloads.sourceforge.net/project/swig/swig/swig-$(SWIG_VERSION) +SWIG_SITE = https://downloads.sourceforge.net/project/swig/swig/swig-$(SWIG_VERSION) HOST_SWIG_DEPENDENCIES = host-bison host-pcre2 HOST_SWIG_CONF_OPTS = \ --with-pcre \ --
Quoted 2 lines
2.47.3
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 7/7] package/swig: bump version to 4.5.1
In reply to Bernd KuhlsAm 05.09.26 um 14:20 schrieb Bernd Kuhls:
Quoted 7 lines
https://www.swig.org/Release/RELEASENOTES
Added upstream sha1 & sha256 hashes.
Switched
_SITEto https.Signed-off-by Bernd Kuhls <[email protected]>
Quoted 39 lines
---
Series passed Gitlab pipelines:
https://gitlab.com/bkuhls/buildroot/-/commits/3a1e018bd92f929d1acc1882742820bbefe06800with the exception of bootlin-x86-64-uclibc
https://gitlab.com/bkuhls/buildroot/-/jobs/16323077584
where libselinux caused an unrelated build error also caught by the autobuilders:
https://autobuild.buildroot.net/results/684/684a779841c26499f2b28f74edf183c73d12773b/and the exception of bootlin-powerpc-e500mc-uclibc
https://gitlab.com/bkuhls/buildroot/-/jobs/16323077582
where sdl2 caused an unrelated build error also caught by the autobuilders:
https://autobuild.buildroot.net/results/968/968608bfd41d40ecec3c2cf9544cdcfd1693da3f/package/swig/swig.hash | 4 +++- package/swig/swig.mk | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-)package/swig/swig.hash +3
-1@@ -1,5 +1,7 @@ +# From https://sourceforge.net/projects/swig/files/swig/swig-4.5.1 +sha1 fab5ee9e27b703ea964e55abca585567ebac9bcf swig-4.5.1.tar.gz +sha256 7fec50b27deddab5455a9633780b6341eddfb96215a7619e93a76eb27178f653 swig-4.5.1.tar.gz # Locally computed: -sha256 2af08aced8fcd65cdb5cc62426768914bedc735b1c250325203716f78e39ac9b swig-4.1.1.tar.gz sha256 f53abaeed775018d519a1b9615f0ca17894772bd9ca21c2a156bf340ac41c13e LICENSE sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSE-GPL sha256 7f50d942373a871211c5efee03f3db2f9efd1cff1002b0ef8e3748baa611a5c2 LICENSE-UNIVERSITIESpackage/swig/swig.mk +0
-0@@ -4,9 +4,9 @@ #
package/swig/swig.mk line 12
Quoted 10 lines
package/swig/swig.mk +2
-2################################################################################ -SWIG_VERSION_MAJOR = 4.1 +SWIG_VERSION_MAJOR = 4.5 SWIG_VERSION = $(SWIG_VERSION_MAJOR).1 -SWIG_SITE = http://downloads.sourceforge.net/project/swig/swig/swig-$(SWIG_VERSION) +SWIG_SITE = https://downloads.sourceforge.net/project/swig/swig/swig-$(SWIG_VERSION) HOST_SWIG_DEPENDENCIES = host-bison host-pcre2 HOST_SWIG_CONF_OPTS = \ --with-pcre \
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 11 lines · Bernd Kuhls
https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_4.1.8
https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_4.1.7
https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_4.1.6
https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_4.1.5
https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_4.1.4
https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_4.1.3
https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_4.1.2Switched tarballs to bz2.
Signed-off-by Bernd Kuhls <[email protected]>
Series applied to master, thanks!
Best regards,
Thomas Petazzoni
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot