🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Adrian Bunk Sat, 17 Oct 2026 23:20
Bug#1147856: ros2-colcon-argcomplete: diff for NMU version 0.3.3+ds-2.2
#1225
Author: Adrian Bunk
Date: Sat, 17 Oct 2026 23:20
98 lines
5695 bytes
--1Mj4DtyAm3ynSoJq
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline

Control: tags 1147856 + patch
Control: tags 1147856 + pending

Dear maintainer,

I've prepared an NMU for ros2-colcon-argcomplete (versioned as 0.3.3+ds-2.2)
and uploaded it to DELAYED/14. Please feel free to tell me if I should 
cancel it.

cu
Adrian

--1Mj4DtyAm3ynSoJq
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment;
	filename="ros2-colcon-argcomplete-0.3.3+ds-2.2-nmu.diff"

diffstat for ros2-colcon-argcomplete-0.3.3+ds ros2-colcon-argcomplete-0.3.3+ds

 changelog                                                  |    8 ++
 patches/0001-Stop-using-pkg_resources-in-setup.py-44.patch |   40 +++++++++++++
 patches/series                                             |    1 
 3 files changed, 49 insertions(+)

diff -Nru ros2-colcon-argcomplete-0.3.3+ds/debian/changelog ros2-colcon-argcomplete-0.3.3+ds/debian/changelog
--- ros2-colcon-argcomplete-0.3.3+ds/debian/changelog	2026-02-21 21:03:58.000000000 +0200
+++ ros2-colcon-argcomplete-0.3.3+ds/debian/changelog	2026-10-17 19:59:01.000000000 +0300
@@ -1,3 +1,11 @@
+ros2-colcon-argcomplete (0.3.3+ds-2.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Backport upstream fix for FTBFS without pkg_resources.
+    (Closes: #1147856)
+
+ -- Adrian Bunk <bunk@debian.org>  Sat, 17 Oct 2026 19:59:01 +0300
+
 ros2-colcon-argcomplete (0.3.3+ds-2.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru ros2-colcon-argcomplete-0.3.3+ds/debian/patches/0001-Stop-using-pkg_resources-in-setup.py-44.patch ros2-colcon-argcomplete-0.3.3+ds/debian/patches/0001-Stop-using-pkg_resources-in-setup.py-44.patch
--- ros2-colcon-argcomplete-0.3.3+ds/debian/patches/0001-Stop-using-pkg_resources-in-setup.py-44.patch	1970-01-01 02:00:00.000000000 +0200
+++ ros2-colcon-argcomplete-0.3.3+ds/debian/patches/0001-Stop-using-pkg_resources-in-setup.py-44.patch	2026-10-17 19:59:01.000000000 +0300
@@ -0,0 +1,40 @@
+From d3d469df947407834f4f9c9b15238e1df2225758 Mon Sep 17 00:00:00 2001
+From: Scott K Logan <logans@cottsay.net>
+Date: Tue, 17 Feb 2026 09:23:33 -0600
+Subject: Stop using pkg_resources in setup.py (#44)
+
+---
+ setup.py | 14 ++++++++++----
+ 1 file changed, 10 insertions(+), 4 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 624a13d..dd1cabb 100644
+--- a/setup.py
++++ b/setup.py
+@@ -13,13 +13,19 @@ if sys.platform == 'win32':
+     sys.exit(1)
+ 
+ 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-argcomplete' 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-argcomplete-0.3.3+ds/debian/patches/series ros2-colcon-argcomplete-0.3.3+ds/debian/patches/series
--- ros2-colcon-argcomplete-0.3.3+ds/debian/patches/series	2026-02-21 21:03:37.000000000 +0200
+++ ros2-colcon-argcomplete-0.3.3+ds/debian/patches/series	2026-10-17 19:59:01.000000000 +0300
@@ -3,3 +3,4 @@
 0003-Suppress-deprecation-warnings-in-other-packages.patch
 0004-Do-not-install-completion-scripts-with-setuptools.patch
 0001-Drop-unnecessary-scope-qualifiers-to-please-flake8.patch
+0001-Stop-using-pkg_resources-in-setup.py-44.patch

--1Mj4DtyAm3ynSoJq--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads