ports/devel/py-pykde4/files/patch-kpythonpluginfactory__kpythonpluginfactory.cpp
Max Brazhnikov cb8b1428c6 KDE/FreeBSD team presents KDE SC 4.9.5 ports!
- kdebindings ports have been renamed to match upstream.
- kdemultimedia and kdenetwork have been split.
- New port games/pairs added.
- Trim Makefile header
- Convert to new option framework
- New USE_KDE4 components: libkcddb, libkcompactdisc
- Update:
	databases/akonadi to 1.9.0
	devel/grantlee to 0.3.0
	textproc/rasqal to 0.9.30
	textproc/redland-bindings to 1.0.16.1
	textproc/soprano to 2.9.0
	x11-toolkits/attica to 0.4.1

The area51 repository features commits by Schaich Alonso, avilla, dbn,
jhale, makc and rakuco.

Contributors:
- Oleg Sidorkin
- Tobias Berner
- Kurt Jaeger
2013-02-03 20:10:37 +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);