Control: tags 1147858 + patch Control: tags 1147858 + pending Dear maintainer,
I've prepared an NMU for ros2-colcon-notification (versioned as 0.3.0+ds-1.1) and uploaded it to DELAYED/14. Please feel free to tell me if I should cancel it. cu Adrian
diffstat for ros2-colcon-notification-0.3.0+ds ros2-colcon-notification-0.3.0+ds changelog | 8 ++ patches/0001-Stop-using-pkg_resources-in-setup.py-78.patch | 40 +++++++++++++ patches/series | 1 3 files changed, 49 insertions(+) diff -Nru ros2-colcon-notification-0.3.0+ds/debian/changelog ros2-colcon-notification-0.3.0+ds/debian/changelog --- ros2-colcon-notification-0.3.0+ds/debian/changelog 2024-04-10 23:49:13.000000000 +0300 +++ ros2-colcon-notification-0.3.0+ds/debian/changelog 2026-10-17 19:49:16.000000000 +0300 @@ -1,3 +1,11 @@ +ros2-colcon-notification (0.3.0+ds-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Backport upstream fix for FTBFS without pkg_resources. + (Closes: #1147858) + + -- Adrian Bunk <[email protected]> Sat, 17 Oct 2026 19:49:16 +0300 + ros2-colcon-notification (0.3.0+ds-1) unstable; urgency=medium * Update file exclusion in d/copyright diff -Nru ros2-colcon-notification-0.3.0+ds/debian/patches/0001-Stop-using-pkg_resources-in-setup.py-78.patch ros2-colcon-notification-0.3.0+ds/debian/patches/0001-Stop-using-pkg_resources-in-setup.py-78.patch --- ros2-colcon-notification-0.3.0+ds/debian/patches/0001-Stop-using-pkg_resources-in-setup.py-78.patch 1970-01-01 02:00:00.000000000 +0200 +++ ros2-colcon-notification-0.3.0+ds/debian/patches/0001-Stop-using-pkg_resources-in-setup.py-78.patch 2026-10-17 19:49:16.000000000 +0300 @@ -0,0 +1,40 @@ +From b233e3c8e0da8713383df56050711074aa7178e5 Mon Sep 17 00:00:00 2001 +From: Scott K Logan <[email protected]> +Date: Fri, 27 Mar 2026 16:01:47 -0500 +Subject: Stop using pkg_resources in setup.py (#78) + +--- + setup.py | 14 ++++++++++---- + 1 file changed, 10 insertions(+), 4 deletions(-) + +diff --git a/setup.py b/setup.py +index a6d53d4..acd4519 100644 +--- a/setup.py ++++ b/setup.py +@@ -7,13 +7,19 @@ import sys + from setuptools import setup + + if 'BUILD_DEBIAN_PACKAGE' not in os.environ: +- from pkg_resources import parse_version ++ def _try_parse(raw): ++ raw = next(iter((raw or '').split('-', 1))) ++ for part in raw.split('.'): ++ try: ++ yield int(part) ++ except ValueError: ++ break ++ + from setuptools import __version__ as setuptools_version +- minimum_version = '40.5.0' +- if parse_version(setuptools_version) < parse_version(minimum_version): ++ if tuple(_try_parse(setuptools_version)) < (40, 5): + print( + "The Python package 'colcon-notification' requires at least " +- 'setuptools version {minimum_version}'.format_map(locals()), ++ 'setuptools version 40.5', + file=sys.stderr) + sys.exit(1) + +-- +2.47.3 + diff -Nru ros2-colcon-notification-0.3.0+ds/debian/patches/series ros2-colcon-notification-0.3.0+ds/debian/patches/series --- ros2-colcon-notification-0.3.0+ds/debian/patches/series 2024-04-10 23:49:13.000000000 +0300 +++ ros2-colcon-notification-0.3.0+ds/debian/patches/series 2026-10-17 19:49:16.000000000 +0300 @@ -1 +1,2 @@ 0001-Do-not-install-MacOS-files.patch +0001-Stop-using-pkg_resources-in-setup.py-78.patch

