From 77d8243f2bb1d0a09023ca3feb765e61bb9ea1ba Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Fri, 6 Mar 2026 13:34:41 -0800 Subject: [PATCH] fix (depthcharge-tools): patch __init__.py (#10344) (#10348) * fix (depthcharge-tools): patch __init__.py * rel bump * silly --------- (cherry picked from commit 87568a03cef47dd32c0c4c470f77dc716fd09be0) Signed-off-by: Owen-sz Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/system/depthcharge-tools/depthcharge-tools.spec | 5 +++-- anda/system/depthcharge-tools/fix-importlib.patch | 12 ++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 anda/system/depthcharge-tools/fix-importlib.patch diff --git a/anda/system/depthcharge-tools/depthcharge-tools.spec b/anda/system/depthcharge-tools/depthcharge-tools.spec index 23186d24f7..e0e9c44c12 100644 --- a/anda/system/depthcharge-tools/depthcharge-tools.spec +++ b/anda/system/depthcharge-tools/depthcharge-tools.spec @@ -1,12 +1,13 @@ Name: depthcharge-tools Version: 0.6.3 -Release: 3%?dist +Release: 4%?dist Summary: Tools to manage the Chrome OS bootloader License: GPL-2.0-or-later URL: https://gitlab.postmarketos.org/postmarketOS/depthcharge-tools Source0: %url/-/archive/v%version/%name-v%version.tar.gz Requires: vboot-utils dtc gzip lz4 python3-setuptools uboot-tools vboot-utils xz python3-importlib-resources BuildRequires: python3-setuptools python3-rpm-macros pyproject-rpm-macros python3dist(pip) systemd-rpm-macros redhat-rpm-config python3-docutils python3-importlib-resources +Patch0: fix-importlib.patch BuildArch: noarch %description @@ -16,7 +17,7 @@ with depthcharge, the Chrome OS bootloader. %pkg_completion -Bz mkdepthcharge depthchargectl %prep -%autosetup -n %name-v%version +%autosetup -n %name-v%version -p1 %build %pyproject_wheel diff --git a/anda/system/depthcharge-tools/fix-importlib.patch b/anda/system/depthcharge-tools/fix-importlib.patch new file mode 100644 index 0000000000..a3bf34ffda --- /dev/null +++ b/anda/system/depthcharge-tools/fix-importlib.patch @@ -0,0 +1,12 @@ +diff --git a/depthcharge_tools/__init__.py b/depthcharge_tools/__init__.py +index fabb79d..2b7d7d5 100644 +--- a/depthcharge_tools/__init__.py ++++ b/depthcharge_tools/__init__.py +@@ -9,6 +9,7 @@ import glob + import logging + import pathlib + import importlib ++import importlib.resources + import importlib_metadata + from packaging.version import parse as parse_version + import re