[MDEV-17152] Galera spec files need to be updated to support openSUSE and SLES 15.0 Created: 2018-09-06 Updated: 2019-02-21 Resolved: 2019-02-21 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera, Packaging |
| Affects Version/s: | N/A |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Bartholomew | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
We need to add support for openSUSE 15.0 and SLES 15.0 in the rpm .spec files for our galera packages. In the ./scripts/packages/galera.spec and ./scripts/packages/galera-obs.spec files in our galera src repository have several bits of code to detect various SLES/openSUSE versions and set the 'dist' variable. For example this section to detect SLES/openSUSE 12:
According to https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto it appears the appropriate code to do the same for SLES/openSUSE 15.0 would be this:
This one section should work for both SLES 15.0 and openSUSE 15.0. I'm not sure if there are other things that need to be done or not. But this at least does need to be added to the appropriate place in the spec files. This error causes issues when it comes time to actually create the rpm. Instead of naming the tmp dir files are copied into to create the rpm something like 'galera-25.3.23-1.sle15.x86_64' it's naming the dir
because the 'dist' variable is not set. This weird directory name causes "file not found" errors when rpmbuild tries to process it. For example, see this log: https://buildbot.askmonty.org/buildbot/builders/kvm-zyp-sles150-amd64-gal/builds/3/steps/compile/logs/stdio |
| Comments |
| Comment by Elena Stepanova [ 2018-10-04 ] |
|
jplindst, according to dbart, it appears to be fixed already, so maybe you could just double-check and close it as such. |