Bug fixes for nginx-1.0.4

yoonghm nginx-forum at nginx.us
Sun Jun 19 17:42:32 MSD 2011


Hi:

  I could not upload and put into development forum. So I place it
here.

I ran configure with

#export SPATH=/home/s
# ./configure --prefix=${SPATH}                                         
    \
            --sbin-path=${SPATH}/bin/ngnix                              
\
            --conf-path=${SPATH}/src/param/ngnix/ngnix.conf             
\
            --error-log-path=${SPATH}/logs/ngnix-error.conf             
\
            --pid-path=${SPATH}/logs/nginx.pid                          
\
            --lock-path=${SPATH}/logs/nginx.lock                        
\
            --http-log-path=${SPATH}/logs/ngnix-access.log              
\
            --http-client-body-temp-path=${SPATH}/html/temp/client_body 
\
            --http-proxy-temp-path=${SPATH}/html/temp/proxy             
\
            --http-fastcgi-temp-path=${SPATH}/html/temp/fastcgi         
\
            --http-uwsgi-temp-path=${SPATH}/html/temp/uwsgi             
\
            --http-scgi-temp-path=${SPATH}/html/temp/scgi               
\
            --builddir=${SPATH}/src/build/xnpp/ngnix                    
\
            --with-http_ssl_module

Bug 1:
=====
The directories 
a) NGX_HTTP_PROXY_TEMP_PATH
b) NGX_HTTP_FASTCGI_TEMP_PATH
c) NGX_HTTP_FASTCGI_TEMP_PATH
d) NGX_HTTP_UWSGI_TEMP_PATH

are not created by Makefile.

nginx-1.0.4/auto/install
74a75,113
> case ".$NGX_HTTP_PROXY_TEMP_PATH" in
>     ./*)
>     ;;
> 
>     *)
>        
NGX_HTTP_PROXY_TEMP_PATH=$NGX_PREFIX/$NGX_HTTP_PROXY_TEMP_PATH
>     ;;
> esac
> 
> 
> case ".$NGX_HTTP_FASTCGI_TEMP_PATH" in
>     ./*)
>     ;;
>         
>     *)          
>        
NGX_HTTP_FASTCGI_TEMP_PATH=$NGX_PREFIX/$NGX_HTTP_FASTCGI_TEMP_PATH
>     ;;          
> esac
> 
> 
> case ".$NGX_HTTP_UWSGI_TEMP_PATH" in
>     ./*)
>     ;;
>         
>     *)          
>        
NGX_HTTP_UWSGI_TEMP_PATH=$NGX_PREFIX/$NGX_HTTP_UWSGI_TEMP_PATH
>     ;;          
> esac
> 
> 
> case ".$NGX_HTTP_SCGI_TEMP_PATH" in
>     ./*)
>     ;;
        
>     *)          
>         NGX_HTTP_SCGI_TEMP_PATH=$NGX_PREFIX/$NGX_HTTP_SCGI_TEMP_PATH
>     ;;          
> esac
> 
136a176,187
> 
> 	test -d '\$(DESTDIR)$NGX_HTTP_PROXY_TEMP_PATH' || \
> 		mkdir -p '\$(DESTDIR)$NGX_HTTP_PROXY_TEMP_PATH'
> 
> 	test -d '\$(DESTDIR)$NGX_HTTP_FASTCGI_TEMP_PATH' || \
> 		mkdir -p '\$(DESTDIR)$NGX_HTTP_FASTCGI_TEMP_PATH'
> 
> 	test -d '\$(DESTDIR)$NGX_HTTP_UWSGI_TEMP_PATH' || \
> 		mkdir -p '\$(DESTDIR)$NGX_HTTP_UWSGI_TEMP_PATH'
> 
> 	test -d '\$(DESTDIR)$NGX_HTTP_SCGI_TEMP_PATH' || \
> 		mkdir -p '\$(DESTDIR)$NGX_HTTP_SCGI_TEMP_PATH'


Bug 2:
=====
If --builddir is two level depth, it is not created by Makefile.

nginx-1.0.4/configure
10c10
< test -d $NGX_OBJS || mkdir $NGX_OBJS
---
> test -d $NGX_OBJS || mkdir -p $NGX_OBJS

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,208219,208219#msg-208219




More information about the nginx mailing list