Article View: linux.debian.bugs.dist
Article #1225Bug#1147856: ros2-colcon-argcomplete: diff for NMU version 0.3.3+ds-2.2
From: Adrian Bunk
Date: Sat, 17 Oct 2026 23:20
Date: Sat, 17 Oct 2026 23:20
98 lines
5695 bytes
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--
Technical Details
Message-ID:
<NPlQZ-6dYD-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NDyJY-hjGK-27@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Adrian Bunk <bunk@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1147856: ros2-colcon-argcomplete: diff for NMU version 0.3.3+ds-2.2 Date: Sun, 18 Oct 2026 01:20:01 +0200 Message-ID: <NPlQZ-6dYD-3@gated-at.bofh.it> References: <NDyJY-hjGK-27@gated-at.bofh.it> X-Original-To: 1147856@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sat Oct 17 23:19:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Adrian Bunk <bunk@debian.org>, 1147856@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: team+robotics@tracker.debian.org X-Debian-Pr-Message: followup 1147856 X-Debian-Pr-Package: src:ros2-colcon-argcomplete X-Debian-Pr-Keywords: forky ftbfs sid X-Debian-Pr-Source: ros2-colcon-argcomplete MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1Mj4DtyAm3ynSoJq" Content-Disposition: inline X-Debian-User: bunk X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1997327 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 98 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 18 Oct 2026 02:17:45 +0300 X-Original-Message-ID: <atQCGeyensCs3kCL@localhost> X-Original-References: <E1x6QTa-005Pbv-3B@paradis.debian.org>