-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build for arm64 #44
Comments
I tried to apply the same changes on latest zm-build develop branch and it failed to compile junixsocket, so I had to use version 2.5.1 (see kohlschutter/junixsocket#102) The build completed successfully, but upon install did not work. I tried targetting Ubuntu 20.04 on 9.0.0. I invoked the following Output
the error upon running |
@jogerj you need to update the install script specifically bin/get_plat_tag.sh to recognise ubuntu20 by default it only goes up to 18, better add that to my readme. Yes you do need to upgrade junixsocket, there are a bunch of post install steps in my readme as well. |
Ubuntu 20 has been supported on latest builds for a while now. But from the file you hinted at I found there's another check for architecture at this line
the check needs to be replaced to Another check is done in modified lines
with that out of the way, I only got as far as package selection. After that, it complains of all the missing packages such as zimbra-core-components. Using Zimbra's repository does not help as they only have x86 binaries afaik, so even when the packages are found it won't install I was really hoping to get this to work on oracle cloud. If I can't get this running, I guess I'd better stick with amd64 instances, even if it's more expensive |
Ahh yes, you need to create your own repo with the compiled packages. like so deb [trusted=yes] file:/home/git/packages/zimbra / making sure to run the command |
If your still struggling I'll setup a repo with the packages for you.
30/09/2022 5:13:10 pm jogerj ***@***.***>:
… you need to update the install script specifically bin/get_plat_tag.sh to recognise ubuntu20 by default
Ubuntu 20 has been supported on latest builds for a while now. But from the file you hinted at I found there's another check for architecture at this line
*if [ -f /etc/lsb-release ]; then
LSB="lsb_release"
i=`dpkg --print-architecture`
if [ "x$i" = "xamd64" ]; then
i="_64"
else
i=""
fi
*
the check needs to be replaced to *arm64* not *amd64*. Patching it proper would be *if [ "x$i" = "xamd64" || "x$i" = "xarm64" ]; then*
Another check is done in *util/modules/packages.sh*
modified lines
*local file=${global_pkg_file[$package]}
if grep -q i386 <(echo $file)
then
PROC="i386"
elif grep -q x86_64 <(echo $file); then
PROC="x86_64"
else
PROC="arm64"
fi
if [[ $PLATFORM == "DEBIAN"* || $PLATFORM == "UBUNTU"* ]]; then
LOCALPROC=`dpkg --print-architecture`
if [ x"$LOCALPROC" == "xamd64" ]; then
LOCALPROC="x86_64"
fi
if [ x"$LOCALPROC" == "xarm64" ]; then
LOCALPROC="arm64"
fi
else
LOCALPROC=`uname -i`
fi
*
with that out of the way, I only got as far as package selection. After that, it complains of all the missing packages such as zimbra-core-components. Using Zimbra's repository does not help as they only have x86 binaries afaik, so even when the packages are found it won't install
—
Reply to this email directly, view it on GitHub[#44 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AALDOPP2NRUL6BIRUJNLVXLWAZSERANCNFSM54YW567A].
You are receiving this because you authored the thread.[Tracking image][https://github.com/notifications/beacon/AALDOPN2Y54XOFGJATBWXRDWAZSERA5CNFSM54YW567KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOJNERE7A.gif]
|
Please send me info on how you did it |
In the end I opted to use x86 builds, this solution is simply not production ready at its current state, but would really love to see more development in this direction. |
Just to let you know I built zimbra for arm64, works great, made a few changes to some of the packages to get it to work but yeah, it works with not too many changes.
Lemme know if you'd like to see the code changes.
The text was updated successfully, but these errors were encountered: