From 7a08f1e074801130e8fd7d8671d9c140dee9d541 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Sun, 17 Dec 2017 20:55:43 +0100 Subject: [PATCH] Change db-path, create it during install Fixes the issue that systemd could not start boltd because the db path was missing. --- bolt.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bolt.spec b/bolt.spec index 6a52420..7539d79 100644 --- a/bolt.spec +++ b/bolt.spec @@ -1,6 +1,6 @@ Name: bolt Version: 0.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Thunderbolt device manager License: LGPLv2+ URL: https://github.com/gicmo/bolt @@ -35,7 +35,7 @@ mentioned tasks. cp %{SOURCE1} ./ %build -%meson +%meson -Ddb-path=%{_localstatedir}/lib/boltd %meson_build %check @@ -43,6 +43,8 @@ cp %{SOURCE1} ./ %install %meson_install +install -m0755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/boltd + %post %systemd_post %{name}.service @@ -66,7 +68,12 @@ cp %{SOURCE1} ./ %{_datadir}/polkit-1/rules.d/org.freedesktop.bolt.rules %{_datadir}/dbus-1/system-services/org.freedesktop.bolt.service %{_mandir}/man1/boltctl.1* +%dir %{_localstatedir}/lib/boltd %changelog +* Sun Dec 17 2017 Christian Kellner - 0.1-2 +- Set database path to /var/lib/boltd, create it during + installation, which is needed for the service file to work. + * Thu Dec 14 2017 Christian Kellner - 0.1-1 - Initial upstream release