[Erp5-report] r25660 - in /spec/mandriva: erp5-DeadlockDebugger/ python2.4-threadframe/

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Feb 23 14:17:40 CET 2009


Author: kazuhiko
Date: Mon Feb 23 14:17:39 2009
New Revision: 25660

URL: http://svn.erp5.org?rev=25660&view=rev
Log:
import erp5-DeadlockDebugger and python2.4-threadframe packages by Luke.

Added:
    spec/mandriva/erp5-DeadlockDebugger/
    spec/mandriva/erp5-DeadlockDebugger/erp5-DeadlockDebugger.spec
    spec/mandriva/python2.4-threadframe/
    spec/mandriva/python2.4-threadframe/python2.4-threadframe.spec

Added: spec/mandriva/erp5-DeadlockDebugger/erp5-DeadlockDebugger.spec
URL: http://svn.erp5.org/spec/mandriva/erp5-DeadlockDebugger/erp5-DeadlockDebugger.spec?rev=25660&view=auto
==============================================================================
--- spec/mandriva/erp5-DeadlockDebugger/erp5-DeadlockDebugger.spec (added)
+++ spec/mandriva/erp5-DeadlockDebugger/erp5-DeadlockDebugger.spec [utf8] Mon Feb 23 14:17:39 2009
@@ -1,0 +1,70 @@
+%define product DeadlockDebugger
+%define version 1.0
+%define release 1
+
+%define rpm_prefix erp5
+%define zope_home %{_prefix}/lib/erp5
+%define software_home %{zope_home}/lib/python
+
+Summary:   A Zope product to show threads
+Name:      %{rpm_prefix}-%{product}
+Version:   %{version}
+Release:   %mkrel %{release}
+License:   GPL
+Group:     System/Servers
+URL:       http://www.zope.org/Members/nuxeo/Products/%{product}
+Source0:   http://www.zope.org/Members/nuxeo/Products/%{product}/%{version}/%{product}-%{version}.tgz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rootdir
+BuildArch: noarch
+Requires:  %{rpm_prefix}-zope
+Requires:  python2.4-threadframe
+
+#----------------------------------------------------------------------
+%description
+This product adds a hook so that a deadlocked Zope process can be
+debugged, by dumping a traceback of all running python processes. The
+dump is sent to the event log (at the DEBUG level) and returned to the
+browser (even though the Zope is deadlocked and doesn't answer any
+other requests!).
+
+DeadlockDebugger can of course also be used in non-deadlock situations,
+when a Zope process is taking a long time and you wish to know what code
+is being executed.
+
+#----------------------------------------------------------------------
+%prep
+%setup -q -c
+
+%build
+
+%install
+%{__rm} -rf %{buildroot}
+%{__mkdir_p} %{buildroot}%{software_home}/Products
+%{__cp} -a * %{buildroot}%{software_home}/Products/
+%py_compile %{buildroot}%{software_home}/Products
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%post
+if [ "`%{_prefix}/bin/zopectl-erp5 status`" != "daemon manager not running" ] ; then
+  service erp5 restart
+fi
+
+%postun
+if [ "$1" = "0" ] && [ "`%{_prefix}/bin/zopectl-erp5 status`" != "daemon manager not running" ] ; then
+  service erp5 restart
+fi
+
+%files
+%defattr(0644, zope, zope, 0755)
+%dir %{software_home}/Products/%{product}
+%{software_home}/Products/%{product}/*.txt
+%{software_home}/Products/%{product}/__init__.py*
+%{software_home}/Products/%{product}/dumper.py*
+%config(noreplace) %{software_home}/Products/%{product}/custom.py*
+
+#----------------------------------------------------------------------
+%changelog
+* Fri Feb 13 2008 Łukasz Nowak <luke at nexedi.com> 1.0-1nxd2009.0
+- Initial release of spec

Added: spec/mandriva/python2.4-threadframe/python2.4-threadframe.spec
URL: http://svn.erp5.org/spec/mandriva/python2.4-threadframe/python2.4-threadframe.spec?rev=25660&view=auto
==============================================================================
--- spec/mandriva/python2.4-threadframe/python2.4-threadframe.spec (added)
+++ spec/mandriva/python2.4-threadframe/python2.4-threadframe.spec [utf8] Mon Feb 23 14:17:39 2009
@@ -1,0 +1,39 @@
+%define oname	threadframe
+%define py_platsitedir %{_libdir}/python2.4/site-packages
+
+Name:		python2.4-%{oname}
+Version:	0.2
+Release:	%mkrel 1
+URL:		http://www.majid.info/mylos/stories/2004/06/10/%{oname}.html
+Source0:	http://www.majid.info/python/%{oname}/%{oname}-%{version}.tar.gz
+License:	Python
+Group:		System/Libraries
+Summary:	Advanced thread debugging extension
+BuildRequires:	python2.4-devel
+BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot
+Requires:	python2.4
+
+%description
+Obtaining tracebacks on other threads than the current thread
+
+%prep
+%setup -q -n %{oname}-%{version}
+
+%build
+CFLAGS="%{optflags}" python2.4 setup.py build
+
+%install
+rm -rf %{buildroot}
+python2.4 setup.py install --root="%{buildroot}" --record=INSTALLED_FILES
+
+%clean
+rm -rf %{buildroot}
+
+%files -f INSTALLED_FILES
+%defattr(-,root,root)
+%doc README
+
+
+%changelog
+* Fri Feb 13 2009 Łukasz Nowak <luke at nexedi.com> 0.2-1nxd2009.0
+- Initial release




More information about the Erp5-report mailing list