pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/u-boot-d1-nezha



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu Feb 19 09:37:30 UTC 2026

Modified Files:
        pkgsrc/sysutils/u-boot-d1-nezha: distinfo
Added Files:
        pkgsrc/sysutils/u-boot-d1-nezha/patches: patch-tools_binman_control.py

Log Message:
u-boot-d1-nezha: fix build with setuptools 82


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/sysutils/u-boot-d1-nezha/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/sysutils/u-boot-d1-nezha/patches/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-d1-nezha/distinfo
diff -u pkgsrc/sysutils/u-boot-d1-nezha/distinfo:1.1 pkgsrc/sysutils/u-boot-d1-nezha/distinfo:1.2
--- pkgsrc/sysutils/u-boot-d1-nezha/distinfo:1.1        Mon Oct  6 00:09:12 2025
+++ pkgsrc/sysutils/u-boot-d1-nezha/distinfo    Thu Feb 19 09:37:30 2026
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2025/10/06 00:09:12 thorpej Exp $
+$NetBSD: distinfo,v 1.2 2026/02/19 09:37:30 wiz Exp $
 
 BLAKE2s (u-boot-d1-nezha-2024.1-2e89b706f5c956a70c989cd31665f1429e9a0b48.tar.gz) = 97360a8d2526814ff5bc733489ed7d188553e05e4db60f0fd53a32aa7cb145d4
 SHA512 (u-boot-d1-nezha-2024.1-2e89b706f5c956a70c989cd31665f1429e9a0b48.tar.gz) = 
40960a09058c571c4577bb6f9e725fd0cb5cab1e644924b46f851eb6c48af8b78d585f108a8afbe810c582e7b848f0b5f44959eecab867b6de5c72a3ff5fbdc4
 Size (u-boot-d1-nezha-2024.1-2e89b706f5c956a70c989cd31665f1429e9a0b48.tar.gz) = 25682214 bytes
+SHA1 (patch-tools_binman_control.py) = fe10cac2223bc04f3ce3f9fb622abb127ad48031

Added files:

Index: pkgsrc/sysutils/u-boot-d1-nezha/patches/patch-tools_binman_control.py
diff -u /dev/null pkgsrc/sysutils/u-boot-d1-nezha/patches/patch-tools_binman_control.py:1.1
--- /dev/null   Thu Feb 19 09:37:30 2026
+++ pkgsrc/sysutils/u-boot-d1-nezha/patches/patch-tools_binman_control.py       Thu Feb 19 09:37:30 2026
@@ -0,0 +1,55 @@
+$NetBSD: patch-tools_binman_control.py,v 1.1 2026/02/19 09:37:30 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       2023-10-31 08:53:02.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