Control: tags -1 patch
On Wed, 04 Jan 2023 00:38:51 +0200 Adrian Bunk <b...@debian.org> wrote:
The problem seems to come from debian/patches/python-skbuild-path.patch
The attached patch resolves the issue.
Kind Regards,
Bas
--
GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1
diff -Nru createrepo-c-0.17.3/debian/changelog
createrepo-c-0.17.3/debian/changelog
--- createrepo-c-0.17.3/debian/changelog 2022-09-05 13:28:57.000000000
+0000
+++ createrepo-c-0.17.3/debian/changelog 2023-01-04 06:36:14.000000000
+0000
@@ -1,3 +1,11 @@
+createrepo-c (0.17.3-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTBFS with Python 3.11.
+ (closes: #1027839)
+
+ -- Bas Couwenberg <sebas...@debian.org> Wed, 04 Jan 2023 06:36:14 +0000
+
createrepo-c (0.17.3-1) unstable; urgency=medium
* Declare compliance with Debian Policy 4.6.0 with no changes.
diff -Nru createrepo-c-0.17.3/debian/patches/python-skbuild-path.patch
createrepo-c-0.17.3/debian/patches/python-skbuild-path.patch
--- createrepo-c-0.17.3/debian/patches/python-skbuild-path.patch
2022-09-05 13:28:57.000000000 +0000
+++ createrepo-c-0.17.3/debian/patches/python-skbuild-path.patch
2023-01-04 06:36:14.000000000 +0000
@@ -23,7 +23,7 @@
)
IF (SKBUILD)
-+ EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import
importlib.resources; print(importlib.resources.path('skbuild', 'resources') /
'cmake', end='')" OUTPUT_VARIABLE PYTHON_SKLIB_CMAKE_DIR)
++ EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import
importlib.resources;
print(importlib.resources.files('skbuild').joinpath('resources/cmake'),
end='')" OUTPUT_VARIABLE PYTHON_SKLIB_CMAKE_DIR)
+ MESSAGE(STATUS "Python skbuild CMake dir is ${PYTHON_SKLIB_CMAKE_DIR}")
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PYTHON_SKLIB_CMAKE_DIR}/")
find_package(PythonExtensions REQUIRED)