packages: python-skype/python-skype.spec, python-skype/execlp-args.patch (N...
glen
glen at pld-linux.org
Sun Apr 15 03:22:24 CEST 2012
Author: glen Date: Sun Apr 15 01:22:24 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- fix execlp() arguments (needs two)
---- Files affected:
packages/python-skype:
python-skype.spec (1.12 -> 1.13) , execlp-args.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python-skype/python-skype.spec
diff -u packages/python-skype/python-skype.spec:1.12 packages/python-skype/python-skype.spec:1.13
--- packages/python-skype/python-skype.spec:1.12 Sat Apr 14 21:15:26 2012
+++ packages/python-skype/python-skype.spec Sun Apr 15 03:22:19 2012
@@ -3,7 +3,7 @@
Summary: Python wrapper for the Skype API
Name: python-%{module}
Version: 1.0.32.0
-Release: 4
+Release: 5
License: BSD
Group: Development/Languages/Python
Source0: http://downloads.sourceforge.net/skype4py/Skype4Py-%{version}.tar.gz
@@ -14,6 +14,7 @@
Source4: skype.schemas
# http://skype4py.svn.sourceforge.net/viewvc/skype4py/Skype4Py/api/posix.py?view=patch&r1=277&r2=276&pathrev=277
Patch0: default-transport.patch
+Patch1: execlp-args.patch
URL: http://sourceforge.net/projects/skype4py/
BuildRequires: python-devel
BuildRequires: rpm-pythonprov
@@ -51,7 +52,8 @@
# workaround for stupid tarball lacking execute perms on dirs
tar xzf %{SOURCE0}; chmod -R u+rwX .; mv Skype4Py-*/* .
-%patch -p0 -R
+%patch0 -p0 -R
+%patch1 -p1
%undos examples/*.py
mv Skype4Py/LICENSE .
@@ -161,6 +163,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.13 2012/04/15 01:22:19 glen
+- fix execlp() arguments (needs two)
+
Revision 1.12 2012/04/14 19:15:26 glen
- revert default transport back to x11, dbus transport crashes too randomly
================================================================
Index: packages/python-skype/execlp-args.patch
diff -u /dev/null packages/python-skype/execlp-args.patch:1.1
--- /dev/null Sun Apr 15 03:22:24 2012
+++ packages/python-skype/execlp-args.patch Sun Apr 15 03:22:19 2012
@@ -0,0 +1,28 @@
+os.execlp() needs at least two args:
+
+Python 2.7.2 (default, Aug 16 2011, 10:09:58)
+[GCC 4.6.1 20110714 (release)] on linux2
+Type "help", "copyright", "credits" or "license" for more information.
+>>> import os
+>>> os.execlp('skype')
+Traceback (most recent call last):
+ File "<stdin>", line 1, in <module>
+ File "/usr/share/python2.7/os.py", line 327, in execlp
+ File "/usr/share/python2.7/os.py", line 344, in execvp
+ File "/usr/share/python2.7/os.py", line 380, in _execvpe
+ValueError: execv() arg 2 must not be empty
+>>> os.execlp('skype', 'skype')
+
+-> OK
+
+--- Skype4Py-1.0.32.0/Skype4Py/api/posix_x11.py~ 2009-09-26 15:19:37.000000000 +0300
++++ Skype4Py-1.0.32.0/Skype4Py/api/posix_x11.py 2012-04-15 04:19:47.316670442 +0300
+@@ -400,7 +400,7 @@
+ if not self.is_running():
+ if os.fork() == 0: # we're the child
+ os.setsid()
+- os.execlp('skype')
++ os.execlp('skype', 'skype')
+
+ def shutdown(self):
+ from signal import SIGINT
================================================================
---- CVS-web:
http://cvs.pld-linux.org/packages/python-skype/python-skype.spec?r1=1.12&r2=1.13
More information about the pld-cvs-commit
mailing list