diffstat for hdf-compass-0.7~b15 hdf-compass-0.7~b15

 changelog                   |    8 ++++++++
 patches/pkg_resources.patch |   18 ++++++++++++++++++
 patches/series              |    1 +
 3 files changed, 27 insertions(+)

diff -Nru hdf-compass-0.7~b15/debian/changelog hdf-compass-0.7~b15/debian/changelog
--- hdf-compass-0.7~b15/debian/changelog	2024-08-10 00:16:14.000000000 +0300
+++ hdf-compass-0.7~b15/debian/changelog	2026-10-14 16:53:00.000000000 +0300
@@ -1,3 +1,11 @@
+hdf-compass (0.7~b15-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Backport upstream fix for FTBFS without pkg_resources.
+    (Closes: #1147773)
+
+ -- Adrian Bunk <bunk@debian.org>  Wed, 14 Oct 2026 16:53:00 +0300
+
 hdf-compass (0.7~b15-1) unstable; urgency=medium
 
   * Team upload.
diff -Nru hdf-compass-0.7~b15/debian/patches/pkg_resources.patch hdf-compass-0.7~b15/debian/patches/pkg_resources.patch
--- hdf-compass-0.7~b15/debian/patches/pkg_resources.patch	1970-01-01 02:00:00.000000000 +0200
+++ hdf-compass-0.7~b15/debian/patches/pkg_resources.patch	2026-10-14 16:53:00.000000000 +0300
@@ -0,0 +1,18 @@
+Description: Fix FTBFS without pkg_resources
+Author: Adrian Bunk <bunk@debian.org>
+Bug-Debian: https://bugs.debian.org/1147773
+Origin: backport, https://github.com/HDFGroup/hdf-compass/commit/70bf2a6e2d98dc761de46ac0d8798d25544320bf
+
+--- hdf-compass-0.7~b15.orig/hdf_compass/__init__.py
++++ hdf-compass-0.7~b15/hdf_compass/__init__.py
+@@ -1 +1,9 @@
+-__import__('pkg_resources').declare_namespace(__name__)
++"""
++HDFCompass Namespace
++"""
++try:
++    import pkg_resources
++    pkg_resources.declare_namespace(__name__)
++except ImportError:
++    import pkgutil
++    __path__ = pkgutil.extend_path(__path__, __name__)
diff -Nru hdf-compass-0.7~b15/debian/patches/series hdf-compass-0.7~b15/debian/patches/series
--- hdf-compass-0.7~b15/debian/patches/series	2024-08-10 00:16:14.000000000 +0300
+++ hdf-compass-0.7~b15/debian/patches/series	2026-10-14 16:53:00.000000000 +0300
@@ -1,2 +1,3 @@
 matplotlib_backend_test.patch
 autopkgtest.patch
+pkg_resources.patch
