Conversation
- There appears to be a significant change in request member "cookie" that must be handled. Code is commented in order to move compilation forward and detect any errors that arise. ( Previously it was ngx_array_t and now its changed to ngx_table_elt_t which don't have members elts & nelts).
- Updated nginx version
- There appears to be a significant change in request member "cookie" that must be handled. Code is commented in order to move compilation forward and detect any errors that arise. ( Previously it was ngx_array_t and now its changed to ngx_table_elt_t which don't have members elts & nelts). - Fixed the problem by breaking the external for loop as its not needed to loop over as cookie data may come in string
- Modified some logging statements in-order to differentiate it from original logs. This changes will be reverted once testing done.
|
|
- Modified some logging statements in-order to differentiate it from original logs. This changes will be reverted once testing done.
- Minor change. Initialized return bool variable ngx_flag_t to 0.
- Created the patch files to add zimbra specific customization on the top of the public nginx repository stable-1.24.0
- Changed in order to work the customization for the any nginx version got from public repository. ZCS-13998 : NGINX - Customization code separation from repo - Added patch files in order to apply zimbra specific customizations ZCS-13998 : NGINX - Customization code separation from repo - Changes to create build with patches Update Makefile ZCS-13998 : NGINX - Customization code separation from repo - Update build file ZCS-13998 : NGINX - Customization code separation from repo - customization related changes ZCS-13998 : NGINX - Customization code separation from repo - build failure fix ZCS-13998 : NGINX - Customization code separation from repo ZCS-13998 : NGINX - Customization code separation from repo - build failure fixes ZCS-13998 : NGINX - Customization code separation from repo - fix ZCS-13998 : NGINX - Customization code separation from repo - fix ZCS-13998 : NGINX - Customization code separation from repo - compilation fixes ZCS-13998 : NGINX - Customization code separation from repo - fixed compilation
dd4c805 to
036f98f
Compare
|
When I try to compile NGinx for Ubuntu 20, it works, but there is an error when creating the source package. This means the binary package works, but the source package is not created. I am not sure if we need to provide the source package (to comply with the license) since we already release our patch files. So perhaps this step can be removed. |
ghost
left a comment
There was a problem hiding this comment.
It is a little difficult to verify the patches from #194 are the same as what is in Zimbra/nginx#5 because we do not apply our changes on the upstream nginx source. Instead we copy upstream and apply them along with all our other nginx modules and then also remove and move files.
After manually moving and removing some files, I can confirm that this #194 produces the same as Zimbra/nginx#5
The source package throws many errors for me such as
dpkg-source: error: cannot represent change to objs/addon/nviennot-nginx-tcp-keepalive/ngx_http_tcp_keepalive_module.o: binary file contents changed
But since that source package is AFAIK not used, the PR is good enough.
Verified using:
#!/bin/bash
cd /tmp
rm packages zimbra-* -Rf
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9BE6ED79
rm /etc/apt/sources.list.d/zimbra.list
cat >> /etc/apt/sources.list.d/zimbra.list << EOF
deb [arch=amd64] https://repo.zimbra.com/apt/87 focal zimbra
deb-src [arch=amd64] https://repo.zimbra.com/apt/87 focal zimbra
deb [arch=amd64] https://repo.zimbra.com/apt/1000 focal zimbra
deb-src [arch=amd64] https://repo.zimbra.com/apt/1000 focal zimbra
deb [arch=amd64] https://repo.zimbra.com/apt/1000-ne focal zimbra
deb-src [arch=amd64] https://repo.zimbra.com/apt/1000-ne focal zimbra
EOF
apt-get clean
apt update
apt-get source gkrellweather
apt-get build-dep gkrellweather
apt -y install m4 libpcre3-dev build-essential git binutils lintian debhelper dh-make devscripts libz-dev quilt
GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git clone git@github.com:Zimbra/packages.git
GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git clone git@github.com:Zimbra/zimbra-build.git
GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git clone git@github.com:Zimbra/zimbra-package-stub.git
cd zimbra-package-stub
git checkout develop #ubuntu 20 support
cd ..
cd packages
git checkout feature/ZCS-11179
git submodule update --init --recursive --remote
cd /tmp/packages/thirdparty/nginx/
cd nginx
#git checkout feature/ZCS-11179
rm -Rf nginx
cd ..
make
sleep 10
make build
echo "Compiled version:"
/tmp/packages/thirdparty/nginx/build/UBUNTU20_64/zimbra-nginx/objs/nginx -V
- Some review comments
- Some review comments
* ZCOMT-2586 - Compile the nginx code in branch feature/ZCS-11179 - There appears to be a significant change in request member "cookie" that must be handled. Code is commented in order to move compilation forward and detect any errors that arise. ( Previously it was ngx_array_t and now its changed to ngx_table_elt_t which don't have members elts & nelts). * ZCOMT-2586 - Compile the nginx code in branch feature/ZCS-11179 - Updated nginx version * ZCOMT-2586 - Compile the nginx code in branch feature/ZCS-11179 - There appears to be a significant change in request member "cookie" that must be handled. Code is commented in order to move compilation forward and detect any errors that arise. ( Previously it was ngx_array_t and now its changed to ngx_table_elt_t which don't have members elts & nelts). - Fixed the problem by breaking the external for loop as its not needed to loop over as cookie data may come in string * ZCOMT-2586 - Compile the nginx code in branch feature/ZCS-11179 - Modified some logging statements in-order to differentiate it from original logs. This changes will be reverted once testing done. * ZCOMT-2586 - Compile the nginx code in branch feature/ZCS-11179 - Modified some logging statements in-order to differentiate it from original logs. This changes will be reverted once testing done. * ZCOMT-2586 - Compile the nginx code in branch feature/ZCS-11179 - Minor change. Initialized return bool variable ngx_flag_t to 0. * ZCS-13998 : NGINX - Customization code separation from repo - Created the patch files to add zimbra specific customization on the top of the public nginx repository stable-1.24.0 * ZCS-13998 : NGINX - Customization code separation from repo - Changed in order to work the customization for the any nginx version got from public repository. ZCS-13998 : NGINX - Customization code separation from repo - Added patch files in order to apply zimbra specific customizations ZCS-13998 : NGINX - Customization code separation from repo - Changes to create build with patches Update Makefile ZCS-13998 : NGINX - Customization code separation from repo - Update build file ZCS-13998 : NGINX - Customization code separation from repo - customization related changes ZCS-13998 : NGINX - Customization code separation from repo - build failure fix ZCS-13998 : NGINX - Customization code separation from repo ZCS-13998 : NGINX - Customization code separation from repo - build failure fixes ZCS-13998 : NGINX - Customization code separation from repo - fix ZCS-13998 : NGINX - Customization code separation from repo - fix ZCS-13998 : NGINX - Customization code separation from repo - compilation fixes ZCS-13998 : NGINX - Customization code separation from repo - fixed compilation * ZCS-13998 : NGINX - Customization code separation from repo - Some review comments * ZCS-13998 : NGINX - Customization code separation from repo - Some review comments * ZCS-14068 : NGINX - Update review comments and documentation - Some review comments * ZCS-14068 : NGINX - Update review comments and documentation - Some review comments * ZCS-11179:Updated changelog for nginx * ZCS-11179:Updated proxy-components --------- Co-authored-by: Umashankar Avagadda <umagmrit@gmail.com>
* ZCOMT-2586 - Compile the nginx code in branch feature/ZCS-11179 - There appears to be a significant change in request member "cookie" that must be handled. Code is commented in order to move compilation forward and detect any errors that arise. ( Previously it was ngx_array_t and now its changed to ngx_table_elt_t which don't have members elts & nelts). * ZCOMT-2586 - Compile the nginx code in branch feature/ZCS-11179 - Updated nginx version * ZCOMT-2586 - Compile the nginx code in branch feature/ZCS-11179 - There appears to be a significant change in request member "cookie" that must be handled. Code is commented in order to move compilation forward and detect any errors that arise. ( Previously it was ngx_array_t and now its changed to ngx_table_elt_t which don't have members elts & nelts). - Fixed the problem by breaking the external for loop as its not needed to loop over as cookie data may come in string * ZCOMT-2586 - Compile the nginx code in branch feature/ZCS-11179 - Modified some logging statements in-order to differentiate it from original logs. This changes will be reverted once testing done. * ZCOMT-2586 - Compile the nginx code in branch feature/ZCS-11179 - Modified some logging statements in-order to differentiate it from original logs. This changes will be reverted once testing done. * ZCOMT-2586 - Compile the nginx code in branch feature/ZCS-11179 - Minor change. Initialized return bool variable ngx_flag_t to 0. * ZCS-13998 : NGINX - Customization code separation from repo - Created the patch files to add zimbra specific customization on the top of the public nginx repository stable-1.24.0 * ZCS-13998 : NGINX - Customization code separation from repo - Changed in order to work the customization for the any nginx version got from public repository. ZCS-13998 : NGINX - Customization code separation from repo - Added patch files in order to apply zimbra specific customizations ZCS-13998 : NGINX - Customization code separation from repo - Changes to create build with patches Update Makefile ZCS-13998 : NGINX - Customization code separation from repo - Update build file ZCS-13998 : NGINX - Customization code separation from repo - customization related changes ZCS-13998 : NGINX - Customization code separation from repo - build failure fix ZCS-13998 : NGINX - Customization code separation from repo ZCS-13998 : NGINX - Customization code separation from repo - build failure fixes ZCS-13998 : NGINX - Customization code separation from repo - fix ZCS-13998 : NGINX - Customization code separation from repo - fix ZCS-13998 : NGINX - Customization code separation from repo - compilation fixes ZCS-13998 : NGINX - Customization code separation from repo - fixed compilation * ZCS-13998 : NGINX - Customization code separation from repo - Some review comments * ZCS-13998 : NGINX - Customization code separation from repo - Some review comments * ZCS-14068 : NGINX - Update review comments and documentation - Some review comments * ZCS-14068 : NGINX - Update review comments and documentation - Some review comments * ZCS-11179:Updated changelog for nginx * ZCS-11179:Updated proxy-components --------- Co-authored-by: Umashankar Avagadda <umagmrit@gmail.com>
No description provided.