[MDEV-16753] Galera doesn't build on opensuse 15.0 Created: 2018-07-13 Updated: 2018-09-23 Resolved: 2018-09-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera, Packaging |
| Affects Version/s: | N/A |
| Fix Version/s: | 10.2.18, 10.3.10, 10.1.37 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Daniel Bartholomew | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Description |
|
There are a couple issues. First are some syntax issues with the Sconstruct file, probably due to the version in opensuse 15 being scons v3.0.1 (as opposed to v2.3.x in previous opensuse). The error is:
The error is also present on line 203, and I was able to work around both errors with the following quick-and-dirty patch:
Once the syntax issues are worked around, there are also openssl errors that can currently be solved by installing libopenssl-1_0_0-devel. I would be nice if Galera was able to be compiled with the default libopenssl-devel instead, but for the time being, I have set up a -galera VM with libopenssl-1_0_0-devel installed on it (has to be a separate VM because libopenssl-devel and libopenssl-1_0_0-devel can't be installed at the same time) and with some minor modifications to the galera.spec file I was able to compile a galera package that seems to work. Changes to galera.spec to fix packaging:
The attached suse15-galera.patch file has both fixes (to both the SConstruct and galera.spec files). |
| Comments |
| Comment by Jan Lindström (Inactive) [ 2018-07-17 ] |
|
teemu.ollakka Can you have a look ? |
| Comment by Teemu Ollakka [ 2018-07-17 ] |
|
Opened a ticket in Galera issue tracker: https://github.com/codership/galera/issues/513. We'll fix this for the next Galera release. |
| Comment by Daniel Bartholomew [ 2018-08-29 ] |
|
FYI: this error also exists in SLES 15.0: https://buildbot.askmonty.org/buildbot/builders/kvm-zyp-sles150-amd64-gal/builds/1 And different from openSUSE 15.0, SLES 15.0 does not have a libopenssl-1_0_0-devel package available (that I can see) so we can't work around it that way, we'll need to update galera to support openssl-1_1. |
| Comment by Teemu Ollakka [ 2018-09-12 ] |
|
According to http://buildbot.askmonty.org/buildbot/builders/kvm-zyp-opensuse150-amd64-gal/builds/7/steps/compile/logs/stdio Galera library from https://github.com/MariaDB/galera branch galera-3.x complies now fine. The job fails in rpm package build phase though, probably because of missing opensuse 15 definitions from galera.spec and rpm.sh. |