public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kig] epel10: add missing patch
@ 2026-08-04 19:44 Rex Dieter
  0 siblings, 0 replies; only message in thread
From: Rex Dieter @ 2026-08-04 19:44 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/kig
Branch : epel10
Commit : f8f9ecd93d87cf69ab1f875b37df793c268d23a7
Author : Rex Dieter <rdieter@math.unl.edu>
Date   : 2015-12-28T14:44:22-06:00
Stats  : +53/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/kig/c/f8f9ecd93d87cf69ab1f875b37df793c268d23a7?branch=epel10

Log:
add missing patch

---
diff --git a/0001-explicitly-use-QLibrary-to-load-libpython-like-pykde.patch b/0001-explicitly-use-QLibrary-to-load-libpython-like-pykde.patch
new file mode 100644
index 0000000..50c11b5
--- /dev/null
+++ b/0001-explicitly-use-QLibrary-to-load-libpython-like-pykde.patch
@@ -0,0 +1,53 @@
+From 068bf7f9bf8f34a9f14ed026e6c5c993b7cc80c7 Mon Sep 17 00:00:00 2001
+From: Rex Dieter <rdieter@math.unl.edu>
+Date: Mon, 28 Dec 2015 11:29:59 -0600
+Subject: [PATCH] explicitly use QLibrary to load libpython (like pykde)
+
+BUG: 335965
+---
+ CMakeLists.txt               | 3 +++
+ scripting/python_scripter.cc | 7 +++++++
+ 2 files changed, 10 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d7fffcd..7b93833 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -57,6 +57,9 @@ add_subdirectory( pykig )
+ if(BoostPython_FOUND)
+   add_subdirectory( scripting )
+   add_definitions(-DKIG_ENABLE_PYTHON_SCRIPTING)
++  get_filename_component(PYTHON_LIBRARY_REALPATH "${PYTHON_LIBRARY}" REALPATH)
++  get_filename_component(LIB_PYTHON ${PYTHON_LIBRARY_REALPATH} NAME)
++  add_definitions(-DLIB_PYTHON="${LIB_PYTHON}")
+ endif(BoostPython_FOUND)
+ 
+ set_package_properties(
+diff --git a/scripting/python_scripter.cc b/scripting/python_scripter.cc
+index e60a90c..99c1f1c 100644
+--- a/scripting/python_scripter.cc
++++ b/scripting/python_scripter.cc
+@@ -23,6 +23,8 @@
+ #include <Python.h>
+ #include "python_scripter.h"
+ 
++#include <QLibrary>
++
+ #include <iostream>
+ #include <string>
+ 
+@@ -398,6 +400,11 @@ PythonScripter::PythonScripter()
+   // don't do it..
+   //delete [] s;
+ 
++  QLibrary *pythonLib = new QLibrary();
++  pythonLib->setLoadHints(QLibrary::ExportExternalSymbolsHint);
++  pythonLib->setFileName(LIB_PYTHON);
++  pythonLib->load();
++
+   Py_Initialize();
+ 
+   s = newstring( "import math; from math import *;" );
+-- 
+2.5.0
+

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-04 19:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-04 19:44 [rpms/kig] epel10: add missing patch Rex Dieter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox