Skip to contentSkip to conversation

python3-inflate64: Upgrade 1.0.0 -> 1.0.1

PATCH New Leon Anavi 1 participant 3 messages Jan 6, 2025

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/3 python3-inflate64: Upgrade 1.0.0 -> 1.0.1

Upgrade to release 1.0.1:

* Change deflate_tree: base_length[] and length_code[] not to be const to avoid C2166 error on windows
* Drop support for python 3.8 and add support for python 3.13

Patch 0001-Do-not-override-const-qualifier.patch has been merged in the upstream therefore the file is no longer needed.

---
 ...0001-Do-not-override-const-qualifier.patch | 83 -------------------
 ...64_1.0.0.bb => python3-inflate64_1.0.1.bb} |  3 +-
 2 files changed, 1 insertion(+), 85 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-inflate64/0001-Do-not-override-const-qualifier.patch
 rename meta-python/recipes-devtools/python/{python3-inflate64_1.0.0.bb => python3-inflate64_1.0.1.bb} (72%)
meta-python/recipes-devtools/python/python3-inflate64/0001-Do-not-override-const-qualifier.patch deleted +0 -83
deleted file mode 100644
index 5391a11da0..0000000000
@@ -1,83 +0,0 @@
-From 7e3a795cbeea94b3324aa926f2b11904cb169acc Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Tue, 2 Jul 2024 22:02:38 -0700
-Subject: [PATCH] Do not override 'const' qualifier
-
-This has worked so far but with fortified system headers from
-Glibc 2.40+ and clang compiler it ends up in compile errors
-
-| In file included from /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-inflate64/1.0.0/recipe-sysroot/usr/include/string.h:548:
-| /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-inflate64/1.0.0/recipe-sysroot/usr/include/bits/string_fortified.h:77:66: error: pass_object_size attribute only applies to constant pointer arguments
-|    77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest),
-|       |                                                                  ^
-| /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-inflate64/1.0.0/recipe-sysroot/usr/include/bits/string_fortified.h:86:66: error: pass_object_size attribute only applies to constant pointer arguments
-|    86 | __NTH (stpcpy (__fortify_clang_overload_arg (char *, __restrict, __dest),
-|       |                                                                  ^
-| /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-inflate64/1.0.0/recipe-sysroot/usr/include/bits/string_fortified.h:96:67: error: pass_object_size attribute only applies to constant pointer arguments
-|    96 | __NTH (strncpy (__fortify_clang_overload_arg (char *, __restrict, __dest),
-|       |                                                                   ^
-| /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-inflate64/1.0.0/recipe-sysroot/usr/include/bits/string_fortified.h:107:56: error: pass_object_size attribute only applies to constant pointer arguments
-|   107 | __NTH (stpncpy (__fortify_clang_overload_arg (char *, ,__dest),
-|       |                                                        ^
-| /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-inflate64/1.0.0/recipe-sysroot/usr/include/bits/string_fortified.h:136:66: error: pass_object_size attribute only applies to constant pointer arguments
-|   136 | __NTH (strcat (__fortify_clang_overload_arg (char *, __restrict, __dest),
-|       |                                                                  ^
-| /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-inflate64/1.0.0/recipe-sysroot/usr/include/bits/string_fortified.h:145:67: error: pass_object_size attribute only applies to constant pointer arguments
-|   145 | __NTH (strncat (__fortify_clang_overload_arg (char *, __restrict, __dest),
-|       |                                                                   ^
-| /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-inflate64/1.0.0/recipe-sysroot/usr/include/bits/string_fortified.h:161:67: error: pass_object_size attribute only applies to constant pointer arguments
-|   161 | __NTH (strlcpy (__fortify_clang_overload_arg (char *, __restrict, __dest),
-
-Therefore adjust needed places to use const qualifier
-
-Upstream-Status: Submitted [https://codeberg.org/miurahr/inflate64/pulls/13]
-Signed-off-by: Khem Raj <[email protected]>
----
- src/lib/deflate.h          | 2 +-
- src/lib/deflate_tree.c     | 4 ++--
- src/lib/inflate64_config.h | 3 ---
- 3 files changed, 3 insertions(+), 6 deletions(-)
-
-diff --git a/src/lib/deflate.h b/src/lib/deflate.h
-index 72a324f..c780be9 100644
---- a/src/lib/deflate.h
-+++ b/src/lib/deflate.h
-@@ -288,6 +288,6 @@ void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, char FAR *buf,
-   extern const unsigned char ZLIB_INTERNAL _dist_code[];
- #endif
- #endif
--extern uch ZLIB_INTERNAL length_code[];
-+extern const uch ZLIB_INTERNAL length_code[];
- 
- #endif /* DEFLATE_H */
-diff --git a/src/lib/deflate_tree.c b/src/lib/deflate_tree.c
-index 5a66139..cdee934 100644
---- a/src/lib/deflate_tree.c
-+++ b/src/lib/deflate_tree.c
-@@ -78,10 +78,10 @@ local const uch bl_order[BL_CODES]
- 
- #define DIST_CODE_LEN  768 /* see definition of array dist_code below */
- 
--local int base_length[LENGTH_CODES];
-+local const int base_length[LENGTH_CODES];
- /* First normalized length for each code (0 = MIN_MATCH) */
- 
--uch length_code[BASE_MATCH-MIN_MATCH+1];
-+const uch length_code[BASE_MATCH-MIN_MATCH+1];
- /* length code for each normalized match length (0 == MIN_MATCH) */
- 
- #if defined(GEN_TREES_H) || !defined(STDC)
-diff --git a/src/lib/inflate64_config.h b/src/lib/inflate64_config.h
-index 16cfd12..ade7300 100644
---- a/src/lib/inflate64_config.h
-+++ b/src/lib/inflate64_config.h
-@@ -53,9 +53,6 @@
- #  define FAR
- #endif
- 
--#ifndef const
--#  define const
--#endif
- #define z_const const
- 
- typedef unsigned char  uch;
meta-python/recipes-devtools/python/python3-inflate64_1.0.1.bb renamed from meta-python/recipes-devtools/python/python3-inflate64_1.0.0.bb +1 -2
similarity index 72%
rename from meta-python/recipes-devtools/python/python3-inflate64_1.0.0.bb
rename to meta-python/recipes-devtools/python/python3-inflate64_1.0.1.bb
index 7804152d94..841c9239a5 100644
@@ -6,8 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
 inherit python_setuptools_build_meta pypi
 
-SRC_URI += "file://0001-Do-not-override-const-qualifier.patch"
-SRC_URI[sha256sum] = "3278827b803cf006a1df251f3e13374c7d26db779e5a33329cc11789b804bc2d"
+SRC_URI[sha256sum] = "3b1c83c22651b5942b35829df526e89602e494192bf021e0d7d0b600e76c429d"
 
 DEPENDS += "python3-setuptools-scm-native"
 
Signature · 1 line
2.39.5
author
#1 lore raw

PATCH 2/3 python3-uswid: Upgrade 0.5.0 -> 0.5.1

Upgrade to release 0.5.1:

- Add --find to recursively find SBOM files
- Add --fixup to repair any loaded SBOM files
- Add support for component CPE values
- Add support for component types, e.g. library, application or firmware
- Add support for loading CycloneDX files
- Add support for loading fallback files
- Add support for loading SPDX files
- Add support for substituted values like @VCS_VERSION@
- Add support for SWID activationStatus
- Add support for verifying different SBOM different formats

---
 .../python/{python3-uswid_0.5.0.bb => python3-uswid_0.5.1.bb}  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-uswid_0.5.0.bb => python3-uswid_0.5.1.bb} (81%)
meta-python/recipes-devtools/python/python3-uswid_0.5.1.bb renamed from meta-python/recipes-devtools/python/python3-uswid_0.5.0.bb +2 -1
similarity index 81%
rename from meta-python/recipes-devtools/python/python3-uswid_0.5.0.bb
rename to meta-python/recipes-devtools/python/python3-uswid_0.5.1.bb
index 1381d7e880..32eeeca585 100644
@@ -4,7 +4,7 @@ SECTION = "devel/python"
 LICENSE = "BSD-2-Clause-Patent"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=f3636dfe71e94cc72918423cec0d1971"
 
-SRC_URI[sha256sum] = "bdcd7ee5afac1da60ee688c357aa12f5f8d74bc28012446b10e2b4a9cf52fc6d"
+SRC_URI[sha256sum] = "92b48a8f6601687c1cc556878571abf9ddb0bdbaf244713b7ff838c48fcb68b3"
 
 inherit setuptools3 python3native pypi
 
@@ -14,6 +14,7 @@ RDEPENDS:${PN} += " \
     python3-json \
     python3-lxml \
     python3-netclient \
+    python3-pefile \
 "
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.5
author
#2 lore raw

PATCH 3/3 python3-tomli-w: Upgrade 1.0.0 -> 1.1.0

In reply to Leon Anavi

Upgrade to release 1.1.0:

- Accept generic collections.abc.Mapping, not just dict, as input.
- indent keyword argument for customizing indent width of arrays.
- Type annotate dump function's output stream object as typing.IO[bytes] (previously typing.BinaryIO)

---
 .../{python3-tomli-w_1.0.0.bb => python3-tomli-w_1.1.0.bb}      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-tomli-w_1.0.0.bb => python3-tomli-w_1.1.0.bb} (94%)
meta-python/recipes-devtools/python/python3-tomli-w_1.1.0.bb renamed from meta-python/recipes-devtools/python/python3-tomli-w_1.0.0.bb +1 -1
similarity index 94%
rename from meta-python/recipes-devtools/python/python3-tomli-w_1.0.0.bb
rename to meta-python/recipes-devtools/python/python3-tomli-w_1.1.0.bb
index 8a8a48467d..dded2cbf42 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/hukkin/tomli-w"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=aaaaf0879d17df0110d1aa8c8c9f46f5"
 
-SRCREV = "19099125f32e7c491603e393263754262b356956"
+SRCREV = "179105660c367874818f2cdd1e06ed98eea668f1"
 PYPI_SRC_URI = "git://github.com/hukkin/tomli-w.git;protocol=https;branch=master"
 
 inherit pypi python_flit_core ptest
Signature · 1 line
2.39.5