oschaaf commented on issue #1740:
URL: 
https://github.com/apache/incubator-pagespeed-ngx/issues/1740#issuecomment-995264625


   With some fiddling this produces an nginx binary for me:
   
   ```
   #!/bin/bash                                                                  
                                                                                
                                               
   set -x
   NPS_VERSION=1.14.33.1-RC1
   NPS_RELEASE_NUMBER=1.14.36.1
   PS_NGX_EXTRA_FLAGS=--with-cc-opt=-Wno-error
   
   wget -O- 
https://github.com/apache/incubator-pagespeed-ngx/archive/refs/tags/v${NPS_VERSION}.tar.gz
 | tar -xz
   nps_dir=$(realpath $(find . -name "*pagespeed-ngx-${NPS_VERSION}" -type d))
   cd "$nps_dir"
   
psol_url=https://dl.google.com/dl/page-speed/psol/${NPS_RELEASE_NUMBER}.tar.gz
   [ -e scripts/format_binary_url.sh ] && 
psol_url=$(scripts/format_binary_url.sh PSOL_BINARY_URL)
   wget -O- ${psol_url} | tar -xz  # extracts to psol/                          
                                                                                
                                               
   
   NGINX_VERSION=1.18.0
   wget -O- http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz | tar -xz
   cd nginx-${NGINX_VERSION}/
   ./configure --add-module=$nps_dir ${PS_NGX_EXTRA_FLAGS}
    make -j 80
   ```
   
   Notes:
   
   - During the release process, I didn't go ahead and release ngx_pagespeed 
along with mod_pagespeed. This is because that would need ngx_pagespeed to go 
through some more compliance checking to ensure it is on par with ASF standards.
   - I did however go as far as tagging a release candidate. Unfortunately I 
made a typo (1.14.33.1-RC1 ought to have been 1.14.36.1-RC1). This is what we 
use above.
   I think it would be OK for us to update the documentation with a script 
similar to what I am posting here, as long as we add a disclaimer/warning about 
this being a WIP from an ASF policy PoV.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@pagespeed.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to