Quantcast
Channel: Zimbra Forums
Viewing all articles
Browse latest Browse all 1257

Administrators • FOSS - How to patch/build source to include missing commits for 10.1.5/6

$
0
0
Hello,

Packages included in 10.1.5 are listed here:
https://wiki.zimbra.com/wiki/Zimbra_Rel ... 5#Packages

Packages included in 10.1.6 are listed here:
https://wiki.zimbra.com/wiki/Zimbra_Rel ... 6#Packages

After checking through all repos/patches included with 10.1.5/6 the only packages missing from building FOSS normally (with tags) are:

Code:

zimbra-mbox-webclient-war                         ->  10.1.5.1737655177-1zimbra-mbox-webclient-war                         ->  10.1.6.1738908936-1
The zimbra-mbox-webclient-war package is part of the zm-web-client repo:
https://github.com/Zimbra/zm-web-client

The test environment I'm using is ubuntu 20.04.
For reference the above packages can be found here:
https://repo.zimbra.com/apt/1010-ne/poo ... _amd64.deb
https://repo.zimbra.com/apt/1010-ne/poo ... _amd64.deb

Here is how I managed to patch/build FOSS to be up to date with 10.1.6.
All patching/building is done in
~/git/zimbra

Code:

cd ~/git/zimbragit clone --depth 1 --branch 10.1.6 git@github.com:Zimbra/zm-build.gitgit clone --depth 1 --branch 10.1.4 git@github.com:Zimbra/zm-web-client
Copy the attached patch files to ~/git/zimbra, then

Code:

tar xf 10.1.5.patch.tartar xf 10.1.6.patch.tartest runpatch --dry-run -p1 < 10.1.5.patchpatch --dry-run -p1 < 10.1.6.patchif no errors thenpatch -p1 < 10.1.5.patchpatch -p1 < 10.1.6.patch
Add the empty file included in 10.1.6

Code:

touch zm-web-client/WebRoot/messages/ZmMsg_bg.properties
Create a config.build file

Code:

cd ~/git/zimbra/zm-web-clientgit pull --ff-onlycd ~/git/zimbra/zm-buildecho '# Zimbra 10 Build InfoBUILD_NO = 2503GIT_DEFAULT_TAG = 10.1.6,10.1.5,10.1.4,10.1.3,10.1.2,10.1.1,10.1.0BUILD_RELEASE_NO = 10.1.6BUILD_TYPE = FOSSBUILD_RELEASE = DAFFODILBUILD_RELEASE_CANDIDATE = GABUILD_THIRDPARTY_SERVER = files.zimbra.comINTERACTIVE = 0' > config.build
Build patched version with the required --git-overrides option

Code:

ENV_CACHE_CLEAR_FLAG=true ./build.pl --ant-options -DskipTests=true --git-overrides zm-web-client.branch=10.1.4
After build script ends check exit status

Code:

echo $?
If successful the installation file is located in

Code:

~/git/zimbra/BUILD
10.1.5.patch.tar

10.1.6.patch.tar

Statistics: Posted by zmcontrol — Thu Mar 20, 2025 12:15 am



Viewing all articles
Browse latest Browse all 1257

Trending Articles