From 5cb1085d52304fd16172ae58ca919ef26d9ca172 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sat, 16 Nov 2024 09:29:11 -0500 Subject: [PATCH] kdevelop-python: rebuild for python3-3.13 --- .../kdevelop-python/patches/python-3.13.patch | 26 +++++++++++++++++++ srcpkgs/kdevelop-python/template | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/kdevelop-python/patches/python-3.13.patch diff --git a/srcpkgs/kdevelop-python/patches/python-3.13.patch b/srcpkgs/kdevelop-python/patches/python-3.13.patch new file mode 100644 index 00000000000..cb28d72befa --- /dev/null +++ b/srcpkgs/kdevelop-python/patches/python-3.13.patch @@ -0,0 +1,26 @@ +diff -ur a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt 2024-08-15 18:29:03.000000000 -0400 ++++ b/CMakeLists.txt 2024-11-23 10:07:32.447444759 -0500 +@@ -42,7 +42,7 @@ + + set(Python3_USE_STATIC_LIBS FALSE) + set(Python3_FIND_STRATEGY VERSION) +-find_package(Python3 3.4.3...<3.13 COMPONENTS Interpreter Development REQUIRED) ++find_package(Python3 3.4.3...<3.14 COMPONENTS Interpreter Development REQUIRED) + + configure_file(kdevpythonversion.h.cmake "${CMAKE_CURRENT_BINARY_DIR}/kdevpythonversion.h" @ONLY) + +diff -ur a/parser/python_header.h b/parser/python_header.h +--- a/parser/python_header.h 2024-11-23 10:06:59.481365933 -0500 ++++ b/parser/python_header.h 2024-11-23 10:07:26.155429709 -0500 +@@ -14,10 +14,6 @@ + #include + + #include /* define ssize_t with musl libc */ +-#include "pyport.h" +-#ifndef _WIN32 +-#include "pyconfig.h" +-#endif + + #include "Python.h" + diff --git a/srcpkgs/kdevelop-python/template b/srcpkgs/kdevelop-python/template index a613ce1d407..844602d442a 100644 --- a/srcpkgs/kdevelop-python/template +++ b/srcpkgs/kdevelop-python/template @@ -1,7 +1,7 @@ # Template file for 'kdevelop-python' pkgname=kdevelop-python version=24.08.0 -revision=1 +revision=2 build_style=cmake configure_args="-DBUILD_TESTING=OFF -DKF6_HOST_TOOLING=/usr/lib/cmake" pycompile_dirs="usr/share/kdevpythonsupport"