Fix Systemd unitdir path on x86_64 accepted/tizen_3.0.m14.3_ivi accepted/tizen_3.0_ivi accepted/tizen_ivi devel/ivi tizen tizen_3.0.m14.3_ivi tizen_3.0_ivi accepted/tizen/ivi/20140915.163327 submit/devel/ivi/20160126.050511 submit/tizen_ivi/20140912.867530 tizen_3.0.m14.3_ivi_release tizen_3.0_ivi_release
authorMikko Ylinen <mikko.ylinen@intel.com>
Fri, 12 Sep 2014 12:21:48 +0000 (15:21 +0300)
committerOssama Othman <ossama.othman@intel.com>
Fri, 12 Sep 2014 16:48:41 +0000 (09:48 -0700)
This workaround is needed to fix systemd pkg-config issue on x86_64.
Looks like this:

pkg-config --silence-errors --variable=systemdsystemunitdir systemd

returns static /usr/lib/systemd/system. However, on x86_64 /usr/lib64
is used.

Make with_systemdsystemunitdir configurable and pass %{_unitdir}
variable to it.

Change-Id: I19077085065e2b15873904f460117d87f3759d4c
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
configure.ac
packaging/node-state-manager.changes
packaging/node-state-manager.spec

index fcc9abc..4f9abff 100644 (file)
@@ -50,7 +50,7 @@ PKG_CHECK_MODULES([PCL],      [persistence_client_library >= 0.6.0 ])
 # Derive path for storing systemd service files (e. g. /lib/systemd/system)
 AC_ARG_WITH([systemdsystemunitdir],
         AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
-        [],
+        [with_systemdsystemunitdir="$withval"],
         [with_systemdsystemunitdir=$(pkg-config --silence-errors --variable=systemdsystemunitdir systemd)])
 
 if test "x${with_systemdsystemunitdir}" = "x"; then
index fa0a884..67b6bac 100644 (file)
@@ -1,3 +1,6 @@
+* Fri Sep 12 2014 Ossama Othman <ossama.othman@intel.com> submit/tizen_ivi/20140912.678321-1-g6599c84
+- Fix Systemd unitdir path on x86_64
+
 * Fri Sep 05 2014 Ossama Othman <ossama.othman@intel.com> b4ff31e
 - Initial packaging.
 
index 711cca2..086556f 100644 (file)
@@ -49,7 +49,7 @@ This package provides test related files for package %{name}.
 cp %{SOURCE1001} .
 
 %build
-%autogen --disable-static
+%autogen --disable-static --with-systemdsystemunitdir=%{_unitdir}
 
 make %{?_smp_mflags}
 
@@ -65,7 +65,7 @@ make %{?_smp_mflags}
 %license COPYING
 %{_bindir}/NodeStateManager
 %config %{_sysconfdir}/dbus-1/system.d/org.genivi.NodeStateManager.conf
-%{_libdir}/systemd/system/nodestatemanager-daemon.service
+%{_unitdir}/nodestatemanager-daemon.service
 %{_datadir}/dbus-1/system-services/org.genivi.NodeStateManager.LifeCycleControl.service
 %{_datadir}/dbus-1/interfaces/org.genivi.NodeStateManager.*.xml
 # These `.so' files are not in the 'devel' subpackage since they are