pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils/u-boot
Module Name: pkgsrc
Committed By: wiz
Date: Thu Feb 19 09:48:15 UTC 2026
Modified Files:
pkgsrc/sysutils/u-boot: distinfo-2024.04
Added Files:
pkgsrc/sysutils/u-boot/patches-2024.04: patch-tools_binman_control.py
Log Message:
u-boot*: more setuptools 82 fixes
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/sysutils/u-boot/distinfo-2024.04
cvs rdiff -u -r0 -r1.1 \
pkgsrc/sysutils/u-boot/patches-2024.04/patch-tools_binman_control.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/sysutils/u-boot/distinfo-2024.04
diff -u pkgsrc/sysutils/u-boot/distinfo-2024.04:1.1 pkgsrc/sysutils/u-boot/distinfo-2024.04:1.2
--- pkgsrc/sysutils/u-boot/distinfo-2024.04:1.1 Mon Jun 17 12:33:25 2024
+++ pkgsrc/sysutils/u-boot/distinfo-2024.04 Thu Feb 19 09:48:14 2026
@@ -1,5 +1,6 @@
-$NetBSD: distinfo-2024.04,v 1.1 2024/06/17 12:33:25 skrll Exp $
+$NetBSD: distinfo-2024.04,v 1.2 2026/02/19 09:48:14 wiz Exp $
BLAKE2s (u-boot-2024.04.tar.bz2) = 34839780694b7d772199fa8f83085db1dd1b58c89843908196ee0f8a82999b66
SHA512 (u-boot-2024.04.tar.bz2) = a71270302b38e9e68a83b3acdf8f7635f72d9fa75169e3c2241cdfa21eab834b8f25dfd35c281191bccb2fcec1e86d6b64afcf1d2ed5cd4fdc02258cd75fc236
Size (u-boot-2024.04.tar.bz2) = 20228837 bytes
+SHA1 (patch-tools_binman_control.py) = be329652b86647f3ed7aef43db4f01a91ec5abec
Added files:
Index: pkgsrc/sysutils/u-boot/patches-2024.04/patch-tools_binman_control.py
diff -u /dev/null pkgsrc/sysutils/u-boot/patches-2024.04/patch-tools_binman_control.py:1.1
--- /dev/null Thu Feb 19 09:48:15 2026
+++ pkgsrc/sysutils/u-boot/patches-2024.04/patch-tools_binman_control.py Thu Feb 19 09:48:14 2026
@@ -0,0 +1,55 @@
+$NetBSD: patch-tools_binman_control.py,v 1.1 2026/02/19 09:48:14 wiz Exp $
+
+adapted from
+commit 538719cb6a77934d069e0e64f264457a59a9ebfc
+Author: Yannic Moog <y.moog%phytec.de@localhost>
+Date: Tue Jul 1 07:45:37 2025 +0200
+
+ binman: migrate from pkg_resources to importlib
+
+--- tools/binman/control.py.orig 2024-04-02 10:58:58.000000000 +0000
++++ tools/binman/control.py
+@@ -8,12 +8,11 @@ try:
+ from collections import OrderedDict
+ import glob
+ try:
+- import importlib.resources
++ import importlib.resources as importlib_resources
+ except ImportError: # pragma: no cover
+ # for Python 3.6
+ import importlib_resources
+ import os
+-import pkg_resources
+ import re
+
+ import sys
+@@ -96,7 +95,7 @@ def _ReadMissingBlobHelp():
+ msg = ''
+ return tag, msg
+
+- my_data = pkg_resources.resource_string(__name__, 'missing-blob-help')
++ my_data = importlib_resources.files(__package__).joinpath('missing-blob-help').read_bytes()
+ re_tag = re.compile('^([-a-z0-9]+):$')
+ result = {}
+ tag = None
+@@ -151,8 +150,9 @@ def GetEntryModules(include_testing=True):
+ Returns:
+ Set of paths to entry class filenames
+ """
+- glob_list = pkg_resources.resource_listdir(__name__, 'etype')
+- glob_list = [fname for fname in glob_list if fname.endswith('.py')]
++ entries = importlib_resources.files(__package__).joinpath('etype')
++ glob_list = [entry.name for entry in entries.iterdir()
++ if entry.name.endswith('.py') and entry.is_file()]
+ return set([os.path.splitext(os.path.basename(item))[0]
+ for item in glob_list
+ if include_testing or '_testing' not in item])
+@@ -735,7 +735,7 @@ def Binman(args):
+ global state
+
+ if args.full_help:
+- with importlib.resources.path('binman', 'README.rst') as readme:
++ with importlib_resources.path('binman', 'README.rst') as readme:
+ tools.print_full_help(str(readme))
+ return 0
+
Home |
Main Index |
Thread Index |
Old Index