public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Rex Dieter <rdieter@math.unl.edu>
To: git-commits@fedoraproject.org
Subject: [rpms/kig] epel10: add missing patch
Date: Tue, 04 Aug 2026 19:44:15 GMT	[thread overview]
Message-ID: <178587265582.1.5910888368922961805.rpms-kig-f8f9ecd93d87@fedoraproject.org> (raw)

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
+

                 reply	other threads:[~2026-08-04 19:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178587265582.1.5910888368922961805.rpms-kig-f8f9ecd93d87@fedoraproject.org \
    --to=rdieter@math.unl.edu \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox