diff options
author | Ryan Egesdahl <ryan.egesdahl@mongodb.com> | 2021-04-02 10:58:12 -0700 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-10 16:27:10 +0000 |
commit | a64c231c2a34e763361a4ed91b62ff88acd4fd8c (patch) | |
tree | c79dac436f675148bd1a94604071b7e03e1a967e /rpm/mongodb-enterprise-unstable.spec | |
parent | a9e89da837617ab09628d736482705f81ee110bd (diff) | |
download | mongo-a64c231c2a34e763361a4ed91b62ff88acd4fd8c.tar.gz |
SERVER-55460 Fix RPM packaging and package testing for SLES 12
Some versions of SLES apparently don't define the _sharedstatedir RPM
macro properly, leaving it at the old-time UNIX /usr/com default. This
was causing the server to fail to start on such platforms because the
expected data directory at /var/lib/mongodb was missing. The macro is
now statically defined on SLES to /var like it should be on any modern
Linux distribution.
Also fixed were paths to systemd unit files in package testing and the
fact that we weren't installing the tools-extra package, which we should
be doing if only to verify that the script indeed continues to fail
expectedly on the platform.
(cherry picked from commit 649dc04027667b30155be39be39a880cb0b8743a)
(cherry picked from commit 31a75fa034ab929b5c0ef834fde92c845041b036)
(cherry picked from commit d9378a53b590fe3de9d458efd8787830e93c744b)
Diffstat (limited to 'rpm/mongodb-enterprise-unstable.spec')
-rw-r--r-- | rpm/mongodb-enterprise-unstable.spec | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rpm/mongodb-enterprise-unstable.spec b/rpm/mongodb-enterprise-unstable.spec index 83c45af758a..36bf9338b23 100644 --- a/rpm/mongodb-enterprise-unstable.spec +++ b/rpm/mongodb-enterprise-unstable.spec @@ -1,3 +1,11 @@ +%if 0%{?suse_version} +%define _sharedstatedir %{_localstatedir}/lib +%endif + +%if ! %{defined _docdir} +%define _docdir %{_datadir}/doc +%endif + %if ! %{defined _rundir} %define _rundir %{_localstatedir}/run %endif |