Control: tags 1147775 + patch
Control: tags 1147775 + pending

Dear maintainer,

I've prepared an NMU for imgp (versioned as 2.9-1.1) and uploaded
it to DELAYED/2. Please feel free to tell me if I should cancel it.

cu
Adrian
diffstat for imgp-2.9 imgp-2.9

 changelog                                   |    8 ++++++
 patches/0001-Prepare-for-release-v3.0.patch |   34 ++++++++++++++++++++++++++++
 patches/series                              |    1 
 3 files changed, 43 insertions(+)

diff -Nru imgp-2.9/debian/changelog imgp-2.9/debian/changelog
--- imgp-2.9/debian/changelog	2023-09-10 15:08:15.000000000 +0300
+++ imgp-2.9/debian/changelog	2026-10-14 18:51:31.000000000 +0300
@@ -1,3 +1,11 @@
+imgp (2.9-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Backport upstream fix for FTBFS without pkg_resources.
+    (Closes: #1147775)
+
+ -- Adrian Bunk <[email protected]>  Wed, 14 Oct 2026 18:51:31 +0300
+
 imgp (2.9-1) unstable; urgency=medium
 
   * Import new upstream release
diff -Nru imgp-2.9/debian/patches/0001-Prepare-for-release-v3.0.patch imgp-2.9/debian/patches/0001-Prepare-for-release-v3.0.patch
--- imgp-2.9/debian/patches/0001-Prepare-for-release-v3.0.patch	1970-01-01 02:00:00.000000000 +0200
+++ imgp-2.9/debian/patches/0001-Prepare-for-release-v3.0.patch	2026-10-14 18:51:00.000000000 +0300
@@ -0,0 +1,34 @@
+From c5338947c2ae383c1bd90884fedd7d33e36a2997 Mon Sep 17 00:00:00 2001
+From: Arun Prakash Jana <[email protected]>
+Date: Sun, 16 Aug 2026 11:59:43 +0530
+Subject: Prepare for release v3.0
+
+---
+ setup.py | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index e848cc5..5ebd7e8 100644
+--- a/setup.py
++++ b/setup.py
+@@ -4,14 +4,14 @@ import re
+ import os.path
+ import shutil
+ import sys
++from importlib.metadata import PackageNotFoundError, distribution
+ 
+ from setuptools import setup, find_packages
+-from pkg_resources import get_distribution, DistributionNotFound
+ 
+ def get_dist(pkgname):
+     try:
+-        return get_distribution(pkgname)
+-    except DistributionNotFound:
++        return distribution(pkgname)
++    except PackageNotFoundError:
+         return None
+ 
+ with open('imgp', encoding='utf-8') as f:
+-- 
+2.47.3
+
diff -Nru imgp-2.9/debian/patches/series imgp-2.9/debian/patches/series
--- imgp-2.9/debian/patches/series	2023-07-16 13:39:43.000000000 +0300
+++ imgp-2.9/debian/patches/series	2026-10-14 18:51:11.000000000 +0300
@@ -1,2 +1,3 @@
 Remove-unnecessary-makefile.patch
 Remove-unnecessary-copyfile-function-to-avoid-upstream-ch.patch
+0001-Prepare-for-release-v3.0.patch

Reply via email to