[scim-python] fixes libpython2.7.so.1.0 load
Peng Wu
pwu at fedoraproject.org
Wed Mar 7 05:27:53 UTC 2012
commit 9c24cd659cc4ed843921033ea87d7ad6802f9daf
Author: Peng Wu <alexepico at gmail.com>
Date: Wed Mar 7 13:27:45 2012 +0800
fixes libpython2.7.so.1.0 load
scim-python-fixes-dlopen.patch | 20 ++++++++++++++++++++
scim-python.spec | 7 ++++++-
2 files changed, 26 insertions(+), 1 deletions(-)
---
diff --git a/scim-python-fixes-dlopen.patch b/scim-python-fixes-dlopen.patch
new file mode 100644
index 0000000..64e22f2
--- /dev/null
+++ b/scim-python-fixes-dlopen.patch
@@ -0,0 +1,20 @@
+Index: scim-python-0.1.13rc1/src/scim-python.cpp
+===================================================================
+--- scim-python-0.1.13rc1.orig/src/scim-python.cpp
++++ scim-python-0.1.13rc1/src/scim-python.cpp
+@@ -24,6 +24,7 @@
+ */
+ #include "../config.h"
+ #include "scim-python.h"
++#include <dlfcn.h>
+ #include <assert.h>
+
+ using namespace scim;
+@@ -175,6 +176,7 @@ scim_module_init (void)
+
+ Py_Initialize ();
+ PySys_SetArgv (1, argv);
++ dlopen("libpython2.7.so.1.0", RTLD_LAZY |RTLD_GLOBAL);
+
+ out:
+ _use_count ++;
diff --git a/scim-python.spec b/scim-python.spec
index d841397..ac34118 100644
--- a/scim-python.spec
+++ b/scim-python.spec
@@ -3,7 +3,7 @@
%define mod_path scim-0.1
Name: scim-python
Version: 0.1.13rc1
-Release: 10%{?dist}
+Release: 11%{?dist}
Summary: Python language binding for Smart Common Input Method platform
License: LGPLv2+
@@ -15,6 +15,7 @@ Source2: http://scim-python.googlecode.com/files/xingma-zhengma-0.1.10.1.tar.
Source3: http://scim-python.googlecode.com/files/xingma-wubi86-0.1.10.1.tar.bz2
Source4: http://scim-python.googlecode.com/files/xingma-erbi-qingsong-0.1.10.1.tar.bz2
Source5: http://scim-python.googlecode.com/files/xingma-cangjie5-0.1.10.1.tar.bz2
+Patch0: scim-python-fixes-dlopen.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: scim-devel, gettext-devel, libtool, python-devel, pygtk2-devel, perl(XML::Parser)
@@ -96,6 +97,7 @@ This package contains an ZhengMa table for python XingMa IM engine.
%prep
%setup -q -a2 -a3 -a4 -a5
+%patch0 -p1 -b .dlopen
cp %{SOURCE1} python/engine/PinYin/
%build
@@ -211,6 +213,9 @@ XMCreateDB -i -n %{_datadir}/scim-python/engine/XingMa/tables/zhengma.db > /dev/
%changelog
+* Wed Mar 07 2012 Peng Wu <pwu at redhat.com> - 0.1.13rc1-11
+- Fixes libpython2.7.so.1.0 load
+
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1.13rc1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
More information about the scm-commits
mailing list