fix: depthcharge-tools (#12171) (#12172)

* fix: depthcharge tools

This patch was fixed upstream



* Delete fix-importlib.patch



---------


(cherry picked from commit 2bdc00ba7d)

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
Raboneko
2026-05-10 15:25:05 -05:00
committed by GitHub
parent a769631d54
commit 8f40977626
2 changed files with 3 additions and 15 deletions
@@ -7,7 +7,6 @@ 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
@@ -17,7 +16,7 @@ with depthcharge, the Chrome OS bootloader.
%pkg_completion -Bz mkdepthcharge depthchargectl
%prep
%autosetup -n %name-v%version -p1
%autosetup -n %name-v%version
%build
%pyproject_wheel
@@ -45,4 +44,5 @@ install -Dm644 *.1.gz %buildroot%_mandir/man1/
%_unitdir/depthchargectl-bless.service
%changelog
%autochangelog
* Sun May 10 2026 Owen Zimmerman <owen@fyralabs.com>
- Remove patch
@@ -1,12 +0,0 @@
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