ports/devel/kdebindings4-python-pykde4/files/patch-kpythonpluginfactory__kpythonpluginfactory.cpp
Alberto Villa a2d3b5a4bc The KDE/FreeBSD team is pleased to announce KDE Software Compilation
4.7.2. The official release notes can be found at:
http://kde.org/announcements/announce-4.7.2.php
This release ships with many improvements. Read more about them here:
http://FreeBSD.kde.org/news.php#itemKDESC472availableinports

We'd like to say thanks to all testers and contributors, especially to
lwhsu@ for his effort on hosting our test packages.

PR:		156293 [1]
		159219 [2]
		160164 [3]
Submitted by:	Oleg Sidorkin <osidorkin@gmail.com> [1]
		Alvaro Castillo <gobledb@gmail.com> [2]
		dkeav04@gmail.com [3]
Tested by:	exp-run via pav
2011-10-17 00:03:42 +00:00

20 lines
743 B
C++

--- ./kpythonpluginfactory/kpythonpluginfactory.cpp.orig 2011-05-20 22:33:41.000000000 +0200
+++ ./kpythonpluginfactory/kpythonpluginfactory.cpp 2011-09-01 16:43:57.371033306 +0200
@@ -18,6 +18,8 @@
Boston, MA 02111-1307, USA.
*/
+#include <dlfcn.h>
+
#include <QtCore/QCoreApplication>
#include <QFileInfo>
#include <QDir>
@@ -305,6 +307,8 @@
// symbols global and available for later loaded libraries/module.
QLibrary *LoadPythonLibrary()
{
+ /* Promote this library (and thus libpython) to RTLD_GLOBAL) */
+ dlopen("kpythonpluginfactory.so", RTLD_NOLOAD | RTLD_GLOBAL);
QLibrary *pythonLib = new QLibrary();
pythonLib->setLoadHints(QLibrary::ExportExternalSymbolsHint);
pythonLib->setFileName(LIB_PYTHON);