Skip to content
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

Bugfix/zcs 5928 #84

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions thirdparty/mariadb/zimbra-mariadb/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ override_dh_auto_install:
rm -f $$(pwd)/debian/tmpOZCL/libmysqlclient_r.so.18
rm -f $$(pwd)/debian/tmpOZCL/libmysqlclient_r.so.18.0.0
cd $$(pwd)/debian/tmpOZCL && \
ln -s libmariadb.so.3 libmysqlclient.so.18 && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please include some evidence of the issue. The commit comment describes the fix not why it was done. What breaks if this is not done?

As an aside, it seems odd to have different versions on the shared libraries (but clearly if it is necessary, then fine)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue was following with the MTA restart. I added it as a comment in ZCS-5928 already.

Starting saslauthd...done.
/opt/zimbra/common/sbin/postalias: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No
such file or directory
/opt/zimbra/common/sbin/postfix: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory

ln -s libmariadb.so.3 libmysqlclient.so.18.0.0 && \
ln -s libmysqlclient.so.18.0.0 libmysqlclient_r.so.18.0.0 && \
ln -s libmysqlclient.so.18 libmysqlclient_r.so.18

Expand Down
2 changes: 2 additions & 0 deletions thirdparty/mariadb/zimbra-mariadb/rpm/SPECS/mariadb.spec
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ rm -f ${RPM_BUILD_ROOT}OZC/sbin/rcmysql
rm -f ${RPM_BUILD_ROOT}OZCL/libmysqlclient_r.so.18
rm -f ${RPM_BUILD_ROOT}OZCL/libmysqlclient_r.so.18.0.0
cd ${RPM_BUILD_ROOT}OZCL && \
ln -s libmariadb.so.3 libmysqlclient.so.18 && \
ln -s libmariadb.so.3 libmysqlclient.so.18.0.0 && \
ln -s libmysqlclient.so.18.0.0 libmysqlclient_r.so.18.0.0 && \
ln -s libmysqlclient.so.18 libmysqlclient_r.so.18

Expand Down