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>
# 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
+* 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.
cp %{SOURCE1001} .
%build
-%autogen --disable-static
+%autogen --disable-static --with-systemdsystemunitdir=%{_unitdir}
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