commit 60ccbc73d0053c012963a2d693923d7bb3d7faaa
Author: Elan Ruusamäe <g...@delfi.ee>
Date:   Sat Oct 1 21:08:21 2016 +0300

    require python modules at runtime
    
    otherwise we get apache flooding with these errors:
    
    ImportError: No module named traceback
    Traceback (most recent call last):
      File "/usr/lib64/python2.7/site.py", line 64, in <module>

 apache-mod_wsgi.spec | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/apache-mod_wsgi.spec b/apache-mod_wsgi.spec
index caff64f..52f0dca 100644
--- a/apache-mod_wsgi.spec
+++ b/apache-mod_wsgi.spec
@@ -11,7 +11,7 @@ Summary:      WSGI interface for the Apache Web server
 Summary(pl.UTF-8):     Interfejs WSGI dla serwera WWW Apache
 Name:          apache-mod_%{mod_name}
 Version:       3.5
-Release:       2
+Release:       3
 License:       Apache
 Group:         Networking/Daemons
 # Source0:     
http://modwsgi.googlecode.com/files/mod_%{mod_name}-%{version}.tar.gz
@@ -33,6 +33,11 @@ BuildRequires:       python-devel >= 2.3
 BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      apache(modules-api) = %{apache_modules_api}
 Requires:      apr >= 1:1.0.0
+%if %{with python3}
+Requires:      python3-modules
+%else
+Requires:      python-modules
+%endif
 # 
http://helpful.knobs-dials.com/index.php/Mod_wsgi_notes#PyEval_AcquireThread:_non-NULL_old_thread_state
 Conflicts:     apache-mod_python
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/apache-mod_wsgi.git/commitdiff/60ccbc73d0053c012963a2d693923d7bb3d7faaa

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to