Comment 20 for bug 1883468

Revision history for this message
Spencer (spencerharmon) wrote :

The crux of the problem is that, on every instance I've tested, if you "pip download uwsgi" as what's performed in this script, you will end up with a file called "uWSGI-2.0.19.1.tar.gz", which won't be found by "ls uwsgi*", obviously. The script needs to be updated to reflect the correct name of the file. As well, it seems that the internal directory structure doesn't match what's implied by this script.

Are you certain that what you've tested is reaching the relevant line? Control must reach line 122 os /lib apache to see the bug. If I'm reading it right, this bug should not affect either Fedora or Ubuntu.

This is the patch I'm using for centos 7, branch stable/stein:

diff --git a/lib/apache b/lib/apache
index a31188be..8fe213c8 100644
--- a/lib/apache
+++ b/lib/apache
@@ -119,9 +119,9 @@ function install_apache_uwsgi {
         pip_install uwsgi
         pip download uwsgi -c $REQUIREMENTS_DIR/upper-constraints.txt
         local uwsgi
- uwsgi=$(ls uwsgi*)
+ uwsgi=$(ls uWSGI*)
         tar xvf $uwsgi
- cd uwsgi*/apache2
+ cd apache2
         sudo $apxs -i -c mod_proxy_uwsgi.c
         popd
         # delete the temp directory