[neon/qt6/pyside6/Neon/release] debian/patches: Always-link-to-python-libraries.patch
Carlos De Maine
null at kde.org
Fri Nov 29 07:53:01 GMT 2024
Git commit e8187b3ef066052befe2121d36007581c7e5fe8a by Carlos De Maine.
Committed on 29/11/2024 at 07:53.
Pushed by carlosdem into branch 'Neon/release'.
Always-link-to-python-libraries.patch
A +33 -0 debian/patches/Always-link-to-python-libraries.patch
M +1 -0 debian/patches/series
https://invent.kde.org/neon/qt6/pyside6/-/commit/e8187b3ef066052befe2121d36007581c7e5fe8a
diff --git a/debian/patches/Always-link-to-python-libraries.patch b/debian/patches/Always-link-to-python-libraries.patch
new file mode 100644
index 00000000..7e3aa888
--- /dev/null
+++ b/debian/patches/Always-link-to-python-libraries.patch
@@ -0,0 +1,33 @@
+From e9591e27db4ae3412d4504a69a8afebee9a1b83e Mon Sep 17 00:00:00 2001
+From: Christophe Giboudeaux <christophe at krop.fr>
+Date: Tue, 27 Jul 2021 14:54:00 +0200
+Subject: [PATCH] Always link to python libraries.
+
+Change-Id: I687191431adaff55927de353db8f81dfa30ba1b1
+---
+ sources/shiboken6/cmake/ShibokenHelpers.cmake | 10 +++-------
+ 1 file changed, 3 insertions(+), 7 deletions(-)
+
+diff --git a/sources/shiboken6/cmake/ShibokenHelpers.cmake b/sources/shiboken6/cmake/ShibokenHelpers.cmake
+index 27ee333..4be2ad1 100644
+--- a/sources/shiboken6/cmake/ShibokenHelpers.cmake
++++ b/sources/shiboken6/cmake/ShibokenHelpers.cmake
+@@ -425,13 +425,9 @@ macro(shiboken_compute_python_libraries)
+ "SHIBOKEN_COMPUTE_LIBS" "shiboken_compute_python_libraries"
+ "IS_CALLED_FROM_EXPORT" "" "" ${ARGN})
+
+- if (NOT SHIBOKEN_PYTHON_LIBRARIES)
+- set(SHIBOKEN_PYTHON_LIBRARIES "")
+- endif()
+-
+- if(WIN32 AND NOT SHIBOKEN_PYTHON_LIBRARIES)
+- set(SHIBOKEN_PYTHON_LIBRARIES ${Python_LIBRARIES})
+- endif()
++ # Always link to python libraries.
++ message(STATUS "Linking shiboken to ${Python_LIBRARIES}")
++ set(SHIBOKEN_PYTHON_LIBRARIES ${Python_LIBRARIES})
+
+ # If the resulting variable
+ # contains a "debug;X;optimized;Y" list like described in shiboken_check_if_limited_api,
+--
+2.46.1
\ No newline at end of file
diff --git a/debian/patches/series b/debian/patches/series
index 4bc22403..32d12952 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@
0007-XFAIL-a-new-test-failure-with-6.7.2.patch
0008-XFAIL-smart-smart_pointer.patch
0009-XFAIL-QtQml-qquickitem_grabToImage.patch
+Always-link-to-python-libraries.patch
\ No newline at end of file
More information about the Neon-commits
mailing list