From 8b240de840dd96fda6caf14786b877e00ff557778f159fd9d66faa53ba3ef49a Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Thu, 28 Mar 2019 16:59:24 +0000 Subject: [PATCH] Accepting request 689420 from home:cyphar:lxc - Add workaround for pre-15 distros, where _sharedstatedir was inexplicably /usr/com, to use the correct directory of /var/lib. OBS-URL: https://build.opensuse.org/request/show/689420 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/lxcfs?expand=0&rev=18 --- lxcfs.changes | 2 ++ lxcfs.spec | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/lxcfs.changes b/lxcfs.changes index f9259b9..5b77d3a 100644 --- a/lxcfs.changes +++ b/lxcfs.changes @@ -4,6 +4,8 @@ Tue Mar 26 02:28:48 UTC 2019 - Aleksa Sarai - Update to version 3.0.3. The changelog is fairly significant from 2.x, but the main difference is tha the PAM module has been moved to the LXC project, and is no longer hosted in lxcfs. +- Add workaround for pre-15 distros, where _sharedstatedir was inexplicably + /usr/com, to use the correct directory of /var/lib. ------------------------------------------------------------------- Tue Mar 26 00:09:22 UTC 2019 - Aleksa Sarai diff --git a/lxcfs.spec b/lxcfs.spec index 4852289..b979262 100644 --- a/lxcfs.spec +++ b/lxcfs.spec @@ -16,6 +16,11 @@ # +%if 0%{suse_version} < 1500 +# On pre-15 SLE versions, _sharedstatedir was /usr/com -- which is just wrong. +%define _sharedstatedir /var/lib +%endif + Name: lxcfs Version: 3.0.3 Release: 0