debian/0000755000000000000000000000000011651022716007167 5ustar debian/rules0000755000000000000000000000120511651022060010235 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/python-distutils.mk include /usr/share/cdbs/1/rules/patchsys-quilt.mk DEB_INSTALL_DOCS_ALL = install/python-kaa-base:: : # Replace all '#!' calls to python with /usr/bin/python : # and make them executable for i in `find debian/python-kaa-base -type f`; do \ sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python\1,' \ $$i > $$i.temp; \ if cmp --quiet $$i $$i.temp; then \ rm -f $$i.temp; \ else \ mv -f $$i.temp $$i; \ chmod 755 $$i; \ echo "fixed interpreter: $$i"; \ fi; \ done clean:: rm -f src/version.pyc debian/compat0000644000000000000000000000000210637013403010361 0ustar 5 debian/changelog0000644000000000000000000000541711651021504011042 0ustar kaa-base (0.6.0+svn4596-1) unstable; urgency=low * upgrade to new svn version * Bug fix: "deprecation of dh_pycentral, please use dh_python2", thanks to Matthias Klose (Closes: #616851). -- A Mennucc1 Sat, 22 Oct 2011 20:19:11 +0200 kaa-base (0.6.0-5) unstable; urgency=medium * fix integration with twisted, thanks to Alexandre Rossi and Mickael Royer (Closes: #575293). -- A Mennucc1 Fri, 26 Mar 2010 12:06:58 +0100 kaa-base (0.6.0-4) unstable; urgency=low * REALLY use ctypes.util.find_library to find libc, thanks KiBi, closes: #566902. -- A Mennucc1 Sat, 13 Mar 2010 17:43:43 +0100 kaa-base (0.6.0-3) unstable; urgency=low * Bump standard to 3.8.4, no change * Add misc:depends * Switch to dpkg-source 3.0 (quilt) format * Use ctypes.util.find_library to find libc, thanks KiBi, closes: #566902. -- A Mennucc1 Fri, 12 Mar 2010 18:11:13 +0100 kaa-base (0.6.0-2) unstable; urgency=low * libc6 is /lib/libc6.so.6.1 in IA64 (Closes: #559633). * Add myself to uploaders. -- A Mennucc1 Mon, 07 Dec 2009 21:48:59 +0100 kaa-base (0.6.0-1) unstable; urgency=low * New version. -- A Mennucc1 Tue, 26 May 2009 22:48:22 +0200 kaa-base (0.4.0+svn4046-1) experimental; urgency=low * New SVN version. * This version needs Python >= 2.5. -- A Mennucc1 Sat, 23 May 2009 18:14:24 +0200 kaa-base (0.4.0-2) UNRELASED; urgency=low * Bump up Standards-Version to 3.8.0: no changes needed. -- Jeremie Corbier Wed, 11 Jun 2008 14:53:01 +0200 kaa-base (0.4.0-1) unstable; urgency=low * New upstream release. -- A Mennucc1 Tue, 25 Mar 2008 14:12:15 +0100 kaa-base (0.3.0-1) unstable; urgency=low * New upstream release. * Drop dependency on python-xml since it is provided by Python default modules set (Closes: #468599). -- Jeremie Corbier Sat, 15 Mar 2008 20:05:05 +0100 kaa-base (0.2.0-1) unstable; urgency=low * New uptream release. [Jeremie Corbier] * Set Maintainer to pkg-freevo-maint. * Update XS-Vcs-* fields: kaa-base is comaintained in the pkg-freevo SVN repository. * Use the Homepage field. * Vcs-* fields are official now. * Bump up Standards-Version: no changes needed. [Georg W. Leonhardt] * Add myself as uploader -- Jeremie Corbier Fri, 04 Jan 2008 00:03:07 +0100 kaa-base (0.1.3-1) unstable; urgency=low * Initial release (Closes: #426482). * debian/patches: -> 001_remove-useless-shebangs.patch -- Jeremie Corbier Mon, 28 May 2007 21:42:06 -0700 debian/pycompat0000644000000000000000000000000210637013403010732 0ustar 2 debian/watch0000644000000000000000000000012410637013403010211 0ustar version=3 http://qa.debian.org/watch/sf.php/freevo kaa-base-((?:\d\.)+\d)\.tar\.gz debian/control0000644000000000000000000000233011651021673010571 0ustar Source: kaa-base Section: python Priority: optional Maintainer: Freevo Debian Dream Team Uploaders: Jeremie Corbier , Georg W. Leonhardt , A Mennucc1 Build-Depends: cdbs (>= 0.4.42), debhelper (>= 5.0.37.2), quilt, python-all-dev (>= 2.6.6-3), libglib2.0-dev (>= 2.6) X-Python-Version: >= 2.6 Vcs-Svn: svn://svn.debian.org/svn/pkg-freevo/kaa-base/ Vcs-Browser: http://svn.debian.org/wsvn/pkg-freevo/kaa-base/ Standards-Version: 3.8.4 Homepage: http://freevo.org/kaa Package: python-kaa-base Architecture: any Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}, python-sqlite Provides: ${python:Provides} Description: Base Kaa Framework for all Kaa Modules Kaa Base provides the base Kaa framework and is an implicit dependency for all kaa modules. The kaa framework includes a mainloop facility with an API for signals and callbacks, timers, process and thread management, file descriptor monitoring (with INotify support), inter-process communication, as well as a rich, practically magical API for asynchronous programming. . The Kaa Media Repository is a set of Python modules related to media. debian/source/0000755000000000000000000000000011651022716010467 5ustar debian/source/format0000644000000000000000000000001411346474317011706 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000714510637013403011125 0ustar This package was debianized by Jeremie Corbier on Mon, 28 May 2007 19:35:14 -0700. It was downloaded from http://sourceforge.net/projects/freevo/ Copyright: Copyright (C) 2006 Dirk Meyer, Jason Tackaberry First Edition: Dirk Meyer Maintainer: Dirk Meyer Please see the file AUTHORS for a complete list of authors. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA The complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL'. The following files are subject to other copyrights: - src/extensions/inotify/fallback-inotify.h: Copyright (C) 2005 John McCutchan - src/extensions/shmmodule.c: « shmmodule.c © 1997, 1998 by INRIA. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THIS SOFTWARE IS PROVIDED "AS IS" AND ANY WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE INRIA OR THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES, INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, LOSS OF USE, DATA, OR PROFITS OR BUSINESS INTERRUPTION, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT, INCLUDING NEGLIGENCE OR OTHERWISE, ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. » If you have questions regarding this software, contact: Vladimir Marangozov, Vladimir.Marangozov@inrialpes.fr INRIA Rhône-Alpes, SIRAC project, 655 avenue de l'Europe 38330 Montbonnot St. Martin, France. - src/notifier/pynotifier/*: Copyright (C) 2004, 2005, 2006 Andreas Büsching This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA debian/patches/0000755000000000000000000000000011651022716010616 5ustar debian/patches/series0000644000000000000000000000011511651022706012027 0ustar #001_remove-useless-shebangs.patch #002_ia64_libc.patch #004_ia64_libc.patch debian/patches/004_ia64_libc.patch0000644000000000000000000000560711353117377013775 0ustar Description: Use the ctypes.util.find_library call to find libc. This way many different architectures are supported. Note this important fact. When kaa is imported, ctypes.util.find_library is called, and it uses os.popen which emits a SIGCHLD; so the handler must be connected *after* the call to ctypes.util.find_library . Otherwise os.popen triggers the handler that forces the kaa notifier initialization; so when we try to select a notifier after the import, an exception is raised because kaa notifier is already initialized; this breaks twisted integration. Bug-Debian: http://bugs.debian.org/566902 Bug-Debian: http://bugs.debian.org/575293 Forwarded: https://sourceforge.net/tracker/?func=detail&aid=2976967&group_id=46652&atid=446895 Author: A Mennucc Author: Alexandre Rossi Thanks: Mickael Royer Thanks: KiBi Last-Update: 2010-03-25 diff -u kaa-base-0.6.0/src/process.py kaa-base-0.6.0.new//src/process.py 2010-03-25 23:15:37.000000000 +0100 --- kaa-base-0.6.0/src/process.py 2010-03-13 17:57:05.000000000 +0100 +++ kaa-base-0.6.0.new//src/process.py 2010-03-25 23:15:37.000000000 +0100 @@ -28,6 +28,7 @@ import subprocess import os +import sys import shlex import errno import logging @@ -60,7 +61,6 @@ def __init__(self): self.processes = {} - signal.signal(signal.SIGCHLD, self._sigchld_handler) # Set SA_RESTART bit for the signal, which restarts any interrupted # system calls -- however, select (at least on Linux) is NOT restarted # for reasons described at: @@ -68,17 +68,23 @@ # # Therefore the purpose of signal.set_wakeup_fd() eludes me, since # select calls get interrupted, there is no need to wake it up. - try: + v = sys.version_info + if v[0] >= 3 or (v[0] == 2 and v[1] >= 6): # Python 2.6+ + signal.signal(signal.SIGCHLD, self._sigchld_handler) signal.siginterrupt(signal.SIGCHLD, False) - except AttributeError: - try: - # Python 2.5 - import ctypes - ctypes.CDLL("libc.so.6").siginterrupt(signal.SIGCHLD, 0) - except (ImportError, OSError): - # Python 2.4- is not supported. - raise SystemError('kaa.base requires Python 2.5 or later') + elif v[0] == 2 and v[1] == 5: + # Python 2.5 + import ctypes, ctypes.util + libc=ctypes.util.find_library('c') + # ctypes.util.find_library() involves a child process, so the + # handler should be set after the call. + # See Debian bug #575293 + signal.signal(signal.SIGCHLD, self._sigchld_handler) + ctypes.CDLL(libc).siginterrupt(signal.SIGCHLD, 0) + else: + # Python 2.4- is not supported. + raise SystemError('kaa.base requires Python 2.5 or later') def register(self, process): debian/patches/002_ia64_libc.patch0000644000000000000000000000266711346743532013776 0ustar Index: kaa-base-0.6.0/src/process.py =================================================================== --- kaa-base-0.6.0.orig/src/process.py 2009-05-25 22:47:25.000000000 +0200 +++ kaa-base-0.6.0/src/process.py 2010-03-13 17:57:05.000000000 +0100 @@ -28,6 +28,7 @@ import subprocess import os +import sys import shlex import errno import logging @@ -68,17 +69,18 @@ # # Therefore the purpose of signal.set_wakeup_fd() eludes me, since # select calls get interrupted, there is no need to wake it up. - try: + v = sys.version_info + if v[0] >= 3 or (v[0] == 2 and v[1] >= 6): # Python 2.6+ signal.siginterrupt(signal.SIGCHLD, False) - except AttributeError: - try: - # Python 2.5 - import ctypes - ctypes.CDLL("libc.so.6").siginterrupt(signal.SIGCHLD, 0) - except (ImportError, OSError): - # Python 2.4- is not supported. - raise SystemError('kaa.base requires Python 2.5 or later') + elif v[0] == 2 and v[1] == 5: + # Python 2.5 + import ctypes, ctypes.util + libc=ctypes.util.find_library('c') + ctypes.CDLL(libc).siginterrupt(signal.SIGCHLD, 0) + else: + # Python 2.4- is not supported. + raise SystemError('kaa.base requires Python 2.5 or later') def register(self, process): debian/patches/001_remove-useless-shebangs.patch0000644000000000000000000000465010637013403016766 0ustar Index: kaa-base/src/notifier/pynotifier/__init__.py =================================================================== --- kaa-base.orig/src/notifier/pynotifier/__init__.py 2007-05-28 21:36:36.000000000 -0700 +++ kaa-base/src/notifier/pynotifier/__init__.py 2007-05-28 21:37:15.000000000 -0700 @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- # # Author: Andreas Büsching Index: kaa-base/src/notifier/pynotifier/dispatch.py =================================================================== --- kaa-base.orig/src/notifier/pynotifier/dispatch.py 2007-05-28 21:36:36.000000000 -0700 +++ kaa-base/src/notifier/pynotifier/dispatch.py 2007-05-28 21:37:07.000000000 -0700 @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- # # Author: Andreas Büsching Index: kaa-base/src/notifier/pynotifier/log.py =================================================================== --- kaa-base.orig/src/notifier/pynotifier/log.py 2007-05-28 21:36:36.000000000 -0700 +++ kaa-base/src/notifier/pynotifier/log.py 2007-05-28 21:37:26.000000000 -0700 @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- # # Author: Andreas Büsching Index: kaa-base/src/notifier/pynotifier/nf_generic.py =================================================================== --- kaa-base.orig/src/notifier/pynotifier/nf_generic.py 2007-05-28 21:36:36.000000000 -0700 +++ kaa-base/src/notifier/pynotifier/nf_generic.py 2007-05-28 21:37:35.000000000 -0700 @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- # # Author: Andreas Büsching Index: kaa-base/src/notifier/pynotifier/nf_gtk.py =================================================================== --- kaa-base.orig/src/notifier/pynotifier/nf_gtk.py 2007-05-28 21:36:37.000000000 -0700 +++ kaa-base/src/notifier/pynotifier/nf_gtk.py 2007-05-28 21:37:42.000000000 -0700 @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- # # Author: Andreas Büsching Index: kaa-base/src/notifier/pynotifier/version.py =================================================================== --- kaa-base.orig/src/notifier/pynotifier/version.py 2007-05-28 21:36:37.000000000 -0700 +++ kaa-base/src/notifier/pynotifier/version.py 2007-05-28 21:37:48.000000000 -0700 @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- # # Author: Andreas Büsching