From 9c3edee960f616e327b336b9831780fb81c1854f Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Jan 15 2018 15:00:08 +0000 Subject: - fixed bz#1456075, import error in PyKDE4 - fixed bz#1442464, segfault with other python module --- diff --git a/pykde4-dont-change-environment-cause-crash.patch b/pykde4-dont-change-environment-cause-crash.patch new file mode 100644 index 0000000..6c1d409 --- /dev/null +++ b/pykde4-dont-change-environment-cause-crash.patch @@ -0,0 +1,12 @@ +diff -up pykde4-4.14.3/__init__.py.me pykde4-4.14.3/__init__.py +--- pykde4-4.14.3/__init__.py.me 2018-01-15 15:51:25.275979249 +0100 ++++ pykde4-4.14.3/__init__.py 2018-01-15 15:54:39.370650697 +0100 +@@ -1,4 +1,4 @@ +-import sys,DLFCN ++# import sys,DLFCN + # This is needed to ensure that dynamic_cast and RTTI works inside kdelibs. +-sys.setdlopenflags(DLFCN.RTLD_NOW|DLFCN.RTLD_GLOBAL) +- +\ No newline at end of file ++# sys.setdlopenflags(DLFCN.RTLD_NOW|DLFCN.RTLD_GLOBAL) ++ diff --git a/pykde4.spec b/pykde4.spec index 21d6a53..460c0c0 100644 --- a/pykde4.spec +++ b/pykde4.spec @@ -19,7 +19,7 @@ Name: pykde4 Version: 4.14.3 -Release: 20%{?dist} +Release: 21%{?dist} Summary: Python bindings for KDE4 # http://techbase.kde.org/Policies/Licensing_Policy @@ -56,6 +56,7 @@ Patch209: kubuntu_kpythonpluginfactory_3.2support.diff # rhel patches Patch300: pykde4-4.8.3-webkit.patch +Patch301: pykde4-dont-change-environment-cause-crash.patch BuildRequires: kdelibs4-devel >= 4.14 %if 0%{?nepomuk} @@ -205,7 +206,7 @@ Requires: python3-pykde4%{?_isa} = %{version}-%{release} %if ! 0%{?webkit} %patch300 -p1 -b .webkit %endif - +%patch301 -p1 -b .crash-with-other-python-module %build %if 0%{?python3} @@ -348,6 +349,10 @@ rm -fv %{buildroot}%{python3_sitearch}/PyKDE4/nepomuk.so %changelog +* Mon Jan 15 2018 Than Ngo - 4.14.3-21 +- fixed bz#1456075, import error in PyKDE4 +- fixed bz#1442464, segfault with other python module + * Thu Aug 03 2017 Fedora Release Engineering - 4.14.3-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild